:root {
  color-scheme: light;
  --portal-navy: #12385f;
  --portal-navy-deep: #0b2745;
  --portal-blue: #176b87;
  --portal-blue-bright: #1673c9;
  --portal-green: #4f8a4b;
  --portal-amber: #d99514;
  --portal-red: #b54646;
  --portal-ink: #213247;
  --portal-muted: #68778a;
  --portal-line: #dce4ee;
  --portal-soft: #f4f7fb;
  --portal-surface: #ffffff;
  --portal-shadow: 0 24px 70px rgba(18, 56, 95, .13);
}

.resident-portal {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--portal-ink);
  background: var(--portal-soft);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.resident-portal *,
.resident-portal *::before,
.resident-portal *::after { box-sizing: border-box; }

.resident-portal a { color: inherit; }
.resident-portal button,
.resident-portal input { font: inherit; }

.portal-skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 9999;
  padding: .7rem 1rem;
  border-radius: 0 0 8px 8px;
  color: #fff !important;
  background: var(--portal-navy-deep);
  transition: top .2s ease;
}

.portal-skip-link:focus { top: 0; }
.is-hidden { display: none !important; }

.portal-public-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(18, 56, 95, .09);
  background: rgba(255, 255, 255, .96);
}

.portal-header-row,
.portal-footer-row,
.portal-app-header-row,
.portal-page-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--portal-ink) !important;
  text-decoration: none !important;
}

.portal-brand > span:last-child { display: grid; line-height: 1.25; }
.portal-brand strong { font-size: 1rem; font-weight: 700; }
.portal-brand small { color: var(--portal-muted); font-size: .72rem; font-weight: 500; letter-spacing: .055em; text-transform: uppercase; }

.portal-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-navy), var(--portal-blue));
  box-shadow: 0 8px 20px rgba(18, 56, 95, .2);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.portal-secure-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--portal-muted);
  font-size: .78rem;
  font-weight: 600;
}

.portal-secure-label i { color: var(--portal-green); }

.portal-auth-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(circle at 9% 18%, rgba(23, 107, 135, .13), transparent 29rem),
    radial-gradient(circle at 92% 90%, rgba(79, 138, 75, .1), transparent 26rem),
    var(--portal-soft);
}

.portal-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
}

.portal-auth-main--activation { padding: 3.8rem 0; }

.portal-auth-layout,
.portal-activation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding: 0;
  background: transparent;
}

.portal-activation-layout { grid-template-columns: minmax(0, .78fr) minmax(420px, .9fr); }

.portal-auth-intro,
.portal-activation-intro { max-width: 650px; }

.portal-kicker,
.portal-eyebrow {
  display: block;
  margin: 0 0 .55rem;
  color: var(--portal-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portal-auth-intro h1,
.portal-activation-intro h1 {
  margin: 0 0 1.15rem;
  color: var(--portal-navy-deep);
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.portal-activation-intro h1 { font-size: clamp(2.15rem, 4.4vw, 3.65rem); }

.portal-auth-intro > p,
.portal-activation-intro > p {
  max-width: 620px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.portal-feature-list {
  display: grid;
  gap: 1rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.portal-feature-list li {
  display: flex;
  align-items: center;
  gap: .95rem;
}

.portal-feature-list li > span:last-child { display: grid; }
.portal-feature-list strong { color: var(--portal-ink); font-size: .9rem; }
.portal-feature-list small { color: var(--portal-muted); font-size: .8rem; }

.portal-feature-icon,
.portal-panel-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--portal-blue);
  background: #e8f2f7;
}

.portal-feature-icon { width: 44px; height: 44px; border-radius: 13px; }
.portal-panel-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.05rem; }

.portal-panel {
  border: 1px solid rgba(18, 56, 95, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--portal-shadow);
}

.portal-login-panel,
.portal-activation-panel { padding: clamp(1.6rem, 4vw, 2.4rem); }

.portal-panel-heading {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.8rem;
}

.portal-panel-heading--compact { margin-bottom: .7rem; }
.portal-panel-heading h2 { margin: 0; color: var(--portal-ink); font-size: 1.45rem; font-weight: 700; }
.portal-panel-heading .portal-eyebrow { margin-bottom: .08rem; }
.portal-panel-intro { margin: 0 0 1.3rem; color: var(--portal-muted); }

.portal-form { margin-top: 1rem; }
.portal-field { margin-bottom: 1.1rem; }
.portal-field label { display: block; margin: 0 0 .4rem; color: var(--portal-ink); font-size: .8rem; font-weight: 600; }

.portal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-muted-link { color: #8b97a7; font-size: .72rem; }

.portal-input-wrap { position: relative; }
.portal-input-wrap > i {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 1;
  color: #8190a3;
  transform: translateY(-50%);
  pointer-events: none;
}

.portal-input-wrap input {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: .75rem 1rem .75rem 2.75rem;
  border: 1px solid #cdd8e5;
  border-radius: 11px;
  color: var(--portal-ink);
  background: #fff;
  outline: none;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.portal-input-wrap--action input { padding-right: 3rem; }
.portal-input-wrap input::placeholder { color: #9aa6b4; }
.portal-input-wrap input:focus { border-color: var(--portal-blue); box-shadow: 0 0 0 4px rgba(23, 107, 135, .12); }

.portal-input-action {
  position: absolute;
  top: 50%;
  right: .55rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #68778a;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.portal-input-action:hover,
.portal-input-action:focus-visible { color: var(--portal-blue); background: #edf4f8; outline: none; }

.portal-primary-button,
.portal-secondary-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border-radius: 11px;
  padding: .8rem 1.25rem;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.portal-primary-button {
  width: 100%;
  border: 0;
  color: #fff !important;
  background: linear-gradient(135deg, var(--portal-blue), #125b8f);
  box-shadow: 0 12px 25px rgba(18, 91, 143, .2);
  cursor: pointer;
}

.portal-primary-button:hover { color: #fff !important; filter: brightness(.97); transform: translateY(-1px); }
.portal-primary-button:focus-visible { outline: 3px solid rgba(23, 107, 135, .28); outline-offset: 3px; }
.portal-primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.portal-primary-button--link { margin-top: .6rem; }

.portal-secondary-button {
  border: 1px solid #cbd8e5;
  color: var(--portal-navy) !important;
  background: #fff;
}

.portal-panel-footer {
  display: flex;
  gap: .65rem;
  margin: 1.45rem -2.4rem -2.4rem;
  padding: 1.1rem 2.4rem;
  border-top: 1px solid var(--portal-line);
  border-radius: 0 0 22px 22px;
  color: var(--portal-muted);
  background: #f8fafc;
}

.portal-panel-footer i { margin-top: .25rem; color: var(--portal-blue); }
.portal-panel-footer p { margin: 0; font-size: .75rem; line-height: 1.6; }

.portal-security-note {
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 420px;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(79, 138, 75, .23);
  border-radius: 13px;
  color: #456248;
  background: rgba(237, 248, 237, .82);
}

.portal-security-note > i { font-size: 1.2rem; }
.portal-security-note div { display: grid; }
.portal-security-note strong { font-size: .82rem; }
.portal-security-note span { font-size: .73rem; }

.portal-state { padding: 1.4rem .3rem; text-align: center; }
.portal-state h2 { margin: .8rem 0 .5rem; color: var(--portal-ink); font-size: 1.5rem; }
.portal-state p { margin: 0 auto .8rem; color: var(--portal-muted); }
.portal-state-support { font-size: .8rem; }
.portal-state .portal-secondary-button { margin-top: .65rem; }

.portal-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 1.2rem;
}

.portal-state-icon--warning { color: #8c5a09; background: #fff3d6; }
.portal-state-icon--success { color: #2d7134; background: #e3f5e4; }

.portal-spinner {
  width: 46px;
  height: 46px;
  display: block;
  margin: 0 auto 1rem;
  border: 4px solid #dfe8f1;
  border-top-color: var(--portal-blue);
  border-radius: 50%;
  animation: portal-spin .8s linear infinite;
}

@keyframes portal-spin { to { transform: rotate(360deg); } }

.portal-invitation-summary {
  display: grid;
  gap: 0;
  margin: 1.25rem 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 13px;
  background: #f8fafc;
}

.portal-invitation-summary div {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--portal-line);
}

.portal-invitation-summary div:last-child { border-bottom: 0; }
.portal-invitation-summary dt { color: var(--portal-muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.portal-invitation-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--portal-ink); font-size: .8rem; font-weight: 600; }

.portal-help,
.portal-expiry { color: var(--portal-muted); font-size: .72rem; }
.portal-help { display: flex; gap: .45rem; margin: -.2rem 0 1.15rem; }
.portal-help i { margin-top: .27rem; color: var(--portal-green); }
.portal-expiry { margin: 1rem 0 0; text-align: center; }
.portal-expiry i { margin-right: .3rem; }

.portal-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid;
  border-radius: 11px;
  font-size: .78rem;
}

.portal-alert--info { border-color: #bfd8eb; color: #275d7a; background: #eef7fc; }
.portal-alert--danger { border-color: #efb7b7; color: #8c2525; background: #fff0f0; }
.portal-alert--success { border-color: #bcdcc3; color: #35643e; background: #eff8f1; }
.portal-success-email { color: var(--portal-navy) !important; font-weight: 700; }

.portal-footer {
  padding: 1.3rem 0;
  border-top: 1px solid rgba(18, 56, 95, .09);
  color: var(--portal-muted);
  background: rgba(255, 255, 255, .78);
  font-size: .72rem;
}

.portal-footer-row span:last-child,
.portal-footer-row a { display: inline-flex; align-items: center; gap: .4rem; }
.portal-footer-row i { color: var(--portal-green); }

/* Authenticated shell preview */
.portal-dashboard-page { background: #f2f5f9; }
.portal-app-header { position: sticky; top: 0; z-index: 100; color: #fff; background: linear-gradient(135deg, var(--portal-navy-deep), var(--portal-navy)); box-shadow: 0 8px 28px rgba(11, 39, 69, .16); }
.portal-app-header-row { min-height: 76px; }
.portal-brand--light { color: #fff !important; }
.portal-brand--light .portal-brand-mark { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); box-shadow: none; }
.portal-brand--light small { color: rgba(255, 255, 255, .65); }

.portal-navigation { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.portal-navigation a,
.portal-navigation span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .8rem;
  border-radius: 9px;
  color: rgba(255, 255, 255, .66);
  font-size: .74rem;
  font-weight: 600;
  text-decoration: none;
}
.portal-navigation a:hover,
.portal-navigation a.is-active { color: #fff; background: rgba(255, 255, 255, .12); }
.portal-navigation span[aria-disabled="true"] { cursor: not-allowed; opacity: .7; }

.portal-user-chip { display: flex; align-items: center; gap: .6rem; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .17); }
.portal-user-chip > span:last-child { display: grid; line-height: 1.2; }
.portal-user-chip strong { font-size: .72rem; }
.portal-user-chip small { color: rgba(255, 255, 255, .6); font-size: .64rem; }
.portal-user-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); }

.portal-nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; color: #fff; background: rgba(255, 255, 255, .1); }

.portal-dashboard-main { min-height: calc(100vh - 150px); }
.portal-page-banner { padding: 3rem 0 2.7rem; color: #fff; background: linear-gradient(135deg, #164873, #176b87); }
.portal-page-banner .portal-kicker { color: #a9d5e3; }
.portal-page-banner h1 { margin: 0 0 .35rem; color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.035em; }
.portal-page-banner p { margin: 0; color: rgba(255, 255, 255, .72); }

.portal-preview-badge,
.portal-count-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .68rem;
  font-weight: 700;
}
.portal-preview-badge { color: #fff; background: rgba(255, 255, 255, .14); }
.portal-count-badge { color: var(--portal-navy) !important; background: #e7eef6; text-decoration: none !important; }

.portal-dashboard-content { padding-top: 2rem; padding-bottom: 4rem; }
.portal-dashboard-content > section { padding: 0; background: transparent; }
.portal-dashboard-notice { align-items: center; margin-bottom: 2rem; padding: 1rem 1.15rem; }
.portal-dashboard-notice div { display: grid; }
.portal-dashboard-notice span { color: #53788e; }

.portal-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.portal-section-heading .portal-eyebrow { margin: 0 0 .15rem; }
.portal-section-heading h2 { margin: 0; color: var(--portal-ink); font-size: 1.4rem; font-weight: 700; }

.portal-properties-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 1rem; }
.portal-property-empty,
.portal-property-skeleton,
.portal-service-card { border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(18, 56, 95, .06); }

.portal-property-empty { min-height: 190px; display: flex; align-items: center; gap: 1.2rem; padding: 2rem; }
.portal-empty-icon { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: var(--portal-blue); background: #e9f3f7; font-size: 1.25rem; }
.portal-property-empty h3 { margin: 0 0 .35rem; color: var(--portal-ink); font-size: 1rem; }
.portal-property-empty p { max-width: 560px; margin: 0; color: var(--portal-muted); font-size: .8rem; }

.portal-property-skeleton { min-height: 190px; padding: 1.7rem; opacity: .64; }
.portal-skeleton-line { height: 10px; margin-bottom: .8rem; border-radius: 999px; background: #e6ecf3; }
.portal-skeleton-line--short { width: 34%; }
.portal-skeleton-line--title { width: 72%; height: 18px; margin-top: 1.1rem; }
.portal-skeleton-actions { display: flex; gap: .5rem; margin-top: 2.2rem; }
.portal-skeleton-actions span { width: 38px; height: 38px; border-radius: 10px; background: #e6ecf3; }

.portal-quick-section { margin-top: 2.5rem; }
.portal-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.portal-service-card { position: relative; display: flex; align-items: center; gap: .85rem; padding: 1.25rem; }
.portal-service-card > span { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--portal-blue); background: #e9f3f7; }
.portal-service-card h3 { margin: 0; color: var(--portal-ink); font-size: .9rem; }
.portal-service-card p { margin: .15rem 0 0; color: var(--portal-muted); font-size: .7rem; }
.portal-service-card small { position: absolute; top: .7rem; right: .7rem; color: #8a96a6; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.portal-footer--dashboard a { color: var(--portal-navy) !important; text-decoration: none; }

@media (max-width: 991px) {
  .portal-auth-layout,
  .portal-activation-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .portal-auth-intro,
  .portal-activation-intro { max-width: 760px; text-align: center; margin: 0 auto; }
  .portal-auth-intro > p,
  .portal-activation-intro > p,
  .portal-security-note { margin-left: auto; margin-right: auto; }
  .portal-feature-list { max-width: 560px; margin-left: auto; margin-right: auto; text-align: left; }
  .portal-login-panel,
  .portal-activation-panel { width: min(100%, 560px); margin: 0 auto; }

  .portal-app-header-row { position: relative; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
  .portal-nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .portal-navigation { order: 4; width: 100%; display: none; flex-direction: column; align-items: stretch; padding-top: .5rem; }
  .portal-navigation.is-open { display: flex; }
  .portal-navigation a,
  .portal-navigation span { padding: .75rem .9rem; }
  .portal-user-chip { display: none; }
}

@media (max-width: 767px) {
  .portal-auth-main { padding: 2.5rem 0; }
  .portal-auth-intro h1,
  .portal-activation-intro h1 { font-size: 2.35rem; }
  .portal-secure-label { display: none; }
  .portal-panel-footer { margin-left: -1.6rem; margin-right: -1.6rem; margin-bottom: -1.6rem; padding-left: 1.6rem; padding-right: 1.6rem; }
  .portal-footer-row { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .portal-page-banner-row { align-items: flex-start; flex-direction: column; }
  .portal-properties-grid,
  .portal-service-grid { grid-template-columns: 1fr; }
  .portal-property-skeleton { display: none; }
}

@media (max-width: 575px) {
  .portal-public-header { min-height: 76px; }
  .portal-brand-mark { width: 42px; height: 42px; }
  .portal-auth-main { padding: 1.8rem 0 2.3rem; }
  .portal-auth-intro { text-align: left; }
  .portal-auth-intro h1,
  .portal-activation-intro h1 { font-size: 2rem; }
  .portal-feature-list { display: none; }
  .portal-login-panel,
  .portal-activation-panel { padding: 1.35rem; border-radius: 17px; }
  .portal-panel-footer { margin: 1.35rem -1.35rem -1.35rem; padding: 1rem 1.35rem; border-radius: 0 0 17px 17px; }
  .portal-invitation-summary div { grid-template-columns: 1fr; gap: .08rem; }
  .portal-security-note { text-align: left; }
  .portal-page-banner { padding: 2rem 0; }
  .portal-dashboard-content { padding-top: 1.25rem; }
  .portal-property-empty { align-items: flex-start; flex-direction: column; padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Authenticated resident dashboard */
.portal-dashboard-page { overflow-x: hidden; background: #f3f6fa; }
:where(.portal-dashboard-page) section { padding: 0; background: transparent; }
.portal-app-header { position: sticky; top: 0; z-index: 300; }
.portal-app-header-row { width: 100%; min-height: 74px; padding: 0 1.5rem; }
.portal-header-account { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.portal-header-user { display: grid; min-width: 0; line-height: 1.2; }
.portal-header-user strong { max-width: 180px; overflow: hidden; color: #fff; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-header-user small { max-width: 210px; overflow: hidden; color: rgba(255, 255, 255, .62); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-logout-button { display: inline-flex; align-items: center; gap: .45rem; margin-left: .35rem; padding: .55rem .7rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; color: #fff; background: rgba(255, 255, 255, .08); font-size: .7rem; font-weight: 600; }
.portal-logout-button:hover { background: rgba(255, 255, 255, .16); }
.portal-logout-button:disabled { opacity: .65; }

.portal-app-shell { display: grid; grid-template-columns: 265px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.portal-sidebar { position: relative; z-index: 210; min-height: calc(100vh - 74px); align-self: stretch; display: flex; flex-direction: column; overflow: visible; border-right: 1px solid var(--portal-line); background: #fff; box-shadow: 8px 0 30px rgba(18, 56, 95, .035); }
.portal-sidebar-nav { display: grid; gap: .3rem; padding: 1.25rem .9rem; }
.portal-nav-group { display: grid; gap: .18rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid #edf1f5; }
.portal-nav-group h2 { margin: 0 0 .35rem; padding: 0 .7rem; color: #8794a5; font-size: .61rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.portal-sidebar-link { min-width: 0; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-height: 38px; padding: .52rem .7rem; border-radius: 9px; color: #536477 !important; font-size: .71rem; font-weight: 600; text-decoration: none !important; }
.portal-sidebar-link > i { color: #71839a; text-align: center; }
.portal-sidebar-link:hover { color: var(--portal-navy) !important; background: #eff5fa; }
.portal-sidebar-link.is-active { color: #fff !important; background: linear-gradient(135deg, var(--portal-navy), var(--portal-blue)); box-shadow: 0 8px 18px rgba(18, 56, 95, .15); }
.portal-sidebar-link.is-active > i { color: #fff; }
.portal-sidebar-link.is-disabled { cursor: default; opacity: .66; }
.portal-sidebar-link.is-disabled small { padding: .1rem .35rem; border-radius: 999px; color: #7d8998; background: #eef2f6; font-size: .5rem; letter-spacing: .05em; text-transform: uppercase; }
.portal-sidebar-support { display: flex; gap: .65rem; margin: auto .9rem 1rem; padding: .8rem; border: 1px solid #dbe9e0; border-radius: 11px; color: #54705a; background: #f3faf4; }
.portal-sidebar-support > i { margin-top: .15rem; color: var(--portal-green); }
.portal-sidebar-support div { display: grid; }
.portal-sidebar-support strong { font-size: .68rem; }
.portal-sidebar-support span { color: #6f8072; font-size: .58rem; line-height: 1.5; }
.portal-nav-backdrop { display: none; }

.portal-dashboard-main { min-width: 0; max-width: 1600px; width: 100%; margin: 0 auto; padding: 2rem clamp(1.25rem, 3vw, 3rem) 4rem; }
.portal-dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; }
.portal-dashboard-welcome .portal-kicker { margin-bottom: .2rem; }
.portal-dashboard-welcome h1 { margin: 0; color: var(--portal-navy-deep); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -.035em; }
.portal-dashboard-welcome p { margin: .3rem 0 0; color: var(--portal-muted); font-size: .83rem; }
.portal-secure-session { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border: 1px solid #d5e7d7; border-radius: 999px; color: #527259; background: #f3faf4; font-size: .63rem; font-weight: 700; white-space: nowrap; }
.portal-dashboard-status { margin-bottom: 1.25rem; }
.portal-dashboard-status > div { display: grid; }
.portal-dashboard-status > div span { font-size: .7rem; }
.portal-spinner--small { width: 24px; height: 24px; margin: 0; border-width: 3px; }

.portal-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.15rem; }
.portal-stat-card { --stat-color: var(--portal-blue); --stat-soft: #edf6fa; min-width: 0; display: flex; align-items: center; gap: .9rem; padding: 1.15rem; border: 1px solid var(--portal-line); border-top: 3px solid var(--stat-color); border-radius: 14px; color: var(--portal-ink) !important; background: #fff; box-shadow: 0 9px 26px rgba(18, 56, 95, .055); text-decoration: none !important; }
a.portal-stat-card:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(18, 56, 95, .09); }
.portal-stat-card--red { --stat-color: var(--portal-red); --stat-soft: #fff0f0; }
.portal-stat-card--green { --stat-color: var(--portal-green); --stat-soft: #eef8ef; }
.portal-stat-card--amber { --stat-color: var(--portal-amber); --stat-soft: #fff7e8; }
.portal-stat-card--purple { --stat-color: #6f4baa; --stat-soft: #f4effb; }
.portal-stat-icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--stat-color); background: var(--stat-soft); font-size: 1.05rem; }
.portal-stat-card > div { min-width: 0; display: grid; line-height: 1.2; }
.portal-stat-card small { overflow: hidden; color: #68798c; font-size: .62rem; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.portal-stat-card strong { margin: .15rem 0; color: var(--portal-ink); font-size: 1.65rem; line-height: 1; }
.portal-stat-card div span { color: #8a97a7; font-size: .6rem; }

.portal-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 1rem; }
.portal-dashboard-card { min-width: 0; padding: 1.25rem; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #edf1f5; }
.portal-card-heading > div { display: flex; align-items: center; gap: .7rem; }
.portal-card-heading .portal-eyebrow { margin: 0; }
.portal-card-heading h2 { margin: 0; color: var(--portal-ink); font-size: 1rem; font-weight: 700; }
.portal-card-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--portal-blue); background: #eaf3f8; }
.portal-empty-copy { margin: 0; padding: 1.5rem .5rem; color: var(--portal-muted); font-size: .75rem; text-align: center; }

.portal-event-list,
.portal-announcement-list { display: grid; }
.portal-event-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid #edf1f5; }
.portal-event-item:last-child { border-bottom: 0; }
.portal-event-date { display: grid; place-items: center; width: 46px; height: 50px; border-radius: 10px; color: var(--portal-navy); background: #edf4fa; line-height: 1; text-decoration: none; }
.portal-event-date strong { font-size: 1rem; }
.portal-event-date span { margin-top: .15rem; color: var(--portal-blue); font-size: .55rem; font-weight: 700; text-transform: uppercase; }
.portal-event-copy { min-width: 0; }
.portal-event-copy h3 { margin: 0; overflow: hidden; color: var(--portal-ink); font-size: .79rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.portal-event-copy p { margin: .22rem 0 0; color: var(--portal-muted); font-size: .62rem; }
.portal-event-category { padding: .22rem .45rem; border-radius: 999px; color: #4e6c7c; background: #edf5f7; font-size: .52rem; font-weight: 700; }
.portal-announcement-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: .7rem; padding: .8rem 0; border-bottom: 1px solid #edf1f5; }
.portal-announcement-item:last-child { border-bottom: 0; }
.portal-announcement-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--portal-blue); background: #edf5fa; }
.portal-announcement-item h3 { margin: 0; color: var(--portal-ink); font-size: .78rem; }
.portal-announcement-item p { display: -webkit-box; margin: .25rem 0; overflow: hidden; color: var(--portal-muted); font-size: .66rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.portal-announcement-item small { color: #8b98a7; font-size: .58rem; }
.portal-card-icon--alert { color: var(--portal-red); background: #fff0f0; }
.portal-alert-list { display: grid; }
.portal-alert-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: .7rem; padding: .8rem 0; border-bottom: 1px solid #edf1f5; }
.portal-alert-item:last-child { border-bottom: 0; }
.portal-alert-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--portal-red); background: #fff0f0; }
.portal-alert-item h3 { margin: 0; color: var(--portal-ink); font-size: .78rem; }
.portal-alert-item p { margin: .22rem 0 0; color: var(--portal-muted); font-size: .61rem; }

.portal-quick-actions { display: grid; gap: .55rem; }
.portal-quick-actions button,
.portal-quick-actions > a { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .7rem; border: 1px solid #e2e8ef; border-radius: 10px; color: var(--portal-ink) !important; background: #f9fbfd; text-align: left; text-decoration: none !important; }
.portal-quick-actions > a:hover { border-color: #c9d9e8; background: #f2f7fb; }
.portal-quick-actions button:disabled { cursor: not-allowed; opacity: .72; }
.portal-quick-actions button > span,
.portal-quick-actions > a > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--portal-blue); background: #eaf3f8; }
.portal-quick-actions button div,
.portal-quick-actions > a div { display: grid; }
.portal-quick-actions strong { font-size: .7rem; }
.portal-quick-actions small { color: #8a97a7; font-size: .55rem; }
.portal-quick-actions button > i,
.portal-quick-actions > a > i { color: #a4afbc; font-size: .6rem; }
.portal-contact-placeholder { display: flex; gap: .75rem; padding: .75rem; border-radius: 10px; color: #5f6f81; background: #f6f9fc; }
.portal-contact-placeholder > span { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--portal-green); background: #eaf5eb; }
.portal-contact-placeholder strong { color: var(--portal-ink); font-size: .7rem; }
.portal-contact-placeholder p { margin: .15rem 0 0; font-size: .61rem; line-height: 1.5; }
.portal-resource-links { display: grid; gap: .45rem; margin-top: .75rem; }
.portal-resource-links a,
.portal-resource-links > span { display: flex; align-items: center; gap: .5rem; padding: .55rem .65rem; border-radius: 8px; color: #607185 !important; background: #f8fafc; font-size: .64rem; text-decoration: none !important; }
.portal-resource-links small { margin-left: auto; color: #95a0ae; font-size: .5rem; text-transform: uppercase; }

.portal-properties-section { margin-top: 1.15rem; scroll-margin-top: 94px; }
.portal-properties-section .portal-section-heading { align-items: center; }
.portal-properties-section .portal-section-heading > div > p:last-child { margin: .15rem 0 0; color: var(--portal-muted); font-size: .68rem; }
.portal-properties-grid--live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-property-card { min-width: 0; padding: 1.2rem; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-property-card-heading { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: .8rem; }
.portal-property-card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--portal-blue); background: #eaf3f8; }
.portal-property-card-heading .portal-eyebrow { margin: 0 0 .05rem; }
.portal-property-card h3 { margin: 0; overflow: hidden; color: var(--portal-ink); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-property-address { margin: .15rem 0 0; color: var(--portal-muted); font-size: .64rem; }
.portal-primary-badge,
.portal-relationship-badge { display: inline-flex; align-items: center; padding: .2rem .45rem; border-radius: 999px; color: #41694a; background: #e9f5eb; font-size: .52rem; font-weight: 700; text-transform: uppercase; }
.portal-property-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; padding: .75rem; border-radius: 10px; background: #f6f9fc; }
.portal-property-meta div { display: grid; }
.portal-property-meta small { color: #8491a1; font-size: .54rem; font-weight: 700; text-transform: uppercase; }
.portal-property-meta strong { margin-top: .1rem; color: var(--portal-ink); font-size: .76rem; }
.portal-property-statuses { display: flex; flex-wrap: wrap; gap: .38rem; }
.portal-property-status { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .45rem; border: 1px solid #e1e6ec; border-radius: 7px; color: #7c8896; background: #fafbfd; font-size: .55rem; font-weight: 600; }
.portal-property-status.is-active { border-color: #c9e0ce; color: #467050; background: #f0f8f1; }
.portal-property-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid #edf1f5; color: #8a96a5; font-size: .56rem; }
.portal-property-profile-link { color: var(--portal-blue) !important; font-weight: 700; text-decoration: none !important; }
.portal-property-profile-link:hover { color: var(--portal-navy) !important; }
.portal-mobile-nav { display: none; }

/* My Properties */
.portal-properties-welcome { margin-bottom: 1.25rem; }
.portal-properties-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1.15rem 1.25rem !important; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff !important; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-properties-intro > div { display: flex; align-items: center; gap: .8rem; }
.portal-properties-intro h2 { margin: 0; color: var(--portal-ink); font-size: 1.05rem; }
.portal-properties-intro p:last-child { margin: .15rem 0 0; color: var(--portal-muted); font-size: .66rem; }
.portal-property-detail-list { display: grid; gap: 1rem; }
.portal-property-detail-card { overflow: hidden; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(18, 56, 95, .055); }
.portal-property-detail-header { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: 1.25rem; border-bottom: 1px solid #edf1f5; background: linear-gradient(180deg, #fff, #fbfcfe); }
.portal-property-detail-header .portal-property-card-icon { width: 48px; height: 48px; }
.portal-property-detail-header h2 { margin: 0; color: var(--portal-ink); font-size: 1.05rem; }
.portal-property-detail-header .portal-primary-badge { align-self: start; }
.portal-property-state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; padding: 1rem 1.25rem; border-bottom: 1px solid #edf1f5; background: #fbfcfe; }
.portal-property-state { min-width: 0; display: flex; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid #e2e7ed; border-radius: 10px; color: #687789; background: #fff; }
.portal-property-state > span { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #7f8b99; background: #f0f3f6; }
.portal-property-state > div { min-width: 0; display: grid; }
.portal-property-state small { color: #8995a3; font-size: .52rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.portal-property-state strong { overflow: hidden; color: var(--portal-ink); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-property-state.is-active { border-color: #cde2d0; background: #f5faf6; }
.portal-property-state.is-active > span { color: var(--portal-green); background: #e8f4ea; }
.portal-property-detail-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; }
.portal-property-profile-panel { padding: 1rem !important; border: 1px solid #e5eaf0; border-radius: 12px; background: #fff !important; }
.portal-property-subheading { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; padding-bottom: .7rem; border-bottom: 1px solid #edf1f5; color: var(--portal-blue); }
.portal-property-subheading h3 { margin: 0; color: var(--portal-ink); font-size: .8rem; }
.portal-property-definition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; }
.portal-property-definition { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: .5rem; padding: .55rem; border-radius: 9px; background: #f7f9fc; }
.portal-property-definition-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--portal-blue); background: #eaf3f8; font-size: .7rem; }
.portal-property-definition > div { min-width: 0; display: grid; }
.portal-property-definition dt { color: #8995a3; font-size: .5rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.portal-property-definition dd { margin: .08rem 0 0; overflow: hidden; color: var(--portal-ink); font-size: .67rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.portal-property-detail-footer { display: flex; align-items: center; gap: .45rem; padding: .75rem 1.25rem; border-top: 1px solid #edf1f5; color: #6f8172; background: #f5faf6; font-size: .58rem; }
.portal-property-detail-footer i { color: var(--portal-green); }
.portal-property-detail-skeleton { min-height: 360px; background: linear-gradient(90deg, #f7f9fb 25%, #eef2f6 50%, #f7f9fb 75%); background-size: 200% 100%; animation: portal-skeleton 1.3s infinite; }
.portal-property-empty--detail { border: 1px solid var(--portal-line); border-radius: 15px; background: #fff; }
.portal-financial-placeholder { margin-top: 1.25rem; padding: 1.25rem !important; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff !important; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-financial-placeholder .portal-section-heading { margin-bottom: 1rem; }
.portal-financial-placeholder .portal-section-heading p:last-child { margin: .15rem 0 0; color: var(--portal-muted); font-size: .66rem; }
.portal-financial-placeholder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.portal-financial-placeholder-grid article { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: .65rem; padding: .85rem; border: 1px dashed #d5dce5; border-radius: 11px; background: #fafbfd; }
.portal-financial-placeholder-grid article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #758399; background: #edf1f5; }
.portal-financial-placeholder-grid h3 { margin: 0; color: var(--portal-ink); font-size: .7rem; }
.portal-financial-placeholder-grid p { margin: .12rem 0 0; color: var(--portal-muted); font-size: .57rem; line-height: 1.45; }
.portal-financial-placeholder-grid small { position: absolute; top: .45rem; right: .55rem; color: #98a3b0; font-size: .46rem; font-weight: 700; text-transform: uppercase; }

/* Community information */
.portal-community-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .85rem 1rem !important; border: 1px solid var(--portal-line); border-radius: 13px; background: #fff !important; box-shadow: 0 8px 24px rgba(18, 56, 95, .045); }
.portal-community-toolbar label { min-width: min(100%, 420px); display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border: 1px solid #dce4ec; border-radius: 9px; color: #748396; background: #f9fbfd; }
.portal-community-toolbar input { width: 100%; border: 0; outline: 0; color: var(--portal-ink); background: transparent; font-size: .72rem; }
.portal-community-list { display: grid; gap: .85rem; }
.portal-news-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .9rem; padding: 1.2rem; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-news-card--alert { border-left: 4px solid var(--portal-red); }
.portal-news-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: var(--portal-blue); background: #eaf3f8; font-size: 1.05rem; }
.portal-news-icon--alert { color: var(--portal-red); background: #fff0f0; }
.portal-news-content { min-width: 0; }
.portal-news-meta { display: flex; align-items: center; gap: .55rem; color: #8290a0; font-size: .58rem; }
.portal-community-category { display: inline-flex; align-items: center; padding: .22rem .48rem; border-radius: 999px; color: #225d78; background: #e9f4f8; font-size: .52rem; font-weight: 700; text-transform: uppercase; }
.portal-community-category--alert { color: #9f2830; background: #ffebec; }
.portal-news-content h2 { margin: .45rem 0 .35rem; color: var(--portal-ink); font-size: 1rem; }
.portal-news-description { margin: 0; color: #596a7d; font-size: .72rem; line-height: 1.65; white-space: pre-line; }
.portal-community-location { margin: .6rem 0 0; color: #738397; font-size: .62rem; }
.portal-community-location i { color: var(--portal-red); }
.portal-community-empty { padding: 3rem 1rem; border: 1px dashed #d6dee7; border-radius: 14px; color: var(--portal-muted); background: #fff; font-size: .74rem; text-align: center; }
.portal-filter-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.portal-filter-buttons button { padding: .48rem .72rem; border: 1px solid #d8e1ea; border-radius: 8px; color: #5e7084; background: #f8fafc; font-size: .62rem; font-weight: 700; }
.portal-filter-buttons button.is-active { border-color: var(--portal-navy); color: #fff; background: var(--portal-navy); }
.portal-calendar-card { padding: 1.25rem !important; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff !important; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-calendar-card .fc { color: var(--portal-ink); font-size: .72rem; }
.portal-calendar-card .fc .fc-toolbar-title { color: var(--portal-navy-deep); font-size: 1.15rem; }
.portal-calendar-card .fc .fc-button-primary { border-color: var(--portal-navy); background: var(--portal-navy); font-size: .62rem; text-transform: capitalize; }
.portal-calendar-card .fc .fc-button-primary:not(:disabled):hover,
.portal-calendar-card .fc .fc-button-primary:not(:disabled).fc-button-active { border-color: var(--portal-blue); background: var(--portal-blue); }
.portal-calendar-card .fc-theme-standard td,
.portal-calendar-card .fc-theme-standard th,
.portal-calendar-card .fc-theme-standard .fc-scrollgrid { border-color: #e3e9ef; }
.portal-calendar-card .fc-daygrid-event { cursor: pointer; border-radius: 5px; padding: .12rem .25rem; }
.portal-calendar-card .fc-list-event { cursor: pointer; }
.portal-event-detail { margin-top: 1rem; padding: 1.2rem; border: 1px solid #cadee8; border-left: 4px solid var(--portal-blue); border-radius: 13px; background: #fff; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-event-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.portal-event-detail-heading h2 { margin: .45rem 0 0; color: var(--portal-ink); font-size: 1.05rem; }
.portal-event-detail-close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #6d7c8d; background: #f0f3f6; }
.portal-event-detail-facts { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; color: #66788b; font-size: .65rem; }
.portal-event-detail-facts p { margin: 0; }
.portal-event-detail-facts i { color: var(--portal-blue); }
.portal-event-detail-description { margin: .85rem 0 0; padding-top: .85rem; border-top: 1px solid #edf1f5; color: #596a7d; font-size: .72rem; line-height: 1.65; white-space: pre-line; }

/* Documents and forms */
.portal-document-filters { margin-bottom: 1rem; padding: .2rem 0; }
.portal-document-list { display: grid; gap: .75rem; }
.portal-document-card { min-width: 0; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(18, 56, 95, .045); }
.portal-document-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; color: #63758a; background: #eff3f7; font-size: 1.2rem; }
.portal-document-icon--pdf { color: #b62d35; background: #fff0f0; }
.portal-document-icon--doc,
.portal-document-icon--docx,
.portal-document-icon--rtf { color: #1764aa; background: #edf5fc; }
.portal-document-icon--xls,
.portal-document-icon--xlsx,
.portal-document-icon--csv { color: #3b7c49; background: #edf7ef; }
.portal-document-icon--ppt,
.portal-document-icon--pptx { color: #bd6a19; background: #fff4e8; }
.portal-document-copy { min-width: 0; }
.portal-document-copy h2 { margin: .35rem 0 .15rem; overflow: hidden; color: var(--portal-ink); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-document-copy p { margin: 0; color: #7b8999; font-size: .6rem; }
.portal-document-download { min-width: 105px; padding: .55rem .75rem; border: 1px solid var(--portal-navy); border-radius: 9px; color: #fff; background: var(--portal-navy); font-size: .64rem; font-weight: 700; }
.portal-document-download:hover { border-color: var(--portal-blue); background: var(--portal-blue); }
.portal-document-download:disabled { cursor: wait; opacity: .65; }
.portal-document-download.is-loading i { animation: portal-spin .8s linear infinite; }
.portal-recent-document-list { display: grid; }
.portal-recent-document { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem 0; border-bottom: 1px solid #edf1f5; color: var(--portal-ink) !important; text-decoration: none !important; }
.portal-recent-document:last-child { border-bottom: 0; }
.portal-recent-document:hover strong { color: var(--portal-blue); }
.portal-recent-document-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--portal-blue); background: #eaf3f8; }
.portal-recent-document div { min-width: 0; display: grid; }
.portal-recent-document strong { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-recent-document small { color: #8794a3; font-size: .54rem; }
.portal-recent-document > i { color: #8b98a7; font-size: .65rem; }

/* Service requests */
.portal-primary-action,
.portal-secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .65rem 1rem; border: 1px solid var(--portal-navy); border-radius: 9px; font-size: .68rem; font-weight: 700; }
.portal-primary-action { color: #fff; background: var(--portal-navy); }
.portal-primary-action:hover { border-color: var(--portal-blue); background: var(--portal-blue); }
.portal-primary-action:disabled { cursor: not-allowed; opacity: .65; }
.portal-primary-action.is-loading i { animation: portal-spin .8s linear infinite; }
.portal-secondary-action { border-color: #d8e0e9; color: #5f7083; background: #f7f9fb; }
.portal-request-form-panel { margin-bottom: 1rem; overflow: hidden; border: 1px solid #cad8e7; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(18, 56, 95, .08); scroll-margin-top: 90px; }
.portal-request-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid #e6ecf2; background: linear-gradient(135deg, #f4f8fc, #fff); }
.portal-request-form-heading h2 { margin: 0; color: var(--portal-ink); font-size: 1.05rem; }
.portal-request-form-heading p:last-child { margin: .2rem 0 0; color: var(--portal-muted); font-size: .65rem; }
.portal-request-form-heading > button { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #667689; background: #e9eef4; }
.portal-request-form-panel form { padding: 1.25rem; }
.portal-request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.portal-request-fields label { min-width: 0; display: grid; gap: .35rem; color: #596a7d; font-size: .62rem; font-weight: 700; }
.portal-request-fields label > span { text-transform: uppercase; letter-spacing: .04em; }
.portal-request-fields label > span small { color: #8b98a7; font-size: .52rem; font-weight: 500; text-transform: none; }
.portal-request-field--wide { grid-column: 1 / -1; }
.portal-request-fields input,
.portal-request-fields select,
.portal-request-fields textarea { width: 100%; padding: .68rem .75rem; border: 1px solid #d6e0ea; border-radius: 9px; outline: 0; color: var(--portal-ink); background: #fbfcfe; font: inherit; font-size: .7rem; font-weight: 500; }
.portal-request-fields textarea { min-height: 145px; resize: vertical; line-height: 1.55; }
.portal-request-fields input:focus,
.portal-request-fields select:focus,
.portal-request-fields textarea:focus { border-color: var(--portal-blue); box-shadow: 0 0 0 3px rgba(31, 110, 212, .1); }
.portal-request-fields label > small { justify-self: end; color: #8a97a7; font-size: .52rem; }
.portal-request-file-field { padding: .8rem; border: 1px dashed #cbd8e6; border-radius: 10px; background: #f8fbfd; }
.portal-request-file-field input[type="file"] { padding: .55rem; background: #fff; }
.portal-request-file-field input[type="file"]::file-selector-button { margin-right: .65rem; padding: .45rem .65rem; border: 0; border-radius: 7px; color: #fff; background: var(--portal-navy); font-size: .6rem; font-weight: 700; }
.portal-request-form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #edf1f5; }
.portal-request-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.portal-request-summary article { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(18, 56, 95, .04); }
.portal-request-summary article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--portal-blue); background: #eaf3f8; }
.portal-request-summary article > div { display: grid; }
.portal-request-summary small { color: #7d8b9b; font-size: .54rem; font-weight: 700; text-transform: uppercase; }
.portal-request-summary strong { color: var(--portal-ink); font-size: 1rem; }
.portal-request-list { display: grid; gap: .8rem; }
.portal-request-card { padding: 1.1rem 1.2rem; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(18, 56, 95, .045); }
.portal-request-card-heading { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: start; gap: .8rem; }
.portal-request-marker { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; color: var(--portal-blue); background: #eaf3f8; font-size: 1rem; }
.portal-violation-page .portal-request-marker { color: var(--portal-red); background: #fff0f0; }
.portal-request-card-heading h2 { margin: .3rem 0 .12rem; color: var(--portal-ink); font-size: .9rem; }
.portal-request-card-heading p { margin: 0; color: #8290a0; font-size: .57rem; }
.portal-request-status { align-self: center; display: inline-flex; align-items: center; padding: .27rem .52rem; border-radius: 999px; font-size: .53rem; font-weight: 700; text-transform: uppercase; }
.portal-request-status--open { color: #1764aa; background: #eaf3fc; }
.portal-request-status--pending { color: #996400; background: #fff3d6; }
.portal-request-status--completed,
.portal-request-status--closed { color: #3f704a; background: #e9f5eb; }
.portal-request-description { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid #edf1f5; color: #596a7d; font-size: .7rem; line-height: 1.6; white-space: pre-line; }
.portal-request-facts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .75rem; color: #788798; font-size: .58rem; }
.portal-request-facts i { color: var(--portal-blue); }
.portal-request-attachment-panel { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #edf1f5; }
.portal-request-attachment-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.portal-request-attachment-heading strong { color: #586a7d; font-size: .62rem; }
.portal-request-attachment-heading strong i { color: var(--portal-blue); }
.portal-request-add-attachment { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .58rem; border: 1px solid #cedae6; border-radius: 7px; color: var(--portal-blue); background: #f6f9fc; cursor: pointer; font-size: .56rem; font-weight: 700; }
.portal-request-add-attachment:hover { border-color: var(--portal-blue); }
.portal-request-add-attachment.is-loading { cursor: wait; opacity: .6; }
.portal-request-add-attachment input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.portal-request-attachment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .65rem; }
.portal-request-attachment { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .55rem; border: 1px solid #e0e7ee; border-radius: 8px; color: var(--portal-ink); background: #f9fbfd; text-align: left; }
.portal-request-attachment:hover { border-color: #c3d3e2; background: #f2f7fb; }
.portal-request-attachment > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--portal-blue); background: #e9f2f8; }
.portal-request-attachment > span:nth-child(2) { min-width: 0; display: grid; }
.portal-request-attachment strong { overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-request-attachment small { color: #8794a3; font-size: .5rem; }
.portal-request-attachment > i { color: #8290a0; font-size: .58rem; }
.portal-request-no-attachments { margin: .55rem 0 0; color: #8b97a5; font-size: .55rem; }

.portal-profile-overview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.3rem; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(18, 56, 95, .05); }
.portal-profile-avatar { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(135deg, var(--portal-blue), var(--portal-navy)); font-size: 1.35rem; font-weight: 800; }
.portal-profile-overview h2 { margin: 0; color: var(--portal-navy-deep); font-size: 1.25rem; }
.portal-profile-overview p:not(.portal-eyebrow) { margin: .18rem 0 0; color: var(--portal-muted); font-size: .72rem; }
.portal-profile-overview dl { display: flex; gap: 1.6rem; margin: 0; }
.portal-profile-overview dl div { min-width: 110px; }
.portal-profile-overview dt { color: #7c8b9c; font-size: .55rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.portal-profile-overview dd { margin: .2rem 0 0; color: var(--portal-ink); font-size: .67rem; font-weight: 700; }
.portal-profile-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 1rem; align-items: start; }
.portal-profile-side { display: grid; gap: 1rem; }
.portal-profile-card { padding: 1.3rem; }
.portal-profile-intro, .portal-security-card > p { margin: -.2rem 0 1rem; color: var(--portal-muted); font-size: .67rem; line-height: 1.6; }
.portal-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.portal-profile-fields--single { grid-template-columns: 1fr; }
.portal-profile-fields label { display: grid; gap: .35rem; color: #536477; font-size: .6rem; font-weight: 800; }
.portal-profile-fields input, .portal-profile-fields textarea { width: 100%; padding: .72rem .8rem; border: 1px solid #ced9e5; border-radius: 8px; color: var(--portal-ink); background: #fff; font: inherit; font-size: .68rem; font-weight: 500; }
.portal-profile-fields input:focus, .portal-profile-fields textarea:focus { outline: 3px solid rgba(22, 126, 164, .13); border-color: var(--portal-blue); }
.portal-preference-group { margin: 1.15rem 0 0; padding: 0; border: 0; }
.portal-preference-group legend { margin-bottom: .55rem; color: var(--portal-navy-deep); font-size: .68rem; font-weight: 800; }
.portal-preference-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-top: 1px solid #edf1f5; cursor: pointer; }
.portal-preference-row > span { display: grid; gap: .12rem; }
.portal-preference-row strong { color: var(--portal-ink); font-size: .64rem; }
.portal-preference-row small { color: #8190a1; font-size: .55rem; font-weight: 500; }
.portal-preference-row input { position: absolute; opacity: 0; pointer-events: none; }
.portal-preference-row > i { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; background: #c8d1db; transition: background .2s ease; }
.portal-preference-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(17, 41, 68, .24); transition: transform .2s ease; }
.portal-preference-row input:checked + i { background: var(--portal-blue); }
.portal-preference-row input:checked + i::after { transform: translateX(18px); }
.portal-preference-row input:focus-visible + i { outline: 3px solid rgba(22, 126, 164, .2); }
.portal-directory-options { display: flex; flex-wrap: wrap; gap: .55rem 1rem; padding: .7rem; border-radius: 8px; background: #f4f7fa; transition: opacity .2s ease; }
.portal-directory-options.is-disabled { opacity: .48; }
.portal-directory-options label { display: inline-flex; align-items: center; gap: .4rem; color: #5c6c7d; font-size: .58rem; font-weight: 700; }
.portal-directory-options input { accent-color: var(--portal-blue); }
.portal-privacy-note { display: flex; gap: .45rem; margin: .65rem 0 0; color: #6c7c8e; font-size: .55rem; line-height: 1.5; }
.portal-privacy-note i { margin-top: .08rem; color: var(--portal-green); }
.portal-profile-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.portal-security-card .portal-secondary-action { display: inline-flex; width: fit-content; align-items: center; gap: .4rem; text-decoration: none; }

.portal-directory-notice { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; padding: 1rem 1.1rem; border: 1px solid #dbe9e0; border-radius: 12px; color: #54705a; background: #f3faf4; }
.portal-directory-notice > i { margin-top: .15rem; color: var(--portal-green); font-size: 1rem; }
.portal-directory-notice strong { color: #31573a; font-size: .72rem; }
.portal-directory-notice p { margin: .15rem 0 0; color: #6f8072; font-size: .61rem; }
.portal-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.portal-directory-grid > .portal-community-empty { grid-column: 1 / -1; }
.portal-directory-card { min-width: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: .9rem; align-items: start; padding: 1.1rem; border: 1px solid var(--portal-line); border-radius: 13px; background: #fff; box-shadow: 0 8px 22px rgba(18, 56, 95, .045); }
.portal-directory-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--portal-blue), var(--portal-navy)); font-size: 1.05rem; font-weight: 800; }
.portal-directory-card-content { min-width: 0; }
.portal-directory-card h2 { margin: 0; color: var(--portal-navy-deep); font-size: .9rem; line-height: 1.25; }
.portal-directory-relationship { display: inline-flex; margin-top: .25rem; padding: .16rem .42rem; border-radius: 999px; color: var(--portal-blue); background: #edf6fa; font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.portal-directory-contacts { display: grid; gap: .32rem; margin-top: .7rem; }
.portal-directory-contacts a, .portal-directory-private { min-width: 0; overflow-wrap: anywhere; color: #617286; font-size: .61rem; text-decoration: none; }
.portal-directory-contacts a:hover { color: var(--portal-blue); text-decoration: underline; }
.portal-directory-contacts i { width: 1rem; color: var(--portal-blue); text-align: center; }
.portal-directory-private i { color: #8492a2; }

@media (max-width: 1199px) {
  .portal-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .portal-app-header-row { flex-wrap: nowrap; }
  .portal-app-shell { display: block; }
  .portal-sidebar { position: fixed; top: 0; left: 0; z-index: 410; width: min(86vw, 290px); height: 100vh; min-height: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; }
  .portal-sidebar.is-open { transform: translateX(0); }
  .portal-nav-backdrop { position: fixed; inset: 0; z-index: 400; width: 100%; height: 100%; border: 0; background: rgba(8, 25, 43, .52); }
  .portal-navigation-open .portal-nav-backdrop { display: block; }
  .portal-navigation-open { overflow: hidden; }
  .portal-header-user { display: none; }
  .portal-dashboard-grid { grid-template-columns: 1fr; }
  .portal-dashboard-card--wide { grid-column: auto; }
  .portal-properties-grid--live { grid-template-columns: 1fr; }
  .portal-property-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-property-detail-body { grid-template-columns: 1fr; }
  .portal-financial-placeholder-grid { grid-template-columns: 1fr; }
  .portal-request-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-profile-overview { grid-template-columns: auto minmax(0, 1fr); }
  .portal-profile-overview dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: .8rem; }
  .portal-profile-grid { grid-template-columns: 1fr; }
  .portal-calendar-card .fc .fc-toolbar { align-items: flex-start; flex-direction: column; gap: .6rem; }
}

@media (max-width: 767px) {
  .portal-app-header-row { min-height: 68px; padding: 0 .9rem; }
  .portal-brand strong { font-size: .85rem; }
  .portal-header-account { margin-left: 0; }
  .portal-logout-button span { display: none; }
  .portal-app-shell { min-height: calc(100vh - 68px); }
  .portal-dashboard-main { padding: 1.35rem .9rem 6rem; }
  .portal-dashboard-welcome { align-items: flex-start; }
  .portal-secure-session { display: none; }
  .portal-stat-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .portal-stat-card { align-items: flex-start; gap: .65rem; padding: .85rem; }
  .portal-stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .portal-stat-card small { white-space: normal; }
  .portal-stat-card strong { font-size: 1.35rem; }
  .portal-stat-card div span { display: none; }
  .portal-dashboard-card { padding: 1rem; }
  .portal-event-item { grid-template-columns: 42px minmax(0, 1fr); }
  .portal-event-category { display: none; }
  .portal-mobile-nav { position: fixed; right: .65rem; bottom: .65rem; left: .65rem; z-index: 350; display: grid; grid-template-columns: repeat(5, 1fr); padding: .4rem; border: 1px solid var(--portal-line); border-radius: 15px; background: rgba(255, 255, 255, .97); box-shadow: 0 14px 36px rgba(11, 39, 69, .2); backdrop-filter: blur(12px); }
  .portal-mobile-nav a,
  .portal-mobile-nav button { display: grid; place-items: center; gap: .12rem; padding: .35rem .1rem; border: 0; border-radius: 9px; color: #7a8898; background: transparent; font-size: .5rem; font-weight: 600; text-decoration: none !important; }
  .portal-mobile-nav i { font-size: .88rem; }
  .portal-mobile-nav .is-active { color: #fff; background: var(--portal-navy); }
  .portal-properties-intro { align-items: flex-start; }
  .portal-properties-intro .portal-card-icon { display: none; }
  .portal-property-detail-header { grid-template-columns: 42px minmax(0, 1fr); padding: 1rem; }
  .portal-property-detail-header .portal-property-card-icon { width: 42px; height: 42px; }
  .portal-property-detail-header .portal-primary-badge { grid-column: 2; justify-self: start; }
  .portal-property-state-grid { padding: .85rem 1rem; }
  .portal-property-detail-body { padding: 1rem; }
  .portal-community-toolbar { align-items: stretch; flex-direction: column; }
  .portal-community-toolbar label { min-width: 100%; }
  .portal-community-toolbar .portal-count-badge { align-self: flex-start; }
  .portal-news-card { grid-template-columns: 40px minmax(0, 1fr); padding: 1rem; }
  .portal-news-icon { width: 40px; height: 40px; }
  .portal-calendar-card { padding: .75rem !important; }
  .portal-document-card { grid-template-columns: 42px minmax(0, 1fr); padding: .9rem; }
  .portal-document-icon { width: 42px; height: 42px; }
  .portal-document-download { grid-column: 2; justify-self: start; }
  .portal-request-fields { grid-template-columns: 1fr; }
  .portal-request-field--wide { grid-column: auto; }
  .portal-request-card-heading { grid-template-columns: 42px minmax(0, 1fr); }
  .portal-request-marker { width: 42px; height: 42px; }
  .portal-request-status { grid-column: 2; justify-self: start; }
  .portal-request-attachment-list { grid-template-columns: 1fr; }
  .portal-profile-fields { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .portal-stat-grid { grid-template-columns: 1fr; }
  .portal-stat-card { align-items: center; }
  .portal-stat-card div span { display: block; }
  .portal-property-card-heading { grid-template-columns: 40px minmax(0, 1fr); }
  .portal-primary-badge { grid-column: 2; justify-self: start; }
  .portal-property-card-footer { align-items: flex-start; flex-direction: column; }
  .portal-properties-intro { flex-direction: column; }
  .portal-property-state-grid,
  .portal-property-definition-list { grid-template-columns: 1fr; }
  .portal-request-summary { grid-template-columns: 1fr; }
  .portal-profile-overview dl { grid-template-columns: 1fr; }
}
