:root {
  --navy: #13283f;
  --slate: #546b80;
  --mist: #f1f5f8;
  --line: #d8e4eb;
  --green: #4ccb33;
  --teal: #0a6f83;
  --topbar: #062b38;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  color: #1f2a33;
  overflow-x: hidden;
}

body.portal-booting #loginTopbar,
body.portal-booting #dashboardTopbar,
body.portal-booting #loginPanel,
body.portal-booting #dashboardPanel,
body.portal-booting #portalFooter {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  font: inherit;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--slate);
}

.error {
  color: #9f2f2f;
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 18px 36px rgba(19, 40, 63, 0.06);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: #575757;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
}

input,
textarea {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #c7d5de;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #355261;
  box-shadow: 0 0 0 4px rgba(53, 82, 97, 0.12);
  background: #fbfdff;
}

button {
  padding: 0.82rem 1.1rem;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(19, 40, 63, 0.1);
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

button.secondary {
  background: #fff;
  border: 1px solid #c7d5de;
  color: var(--navy);
}

.portal-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%),
    url('/app/images/Login_Bkg.jpeg') center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  background: var(--topbar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-topbar-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 1.6rem;
}

.portal-brand {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.portal-brand-logo {
  display: block;
  height: 16px;
  max-height: 16px;
  max-width: min(124px, 38vw);
  width: auto;
  object-fit: contain;
}

.portal-brand-divider {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.portal-brand-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portal-login-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

.portal-login-stage-inner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.portal-login-card {
  width: min(100%, 430px);
  padding: 0;
  border-radius: 0;
  border: 3px solid rgba(0, 0, 0, 0.12);
  background: #ececeb;
  box-shadow: none;
  overflow: hidden;
}

.portal-login-card h2 {
  margin: 0;
  padding: 0.75rem 0.8rem 0;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 500;
}

#portalActivateView h2,
#portalCompleteActivationView h2,
#portalForgotPasswordView h2,
#portalUnlockAccountView h2 {
  padding-bottom: 0.7rem;
}

.portal-login-form {
  padding: 1.8rem 1.15rem 0.8rem;
}

.portal-form-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.portal-form-row label {
  margin: 0;
  text-align: right;
  font-size: 1rem;
  color: #575757;
  font-weight: 700;
}

.portal-form-row input {
  height: 30px;
  padding: 0.25rem 0.55rem;
  border: 1px solid #ababab;
  border-radius: 6px;
  background: #f3f3f2;
  box-shadow: none;
}

.portal-password-wrap {
  position: relative;
}

.portal-password-wrap input {
  padding-right: 3.4rem;
}

.portal-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  min-width: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 999px;
  background: transparent;
  color: #5b6a72;
  box-shadow: none;
}

.portal-password-toggle:hover,
.portal-password-toggle:focus-visible {
  transform: translateY(-50%);
  box-shadow: none;
  background: rgba(10, 111, 131, 0.08);
}

.portal-password-toggle.is-visible {
  color: var(--teal);
}

.portal-password-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-password-icon-slash {
  opacity: 1;
}

.portal-password-toggle.is-visible .portal-password-icon-slash {
  opacity: 0;
}

#loginError {
  margin: -0.2rem 0 0.15rem 98px;
}

.portal-inline-error {
  margin: -0.2rem 0 0.15rem 98px;
}

.portal-login-note {
  margin: 1.2rem auto 0;
  max-width: 30ch;
  color: #595959;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
}

.portal-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.portal-submit-row button {
  min-width: 112px;
  border-radius: 999px;
  background: var(--green);
  color: #082318;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: none;
}

.portal-activate-copy {
  padding: 1.3rem 1rem 1.1rem;
  border-top: 1px solid transparent;
}

.portal-activate-copy p {
  margin: 0 0 1rem;
  color: #17313d;
  font-size: 0.96rem;
  line-height: 1.45;
}

.portal-activate-copy p:last-child {
  margin-bottom: 0;
}

.portal-forgot-copy {
  padding-bottom: 0.5rem;
}

.portal-forgot-copy p {
  font-size: 0.98rem;
}

.portal-activate-form {
  border-top: 1px solid #d0d0cf;
  padding-top: 1.2rem;
}

.portal-login-links {
  border-top: 1px solid #d0d0cf;
  padding: 0.8rem 0.8rem 0.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  text-align: center;
}

.portal-login-links a {
  color: #2e56b4;
  font-size: 0.74rem;
  position: relative;
}

.portal-login-links a:not(:last-child)::after {
  content: "|";
  margin-left: 0.7rem;
  color: #7e7e7e;
}

.portal-language-row {
  padding: 0.45rem 0.8rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #555;
  font-size: 0.76rem;
  font-weight: 600;
}

.portal-language-row select {
  width: auto;
  min-width: 188px;
  padding: 0.38rem 2.2rem 0.38rem 0.65rem;
  border: 1px solid #8fa4d7;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8b8b8b 50%),
    linear-gradient(135deg, #8b8b8b 50%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 10px) 50%,
    0 0;
  background-size:
    8px 8px,
    8px 8px,
    100% 100%;
  background-repeat: no-repeat;
}

.portal-dashboard-shell {
  min-height: calc(100vh - 72px);
  background: #f4f2ef;
  padding: 2.5rem 0 4rem;
}

.portal-dashboard-wrap {
  width: min(1460px, 86vw);
  margin: 0 auto;
}

.portal-app-topbar {
  background: #f7f5f2;
  border-bottom: 1px solid #ddd4cf;
}

.portal-app-topbar-inner {
  width: min(1460px, 86vw);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 0;
}

.portal-app-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  color: #312925;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.portal-app-brand-logo {
  display: block;
  height: 26px;
  max-height: 26px;
  max-width: min(168px, 18vw);
  width: auto;
  object-fit: contain;
}

.portal-app-nav {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  margin-right: auto;
  margin-left: 1.5rem;
}

.portal-app-nav a {
  color: #40504f;
  font-size: 1rem;
  font-weight: 500;
}

.portal-app-nav a.is-active {
  color: #314947;
}

.portal-app-account {
  display: flex;
  align-items: center;
  position: relative;
}

.portal-account-dropdown {
  position: relative;
}

.portal-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1rem 0;
  background: transparent;
  color: #3e474a;
}

.portal-account-chip:hover,
.portal-account-chip:focus-visible {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.portal-account-avatar {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #312925;
  color: #f7f5f2;
  font-size: 0.95rem;
  font-weight: 700;
}

.portal-account-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #586566;
  font-size: 0.9rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.portal-account-chip.is-open .portal-account-chevron {
  transform: rotate(180deg);
}

.portal-account-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 236px;
  border: 1px solid #d9d0ca;
  border-radius: 10px;
  background: #f7f5f2;
  box-shadow: 0 12px 24px rgba(40, 32, 28, 0.12);
  overflow: hidden;
  z-index: 20;
}

.portal-account-menu-header {
  padding: 0.7rem 0.8rem 0.65rem;
  border-bottom: 1px solid #dfd5cf;
}

.portal-account-menu-header strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #2f2925;
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-account-menu-header span {
  color: #605954;
  font-size: 0.72rem;
  font-weight: 600;
}

.portal-account-menu-links {
  display: grid;
  gap: 0;
  padding: 0.15rem 0;
}

.portal-account-menu-links a,
.portal-account-menu-logout {
  padding: 0.56rem 0.8rem;
  color: #332d29;
  font-size: 0.76rem;
  font-weight: 500;
}

.portal-account-menu-links a:hover,
.portal-account-menu-links a:focus-visible,
.portal-account-menu-logout:hover,
.portal-account-menu-logout:focus-visible {
  background: rgba(52, 75, 73, 0.06);
}

.portal-account-menu-logout {
  width: 100%;
  border-top: 1px solid #dfd5cf;
  border-radius: 0;
  background: transparent;
  text-align: left;
  box-shadow: none;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

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

.metric {
  background: var(--mist);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #dce6ec;
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  color: var(--navy);
}

.portal-section-header {
  margin: 1.4rem 0 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.portal-section-header h3 {
  margin: 0;
}

.portal-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1.9rem;
  border-radius: 22px;
  background: #344b49;
  color: #f5f1eb;
  overflow: visible;
  box-shadow: 16px 18px 0 rgba(157, 132, 123, 0.28);
}

.portal-hero-card::after {
  content: none;
}

.portal-hero-icon {
  width: 60px;
  height: 60px;
  color: #ecf0eb;
}

.portal-hero-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-hero-kicker {
  margin: 0 0 0.4rem;
  color: rgba(245, 241, 235, 0.9);
  font-size: 0.95rem;
}

.portal-hero-copy h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.95rem, 3.2vw, 2.7rem);
  line-height: 1.08;
  font-weight: 400;
}

.portal-hero-copy p {
  margin: 0;
  max-width: 40rem;
  color: rgba(245, 241, 235, 0.92);
  font-size: 0.98rem;
}

.portal-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.6rem;
}

.portal-hero-cta {
  padding: 0.8rem 1.15rem;
  border: 1px solid #d9d4cf;
  border-radius: 8px;
  background: #f7f5f2;
  color: #3a312d;
  font-size: 0.82rem;
  font-weight: 400;
}

.portal-hero-cta::after {
  content: "→";
  margin-left: 0.45rem;
  font-size: 1em;
}

.portal-hero-cta:hover,
.portal-hero-cta:focus-visible {
  background: #ffffff;
}

.portal-signup-inline {
  margin-top: 1rem;
  color: #6d584f;
  font-size: 0.95rem;
}

.portal-dashboard-section {
  margin-top: 3.25rem;
}

.portal-dashboard-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.portal-dashboard-section-heading h2 {
  margin: 0;
  color: #384d4c;
  font-size: 1.95rem;
  font-weight: 500;
}

.portal-dashboard-section-heading-compact h2 {
  font-size: 1.65rem;
}

.portal-portfolio-header {
  margin-top: 0.25rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.portal-portfolio-filters {
  display: flex;
  gap: 0.85rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.portal-portfolio-filters select {
  min-width: 220px;
  height: 48px;
  padding: 0.65rem 0.95rem;
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  background: #fbfaf8;
  color: #4f4a45;
  font-size: 0.92rem;
  font-weight: 400;
}

.portal-portfolio-summary {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portal-portfolio-summary-card {
  padding: 1.35rem 1.25rem;
  border: 1px solid #ddd4ce;
  border-radius: 16px;
  background: #fbfaf8;
  box-shadow: 0 10px 18px rgba(57, 44, 38, 0.05);
}

.portal-portfolio-summary-label {
  display: block;
  margin-bottom: 0.8rem;
  color: #726a63;
  font-size: 0.9rem;
  font-weight: 400;
}

.portal-portfolio-summary-card strong {
  display: block;
  color: #2f4745;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.portal-portfolio-empty {
  padding: 4rem 1.5rem;
  border: 1px solid #dfd7d2;
  border-radius: 16px;
  background: #fbfaf8;
  text-align: center;
}

.portal-portfolio-empty-icon {
  margin-bottom: 1rem;
  color: #6e655e;
  font-size: 2rem;
  line-height: 1;
}

.portal-portfolio-empty h3 {
  margin: 0 0 0.75rem;
  color: #302925;
  font-size: 1.95rem;
  font-weight: 600;
}

.portal-portfolio-empty p {
  margin: 0 auto 1.5rem;
  max-width: 44rem;
  color: #5d5651;
  font-size: 1rem;
  line-height: 1.6;
}

.portal-portfolio-empty-cta {
  padding: 0.82rem 1.15rem;
  border-radius: 8px;
  background: #425351;
  font-size: 0.92rem;
  font-weight: 500;
}

.portal-portfolio-list {
  display: grid;
  gap: 1rem;
}

.portal-portfolio-position {
  padding: 1.45rem 1.35rem;
  border: 1px solid #dfd7d2;
  border-radius: 16px;
  background: #fbfaf8;
}

.portal-portfolio-position-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.portal-portfolio-position-class {
  margin: 0 0 0.35rem;
  color: #736a63;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-portfolio-position h3 {
  margin: 0;
  color: #312925;
  font-size: 1.4rem;
  font-weight: 500;
}

.portal-portfolio-position-status {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(66, 83, 81, 0.1);
  color: #3a4d4c;
  font-size: 0.78rem;
  font-weight: 600;
}

.portal-portfolio-position-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.portal-portfolio-position-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: #726a63;
  font-size: 0.82rem;
  font-weight: 400;
}

.portal-portfolio-position-grid strong {
  color: #334847;
  font-size: 1.08rem;
  font-weight: 500;
}

.portal-portfolio-position-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.portal-portfolio-tier-card {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(45, 73, 69, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-portfolio-tier-head,
.portal-fund-tier-note,
.admin-tier-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.portal-portfolio-tier-head span,
.portal-fund-tier-note span {
  color: #726a63;
  font-size: 0.92rem;
}

.portal-tier-card-head-copy {
  display: grid;
  gap: 0.28rem;
}

.portal-tier-card-head-copy > strong {
  color: #243836;
  font-size: 1.05rem;
  line-height: 1.15;
}

.portal-tier-subcopy {
  color: #7a736d;
  font-size: 0.82rem;
  line-height: 1.45;
}

.portal-tier-label {
  color: #7a736d;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-portfolio-tier-grid,
.portal-tier-metrics,
.admin-tier-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.portal-portfolio-tier-grid span,
.portal-tier-metrics span,
.admin-tier-summary span {
  display: block;
  margin-bottom: 0.3rem;
  color: #726a63;
  font-size: 0.8rem;
}

.portal-portfolio-tier-grid strong,
.portal-tier-metrics strong,
.admin-tier-summary strong {
  color: #334847;
  font-size: 1rem;
}

.portal-portfolio-tier-note,
.portal-tier-benefits {
  margin: 0;
  color: #4e615f;
}

.portal-tier-benefits-block {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(45, 73, 69, 0.08);
}

.portal-tier-upgrade-preview {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(45, 73, 69, 0.1);
  border-radius: 16px;
  background: rgba(245, 248, 247, 0.95);
}

.portal-tier-upgrade-preview > strong {
  color: #334847;
  font-size: 0.95rem;
}

.portal-tier-benefits-block span {
  color: #726a63;
  font-size: 0.8rem;
  font-weight: 600;
}

.portal-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.portal-tier-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.05rem;
  border: 1px solid rgba(45, 73, 69, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 244, 0.92));
  min-width: 0;
  box-shadow: 0 8px 22px rgba(51, 72, 71, 0.04);
}

.portal-tier-card.is-current {
  border-color: rgba(52, 87, 80, 0.38);
  box-shadow: 0 14px 30px rgba(51, 72, 71, 0.08);
}

.portal-tier-card.is-next {
  border-style: dashed;
}

.portal-tier-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.portal-tier-range-block {
  display: grid;
  gap: 0.3rem;
  padding: 0.1rem 0 0.15rem;
}

.portal-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(52, 87, 80, 0.1);
  color: #2f4d49;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.portal-tier-range {
  color: #334847;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.portal-tier-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.portal-tier-metric {
  display: grid;
  gap: 0.18rem;
  padding: 0.78rem 0.9rem;
  border-radius: 13px;
  background: rgba(244, 247, 246, 0.82);
  border: 1px solid rgba(45, 73, 69, 0.07);
}

.portal-tier-metric span {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.portal-tier-metric strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.portal-fund-tier-note-intro {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(45, 73, 69, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.portal-tier-benefits-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: #4e615f;
}

.portal-tier-benefits-list li {
  line-height: 1.45;
}

.portal-tier-benefits-title {
  color: #645d57;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portal-fund-tier-status {
  justify-content: flex-end;
  padding-top: 0.45rem;
}

.portal-fund-tier-status-copy {
  display: block;
  margin-top: 0.1rem;
  text-align: right;
}

.portal-documents-header {
  margin-top: 0.25rem;
}

.portal-documents-empty {
  padding: 4rem 1.5rem;
  text-align: center;
}

.portal-documents-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.15rem;
  color: #1f1f1f;
}

.portal-documents-empty-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-documents-empty h3 {
  margin: 0 0 0.55rem;
  color: #272320;
  font-size: 1.55rem;
  font-weight: 600;
}

.portal-documents-empty p {
  margin: 0 auto;
  max-width: 42rem;
  color: #625b56;
  font-size: 0.96rem;
  line-height: 1.6;
}

.portal-documents-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal-accounts-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.portal-accounts-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

.portal-accounts-toolbar select {
  flex: 1;
  max-width: 640px;
  height: 56px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  background: #fbfaf8;
  color: #4b443f;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-accounts-add-btn {
  padding: 0.86rem 1.2rem;
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  background: #fbfaf8;
  color: #3a312d;
  font-size: 0.92rem;
  font-weight: 500;
}

.portal-accounts-stage {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.6rem;
  padding: 2.1rem 2rem;
  border: 1px solid #ddd4ce;
  border-radius: 18px;
  background: #fbfaf8;
  box-shadow: 16px 18px 0 rgba(157, 132, 123, 0.2);
}

.portal-accounts-stage-icon {
  width: 64px;
  height: 64px;
  color: #2d2925;
}

.portal-accounts-stage-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-accounts-stage-copy h3 {
  margin: 0 0 0.4rem;
  color: #22211f;
  font-size: 2rem;
  font-weight: 400;
}

.portal-accounts-stage-copy p {
  margin: 0;
  color: #4f4a45;
  font-size: 0.98rem;
  line-height: 1.55;
}

.portal-accounts-stage-actions {
  display: flex;
  justify-content: flex-end;
}

.portal-accounts-stage-btn {
  padding: 0.92rem 1.25rem;
  border-radius: 8px;
  background: #425351;
  font-size: 0.94rem;
  font-weight: 500;
}

.portal-accounts-stage-btn::after {
  content: "→";
  margin-left: 0.45rem;
}

.portal-support-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid #dfd7d2;
  border-radius: 16px;
  background: #fbfaf8;
}

.portal-support-kicker {
  margin: 0 0 0.5rem;
  color: #6d645d;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-support-hero h2 {
  margin: 0 0 0.65rem;
  color: #2d4644;
  font-size: 2rem;
  font-weight: 500;
}

.portal-support-copy {
  margin: 0;
  max-width: 42rem;
  color: #5f5751;
  font-size: 1rem;
  line-height: 1.6;
}

.portal-support-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.85rem 1.15rem;
  border: 1px solid #d7cec8;
  border-radius: 8px;
  background: #425351;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
}

.portal-support-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal-support-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid #dfd7d2;
  border-radius: 16px;
  background: #fbfaf8;
}

.portal-support-card h3 {
  margin: 0;
  color: #302925;
  font-size: 1.2rem;
  font-weight: 600;
}

.portal-support-card p,
.portal-support-card strong,
.portal-support-card a {
  color: #5b544e;
  font-size: 0.96rem;
  line-height: 1.55;
}

.portal-support-card a {
  color: #314947;
  font-weight: 600;
}

.portal-support-list {
  margin: 0;
  padding-left: 1rem;
  color: #5b544e;
  display: grid;
  gap: 0.45rem;
}

.portal-notifications-shell {
  width: min(100%, 580px);
  margin: 0 auto;
  padding: 1.45rem 1.4rem;
  border: 1px solid #ddd4ce;
  border-radius: 12px;
  background: #fbfaf8;
}

.portal-notifications-shell h2 {
  margin: 0 0 1.2rem;
  color: #384d4c;
  font-size: 1.75rem;
  font-weight: 500;
}

.portal-notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.95rem 0 1.25rem;
  border-bottom: 1px solid #ddd4ce;
}

.portal-notification-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0.9rem;
}

.portal-notification-copy h3 {
  margin: 0 0 0.8rem;
  color: #425351;
  font-size: 1rem;
  font-weight: 500;
}

.portal-notification-copy p {
  margin: 0;
  color: #5a544f;
  font-size: 0.98rem;
  line-height: 1.55;
}

.portal-notification-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  overflow: hidden;
  align-self: start;
}

.portal-notification-toggle button {
  min-width: 96px;
  padding: 0.78rem 1rem;
  border-radius: 0;
  border-right: 1px solid #ddd4ce;
  background: #fbfaf8;
  color: #43504f;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.portal-notification-toggle button:last-child {
  border-right: 0;
}

.portal-notification-toggle button.is-active {
  background: #425351;
  color: #ffffff;
}

.portal-notifications-actions {
  margin-top: 1rem;
}

.portal-notifications-save-btn {
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: 8px;
  background: #425351;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-security-page-kicker {
  margin: 0 0 0.45rem;
  color: #6f665f;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-security-settings h2 {
  margin: 0 0 0.6rem;
  color: #314947;
  font-size: 1.95rem;
  font-weight: 500;
}

.portal-security-page-copy {
  margin: 0;
  max-width: 42rem;
  color: #5c5550;
  font-size: 0.98rem;
  line-height: 1.6;
}

.portal-security-settings {
  width: min(100%, 580px);
  margin: 0 auto;
  padding: 1.55rem 1.5rem;
  border: 1px solid #dfd7d2;
  border-radius: 16px;
  background: #fbfaf8;
}

.portal-security-settings-header {
  margin-bottom: 1.35rem;
}

.portal-security-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.portal-security-settings-grid label {
  display: grid;
  gap: 0.45rem;
}

.portal-security-settings-grid span {
  color: #413a35;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-security-settings-grid input {
  width: 100%;
  height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  background: #fbfaf8;
  color: #56524e;
  box-shadow: none;
  font-weight: 400;
}

.portal-security-settings-note {
  margin-top: 1rem;
  color: #645d58;
  font-size: 0.92rem;
  line-height: 1.6;
}

.portal-security-settings-actions {
  margin-top: 1.2rem;
}

.portal-security-save-btn {
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: 8px;
  background: #425351;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-document-page-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 1px solid #ddd5d0;
  border-radius: 14px;
  background: #fbfaf8;
}

.portal-document-page-category {
  color: #6f665f;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-document-page-card h3 {
  margin: 0;
  color: #2d2824;
  font-size: 1.25rem;
  font-weight: 600;
}

.portal-document-page-card p {
  margin: 0;
  color: #5a524d;
  font-size: 0.96rem;
  line-height: 1.55;
}

.portal-document-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
}

.admin-document-remove {
  margin-top: 0.85rem;
}

.portal-opportunity-card {
  display: grid;
  grid-template-columns: minmax(300px, 34%) 1fr;
  background: #fbfaf8;
  border: 1px solid #dfd7d2;
  border-radius: 16px;
  overflow: hidden;
}

.portal-opportunity-media {
  min-height: 360px;
  position: relative;
  background:
    radial-gradient(circle at 88% 12%, transparent 0 68px, var(--fund-ring, rgba(251, 239, 220, 0.9)) 69px 72px, transparent 73px),
    linear-gradient(140deg, var(--fund-card-start, #de9d7d) 0%, var(--fund-card-mid, #d59272) 42%, var(--fund-card-end, #ae6e50) 100%);
}

.portal-opportunity-media::before,
.portal-opportunity-media::after {
  content: "";
  position: absolute;
  top: 42px;
  right: 48px;
  width: 34px;
  height: 34px;
  border-top: 3px solid #fff5e8;
  border-right: 3px solid #fff5e8;
  transform: rotate(45deg);
}

.portal-opportunity-media::after {
  right: 80px;
  transform: rotate(225deg);
}

.portal-opportunity-media::before,
.portal-opportunity-media::after {
  border-top-color: var(--fund-mark, #fff5e8);
  border-right-color: var(--fund-mark, #fff5e8);
}

.portal-opportunity-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 1.15rem 0.75rem;
  background: var(--fund-badge-bg, rgba(255, 255, 255, 0.92));
  color: var(--fund-badge-text, #7f7f7f);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portal-opportunity-content {
  padding: 1.25rem 1.45rem 1.3rem;
}

.portal-opportunity-content h3 {
  margin: 0 0 0.45rem;
  color: #312925;
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  line-height: 1.08;
  font-weight: 600;
}

.portal-opportunity-manager {
  margin: 0 0 0.8rem;
  color: #534843;
  font-size: 0.96rem;
}

.portal-opportunity-summary {
  margin: 0 0 1rem;
  max-width: 48rem;
  color: #403833;
  font-size: 1rem;
  line-height: 1.45;
}

.portal-opportunity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
}

.portal-opportunity-grid span {
  display: block;
  margin-bottom: 0.2rem;
  color: #7b726d;
  font-size: 0.85rem;
}

.portal-opportunity-grid strong {
  color: #5a514d;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.portal-opportunity-actions {
  margin-top: 0.95rem;
}

.portal-opportunity-actions .secondary {
  min-width: 170px;
  border-radius: 8px;
  background: transparent;
}

.portal-opportunity-closed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #d7cfca;
  border-radius: 8px;
  background: #f2efec;
  color: #7a6f69;
  font-size: 0.95rem;
  font-weight: 700;
}

.portal-opportunity-list {
  display: grid;
  gap: 1.2rem;
}

.portal-fund-detail-shell {
  display: grid;
  gap: 0;
}

#portalFundDetailView {
  margin-top: -2.5rem;
}

.portal-fund-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.portal-fund-hero {
  grid-column: 1 / -1;
  width: calc(100% + 12rem);
  margin-left: -6rem;
  border: 1px solid #dfd7d2;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(194deg, rgba(255, 245, 237, 0) 0%, rgba(255, 245, 237, 0) 58%, var(--fund-accent-shadow, rgba(128, 77, 56, 0.42)) 58.6%, var(--fund-accent-shadow, rgba(128, 77, 56, 0.42)) 60%, rgba(255, 245, 237, 0.7) 60.3%, rgba(255, 245, 237, 0.7) 100%),
    linear-gradient(100deg, var(--fund-hero-start, #a86443) 0%, var(--fund-hero-mid, #d89a7b) 49%, var(--fund-hero-end, #e7b798) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.portal-fund-hero-copy {
  position: relative;
  min-height: clamp(292px, 28vw, 405px);
  padding: clamp(1.15rem, 2.2vw, 2.35rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}

.portal-fund-hero-mark {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: clamp(80px, 8vw, 132px);
  height: clamp(80px, 8vw, 132px);
  border: 2px solid var(--fund-mark, rgba(248, 218, 194, 0.72));
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.portal-fund-hero-mark span {
  position: absolute;
  width: 24px;
  height: 24px;
  border-top: 3px solid var(--fund-mark, rgba(248, 218, 194, 0.8));
  border-right: 3px solid var(--fund-mark, rgba(248, 218, 194, 0.8));
}

.portal-fund-hero-mark span:first-child {
  transform: translateX(-13px) rotate(45deg);
}

.portal-fund-hero-mark span:last-child {
  transform: translateX(13px) rotate(225deg);
}

.portal-fund-hero-badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--fund-badge-bg, rgba(255, 255, 255, 0.92));
  color: var(--fund-badge-text, #2f2925);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-fund-hero-text {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: min(68rem, 82%);
}

.portal-fund-hero-manager {
  margin: 0 0 0.45rem;
  color: #fff6f0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
}

.portal-fund-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1.04;
  font-weight: 500;
}

.portal-fund-hero p:last-child {
  margin: 0.7rem 0 0;
  max-width: 46rem;
  color: #fff6f1;
  font-size: 0.95rem;
  line-height: 1.45;
}

.portal-fund-sidebar,
.portal-fund-section,
.portal-empty-card {
  border: 1px solid #dfd7d2;
  border-radius: 0;
  background: #fbfaf8;
}

.portal-fund-sidebar {
  grid-column: 1;
  grid-row: auto;
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1.2rem;
  padding: 1.85rem;
  min-height: 430px;
}

.portal-fund-main {
  grid-column: 2;
}

.portal-fund-doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.35rem;
  border: 1px solid #ddd2cb;
  border-radius: 8px;
  background: #fbfaf8;
  color: #3a312d;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
}

.portal-fund-anchor-nav {
  display: grid;
  gap: 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e2dad4;
}

.portal-fund-anchor-nav a,
.portal-fund-anchor-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.68rem 0.82rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #403833;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.portal-fund-anchor-nav a.is-active,
.portal-fund-anchor-nav button.is-active {
  background: #f0efee;
}

.portal-fund-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.08rem;
  height: 1.08rem;
  color: #231f1d;
  flex: 0 0 1.08rem;
}

.portal-fund-nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-fund-invest-btn {
  min-height: 3.35rem;
  border: none;
  border-radius: 8px;
  background: #3f5554;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  justify-content: center;
}

.portal-fund-invest-btn::after {
  content: none;
}

.portal-fund-invest-btn:hover,
.portal-fund-invest-btn:focus-visible {
  background: #354948;
  color: #ffffff;
}

.portal-fund-main {
  display: grid;
  gap: 1.25rem;
}

.portal-fund-section {
  padding: 1.4rem;
}

.portal-fund-section h2 {
  margin: 0 0 1rem;
  color: #312925;
  font-size: clamp(1.2rem, 2.25vw, 1.8rem);
  font-weight: 438;
}

.portal-fund-copy {
  color: #403833;
  line-height: 1.7;
}

.portal-fund-copy p {
  margin: 0 0 1rem;
}

.portal-fund-copy p:last-child {
  margin-bottom: 0;
}

.portal-fund-disclosures-copy {
  font-size: 0.62rem;
  line-height: 1.35;
}

.portal-fund-detail-highlights {
  display: grid;
  gap: 1.4rem;
}

.portal-fund-detail-highlights-label {
  margin: 0;
  color: #3e4f4d;
  font-size: 0.95rem;
  font-weight: 600;
}

.portal-fund-detail-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.portal-fund-detail-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  color: #8f5139;
  flex: 0 0 2.3rem;
  margin-top: 0.1rem;
}

.portal-fund-detail-highlight-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-fund-detail-highlight-copy h3 {
  margin: 0;
  color: #3e4f4d;
  font-size: 1.05rem;
  font-weight: 500;
}

.portal-fund-detail-highlight-copy p {
  margin: 0.35rem 0 0;
}

.portal-fund-detail-text-block h3 {
  margin: 0 0 0.45rem;
  color: #3e4f4d;
  font-size: 1rem;
  font-weight: 500;
}

.portal-fund-detail-heading {
  margin: 0 0 0.45rem;
  color: #3e4f4d;
  font-weight: 500;
}

.portal-fund-detail-heading--main {
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  line-height: 1.15;
}

.portal-fund-detail-heading--medium {
  font-size: 1.05rem;
  line-height: 1.3;
}

.portal-fund-detail-heading-weight--bold {
  font-weight: 700;
}

.portal-fund-detail-heading-weight--normal {
  font-weight: 500;
}

.portal-fund-detail-text-block--tiny {
  color: #6a6059;
  font-size: 0.76rem;
  line-height: 1.5;
}

.portal-fund-detail-text-block--normal {
  font-size: 1rem;
  line-height: 1.7;
}

.portal-fund-detail-intro p {
  margin-top: 0;
}

.portal-fund-detail-intro--tiny {
  color: #6a6059;
  font-size: 0.76rem;
  line-height: 1.5;
}

.portal-fund-detail-intro--normal {
  font-size: 1rem;
  line-height: 1.7;
}

.portal-fund-detail-intro-weight--bold {
  font-weight: 600;
}

.portal-fund-detail-intro-weight--normal {
  font-weight: 400;
}

.portal-fund-detail-text-weight--bold {
  font-weight: 600;
}

.portal-fund-detail-text-weight--normal {
  font-weight: 400;
}

.portal-fund-detail-spacing--none {
  margin-bottom: 0;
}

.portal-fund-detail-spacing--small {
  margin-bottom: 0.75rem;
}

.portal-fund-detail-spacing--medium {
  margin-bottom: 1.4rem;
}

.portal-fund-detail-spacing--large {
  margin-bottom: 2rem;
}

.portal-fund-detail-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3d9d3;
  border-radius: 16px;
  background: #ffffff;
}

.portal-fund-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.portal-fund-detail-media figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.portal-fund-detail-highlight-list {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.portal-fund-detail-highlight-list li {
  margin: 0.22rem 0;
}

.portal-fund-detail-bullet-text {
  display: block;
  font-weight: 500;
}

.portal-fund-detail-bullet-description {
  display: block;
  margin-top: 0.15rem;
  color: #6d655e;
  font-size: 0.88em;
}

.portal-fund-detail-source {
  margin: 0.4rem 0 0;
  color: #3e4f4d;
  font-size: 0.74rem;
}

.portal-fund-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.portal-fund-metric-card,
.portal-fund-resource-card {
  border: 1px solid #e3d9d3;
  border-radius: 14px;
  background: #ffffff;
}

.portal-fund-metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
}

.portal-fund-metric-copy span {
  display: block;
  color: #776d68;
  font-size: 0.9rem;
}

.portal-fund-metric-copy strong {
  display: block;
  margin-top: 0.35rem;
  color: #334341;
  font-size: 1.9rem;
}

.portal-fund-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  color: #8f5139;
  flex: 0 0 2.65rem;
}

.portal-fund-metric-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-fund-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.25rem;
}

.portal-fund-key-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e3d9d3;
  border-radius: 14px;
  background: #ffffff;
}

.portal-fund-key-row span {
  color: #5d534f;
  font-size: 0.94rem;
  font-weight: 450;
}

.portal-fund-key-row strong {
  color: #334341;
  font-size: 0.94rem;
  font-weight: 450;
  text-align: right;
}

.portal-fund-key-footnotes {
  margin-top: 1rem;
  color: #6f6661;
  font-size: 0.6rem;
  line-height: 1.35;
}

.portal-fund-key-footnotes p {
  margin: 0 0 0.55rem;
}

.portal-fund-key-footnotes p:last-child {
  margin-bottom: 0;
}

.portal-fund-image-grid,
.portal-fund-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.portal-fund-image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3d9d3;
  border-radius: 16px;
  background: #ffffff;
}

.portal-fund-image-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.portal-fund-image-card figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.portal-fund-image-card span {
  color: #625854;
}

.portal-fund-resource-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  color: #334341;
  text-decoration: none;
}

.portal-fund-resource-copy {
  display: grid;
  gap: 0.35rem;
}

.portal-fund-resource-card span {
  color: #7b726d;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-fund-resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #425250;
  flex: 0 0 2rem;
}

.portal-fund-resource-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-fund-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 360px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d8d2cc;
  border-radius: 0;
  background: #b8c0c1;
}

.portal-fund-support-copy {
  padding: 1.8rem 2rem 1.65rem;
  color: #384a49;
}

.portal-fund-support-copy h2 {
  margin: 0;
  color: #384a49;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  font-weight: 400;
}

.portal-fund-support-copy p {
  margin: 0.9rem 0 0;
  font-size: clamp(0.98rem, 1.45vw, 1.3rem);
  font-weight: 500;
}

.portal-fund-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.portal-fund-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.05rem;
  padding: 0 1.7rem;
  border: 1px solid #ddd7d1;
  border-radius: 10px;
  background: #f7f6f4;
  color: #3d4d4c;
  font-size: 0.92rem;
  font-weight: 500;
}

.portal-fund-support-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
}

.portal-fund-support-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-fund-support-media {
  min-height: 100%;
  align-self: stretch;
}

.portal-fund-support-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.portal-modal-open {
  overflow: hidden;
}

.portal-question-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.portal-question-modal.hidden {
  display: none;
}

.portal-question-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 20, 24, 0.72);
}

.portal-question-modal-dialog {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid #cfc7c1;
  border-radius: 18px;
  background: #f4f2ef;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.portal-question-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #7d8484;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}

.portal-question-modal-dialog h2 {
  margin: 0;
  color: #384a49;
  font-size: 1.2rem;
  font-weight: 700;
}

.portal-question-modal-dialog p {
  margin: 0.45rem 0 0;
  color: #56595a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.portal-question-input {
  width: 100%;
  min-height: 7.5rem;
  margin-top: 0.9rem;
  padding: 0.8rem;
  border: 2px solid #3b3a39;
  border-radius: 10px;
  background: #f4f2ef;
  color: #4f5153;
  font: inherit;
  resize: vertical;
}

.portal-question-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.9rem;
}

.portal-question-cancel,
.portal-question-send {
  min-width: 7.25rem;
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
}

.portal-question-cancel {
  border: 1px solid #d6cec8;
  background: #f7f5f2;
  color: #3a312d;
}

.portal-question-send {
  border: none;
  background: #a9b0af;
  color: #ffffff;
  font-weight: 600;
}

.portal-question-send:not(:disabled) {
  background: #3f5554;
}

.portal-invest-gate-dialog {
  width: min(100%, 26rem);
}

.portal-invest-gate-actions {
  margin-top: 1.15rem;
}

.portal-empty-card {
  padding: 1.2rem;
}

.portal-document-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal-document-card {
  display: grid;
  gap: 0.9rem;
  border: 1px solid #ddd5d0;
  border-radius: 14px;
  padding: 1.2rem;
  background: #fbfaf8;
}

.portal-dashboard-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal-open-account {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.portal-open-account-rail p {
  margin: 0 0 1.2rem;
  color: #415252;
  font-size: 0.92rem;
  font-weight: 600;
}

.portal-open-account-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.portal-open-account-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: center;
  color: #c6c2be;
  padding: 0.55rem 0;
}

.portal-open-account-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  width: 1px;
  height: calc(100% - 6px);
  background: #d8d2cc;
}

.portal-open-account-steps span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d2cc;
  border-radius: 12px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background: #f4f2ef;
}

.portal-open-account-steps strong {
  font-size: 0.98rem;
  font-weight: 500;
}

.portal-open-account-steps li.is-active {
  color: #283231;
}

.portal-open-account-steps li.is-complete {
  color: #4f5856;
}

.portal-open-account-steps li.is-active span {
  border-color: #425351;
  background: #425351;
  color: #ffffff;
}

.portal-open-account-steps li.is-complete span {
  border-color: #425351;
  background: #425351;
  color: #ffffff;
}

.portal-open-account-steps li.is-active strong {
  font-weight: 700;
}

.portal-open-account-steps li.is-complete strong {
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.portal-open-account-help {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d9d2cc;
  color: #55524f;
  font-size: 0.95rem;
}

.portal-open-account-help a {
  color: #425351;
  font-weight: 700;
  text-decoration: underline;
}

.portal-open-account-panel {
  border: 1px solid #ddd4ce;
  border-radius: 10px;
  background: #f8f6f3;
  padding: 2.2rem 2.3rem 2.5rem;
}

.portal-open-account-panel h2 {
  margin: 0 0 0.7rem;
  color: #394d4c;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.08;
  font-weight: 500;
}

.portal-deposit-shell {
  margin-top: 2.4rem;
}

.portal-deposit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.portal-deposit-kicker {
  margin: 0 0 0.45rem;
  color: #6b6e6f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-deposit-header h1 {
  margin: 0;
  color: #3a2f2a;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.06;
  font-weight: 500;
}

.portal-deposit-copy {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  color: #55524f;
  font-size: 1rem;
  line-height: 1.6;
}

.portal-deposit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
}

.portal-deposit-card {
  border: 1px solid #ddd4ce;
  background: #f8f6f3;
}

.portal-deposit-card-primary {
  padding: 1.8rem;
}

.portal-deposit-card-secondary {
  padding: 1.5rem;
}

.portal-deposit-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.portal-deposit-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid #d7d0ca;
  color: #666564;
  font-size: 0.84rem;
  font-weight: 600;
  background: #f5f2ee;
}

.portal-deposit-steps .is-active {
  border-color: #405352;
  color: #ffffff;
  background: #405352;
}

.portal-deposit-summary {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #ddd4ce;
  background: #fcfbf9;
}

.portal-deposit-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.portal-deposit-summary-row span {
  color: #726a65;
  font-size: 0.92rem;
}

.portal-deposit-summary-row strong {
  color: #384a49;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: right;
}

.portal-deposit-form {
  display: grid;
  gap: 1rem;
}

.portal-deposit-form label {
  display: grid;
  gap: 0.45rem;
}

.portal-deposit-form span {
  color: #57514c;
  font-size: 0.88rem;
  font-weight: 600;
}

.portal-deposit-form input,
.portal-deposit-form select {
  min-height: 3.2rem;
  padding: 0 0.95rem;
  border: 1px solid #d8d2cc;
  border-radius: 0;
  background: #ffffff;
  color: #3d3a37;
  font: inherit;
}

.portal-deposit-source-card,
.portal-deposit-crypto-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border: 1px solid #ddd4ce;
  background: #fcfbf9;
}

.portal-deposit-source-card strong,
.portal-deposit-crypto-card strong {
  color: #3c4948;
  font-size: 0.92rem;
  font-weight: 700;
}

.portal-deposit-source-card p,
.portal-deposit-crypto-card p {
  margin: 0;
  color: #5c5753;
  font-size: 0.89rem;
  line-height: 1.5;
}

.portal-deposit-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-deposit-crypto-details {
  display: grid;
  gap: 0.7rem;
  margin: 0.2rem 0 0.3rem;
}

.portal-deposit-crypto-details div {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e0d9d3;
  background: #ffffff;
}

.portal-deposit-crypto-details span {
  color: #7a7069;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-deposit-crypto-details strong {
  color: #314241;
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-all;
}

.portal-deposit-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
}

.portal-deposit-checkbox input {
  min-height: 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.portal-deposit-checkbox span {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
}

.portal-deposit-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.portal-deposit-card-secondary h2 {
  margin: 0 0 1rem;
  color: #384a49;
  font-size: 1.15rem;
  font-weight: 600;
}

.portal-deposit-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #55524f;
  display: grid;
  gap: 0.75rem;
  line-height: 1.6;
}

.portal-deposit-note {
  margin-top: 1.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid #ddd4ce;
  background: #fcfbf9;
}

.portal-deposit-note strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #3b4746;
  font-size: 0.9rem;
}

.portal-deposit-note p {
  margin: 0;
  color: #5c5855;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

.portal-deposit-steps .is-complete {
  border-color: #9ca7a6;
  color: #405352;
  background: #edf1f0;
}

.portal-deposit-instruction-card,
.portal-deposit-confirm-card {
  display: grid;
  gap: 1rem;
}

.portal-deposit-instruction-card h2,
.portal-deposit-confirm-card h2 {
  margin: 0;
  color: #384a49;
  font-size: 1.3rem;
  font-weight: 600;
}

.portal-deposit-instruction-card p,
.portal-deposit-confirm-card p {
  margin: 0;
  color: #56514d;
  line-height: 1.6;
}

.portal-deposit-instruction-copy {
  font-size: 0.92rem;
}

.portal-capital-call-list {
  display: grid;
  gap: 1rem;
}

.portal-capital-call-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  border: 1px solid #ddd4ce;
  background: #fcfbf9;
}

.portal-deposit-upload {
  display: grid;
  gap: 0.4rem;
}

.portal-deposit-upload input[type="file"] {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
}

.portal-account-detail-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.4rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.portal-detail-back {
  padding: 0.55rem 0.8rem;
  border: 1px solid #d7cec8;
  border-radius: 8px;
  background: #fbfaf8;
  color: #3c4d4c;
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-account-detail-header p {
  margin: 0;
  color: #595652;
  font-size: 0.98rem;
}

.portal-security-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.portal-security-card {
  border: 1px solid #ddd4ce;
  border-radius: 10px;
  background: #fbfaf8;
  padding: 1.8rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.portal-security-card-top {
  display: flex;
  align-items: start;
  margin-bottom: 1rem;
}

.portal-security-icon {
  width: 42px;
  height: 42px;
  color: #39322d;
}

.portal-security-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-security-card h3 {
  margin: 0 0 0.45rem;
  color: #342d29;
  font-size: 1.05rem;
}

.portal-security-card p {
  margin: 0;
  color: #5d5651;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

.portal-security-select {
  width: 100%;
  margin-top: 1.25rem;
  border-radius: 6px;
  background: #425351;
  font-size: 0.92rem;
  font-weight: 500;
}

.portal-security-select.is-secondary {
  background: #fbfaf8;
  color: #3f3732;
  box-shadow: none;
  border: 1px solid #ddd4ce;
}

.portal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
  margin-bottom: 1.6rem;
}

.portal-detail-section {
  margin-bottom: 1.8rem;
}

.portal-detail-section-header {
  margin-bottom: 1rem;
}

.portal-detail-section-header h3 {
  margin: 0 0 0.25rem;
  color: #3a4545;
  font-size: 1.05rem;
}

.portal-detail-section-header p {
  margin: 0;
  color: #68615c;
  font-size: 0.9rem;
}

.portal-detail-grid label,
.portal-detail-grid-single label {
  display: grid;
  gap: 0.45rem;
}

.portal-detail-grid span,
.portal-detail-grid-single span {
  color: #413a35;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-detail-grid input,
.portal-detail-grid select,
.portal-detail-grid-single input,
.portal-detail-grid-single select {
  width: 100%;
  height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  background: #fbfaf8;
  color: #56524e;
  box-shadow: none;
  font-weight: 400;
}

.portal-detail-questions {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.portal-detail-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.portal-detail-question span {
  color: #3d3834;
  font-size: 0.96rem;
}

.portal-yes-no-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  overflow: hidden;
}

.portal-yes-no-toggle button {
  min-width: 64px;
  padding: 0.8rem 1rem;
  border-radius: 0;
  border-right: 1px solid #ddd4ce;
  background: #fbfaf8;
  color: #3d3732;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-yes-no-toggle button:last-child {
  border-right: 0;
}

.portal-yes-no-toggle button.is-active {
  background: #425351;
  color: #ffffff;
}

.portal-detail-grid-single {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
  gap: 1.3rem 1.6rem;
  margin-bottom: 1.6rem;
}

.portal-member-tools {
  margin: -0.2rem 0 1rem;
}

.portal-add-member-btn {
  padding: 0.72rem 1rem;
  border: 1px solid #d7cec8;
  border-radius: 8px;
  background: #fbfaf8;
  color: #3c4d4c;
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-add-member-btn:hover,
.portal-add-member-btn:focus-visible {
  background: #f4f0eb;
}

.portal-member-list {
  display: grid;
  gap: 1rem;
}

.portal-member-card {
  border: 1px solid #ddd4ce;
  border-radius: 10px;
  background: #fcfbf9;
  padding: 1rem 1rem 0.2rem;
}

.portal-member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.portal-member-card-header h4 {
  margin: 0;
  color: #3d3834;
  font-size: 0.95rem;
}

.portal-member-remove {
  padding: 0.45rem 0.7rem;
  border: 1px solid #ddd4ce;
  border-radius: 8px;
  background: #fff;
  color: #6a5f58;
  font-size: 0.82rem;
  font-weight: 600;
}

.portal-detail-accordion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid #ddd4ce;
  border-bottom: 1px solid #ddd4ce;
  color: #3e3a36;
  font-size: 0.98rem;
}

.portal-detail-actions {
  margin-top: 1.8rem;
}

.portal-detail-continue {
  min-width: 200px;
  border-radius: 8px;
  background: #425351;
  font-size: 1rem;
  font-weight: 500;
}

.portal-detail-continue span {
  margin-left: 0.45rem;
}

.list {
  display: grid;
  gap: 0.7rem;
}

.item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}

.item h4 {
  margin: 0.2rem 0 0.5rem;
}

.item p {
  margin: 0;
}

.item-meta {
  color: var(--slate);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-footer {
  background: rgba(6, 43, 56, 0.96);
  color: #ffffff;
}

.portal-footer-inner {
  min-height: 70px;
  padding: 0 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.portal-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.portal-footer-links a {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  color: var(--navy);
  font-weight: 700;
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 20, 31, 0.16) 0%, rgba(9, 20, 31, 0.1) 48%, rgba(9, 20, 31, 0.18) 100%),
    radial-gradient(circle at top left, rgba(10, 111, 131, 0.08), transparent 32%),
    url('/app/images/loginBg.jpg') center / cover no-repeat;
}

.admin-page.admin-booting #adminLoginPanel,
.admin-page.admin-booting #adminDashboard {
  visibility: hidden;
}

.admin-page main {
  padding: 3.2rem 0 4.5rem;
}

.admin-page .wrap {
  width: min(1680px, 96vw);
}

#adminLoginPanel.auth {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 40, 63, 0.08);
  box-shadow: 0 28px 56px rgba(19, 40, 63, 0.1);
  background:
    linear-gradient(135deg, rgba(19, 40, 63, 0.98) 0%, rgba(14, 55, 75, 0.96) 48%, rgba(248, 250, 252, 1) 48.1%, rgba(255, 255, 255, 1) 100%);
}

.admin-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 420px);
  min-height: 620px;
}

.admin-login-copy {
  padding: 4rem 3.5rem 3.5rem;
  color: rgba(255, 255, 255, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-login-eyebrow {
  margin: 0 0 1rem;
  color: rgba(190, 223, 229, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-login-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.admin-login-intro {
  margin: 1.35rem 0 0;
  max-width: 56ch;
  color: rgba(223, 233, 238, 0.88);
  font-size: 1.02rem;
  line-height: 1.7;
}

.admin-login-points {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 620px;
}

.admin-login-point {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.admin-login-point strong {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.admin-login-point span {
  color: rgba(223, 233, 238, 0.82);
  font-size: 0.94rem;
  line-height: 1.55;
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.4rem;
}

.admin-login-card-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.admin-login-card-header p {
  margin: 0.55rem 0 0;
}

.admin-login-form {
  margin-top: 1.75rem;
}

.admin-login-form label + input {
  margin-bottom: 1rem;
}

.admin-login-form button {
  width: 100%;
  margin-top: 0.4rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #163854 0%, #102a40 100%);
  box-shadow: 0 14px 28px rgba(16, 42, 64, 0.18);
}

.admin-login-form button:hover,
.admin-login-form button:focus-visible {
  background: linear-gradient(180deg, #194262 0%, #123149 100%);
}

.admin-login-meta {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(19, 40, 63, 0.08);
  color: var(--slate);
  font-size: 0.84rem;
}

nav {
  display: flex;
  gap: 0.8rem;
}

nav a {
  color: var(--slate);
  font-size: 0.95rem;
}

.admin-section-header {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

#adminDashboard.panel {
  padding: 1.4rem;
  background: rgba(250, 252, 253, 0.96);
  border: 1px solid rgba(19, 40, 63, 0.08);
  box-shadow: 0 24px 48px rgba(19, 40, 63, 0.08);
}

.admin-dashboard-panel {
  display: grid;
  gap: 1.4rem;
  scroll-margin-top: 110px;
}

.admin-page-view {
  display: none;
}

.admin-page-view.is-active {
  display: grid;
  gap: 1rem;
}

.admin-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.3rem 1.4rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(19, 40, 63, 0.98) 0%, rgba(12, 56, 76, 0.98) 64%, rgba(17, 86, 101, 0.92) 100%);
  color: #fff;
}

.admin-dashboard-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.admin-dashboard-intro {
  margin: 0.75rem 0 0.5rem;
  max-width: 60ch;
  color: rgba(223, 233, 238, 0.88);
  line-height: 1.65;
}

.admin-dashboard-hero #adminWelcome {
  color: rgba(223, 233, 238, 0.88);
}

.admin-dashboard-hero-actions {
  display: grid;
  justify-items: end;
  gap: 0.9rem;
  min-width: 220px;
}

.admin-dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(240, 247, 249, 0.95);
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-dashboard-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6fe08b;
  box-shadow: 0 0 0 6px rgba(111, 224, 139, 0.16);
}

.admin-dashboard-hero-actions .secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-action-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(19, 40, 63, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(19, 40, 63, 0.04);
  position: sticky;
  top: 0.9rem;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.admin-action-menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(19, 40, 63, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-action-menu a:hover,
.admin-action-menu a:focus-visible {
  background: rgba(19, 40, 63, 0.06);
}

.admin-action-menu a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.admin-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.admin-metrics .metric {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(19, 40, 63, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(19, 40, 63, 0.04);
}

.admin-metrics .metric strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.admin-dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 1rem;
}

.admin-dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.78fr);
  gap: 1rem;
  align-items: start;
}

.admin-dashboard-primary,
.admin-dashboard-secondary {
  display: grid;
  gap: 1rem;
}

.admin-surface {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(19, 40, 63, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(19, 40, 63, 0.04);
  scroll-margin-top: 110px;
}

.admin-surface .admin-section-header {
  margin-top: 0;
}

.admin-surface .editor-form {
  border-top-color: rgba(19, 40, 63, 0.08);
}

.admin-report-card #latestReport {
  margin: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 248, 250, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.admin-quick-action-card .row,
.admin-compact-form .row {
  align-items: end;
}

.admin-dashboard-secondary .list,
.admin-dashboard-primary .list {
  margin-top: 0.35rem;
}

.editor-form {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.editor-group {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.editor-group legend {
  padding: 0 0.4rem;
  color: var(--navy);
  font-weight: 700;
}

.admin-fund-group {
  padding: 0;
  overflow: hidden;
}

.admin-fund-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, rgba(247, 249, 251, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.admin-fund-summary::-webkit-details-marker {
  display: none;
}

.admin-fund-summary-copy {
  display: grid;
  gap: 0.18rem;
}

.admin-fund-summary-copy strong {
  color: var(--navy);
  font-size: 1rem;
}

.admin-fund-summary-copy span {
  color: var(--slate);
  font-size: 0.88rem;
}

.admin-fund-summary-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-fund-summary-status {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 94, 62, 0.1);
  color: #1f6a49;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-fund-summary-status.is-closed {
  background: rgba(127, 41, 41, 0.1);
  color: #8b2d2d;
}

.admin-fund-summary-badge {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(19, 40, 63, 0.08);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-fund-summary-toggle {
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-fund-group[open] .admin-fund-summary-toggle::after {
  content: " \2191";
}

.admin-fund-group:not([open]) .admin-fund-summary-toggle::after {
  content: " \2193";
}

.admin-fund-group-body {
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.admin-detail-block {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(249, 251, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-detail-block-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
  background: rgba(19, 40, 63, 0.03);
}

.admin-detail-block-summary::-webkit-details-marker {
  display: none;
}

.admin-detail-block-summary-copy {
  display: grid;
  gap: 0.16rem;
}

.admin-detail-block-summary-copy strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.admin-detail-block-summary-copy span {
  color: var(--slate);
  font-size: 0.84rem;
}

.admin-detail-block-summary-toggle {
  color: var(--slate);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-tier-summary-row,
.admin-deposit-summary {
  background: linear-gradient(180deg, rgba(247, 249, 251, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.admin-detail-block[open] .admin-detail-block-summary-toggle::after {
  content: " \2191";
}

.admin-detail-block:not([open]) .admin-detail-block-summary-toggle::after {
  content: " \2193";
}

.admin-detail-block-body {
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.admin-tier-row-body,
.admin-deposit-card-body {
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.admin-fund-group-body > .row:first-of-type {
  align-items: center;
}

.admin-fund-save-row {
  margin-top: 1rem;
  align-items: center;
}

.admin-fund-save-row .error {
  min-height: 1.2rem;
}

.admin-fund-delete {
  border-color: rgba(127, 41, 41, 0.18);
  color: #8b2d2d;
}

.admin-fund-delete:hover {
  border-color: rgba(127, 41, 41, 0.32);
  background: rgba(127, 41, 41, 0.06);
}

.admin-empty-state {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem;
  border: 1px dashed rgba(19, 40, 63, 0.16);
  border-radius: 14px;
  background: rgba(246, 248, 250, 0.9);
}

.admin-empty-state p {
  margin: 0;
}

@media (max-width: 720px) {
  .admin-fund-summary {
    align-items: start;
    flex-direction: column;
  }
}

.text-link {
  color: var(--navy);
  font-weight: 600;
}

.admin-two-column-grid,
.admin-inline-grid {
  display: grid;
  gap: 0.85rem;
}

.admin-two-column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.8rem 0 1rem;
}

.admin-two-column-grid label,
.admin-inline-grid {
  margin: 0;
}

.admin-two-column-grid label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}

.admin-subsection {
  margin-top: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.admin-inline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  margin-bottom: 0.75rem;
}

.admin-capital-call-actions,
.admin-capital-call-receipt {
  grid-column: 1 / -1;
}

.admin-capital-call-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.25rem;
}

.admin-capital-call-receipt {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.admin-distribution-box {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.admin-tier-row {
  margin-top: 0.85rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.admin-deposit-card {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.admin-tier-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-tier-grid label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}

.admin-tier-benefits {
  grid-column: 1 / -1;
}

.admin-distribution-grid {
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr) minmax(0, 220px) auto;
  align-items: end;
}

.admin-inline-grid-images {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.admin-remove-inline {
  min-width: 100px;
}

.admin-investor-details {
  margin-top: 0.85rem;
}

.admin-investor-details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}

.admin-email-preview {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--slate);
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
}

.activation-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 22, 34, 0.42) 0%, rgba(8, 22, 34, 0.3) 45%, rgba(8, 22, 34, 0.44) 100%),
    url('/app/images/loginBg.jpg') center / cover no-repeat;
}

.activation-main {
  min-height: calc(100vh - 61px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
}

.activation-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(7, 22, 33, 0.16);
  box-shadow: 0 30px 60px rgba(8, 20, 31, 0.24);
  backdrop-filter: blur(12px);
}

.activation-copy {
  padding: 3.4rem 3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activation-eyebrow {
  margin: 0 0 0.9rem;
  color: rgba(191, 224, 229, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.activation-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.5rem, 4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.activation-intro {
  margin: 1.2rem 0 0;
  max-width: 54ch;
  color: rgba(226, 237, 240, 0.88);
  line-height: 1.7;
}

.activation-checklist {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.activation-checklist-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.activation-checklist-item strong {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activation-checklist-item span {
  color: rgba(226, 237, 240, 0.84);
  line-height: 1.55;
}

.activation-support {
  margin-top: 1.5rem;
  color: rgba(226, 237, 240, 0.86);
}

.activation-support a {
  color: #fff;
  font-weight: 700;
}

.activation-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 2.3rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activation-card-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.activation-card-header p {
  margin: 0.55rem 0 0;
}

.activation-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.6rem;
}

.activation-form input {
  margin-bottom: 0.9rem;
}

.activation-form button {
  width: 100%;
  margin-top: 0.15rem;
}

.activation-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(19, 40, 63, 0.08);
  text-align: center;
}

.activation-footer a {
  color: var(--navy);
  font-weight: 700;
}

.admin-investor-details .list {
  margin-top: 0.75rem;
}

.admin-capital-call-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.admin-capital-call-summary div {
  display: grid;
  gap: 0.2rem;
}

.admin-capital-call-summary span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-capital-call-summary strong {
  font-size: 1rem;
  color: var(--navy);
}

.admin-capital-call-summary.is-over {
  border-color: #cc8d73;
  background: rgba(204, 141, 115, 0.08);
}

@media (max-width: 900px) {
  .admin-capital-call-summary {
    grid-template-columns: 1fr;
  }

  #portalFundDetailView {
    margin-top: -1.4rem;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .admin-two-column-grid,
  .admin-inline-grid,
  .admin-inline-grid-images,
  .portal-fund-detail-grid,
  .portal-fund-key-grid,
  .portal-fund-image-grid,
  .portal-fund-resources-grid,
  .portal-fund-metrics {
    grid-template-columns: 1fr;
  }

  .portal-fund-hero,
  .portal-fund-sidebar,
  .portal-fund-main {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-fund-support-card {
    grid-template-columns: 1fr;
  }

  .portal-deposit-header,
  .portal-deposit-grid,
  .portal-deposit-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .portal-deposit-header {
    display: grid;
  }

  .portal-deposit-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-deposit-summary-row strong {
    text-align: left;
  }

  .portal-deposit-manual-grid {
    grid-template-columns: 1fr;
  }

  .portal-fund-support-media {
    min-height: 160px;
    max-height: 160px;
  }

  .portal-fund-support-media img {
    width: auto;
    max-width: 100%;
    max-height: 160px;
    margin: 0 auto;
    object-fit: contain;
  }

  .portal-question-modal-dialog {
    padding: 1.2rem;
  }

  .portal-question-input {
    min-height: 11rem;
  }

  .portal-question-actions {
    flex-direction: column-reverse;
  }

  .portal-question-cancel,
  .portal-question-send {
    width: 100%;
  }

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

  .portal-tier-card {
    gap: 0.8rem;
    padding: 0.95rem;
  }

  .portal-tier-metrics,
  .portal-portfolio-tier-grid {
    grid-template-columns: 1fr;
  }

  .portal-tier-range {
    font-size: 1rem;
  }

  .portal-tier-badge {
    align-self: flex-start;
  }

  .portal-fund-hero {
    width: 100%;
    margin-left: 0;
  }

  .portal-fund-hero-text {
    max-width: 100%;
  }

  .portal-fund-sidebar {
    position: static;
    min-height: 0;
  }

  .portal-app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .portal-app-topbar-inner {
    width: min(100%, 92vw);
    min-height: auto;
    padding: 0.9rem 0;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
  }

  .portal-app-nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 0.65rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .portal-app-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-app-nav a {
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 500;
  }

  .portal-dashboard-wrap {
    width: min(100%, 92vw);
  }

  .portal-hero-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
    box-shadow: 10px 12px 0 rgba(157, 132, 123, 0.22);
  }

  .portal-hero-icon {
    width: 50px;
    height: 50px;
  }

  .portal-hero-copy h1 {
    font-size: clamp(1.8rem, 5vw, 2.35rem);
  }

  .portal-hero-actions {
    align-items: stretch;
  }

  .portal-hero-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .portal-opportunity-card {
    grid-template-columns: 1fr;
  }

  .portal-opportunity-media {
    min-height: 180px;
  }

  .portal-opportunity-content {
    padding: 1rem;
  }

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

  .portal-opportunity-grid,
  .portal-document-list,
  .portal-documents-list,
  .portal-support-grid,
  .portal-dashboard-stats,
  .portal-portfolio-summary,
  .portal-security-options,
  .portal-detail-grid,
  .portal-detail-grid-single {
    grid-template-columns: 1fr;
  }

  .portal-portfolio-header,
  .portal-portfolio-position-head,
  .portal-support-hero,
  .portal-accounts-header,
  .portal-accounts-stage {
    align-items: start;
    flex-direction: column;
  }

  .portal-accounts-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .portal-notification-row {
    grid-template-columns: 1fr;
  }

  .portal-accounts-toolbar select {
    max-width: none;
  }

  .portal-portfolio-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .portal-portfolio-position-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-portfolio-tier-head,
  .portal-fund-tier-note,
  .admin-tier-row-head,
  .portal-tier-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-fund-tier-status {
    padding-top: 0.2rem;
  }

  .portal-fund-tier-status-copy {
    margin-top: 0;
    text-align: left;
  }

  .portal-tier-card-head {
    gap: 0.55rem;
  }

  .portal-tier-card-head-copy {
    gap: 0.22rem;
  }

  .portal-tier-subcopy {
    font-size: 0.78rem;
  }

  .portal-tier-range-block {
    gap: 0.24rem;
    padding-top: 0;
  }

  .portal-tier-metric {
    padding: 0.72rem 0.8rem;
  }

  .portal-tier-benefits-list {
    gap: 0.34rem;
  }

  .admin-tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-open-account {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-open-account-rail {
    padding: 1rem 1rem 0;
  }

  .portal-open-account-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }

  .portal-open-account-steps::-webkit-scrollbar {
    display: none;
  }

  .portal-open-account-steps li {
    min-width: 120px;
  }

  .portal-open-account-steps li:not(:last-child)::after {
    content: none;
  }

  .portal-account-detail-header {
    grid-template-columns: 1fr;
  }

  .portal-detail-question {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .portal-yes-no-toggle {
    width: 100%;
    max-width: 220px;
  }

  .portal-account-menu {
    right: 0;
    left: auto;
    min-width: 220px;
    max-width: min(280px, 92vw);
  }

  .admin-section-header,
  .row,
  .portal-section-header,
  .portal-footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-dashboard-hero,
  .admin-dashboard-overview-grid,
  .admin-dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .admin-action-menu {
    position: static;
    top: auto;
  }

  .admin-dashboard-hero {
    flex-direction: column;
  }

  .admin-dashboard-hero-actions {
    justify-items: start;
    min-width: 0;
  }

  .admin-login-shell {
    grid-template-columns: 1fr;
  }

  .admin-login-copy,
  .admin-login-card {
    padding: 2.2rem 1.5rem;
  }

  .admin-login-copy h1 {
    max-width: none;
  }

  .portal-login-stage {
    padding: 1.4rem 1rem 2rem;
  }
}

@media (max-width: 640px) {
  header .topbar,
  header nav {
    flex-wrap: wrap;
  }

  header nav {
    gap: 0.65rem 1rem;
  }

  nav a {
    font-size: 0.88rem;
  }

  .portal-app-topbar-inner,
  .portal-topbar-inner,
  .portal-footer-inner {
    padding: 0.8rem 1rem;
  }

  .portal-app-brand {
    font-size: 0.95rem;
  }

  .admin-page main {
    padding: 1.5rem 0 3rem;
  }

  .admin-page .wrap {
    width: min(100%, 94vw);
  }

  #adminDashboard.panel {
    padding: 1rem;
  }

  #adminLoginPanel.auth {
    background:
      linear-gradient(180deg, rgba(19, 40, 63, 0.98) 0%, rgba(14, 55, 75, 0.96) 42%, rgba(255, 255, 255, 1) 42.1%, rgba(255, 255, 255, 1) 100%);
  }

  .admin-login-copy {
    padding-bottom: 1.6rem;
  }

  .admin-login-card {
    padding-top: 1.8rem;
  }

  .admin-login-copy h1 {
    font-size: 2.35rem;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .activation-shell {
    grid-template-columns: 1fr;
  }

  .activation-copy,
  .activation-card {
    padding: 2rem 1.35rem;
  }

  .activation-copy h1 {
    max-width: none;
    font-size: 2.4rem;
  }

  .portal-app-nav {
    gap: 0.55rem;
  }

  .portal-app-nav a {
    font-size: 0.88rem;
    font-weight: 500;
  }

  .portal-account-avatar {
    width: 42px;
    height: 42px;
    font-size: 0.88rem;
  }

  .portal-account-menu {
    top: calc(100% + 0.45rem);
    min-width: min(240px, 90vw);
    right: 0;
  }

  .portal-account-menu-links a,
  .portal-account-menu-logout {
    font-size: 0.74rem;
    font-weight: 500;
  }

  .portal-footer-links {
    gap: 0.55rem 1rem;
  }

  .portal-footer-links a {
    font-size: 0.78rem;
  }

  .portal-brand {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .portal-brand-logo {
    height: 14px;
    max-height: 14px;
    max-width: min(106px, 36vw);
  }

  .portal-brand-subtitle {
    font-size: 0.54rem;
    letter-spacing: 0.05em;
  }

  .portal-app-brand-logo {
    height: 22px;
    max-height: 22px;
    max-width: min(142px, 36vw);
  }

  .portal-login-card {
    width: 100%;
  }

  .portal-login-form {
    padding: 1.5rem 1rem 1rem;
  }

  .portal-form-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
  }

  .portal-form-row label {
    text-align: left;
  }

  #loginError {
    margin-left: 0;
  }

  .portal-inline-error {
    margin-left: 0;
  }

  .portal-login-note {
    margin-top: 1.3rem;
    font-size: 0.9rem;
  }

  .portal-submit-row {
    justify-content: stretch;
  }

  .portal-submit-row button {
    width: 100%;
  }

  .portal-language-row {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-language-row select {
    min-width: 0;
    width: 100%;
  }

  .portal-dashboard-shell {
    padding-top: 1.4rem;
  }

  .portal-dashboard-wrap {
    width: min(100%, calc(100vw - 1.2rem));
  }

  .portal-hero-card {
    padding: 1.2rem 1rem;
    gap: 0.9rem;
    border-radius: 18px;
    box-shadow: 7px 8px 0 rgba(157, 132, 123, 0.18);
  }

  .portal-hero-kicker {
    font-size: 0.88rem;
  }

  .portal-hero-copy h1 {
    font-size: 1.7rem;
    line-height: 1.1;
  }

  .portal-hero-copy p {
    font-size: 0.92rem;
  }

  .portal-dashboard-section {
    margin-top: 2rem;
  }

  .portal-dashboard-section-heading h2 {
    font-size: 1.55rem;
  }

  .portal-dashboard-section-heading-compact h2 {
    font-size: 1.4rem;
  }

  .portal-dashboard-section-heading {
    align-items: start;
  }

  .portal-portfolio-filters {
    width: 100%;
  }

  .portal-portfolio-filters select {
    flex: 1 1 100%;
    min-width: 0;
  }

  .portal-portfolio-summary-card {
    padding: 1.1rem 1rem;
  }

  .portal-portfolio-summary-card strong {
    font-size: 1.7rem;
  }

  .portal-portfolio-empty {
    padding: 2.5rem 1rem;
  }

  .portal-portfolio-empty h3 {
    font-size: 1.6rem;
  }

  .portal-portfolio-empty p {
    font-size: 0.94rem;
  }

  .portal-documents-empty {
    padding: 2.8rem 1rem;
  }

  .portal-documents-empty h3 {
    font-size: 1.35rem;
  }

  .portal-support-hero {
    padding: 1.2rem 1rem;
  }

  .portal-support-hero h2 {
    font-size: 1.6rem;
  }

  .portal-security-settings {
    padding: 1.2rem 1rem;
  }

  .portal-security-settings h2 {
    font-size: 1.6rem;
  }

  .portal-security-settings-grid {
    grid-template-columns: 1fr;
  }

  .portal-accounts-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .portal-accounts-stage {
    padding: 1.35rem 1rem;
    gap: 1rem;
    box-shadow: 9px 10px 0 rgba(157, 132, 123, 0.16);
  }

  .portal-accounts-stage-copy h3 {
    font-size: 1.6rem;
  }

  .portal-accounts-stage-copy p {
    font-size: 0.93rem;
  }

  .portal-portfolio-position {
    padding: 1.2rem 1rem;
  }

  .portal-portfolio-position-grid {
    grid-template-columns: 1fr;
  }

  .portal-opportunity-card {
    border-radius: 14px;
  }

  .portal-opportunity-media {
    min-height: 150px;
  }

  .portal-opportunity-content {
    padding: 0.95rem;
  }

  .portal-opportunity-content h3 {
    font-size: 1.95rem;
    line-height: 1.08;
  }

  .portal-opportunity-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portal-document-card,
  .metric {
    padding: 0.9rem;
  }

  .portal-open-account {
    gap: 1rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .portal-open-account-rail {
    padding: 0;
    min-width: 0;
    max-width: 100%;
  }

  .portal-open-account-rail p {
    margin-bottom: 0.7rem;
    font-size: 0.92rem;
  }

  .portal-open-account-steps {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0 0 0.4rem;
    scroll-snap-type: x proximity;
  }

  .portal-open-account-steps li {
    flex: 0 0 84px;
    min-width: 84px;
    gap: 0.4rem;
    padding: 0.7rem 0.4rem;
    scroll-snap-align: start;
  }

  .portal-open-account-steps span {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
  }

  .portal-open-account-steps strong {
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .portal-open-account-panel {
    padding: 1rem 0.9rem;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .portal-open-account-panel h2,
  .portal-account-detail-header h2 {
    font-size: 1.65rem;
    line-height: 1.1;
  }

  .portal-security-card {
    padding: 1.2rem 1rem 1rem;
  }

  .portal-detail-grid,
  .portal-detail-grid-single {
    gap: 1rem;
    width: 100%;
    min-width: 0;
  }

  .portal-detail-grid input,
  .portal-detail-grid select,
  .portal-detail-grid-single input,
  .portal-detail-grid-single select {
    min-width: 0;
    font-size: 16px;
  }

  .portal-detail-question span {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .portal-detail-question {
    gap: 0.7rem;
  }

  .portal-yes-no-toggle {
    max-width: none;
    width: 100%;
  }

  .portal-account-detail-header {
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
  }

  .portal-detail-back {
    width: 100%;
    justify-content: center;
  }

  .portal-detail-actions {
    width: 100%;
  }

  .portal-detail-continue {
    width: 100%;
  }

  #portalAccountSelectionView,
  #portalAccountDetailView,
  #accountDetailContent,
  .portal-security-options,
  .portal-security-card,
  .portal-detail-section,
  .portal-member-list,
  .portal-member-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .portal-security-card {
    padding: 1rem 0.9rem 0.9rem;
    overflow-x: hidden;
  }

  .portal-security-card h3,
  .portal-security-card p,
  .portal-account-detail-header p,
  .portal-open-account-help,
  .portal-open-account-rail p {
    overflow-wrap: anywhere;
  }

  .portal-member-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-member-remove {
    width: 100%;
  }

  .portal-yes-no-toggle button {
    min-width: 0;
    padding: 0.8rem 0.75rem;
  }
}
