.resident-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
}
.resident-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  min-height: 136px;
}
.resident-header .brand img {
  width: 150px;
  height: 118px;
  object-fit: contain;
}
.resident-header .text-link {
  font-size: 15px;
}
.resident-entry {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0 88px;
}
.resident-intro h1 {
  font-family: var(--serif);
  font-size: clamp(45px, 5.7vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 20px 0 28px;
}
.resident-intro > p:not(.eyebrow) {
  max-width: 430px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}
.resident-entry-benefits {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}
.resident-entry-benefits span {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}
.resident-entry-benefits .icon {
  color: #99723a;
  width: 24px;
  height: 24px;
}
.resident-login-panel {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 36px;
  background: #fff;
}
.resident-login-panel h2 {
  font: 400 35px/1.2 var(--serif);
  letter-spacing: -0.025em;
  margin: 14px 0 20px;
}
.resident-login-panel > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.resident-login-panel .field {
  margin: 26px 0 20px;
}
.resident-login-panel .btn {
  width: 100%;
  justify-content: center;
}
.resident-login-panel .notice {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 22px;
}
.resident-help {
  margin: 28px 0 18px;
}
.resident-help a {
  color: var(--green);
  text-decoration: underline;
}
.resident-login-panel .fine {
  font-size: 13px;
}
.resident-confirm {
  max-width: 640px;
  padding: 70px 0;
  margin: auto;
}
.resident-confirm h1 {
  font: 400 54px/1.15 var(--serif);
  letter-spacing: -0.035em;
  margin: 20px 0;
}
.resident-confirm p {
  font-size: 17px;
  line-height: 1.65;
  margin: 20px 0;
}
.resident-confirm form {
  margin: 30px 0;
}
.resident-account {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.resident-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.resident-tabs button {
  font-size: 16px;
  white-space: nowrap;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 23px 0 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.resident-tabs button[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.resident-content {
  padding: 42px 0 60px;
}
.resident-page-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.resident-page-heading h1 {
  font: 400 clamp(32px, 3.7vw, 46px) / 1.2 var(--serif);
  letter-spacing: -0.035em;
  margin: 12px 0;
}
.resident-page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}
.resident-summary {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  margin: 30px 0;
}
.resident-balance {
  padding: 34px;
  background: var(--ink);
  color: #f8f5ec;
  border-top: 3px solid var(--gold);
}
.resident-balance .eyebrow {
  color: var(--gold);
}
.resident-balance > strong {
  display: block;
  font-size: 48px;
  letter-spacing: -0.045em;
  margin: 17px 0;
}
.resident-balance > p:not(.eyebrow) {
  font-size: 15px;
  color: #c3c7ca;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 24px;
}
.resident-balance .btn {
  background: var(--gold);
  color: var(--ink);
}
.resident-summary-links {
  display: grid;
  gap: 20px;
}
.resident-summary-links button {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  padding: 30px;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.resident-summary-links button > span {
  flex: 1;
}
.resident-summary-links strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
}
.resident-summary-links small {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  color: var(--muted);
}
.resident-panel {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 24px;
  min-width: 0;
}
.resident-panel h2 {
  font: 400 28px/1.2 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.resident-panel > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.resident-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.resident-panel-heading h2 {
  margin: 0;
}
.resident-lease-grid,
.resident-charge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.resident-lease .resident-file-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #eee8dc;
  color: #806438;
  margin-bottom: 20px;
}
.resident-lease .eyebrow {
  margin-bottom: 16px;
}
.resident-lease p:not(.eyebrow) {
  margin: 16px 0 24px;
}
.resident-empty {
  padding: 32px 0;
  color: var(--muted);
}
.resident-empty h3 {
  font: 400 26px/1.3 var(--serif);
  color: var(--ink);
  margin-bottom: 12px;
}
.resident-empty p {
  font-size: 15px;
  line-height: 1.7;
}
.resident-maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
  align-items: start;
}
.resident-panel .field {
  margin: 20px 0;
}
.resident-panel .field input,
.resident-panel .field select,
.resident-panel .field textarea,
.resident-login-panel input {
  font-size: 16px;
}
.resident-panel .field textarea {
  min-height: 130px;
}
.resident-panel .form-grid {
  gap: 20px;
}
.resident-request-list > article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.resident-request-list > article:last-child {
  border: 0;
}
.resident-request-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.resident-request-heading h3 {
  font: 500 19px/1.5 var(--sans);
}
.resident-request-heading h2 {
  margin: 0;
}
.resident-request-list .fine {
  font-size: 13px;
  margin: 12px 0;
}
.resident-description {
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.resident-update {
  background: #f6f3eb;
  padding: 17px 20px;
  border-left: 2px solid var(--gold);
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
}
.resident-update p {
  white-space: pre-wrap;
  margin-top: 6px;
}
.resident-charge-balance {
  font-size: 35px !important;
  color: var(--ink) !important;
  margin: 20px 0;
}
.resident-charge-balance span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.resident-content > .notice {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 26px;
}
.resident-content table {
  font-size: 14px;
}
.resident-content td,
.resident-content th {
  padding: 16px;
}
.resident-content td small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}
.resident-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.resident-footer a {
  color: var(--green);
}
.resident-panel-heading button.text-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.resident-owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.resident-owner-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
}
.resident-owner-card h3 {
  font: 400 27px/1.25 var(--serif);
  margin-bottom: 14px;
}
.resident-owner-card p {
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.resident-owner-card .editor-actions {
  flex-wrap: wrap;
  margin-top: 20px;
}
.resident-owner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.resident-owner-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.resident-owner-heading h1 {
  font: 400 36px/1.2 var(--serif);
}
.resident-owner-heading p {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.resident-admin-request p {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.resident-admin-request .editor-actions {
  margin-top: 16px;
}
.resident-owner-modal .field {
  margin: 18px 0;
}
.resident-owner-modal input,
.resident-owner-modal select,
.resident-owner-modal textarea {
  font-size: 15px;
}
.resident-owner-modal .resident-panel {
  padding: 18px;
}
.resident-owner-modal .resident-panel h3 {
  font-size: 23px;
}
.footer-links .resident-access {
  font-size: 14px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 1100px) {
  .resident-shell {
    padding: 0 32px;
  }
  .resident-entry {
    gap: 36px;
  }
  .resident-login-panel {
    padding: 28px;
  }
  .resident-maintenance-grid {
    grid-template-columns: 1fr;
  }
  .resident-owner-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) and (min-width: 801px) {
  .menu-btn {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: 122px;
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 24px;
    width: 300px;
    z-index: 30;
    margin-left: 0;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
@media (max-width: 650px) {
  .resident-shell {
    padding: 0 20px;
  }
  .resident-header {
    min-height: 112px;
    gap: 16px;
  }
  .resident-header .brand img {
    width: 118px;
    height: 96px;
  }
  .resident-header .text-link {
    font-size: 13px;
    max-width: 100px;
    line-height: 1.6;
  }
  .resident-entry {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 0 48px;
  }
  .resident-intro h1 {
    font-size: 46px;
    margin: 16px 0;
  }
  .resident-intro > p:not(.eyebrow) {
    font-size: 16px;
  }
  .resident-entry-benefits {
    gap: 12px;
    margin-top: 24px;
  }
  .resident-entry-benefits span {
    font-size: 14px;
  }
  .resident-login-panel {
    padding: 24px;
  }
  .resident-login-panel h2 {
    font-size: 31px;
  }
  .resident-confirm {
    padding: 38px 0;
  }
  .resident-confirm h1 {
    font-size: 39px;
  }
  .resident-account {
    gap: 10px;
  }
  .resident-account > span {
    display: none;
  }
  .resident-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    overflow: visible;
  }
  .resident-tabs button {
    text-align: left;
    white-space: normal;
    font-size: 14px;
    padding: 16px 0;
  }
  .resident-content {
    padding: 28px 0 36px;
  }
  .resident-page-heading {
    align-items: start;
    margin-bottom: 24px;
  }
  .resident-page-heading .btn {
    font-size: 12px;
    padding: 10px;
  }
  .resident-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .resident-summary-links {
    gap: 14px;
  }
  .resident-summary-links button {
    padding: 22px;
  }
  .resident-balance {
    padding: 28px;
  }
  .resident-lease-grid,
  .resident-charge-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .resident-panel {
    padding: 22px;
  }
  .resident-panel-heading {
    align-items: start;
  }
  .resident-panel-heading .text-link {
    font-size: 12px;
  }
  .resident-footer {
    flex-wrap: wrap;
  }
  .resident-owner-heading {
    flex-wrap: wrap;
  }
  .resident-owner-card {
    padding: 20px;
  }
  .town-image-stack {
    height: 360px;
  }
}
@media (max-width: 400px) {
  .resident-page-heading {
    flex-wrap: wrap;
  }
  .resident-panel .form-grid {
    grid-template-columns: 1fr;
  }
}
