/* TERRA GROUP — secure access and the connected client workspace. */
.terra-auth {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  background: #ded7cb;
  color: #152112;
  font-family: var(--sans, 'Manrope', Arial, sans-serif);
}
.terra-auth .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  width: min(1440px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(21, 33, 18, .12);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(21, 33, 18, .1);
}
.terra-auth .auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: 690px;
  padding: clamp(32px, 5vw, 76px);
  overflow: hidden;
  background: #152112;
  color: #f5f3ee;
}
.terra-auth .auth-visual::before,
.terra-auth .auth-visual::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(143, 201, 53, .17);
  border-radius: 0;
  background: none;
  filter: none;
  transform: rotate(30deg);
}
.terra-auth .auth-visual::before {
  width: 460px;
  height: 460px;
  right: -300px;
  top: 24%;
}
.terra-auth .auth-visual::after {
  width: 350px;
  height: 350px;
  right: -225px;
  top: 32%;
}
.terra-auth .auth-visual > * { position: relative; z-index: 1; }
.terra-auth .auth-visual .brand { align-self: flex-start; }
.terra-auth .auth-visual .terra-logo { width: clamp(180px, 18vw, 244px); max-width: 100%; height: auto; }
.terra-auth .auth-visual .brand-caption { color: #ded7cb; }
.terra-auth .auth-visual .eyebrow {
  margin-bottom: 22px;
  color: #8fc935;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .15em;
}
.terra-auth .auth-visual h1 {
  max-width: 540px;
  margin: 0 0 28px;
  font-family: var(--sans, 'Manrope', Arial, sans-serif);
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.terra-auth .auth-visual h1 { color: #ded7cb; }
.terra-auth .auth-visual h1 em {
  display: block;
  margin-top: .08em;
  color: #8fc935;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}
.terra-auth .auth-visual > div > p:not(.eyebrow) {
  max-width: 430px;
  margin: 0;
  color: #cbcfc7;
  font-size: .98rem;
  line-height: 1.8;
}
.terra-auth .auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(222, 215, 203, .2);
}
.terra-auth .auth-metrics span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  color: #aeb9a6;
  font-size: .7rem;
  line-height: 1.5;
  border: 0;
}
.terra-auth .auth-metrics b { color: #f5f3ee; font-size: .88rem; font-weight: 700; }
.terra-auth .portal-trust {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(222, 215, 203, .2);
}
.terra-auth .portal-trust span { color: #ded7cb; font-size: .78rem; line-height: 1.5; }
.terra-auth .auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 80px);
  background: #f7f5f0;
}
.terra-auth .auth-form {
  width: 100%;
  max-width: 400px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.terra-auth .auth-form > div:first-of-type { margin-bottom: 10px; }
.terra-auth .auth-form .eyebrow {
  color: #536548;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.terra-auth .auth-form h2 {
  margin: 12px 0;
  color: #152112;
  font-family: var(--sans, 'Manrope', Arial, sans-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.terra-auth .auth-form p { margin: 0; color: #62675e; font-size: .88rem; line-height: 1.7; }
.terra-auth .auth-form label { display: grid; gap: 9px; color: #263321; font-size: .77rem; font-weight: 700; }
.terra-auth .auth-form input:not([type='hidden']) {
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #cbd0c4;
  border-radius: 8px;
  background: #fff;
  color: #152112;
  font-size: .94rem;
  box-shadow: none;
}
.terra-auth .auth-form input:focus { outline: 3px solid rgba(143, 201, 53, .28); outline-offset: 1px; border-color: #658c29; }
.terra-auth .auth-form .password-input-wrap input { padding-right: 5.8rem; }
.terra-auth .password-visibility { color: #385221; background: #eff4e8; padding: 8px 10px; border-radius: 6px; font-size: .7rem; }
.terra-auth .password-visibility:hover { background: #e2edcf; }
.terra-auth .password-visibility:focus-visible { outline-color: #152112; }
.terra-auth .auth-form .btn-primary {
  min-height: 54px;
  margin-top: 2px;
  border: 1px solid #8fc935;
  border-radius: 8px;
  background: #8fc935;
  color: #152112;
  font-size: .86rem;
  font-weight: 800;
  box-shadow: none;
  transform: none;
}
.terra-auth .auth-form .btn-primary:hover { background: #a1d556; border-color: #a1d556; transform: none; box-shadow: none; }
.terra-auth .auth-form .btn-primary::after { content: none; }
.terra-auth .auth-form .btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.terra-auth .auth-form .password-recovery-link,
.terra-auth .auth-form .back-link { margin: 0; color: #3c5030; text-align: center; font-size: .77rem; font-weight: 650; }
.terra-auth .auth-form .back-link { padding-top: 20px; border-top: 1px solid #deded3; color: #72786b; }
.terra-auth .auth-form a:hover { text-decoration: underline; text-underline-offset: 4px; }
.terra-auth .auth-form .btn:hover { text-decoration: none; }
.terra-auth .alert { margin: 0; border-radius: 8px; padding: 15px 16px; font-size: .8rem; line-height: 1.65; }

.terra-portal {
  margin: 0;
  background: #eeeae2;
  color: #152112;
  font-family: var(--sans, 'Manrope', Arial, sans-serif);
}
.terra-portal .portal-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  padding: 22px max(28px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid #d8d5cc;
  background: rgba(250, 249, 245, .97);
  backdrop-filter: blur(16px);
}
.terra-portal .portal-nav .terra-logo { width: 206px; height: auto; }
.terra-portal .portal-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.terra-portal .portal-nav .portal-user-details { display: grid; gap: 3px; min-width: 0; }
.terra-portal .portal-nav .portal-user-details strong { font-size: .76rem; font-weight: 750; }
.terra-portal .portal-nav .portal-user-details small { color: #717768; font-size: .69rem; overflow-wrap: anywhere; }
.terra-portal .avatar { flex-shrink: 0; width: 40px; height: 40px; background: #e3eacf; color: #385025; font-size: .8rem; font-weight: 800; border-radius: 10px; }
.terra-portal .portal-logout { margin-left: 10px; border-left: 1px solid #d8d5cc; padding: 8px 0 8px 20px; color: #4a573f; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.terra-portal .portal-main { width: min(1280px, calc(100% - 56px)); max-width: 1280px; padding: 38px 0 70px; margin: 0 auto; }
.terra-portal .portal-main > section, .terra-portal .portal-two-col { margin-bottom: 26px; scroll-margin-top: 125px; }
.terra-portal .portal-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px;
  overflow: hidden;
  border-radius: 16px;
  background: #152112;
  color: #f7f5f0;
}
.terra-portal .portal-welcome::after { content: ''; position: absolute; width: 250px; height: 250px; right: 8%; top: -140px; border: 1px solid rgba(143, 201, 53, .2); transform: rotate(30deg); pointer-events: none; }
.terra-portal .portal-welcome .eyebrow { color: #8fc935; font-size: .64rem; letter-spacing: .14em; }
.terra-portal .portal-welcome h1 { margin: 12px 0 14px; color: #f7f5f0; font-family: var(--sans, 'Manrope', Arial, sans-serif); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 750; }
.terra-portal .portal-welcome p:not(.eyebrow) { max-width: 600px; margin: 0; color: #c5cebc; font-size: .9rem; line-height: 1.8; }
.terra-portal .advisor-card { flex-shrink: 0; display: flex; gap: 13px; align-items: center; padding: 20px; border: 1px solid rgba(222, 215, 203, .23); border-radius: 10px; background: #24331e; box-shadow: none; }
.terra-portal .advisor-card > div { display: grid; gap: 5px; }
.terra-portal .advisor-card small { color: #b4c1a7; font-size: .69rem; }
.terra-portal .advisor-card strong { color: #fff; font-size: .84rem; }
.terra-portal .advisor-card span:not(.avatar) { color: #ded7cb; font-size: .73rem; }
.terra-portal .portal-jump-nav { display: flex; align-items: center; gap: 8px; margin: 0 0 26px; padding: 3px 0; overflow-x: auto; scrollbar-width: thin; }
.terra-portal .portal-jump-nav a { flex-shrink: 0; padding: 11px 18px; border: 1px solid #cdd1c3; border-radius: 7px; background: #f9f8f4; font-size: .74rem; font-weight: 750; }
.terra-portal .portal-jump-nav a:hover { border-color: #8fc935; background: #e8efd9; }
.terra-portal .portal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.terra-portal .portal-summary > a { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border: 1px solid #d9dbd0; border-radius: 12px; background: #faf9f5; transition: border-color .2s, background .2s; }
.terra-portal .portal-summary > a:hover { border-color: #8fc935; background: #f2f6e9; }
.terra-portal .portal-summary > a > span { color: #6b735f; font-size: .72rem; font-weight: 650; }
.terra-portal .portal-summary strong { font-size: 2.3rem; letter-spacing: -.045em; line-height: 1; font-weight: 750; }
.terra-portal .portal-summary small { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .66rem; color: #69725f; }
.terra-portal .portal-summary small span { color: #4d6f25; font-size: 1rem; }
.terra-portal .panel,
.terra-portal .portal-section { padding: 28px; border: 1px solid #d8dbcf; border-radius: 12px; background: #faf9f5; box-shadow: none; }
.terra-portal .portal-section.panel { padding: 28px; }
.terra-portal .eyebrow { margin: 0 0 8px; font-size: .61rem; font-weight: 800; letter-spacing: .14em; color: #58743c; }
.terra-portal h2 { margin: 0; font-family: var(--sans, 'Manrope', Arial, sans-serif); font-size: 1.35rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.25; }
.terra-portal h3 { font-family: var(--sans, 'Manrope', Arial, sans-serif); font-weight: 750; }
.terra-portal .panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 24px; padding: 0; border: 0; }
.terra-portal .panel-header > small { max-width: 400px; color: #737a68; font-size: .72rem; line-height: 1.7; }
.terra-portal .portal-progress > header { display: flex; justify-content: space-between; gap: 26px; align-items: flex-start; }
.terra-portal .portal-progress > header > div:last-child { display: grid; max-width: 50%; gap: 6px; text-align: right; }
.terra-portal .portal-progress > header small { color: #737a68; font-size: .7rem; }
.terra-portal .portal-progress > header strong { font-size: .82rem; font-weight: 700; }
.terra-portal .portal-progress > header span { color: #7c846f; font-size: .72rem; }
.terra-portal .progress-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding: 28px 0 4px; margin: 0; }
.terra-portal .progress-track::before { display: none; }
.terra-portal .progress-track > span { position: relative; display: grid; justify-items: center; gap: 11px; min-width: 0; text-align: center; }
.terra-portal .progress-track > span::before { content: ''; position: absolute; z-index: 0; height: 2px; top: 17px; left: -50%; right: 50%; background: #dce0d3; }
.terra-portal .progress-track > span:first-child::before { display: none; }
.terra-portal .progress-track i { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #cdd3c3; border-radius: 50%; background: #faf9f5; color: #808b73; font-size: .78rem; font-style: normal; font-weight: 800; box-shadow: none; }
.terra-portal .progress-track small { color: #77816b; font-size: .68rem; }
.terra-portal .progress-track .is-done::before { background: #8fc935; }
.terra-portal .progress-track .is-done i { border-color: #8fc935; background: #8fc935; color: #152112; }
.terra-portal .progress-track .is-done small { color: #334929; font-weight: 750; }
.terra-portal .portal-property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.terra-portal .portal-property-grid > article { overflow: hidden; border: 1px solid #dce0d3; border-radius: 10px; background: #fff; box-shadow: none; }
.terra-portal .portal-property-grid article > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.terra-portal .portal-property-grid article > div { padding: 21px; }
.terra-portal .portal-property-grid article > div > span { display: inline-block; margin: 0 0 12px; padding: 5px 9px; border-radius: 4px; background: #e8f0db; color: #476530; font-size: .64rem; font-weight: 800; }
.terra-portal .portal-property-grid h3 { margin: 0 0 10px; font-size: 1.06rem; line-height: 1.4; }
.terra-portal .portal-property-grid p { margin: 0 0 20px; color: #6f7963; font-size: .77rem; line-height: 1.65; }
.terra-portal .portal-property-grid a { color: #344e23; font-size: .74rem; font-weight: 800; }
.terra-portal .portal-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.terra-portal .portal-list { display: grid; gap: 0; }
.terra-portal .portal-list > article { display: flex; align-items: center; gap: 16px; padding: 19px 0; border-bottom: 1px solid #e0e3d8; background: none; border-radius: 0; }
.terra-portal .portal-list > article:first-child { padding-top: 0; }
.terra-portal .portal-list > article:last-child { padding-bottom: 0; border: 0; }
.terra-portal .portal-list article > div { display: grid; gap: 6px; flex: 1; min-width: 0; }
.terra-portal .portal-list strong { font-size: .8rem; font-weight: 750; line-height: 1.5; }
.terra-portal .portal-list small { color: #79836b; font-size: .68rem; line-height: 1.6; }
.terra-portal .portal-list time { flex-shrink: 0; display: grid; gap: 4px; place-items: center; width: 55px; height: 62px; background: #eaf0df; border-radius: 8px; }
.terra-portal .portal-list time strong { font-size: 1.5rem; line-height: 1; }
.terra-portal .portal-list time small { color: #587743; font-size: .64rem; text-transform: uppercase; }
.terra-portal .portal-list.simple article { flex-wrap: wrap; }
.terra-portal .portal-list.simple article > span:not(.status-badge) { color: #3d5030; font-size: .76rem; font-weight: 750; }
.terra-portal .status-badge { padding: 6px 9px; font-size: .61rem; font-weight: 750; line-height: 1.25; border-radius: 5px; white-space: normal; text-align: center; }
.terra-portal .empty-inline { grid-column: 1 / -1; width: 100%; padding: 28px 22px; border: 1px dashed #cbd3bf; border-radius: 9px; background: #f0f3e9; color: #6c795e; font-size: .82rem; text-align: left; line-height: 1.7; }
.terra-portal .portal-contracts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.terra-portal .portal-contracts article { padding: 22px; border: 1px solid #d8dfcc; border-radius: 10px; background: #fff; }
.terra-portal .portal-contracts article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.terra-portal .portal-contracts header > div { min-width: 0; }
.terra-portal .portal-contracts header div > span { color: #728661; font-size: .67rem; font-weight: 750; }
.terra-portal .portal-contracts h3 { margin: 9px 0; font-size: 1rem; line-height: 1.4; }
.terra-portal .portal-contracts header small { color: #7c846f; font-size: .67rem; }
.terra-portal .portal-contracts summary { padding: 13px 16px; border: 1px solid #d6dfc9; border-radius: 7px; background: #f0f4e8; color: #415b2c; font-size: .76rem; font-weight: 750; cursor: pointer; }
.terra-portal .portal-contracts details[open] summary { border-radius: 7px 7px 0 0; }
.terra-portal .contract-content { max-height: 600px; overflow: auto; margin: 0; padding: 24px; border: 1px solid #dce2d4; border-top: 0; background: #fcfcfa; font-family: var(--sans, 'Manrope', Arial, sans-serif); font-size: .81rem; line-height: 1.8; overflow-wrap: anywhere; }
.terra-portal .contract-content h1,
.terra-portal .contract-content h2,
.terra-portal .contract-content h3 { font-family: inherit; letter-spacing: 0; }
.terra-portal .contract-content table { min-width: 0; width: 100%; table-layout: fixed; }
.terra-portal .sign-form { margin-top: 18px; display: grid; gap: 16px; }
.terra-portal .sign-form .checkbox { display: flex; align-items: flex-start; gap: 10px; color: #5b6a4c; font-size: .76rem; line-height: 1.65; }
.terra-portal .sign-form .checkbox input { margin-top: 4px; flex-shrink: 0; accent-color: #658c29; }
.terra-portal .signature-evidence { display: grid; gap: 8px; margin-top: 18px; padding: 16px; border-radius: 6px; background: #e9f2da; color: #3e5f25; }
.terra-portal .signature-evidence strong { font-size: .77rem; }
.terra-portal .signature-evidence small { font-size: .63rem; overflow-wrap: anywhere; }
.terra-portal .portal-payments { display: grid; gap: 18px; }
.terra-portal .portal-payments > article { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 12px; padding: 20px; border: 1px solid #dce1d2; border-radius: 9px; background: #fff; }
.terra-portal .portal-payments > article > div { display: grid; gap: 5px; min-width: 0; }
.terra-portal .portal-payments strong { font-size: .77rem; }
.terra-portal .portal-payments small { color: #7a846d; font-size: .65rem; line-height: 1.6; }
.terra-portal .portal-payments article > span:not(.status-badge) { font-size: .77rem; font-weight: 800; }
.terra-portal .portal-payments form { grid-column: 1 / -1; display: grid; gap: 10px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid #e1e6d8; }
.terra-portal .portal-payments form label { display: grid; gap: 8px; font-size: .7rem; font-weight: 750; }
.terra-portal .portal-payments input[type='file'] { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #ccd4bf; border-radius: 6px; background: #f7f9f2; color: #657854; font-size: .69rem; }
.terra-portal .portal-payments input[type='file']::file-selector-button { margin-right: 10px; border: 0; border-radius: 4px; padding: 8px 10px; background: #e0e9d3; color: #385024; font: inherit; font-weight: 700; cursor: pointer; }
.terra-portal .btn { min-height: 44px; padding: 12px 18px; border-radius: 7px; font-size: .76rem; box-shadow: none; transform: none; }
.terra-portal .btn-primary { background: #8fc935; color: #152112; border: 1px solid #8fc935; }
.terra-portal .btn-primary:hover { background: #a1d556; border-color: #a1d556; box-shadow: none; transform: none; }
.terra-portal .btn-dark { background: #152112; border: 1px solid #152112; color: #f5f3ee; }
.terra-portal .btn-dark:hover { background: #2b4122; border-color: #2b4122; box-shadow: none; transform: none; }
.terra-portal .btn::after { content: none; }
.terra-portal .portal-payments form button { justify-self: start; }
.terra-portal .post-sale-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.terra-portal .post-sale-track article { display: flex; gap: 12px; padding: 17px; border: 1px solid #dce2d3; border-radius: 8px; background: #f3f5ed; }
.terra-portal .post-sale-track article > span { color: #839374; font-size: 1.3rem; }
.terra-portal .post-sale-track article.is-done > span { color: #5f8b27; }
.terra-portal .post-sale-track article > div { display: grid; gap: 6px; }
.terra-portal .post-sale-track strong { font-size: .78rem; line-height: 1.5; }
.terra-portal .post-sale-track small { color: #7a876c; font-size: .67rem; line-height: 1.6; }
.terra-portal .portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px max(28px, calc((100vw - 1280px) / 2)); border-top: 1px solid #d5d8cb; background: #ded7cb; color: #6e7764; font-size: .73rem; line-height: 1.8; }
.terra-portal .portal-footer .terra-logo { width: 155px; height: auto; }
.terra-portal .portal-footer .brand-caption { font-size: .6rem; }
.terra-auth a:focus-visible,
.terra-auth button:focus-visible,
.terra-portal a:focus-visible,
.terra-portal button:focus-visible,
.terra-portal summary:focus-visible { outline: 3px solid #8fc935; outline-offset: 4px; }

@media (min-width: 1500px) { .terra-auth { display: flex; align-items: center; } .terra-auth .auth-shell { min-height: 800px; } }
@media (max-width: 1100px) {
  .terra-auth .auth-shell { grid-template-columns: 1fr 1fr; }
  .terra-auth .auth-visual { padding: 40px; }
  .terra-auth .auth-form-section { padding: 40px; }
  .terra-auth .auth-metrics { gap: 10px; }
  .terra-auth .auth-metrics span { font-size: .63rem; }
  .terra-portal .portal-welcome { padding: 32px; }
  .terra-portal .advisor-card { max-width: 270px; }
  .terra-portal .portal-summary > a { padding: 20px; }
  .terra-portal .portal-list > article { flex-wrap: wrap; gap: 12px; }
  .terra-portal .portal-payments > article { grid-template-columns: 1fr auto; }
  .terra-portal .portal-payments > article > .status-badge { justify-self: start; }
  .terra-portal .portal-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .terra-auth { padding: 16px; }
  .terra-auth .auth-shell { grid-template-columns: 1fr; min-height: calc(100vh - 32px); border-radius: 14px; }
  .terra-auth .auth-visual { min-height: auto; padding: 32px; gap: 34px; }
  .terra-auth .auth-visual h1 { max-width: 540px; margin-bottom: 18px; font-size: clamp(2rem, 6.5vw, 3.1rem); }
  .terra-auth .auth-visual h1 em { display: inline; }
  .terra-auth .auth-visual > div > p:not(.eyebrow) { max-width: 550px; font-size: .86rem; }
  .terra-auth .auth-visual .eyebrow { margin-bottom: 15px; font-size: .62rem; }
  .terra-auth .auth-visual .terra-logo { width: 190px; }
  .terra-auth .auth-metrics { display: none; }
  .terra-auth .portal-trust { display: none; }
  .terra-auth .auth-form-section { padding: 36px 32px; }
  .terra-auth .auth-form { max-width: 100%; }
  .terra-auth .auth-form h2 { font-size: 1.85rem; }
  .terra-portal .portal-nav { min-height: 88px; padding: 18px 22px; gap: 18px; }
  .terra-portal .portal-nav .terra-logo { width: 174px; }
  .terra-portal .portal-nav .portal-user-details { display: none; }
  .terra-portal .portal-main { width: calc(100% - 36px); padding: 24px 0 45px; }
  .terra-portal .portal-welcome { align-items: flex-start; flex-direction: column; gap: 28px; padding: 30px; }
  .terra-portal .advisor-card { max-width: 100%; padding: 16px 18px; }
  .terra-portal .portal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terra-portal .portal-two-col, .terra-portal .portal-contracts { grid-template-columns: 1fr; }
  .terra-portal .panel, .terra-portal .portal-section, .terra-portal .portal-section.panel { padding: 24px; }
  .terra-portal .panel-header { flex-direction: column; gap: 14px; }
  .terra-portal .panel-header > small { max-width: 100%; }
  .terra-portal .post-sale-track { grid-template-columns: 1fr; }
  .terra-portal .portal-progress > header { flex-direction: column; gap: 20px; }
  .terra-portal .portal-progress > header > div:last-child { max-width: 100%; text-align: left; }
  .terra-portal .progress-track { grid-template-columns: repeat(7, 74px); overflow-x: auto; padding-bottom: 14px; }
  .terra-portal .progress-track small { font-size: .61rem; }
  .terra-portal .portal-footer { align-items: flex-start; padding: 25px 22px; font-size: .69rem; }
}
@media (max-width: 480px) {
  .terra-auth { padding: 0; }
  .terra-auth .auth-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .terra-auth .auth-visual { padding: 28px 24px; gap: 30px; }
  .terra-auth .auth-visual .terra-logo { width: 180px; }
  .terra-auth .auth-visual h1 { font-size: 2.15rem; }
  .terra-auth .auth-visual > div > p:not(.eyebrow) { font-size: .81rem; }
  .terra-auth .auth-form-section { padding: 32px 24px; }
  .terra-auth .auth-form { gap: 21px; }
  .terra-auth .auth-form h2 { font-size: 1.65rem; }
  .terra-auth .auth-form input:not([type='hidden']) { font-size: 16px; }
  .terra-portal .portal-nav { min-height: 80px; padding: 16px 18px; gap: 12px; }
  .terra-portal .portal-nav .terra-logo { width: 140px; }
  .terra-portal .portal-nav .brand-caption { font-size: .52rem; }
  .terra-portal .portal-user { gap: 8px; }
  .terra-portal .portal-user > .avatar { display: none; }
  .terra-portal .portal-logout { margin-left: 0; border: 0; padding: 10px 0; font-size: .63rem; }
  .terra-portal .portal-main { width: calc(100% - 28px); padding-top: 18px; }
  .terra-portal .portal-welcome { padding: 26px 22px; border-radius: 12px; }
  .terra-portal .portal-welcome h1 { font-size: 2rem; }
  .terra-portal .portal-welcome p:not(.eyebrow) { font-size: .81rem; }
  .terra-portal .portal-jump-nav { gap: 6px; }
  .terra-portal .portal-jump-nav a { padding: 10px 14px; font-size: .68rem; }
  .terra-portal .portal-summary { gap: 10px; }
  .terra-portal .portal-summary > a { padding: 18px 15px; gap: 12px; border-radius: 9px; }
  .terra-portal .portal-summary > a > span { font-size: .65rem; }
  .terra-portal .portal-summary strong { font-size: 2rem; }
  .terra-portal .portal-summary small { font-size: .6rem; }
  .terra-portal .panel, .terra-portal .portal-section, .terra-portal .portal-section.panel { padding: 21px 18px; }
  .terra-portal h2 { font-size: 1.2rem; }
  .terra-portal .portal-property-grid { grid-template-columns: 1fr; }
  .terra-portal .portal-contracts article { padding: 18px; }
  .terra-portal .portal-contracts article > header { gap: 10px; }
  .terra-portal .contract-content { padding: 18px 14px; }
  .terra-portal .portal-payments > article { padding: 17px; }
  .terra-portal .portal-payments form button { width: 100%; }
  .terra-portal .portal-footer { flex-direction: column; gap: 22px; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .terra-auth *, .terra-portal * { scroll-behavior: auto; transition: none !important; }
}
