:root {
  --bg: #f2f3f7;
  --ink: #1e1e2c;
  --muted: #646874;
  --line: rgba(30, 30, 44, 0.12);
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --accent: #34b1aa;
  --accent-strong: #167b76;
  --accent-warm: #f29f67;
  --accent-warm-soft: rgba(242, 159, 103, 0.18);
  --shadow: 0 24px 70px rgba(31, 35, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(242, 243, 247, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(31, 35, 50, 0.08);
}

.brand-mark img {
  width: 34px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-nav a,
.site-nav button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3c3f49;
  font: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a:focus-visible,
.site-nav button:focus-visible {
  background: rgba(255, 255, 255, 0.74);
  outline: 3px solid rgba(52, 177, 170, 0.16);
}

.site-nav .nav-logout {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.site-nav .nav-logout:hover,
.site-nav .nav-logout:focus-visible {
  background: var(--ink);
  color: #fff;
}

.site-nav .login-link {
  background: var(--ink);
  color: #fff;
}

.site-nav .login-link:hover,
.site-nav .login-link:focus-visible {
  background: #121221;
  color: #fff;
  box-shadow: 0 10px 26px rgba(30, 30, 44, 0.2);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 84px));
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(64px, 10vw, 118px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  opacity: 0.7;
}

.hero-bg span {
  min-height: 100%;
  border-right: 1px solid rgba(30, 30, 44, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(180deg, rgba(30, 30, 44, 0.08) 0 1px, transparent 1px 74px);
}

.hero-bg span:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(52, 177, 170, 0.16), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(180deg, rgba(30, 30, 44, 0.08) 0 1px, transparent 1px 92px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242, 243, 247, 0.98) 0%, rgba(242, 243, 247, 0.8) 45%, rgba(242, 243, 247, 0.38) 100%),
    linear-gradient(0deg, rgba(242, 243, 247, 1), rgba(242, 243, 247, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 860px;
  font-size: clamp(2.25rem, 5.25vw, 4.85rem);
  line-height: 1.01;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: #454957;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-action {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 42px rgba(30, 30, 44, 0.18);
}

.secondary-action {
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.section {
  padding: clamp(54px, 8vw, 94px) clamp(18px, 5vw, 64px);
}

section[id] {
  scroll-margin-top: 104px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article,
.owner-grid article,
.assurance-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.service-grid article,
.owner-grid article {
  min-height: 210px;
  padding: 24px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 10px;
  background: var(--accent-warm-soft);
  color: #94562a;
  font-size: 0.82rem;
  font-weight: 900;
}

.service-grid p,
.owner-grid p,
.split-section p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.split-section > div:first-child {
  max-width: 680px;
}

.assurance-list {
  padding: 10px;
}

.assurance-list p {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 1fr;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.assurance-list p:last-child {
  border-bottom: 0;
}

.assurance-list strong {
  color: var(--ink);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: var(--accent-warm-soft);
}

.contact-copy h2 {
  margin-bottom: 18px;
}

.contact-copy address {
  color: var(--muted);
  font-size: 1.08rem;
  font-style: normal;
}

.contact-panel {
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) 1fr;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row strong {
  color: var(--ink);
}

.contact-row span {
  color: var(--muted);
}

.contact-row a {
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.owner-page {
  background: #f7f8fb;
}

.owner-app {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 64px) 72px;
}

.owner-login {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 420px);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.owner-login > div:first-child {
  max-width: 760px;
}

.owner-login h1,
.dashboard-head h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.owner-login p:last-child,
.dashboard-head p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.community-context {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.community-context .eyebrow {
  margin: 0;
}

.dashboard-head .community-legal-name {
  margin: 0;
  color: #343846;
  font-size: 1.02rem;
  font-weight: 900;
}

.dashboard-head .community-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 0.9rem;
}

.community-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.login-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 42px rgba(31, 35, 50, 0.1);
}

.login-form,
.password-reminder-form {
  display: grid;
  gap: 14px;
}

.login-panel label,
.password-reminder-form h2 {
  margin: 0;
}

.login-panel label {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

.password-reminder-form {
  padding-top: 2px;
}

.password-reminder-form h2 {
  font-size: 1rem;
  line-height: 1.25;
}

.password-reminder-form p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.password-row input,
.password-reminder-form input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.password-row input:focus,
.password-reminder-form input:focus {
  border-color: var(--accent-strong);
  outline: 3px solid rgba(52, 177, 170, 0.18);
}

.compact-action {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.owner-dashboard {
  display: grid;
  gap: 28px;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.owner-breadcrumbs {
  margin-bottom: -4px;
}

.owner-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.owner-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.owner-breadcrumbs li + li::before {
  content: "/";
  color: #a1a6b3;
  font-weight: 700;
}

.owner-breadcrumbs button,
.owner-breadcrumbs span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.owner-breadcrumbs button {
  cursor: pointer;
}

.owner-breadcrumbs button:hover,
.owner-breadcrumbs button:focus-visible {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: 3px solid rgba(52, 177, 170, 0.16);
}

.owner-breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

.owner-summary article,
.profile-option,
.open-items article,
.local-card,
.local-detail-metrics article,
.arrears-summary-grid article,
.arrears-explanation-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.owner-summary article,
.arrears-summary-grid article {
  min-height: 126px;
  padding: 20px;
}

.owner-summary span,
.owner-summary small,
.arrears-summary-grid span,
.arrears-summary-grid small,
.open-items span,
.profile-option span,
.profile-option small {
  color: var(--muted);
}

.owner-summary span,
.arrears-summary-grid span {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-summary strong,
.arrears-summary-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
}

.balance-breakdown {
  display: grid;
  gap: 10px;
}

.balance-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.balance-breakdown-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.balance-breakdown-row small {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
  text-transform: none;
}

.balance-breakdown-row strong {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

.balance-breakdown-row.total {
  padding-top: 12px;
  border-top-color: rgba(30, 30, 44, 0.16);
}

.balance-breakdown-row.total small,
.balance-breakdown-row.total strong {
  font-weight: 900;
}

.local-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 9px;
}

.local-group-list,
.local-group {
  display: grid;
  gap: 12px;
}

.local-group-list {
  gap: 22px;
}

.local-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-group-title h3 {
  margin: 0;
  font-size: 1.02rem;
}

.delegated-owner-title h3 {
  overflow-wrap: anywhere;
}

.local-group-title span {
  min-width: 28px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.local-card {
  display: grid;
  min-height: 104px;
  gap: 5px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.local-card span,
.local-card small,
.document-status,
.local-detail-metrics span,
.local-detail-metrics small {
  color: var(--muted);
}

.local-card span,
.local-detail-metrics span {
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.local-card strong {
  font-size: 1.05rem;
  line-height: 1;
}

.local-card b {
  font-size: 0.9rem;
}

.local-card small {
  font-size: 0.78rem;
  line-height: 1.3;
}

.local-card-owner {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-card:hover,
.local-card:focus-visible,
.local-card.active {
  border-color: rgba(22, 123, 118, 0.52);
  outline: 3px solid rgba(52, 177, 170, 0.18);
}

.local-card.active {
  background: #effaf8;
}

.owner-section {
  display: grid;
  gap: 12px;
}

#localSettlement {
  scroll-margin-top: 104px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.local-detail-head {
  justify-content: center;
  text-align: center;
}

.local-detail-head > div {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.local-detail-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 0.98;
}

.section-title-row p,
.compact-title-row h3 {
  margin: 0;
}

.section-title-row p {
  color: var(--muted);
}

.owner-profile-section {
  gap: 16px;
}

.owner-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.owner-info-grid article,
.proxy-list article,
.resolution-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.owner-info-grid article {
  min-height: 96px;
  padding: 18px;
}

.owner-info-grid span,
.proxy-list span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-info-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.owner-access-password {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 123, 118, 0.24);
  border-radius: 8px;
  background: #f4fbfa;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.email-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.email-link {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgba(22, 123, 118, 0.22);
  border-radius: 999px;
  background: #f4fbfa;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.email-link:hover,
.email-link:focus-visible {
  border-color: rgba(22, 123, 118, 0.48);
  background: #e9f7f5;
  outline: 3px solid rgba(52, 177, 170, 0.16);
}

.proxies-section {
  padding-top: 8px;
}

.proxy-list {
  display: grid;
  gap: 9px;
}

.proxy-list article {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) 1fr;
  gap: 14px;
  padding: 14px 16px;
}

.proxy-list strong {
  display: block;
  margin-bottom: 4px;
}

.proxy-list p {
  margin: 0;
  color: #454957;
}

.owner-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.owner-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.owner-table th,
.owner-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.owner-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.owner-table tr:last-child td {
  border-bottom: 0;
}

.ledger-table {
  min-width: 1140px;
}

.owner-table td.ledger-balance {
  color: #747987;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.owner-table td.ledger-balance.debit,
.owner-table td.ledger-balance.credit {
  color: #747987;
}

.ledger-year-list {
  display: grid;
  gap: 10px;
}

.ledger-year {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.ledger-year summary {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(128px, 0.58fr)) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.ledger-year summary::-webkit-details-marker {
  display: none;
}

.ledger-year summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}

.ledger-year[open] summary::after {
  content: "-";
}

.ledger-year summary:hover,
.ledger-year summary:focus-visible {
  background: #f8fafb;
  outline: 0;
}

.ledger-year summary span,
.ledger-year summary strong,
.ledger-year summary small,
.ledger-year summary b {
  display: block;
}

.ledger-year summary strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.ledger-year summary small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-year-title small {
  margin-top: 3px;
  margin-bottom: 0;
  text-transform: none;
}

.ledger-year .owner-table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.annual-charges {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.annual-charge-list {
  display: grid;
  gap: 10px;
}

.annual-charge-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.annual-charge-item summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(150px, 0.42fr)) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.annual-charge-item summary::-webkit-details-marker {
  display: none;
}

.annual-charge-item summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}

.annual-charge-item[open] summary::after {
  content: "-";
}

.annual-charge-item summary:hover,
.annual-charge-item summary:focus-visible {
  background: #f8fafb;
  outline: 0;
}

.annual-charge-item summary span,
.annual-charge-item summary strong,
.annual-charge-item summary small,
.annual-charge-item summary b {
  display: block;
}

.annual-charge-item summary strong {
  color: var(--ink);
  font-size: 1.14rem;
}

.annual-charge-item summary small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.annual-charge-title small {
  margin-top: 3px;
  margin-bottom: 0;
  text-transform: none;
}

.annual-charge-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.annual-charge-actions {
  display: flex;
  justify-content: flex-end;
}

.annual-charge-table {
  min-width: 760px;
}

.annual-charge-table td strong,
.annual-charge-table td small {
  display: block;
}

.annual-charge-table td small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.muted-money,
.empty-table-cell,
.document-status {
  color: var(--muted);
}

.empty-table-cell {
  text-align: center;
}

.type-pill {
  display: inline-flex;
  min-width: 92px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f4f7;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.type-pill.payment {
  background: #e9f7f5;
  color: var(--accent-strong);
}

.type-pill.charge {
  background: #f7eee9;
  color: #8d3f22;
}

.type-pill.settlement {
  background: #edf0f7;
  color: #46506a;
}

.table-doc-link {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(22, 123, 118, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.table-doc-link:hover,
.table-doc-link:focus-visible {
  border-color: rgba(22, 123, 118, 0.52);
  background: #e9f7f5;
  outline: 3px solid rgba(52, 177, 170, 0.18);
}

.owner-document-open {
  overflow: hidden;
}

.owner-document-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: stretch;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(15, 20, 28, 0.64);
}

.owner-document-modal {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #eef3f3;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.owner-document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.owner-document-toolbar span,
.owner-document-toolbar strong {
  display: block;
}

.owner-document-toolbar span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-document-toolbar strong {
  color: var(--ink);
}

.owner-document-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-document-body {
  min-width: 0;
  overflow: auto;
  padding: 18px;
  color: #152229;
  font-size: 12px;
  line-height: 1.45;
}

.owner-document-body .page {
  width: min(210mm, 100%);
  min-height: 297mm;
  margin: 0 auto 16px;
  padding: min(15mm, 5vw) min(16mm, 5vw);
  background: #fff;
  position: relative;
  box-shadow: 0 10px 24px rgba(16, 33, 42, 0.11);
}

.owner-document-body .note-header,
.owner-document-body .identity,
.owner-document-body .amount-band,
.owner-document-body footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.owner-document-body .note-header {
  align-items: flex-start;
  border-bottom: 2px solid #17313a;
  padding-bottom: 13px;
}

.owner-document-body .overline {
  margin: 0 0 4px;
  color: #53666f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-document-body h1 {
  margin: 0;
  color: #10202a;
  font-size: 27px;
  line-height: 1.08;
}

.owner-document-body h2 {
  margin: 0 0 8px;
  color: #10202a;
  font-size: 15px;
}

.owner-document-body .subtle {
  color: #5d6e76;
  margin: 4px 0 0;
}

.owner-document-body .period-mark {
  min-width: 132px;
  text-align: right;
  color: #17313a;
  border-top: 2px solid #8aa59f;
  padding-top: 6px;
}

.owner-document-body .period-mark strong,
.owner-document-body .label,
.owner-document-body .identity strong,
.owner-document-body .identity small,
.owner-document-body .amount-band strong {
  display: block;
}

.owner-document-body .period-mark strong {
  font-size: 12px;
}

.owner-document-body .community-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  padding: 10px 0;
  border-bottom: 1px solid #d7dfdf;
  color: #40525a;
}

.owner-document-body .identity {
  padding: 18px 0 14px;
  border-bottom: 1px solid #d7dfdf;
}

.owner-document-body .identity div {
  flex: 1;
  min-width: 0;
}

.owner-document-body .label {
  margin-bottom: 3px;
  color: #687a82;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-document-body .identity strong,
.owner-document-body .amount-band strong {
  color: #152229;
  font-size: 15px;
  word-break: break-word;
}

.owner-document-body .identity .account-number {
  font-size: 13px;
  line-height: 1.35;
}

.owner-document-body .identity small {
  margin-top: 3px;
  color: #61727a;
  word-break: break-word;
}

.owner-document-body .amount-band {
  align-items: flex-end;
  margin: 18px 0;
  padding: 15px 0;
  border-top: 3px solid #17313a;
  border-bottom: 1px solid #d7dfdf;
}

.owner-document-body .amount-band div:first-child strong {
  color: #17313a;
  font-size: 35px;
  line-height: 1;
}

.owner-document-body .amount-band div:not(:first-child) strong {
  color: #1f5d57;
  font-size: 20px;
}

.owner-document-body .section {
  margin-top: 18px;
  padding: 0;
}

.owner-document-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.owner-document-body th,
.owner-document-body td {
  padding: 8px 7px;
  border-bottom: 1px solid #e1e7e7;
  vertical-align: top;
  word-break: break-word;
}

.owner-document-body th {
  color: #52646c;
  border-bottom-color: #aebcbd;
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
}

.owner-document-body td:nth-last-child(-n+2),
.owner-document-body th:nth-last-child(-n+2) {
  text-align: right;
}

.owner-document-body .group-row td {
  padding-top: 9px;
  background: #eef3f2;
  border-top: 1px solid #bac8c8;
  color: #17313a;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.owner-document-body .basis-box {
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid #d7dfdf;
  border-bottom: 1px solid #d7dfdf;
}

.owner-document-body .basis-box ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.owner-document-body .basis-box li {
  margin-bottom: 4px;
}

.owner-document-body footer {
  position: absolute;
  left: min(16mm, 5vw);
  right: min(16mm, 5vw);
  bottom: 9mm;
  padding-top: 6px;
  border-top: 1px solid #e0e6e6;
  color: #728087;
  font-size: 10px;
}

.money {
  white-space: nowrap;
  font-weight: 900;
  text-align: right;
}

.debit {
  color: #8d3f22;
}

.credit {
  color: var(--accent-strong);
}

.open-items,
.profile-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.open-items article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.open-items strong,
.open-items span {
  display: block;
}

.local-detail {
  padding-top: 8px;
}

.local-detail-head {
  align-items: flex-end;
}

.local-detail-head .eyebrow {
  margin-bottom: 7px;
}

.local-land-register {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.local-land-register span {
  min-width: 30px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.local-land-register strong {
  color: #3f4350;
  font-weight: 900;
}

.local-delegated-owner {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.local-delegated-owner strong {
  color: #3f4350;
}

.local-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.local-detail-metrics article {
  min-height: 112px;
  padding: 18px;
}

.local-detail-metrics strong {
  display: block;
  margin: 8px 0 5px;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
}

.metric-inline-link {
  width: fit-content;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.metric-inline-link:hover,
.metric-inline-link:focus-visible {
  color: var(--ink);
  outline: 3px solid rgba(52, 177, 170, 0.18);
  outline-offset: 3px;
}

.arrears-explanation-section {
  padding-top: 4px;
}

.arrears-explanation-note {
  display: grid;
  gap: 9px;
  padding: clamp(18px, 3vw, 24px);
}

.arrears-explanation-note h2,
.arrears-explanation-note p {
  margin: 0;
}

.arrears-explanation-note p {
  max-width: 1060px;
  color: #353947;
  line-height: 1.62;
}

.arrears-explanation-note small {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.45;
}

.arrears-simple-section {
  padding-top: 4px;
}

.arrears-simple-total {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin-bottom: 12px;
  padding: clamp(18px, 3vw, 24px);
  background: #fff;
  border: 1px solid rgba(141, 63, 34, 0.2);
  border-left: 5px solid #8d3f22;
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.arrears-simple-total span,
.arrears-simple-total small,
.arrears-simple-item-head span,
.arrears-simple-sublist span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arrears-simple-total strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.arrears-simple-total small {
  text-transform: none;
  letter-spacing: 0;
}

.arrears-simple-list {
  display: grid;
  gap: 12px;
}

.arrears-simple-item {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.arrears-simple-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.arrears-simple-item-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.arrears-simple-item-head b {
  flex: 0 0 auto;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.arrears-simple-copy {
  display: grid;
  gap: 10px;
  max-width: 1120px;
}

.arrears-simple-copy p {
  margin: 0;
  color: #343847;
  font-size: 1rem;
  line-height: 1.65;
}

.arrears-simple-copy strong {
  color: var(--ink);
}

.arrears-simple-copy strong.credit {
  color: var(--accent-strong);
}

.arrears-simple-sublist {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arrears-simple-sublist ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.arrears-simple-sublist li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid rgba(141, 63, 34, 0.18);
  border-radius: 999px;
}

.arrears-simple-sublist strong,
.arrears-simple-sublist b {
  font-size: 0.9rem;
}

.arrears-simple-sublist b {
  color: #8d3f22;
}

.arrears-technical-details {
  padding-top: 4px;
}

.arrears-technical-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
  cursor: pointer;
}

.arrears-technical-details > summary::-webkit-details-marker {
  display: none;
}

.arrears-technical-details > summary span,
.arrears-technical-details > summary small {
  display: block;
}

.arrears-technical-details > summary span {
  color: var(--ink);
  font-weight: 900;
}

.arrears-technical-details > summary small {
  color: var(--muted);
  line-height: 1.35;
}

.arrears-technical-details > summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
}

.arrears-technical-details[open] > summary::after {
  content: "-";
}

.arrears-technical-body {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.arrears-origin-section {
  padding-top: 4px;
}

.arrears-origin-list {
  display: grid;
  gap: 10px;
}

.arrears-origin-list article {
  display: grid;
  gap: 13px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.arrears-origin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.arrears-origin-head span,
.arrears-origin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arrears-origin-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.arrears-origin-head b {
  flex: 0 0 auto;
  font-size: 1.18rem;
}

.arrears-origin-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arrears-origin-details p {
  min-width: 140px;
  margin: 0;
  padding: 9px 11px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arrears-origin-details strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.arrears-origin-story {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.arrears-origin-story h4,
.arrears-origin-story p,
.arrears-origin-coverage h4,
.arrears-origin-coverage p {
  margin: 0;
}

.arrears-origin-story h4,
.arrears-origin-coverage h4 {
  color: var(--ink);
  font-size: 0.95rem;
}

.arrears-origin-story p {
  color: #454957;
  line-height: 1.55;
}

.arrears-origin-diagnosis {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arrears-origin-diagnosis h4,
.arrears-origin-diagnosis p,
.arrears-origin-period-payments h4 {
  margin: 0;
}

.arrears-origin-diagnosis h4,
.arrears-origin-period-payments h4 {
  color: var(--ink);
  font-size: 0.95rem;
}

.arrears-origin-diagnosis > p {
  max-width: 1080px;
  color: #353947;
  line-height: 1.58;
}

.arrears-origin-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.arrears-origin-diagnosis-grid p {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arrears-origin-diagnosis-grid span,
.arrears-origin-period-payments span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arrears-origin-diagnosis-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.98rem;
}

.arrears-origin-diagnosis-grid strong.credit {
  color: var(--accent-strong);
}

.arrears-origin-diagnosis-grid strong.debit {
  color: #8d3f22;
}

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

.arrears-origin-metrics p {
  margin: 0;
  padding: 10px 12px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arrears-origin-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
}

.arrears-origin-note {
  margin: 0;
  color: #454957;
  line-height: 1.48;
}

.arrears-origin-coverage {
  display: grid;
  gap: 9px;
}

.arrears-origin-period-payments {
  display: grid;
  gap: 9px;
}

.arrears-origin-period-payments ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.arrears-origin-period-payments li {
  padding: 10px 12px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arrears-origin-period-payments strong,
.arrears-origin-period-payments small {
  display: block;
}

.arrears-origin-period-payments strong {
  margin-top: 4px;
}

.arrears-origin-period-payments small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.arrears-origin-payment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.arrears-origin-payment-list li {
  padding: 10px 12px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arrears-origin-payment-list span,
.arrears-origin-payment-list strong,
.arrears-origin-payment-list small {
  display: block;
}

.arrears-origin-payment-list span,
.arrears-origin-payment-list small,
.arrears-origin-muted,
.arrears-origin-adjustment {
  color: var(--muted);
}

.arrears-origin-payment-list span {
  font-size: 0.78rem;
  font-weight: 900;
}

.arrears-origin-payment-list strong {
  margin-top: 4px;
}

.arrears-origin-payment-list small {
  margin-top: 3px;
}

.arrears-origin-adjustment,
.arrears-origin-muted {
  font-size: 0.9rem;
  line-height: 1.45;
}

.arrears-origin-adjustment strong {
  color: var(--ink);
}

.arrears-origin-credit-list li {
  background: #f4fbfa;
  border-color: rgba(22, 123, 118, 0.22);
}

.arrears-table-section {
  padding-top: 4px;
}

.arrears-coverage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.arrears-coverage-summary article {
  min-height: 94px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.arrears-coverage-summary span,
.arrears-coverage-summary small {
  display: block;
  color: var(--muted);
}

.arrears-coverage-summary span {
  margin-bottom: 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arrears-coverage-summary strong {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.arrears-coverage-summary small {
  font-size: 0.82rem;
}

.arrears-table {
  min-width: 980px;
}

.arrears-table td strong,
.arrears-table td small,
.arrears-table td span {
  display: block;
}

.arrears-table td small {
  max-width: 620px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.future-ledger {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.future-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.future-ledger-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.future-ledger-head p {
  margin: 0;
  color: var(--muted);
}

.resolutions-section {
  padding-top: 8px;
}

.resolution-list {
  display: grid;
  gap: 10px;
}

.resolution-year-list {
  display: grid;
  gap: 12px;
}

.resolution-year {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 35, 50, 0.08);
}

.resolution-year > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.resolution-year > summary::-webkit-details-marker {
  display: none;
}

.resolution-year > summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}

.resolution-year[open] > summary::after {
  content: "-";
}

.resolution-year > summary:hover,
.resolution-year > summary:focus-visible {
  background: #f8fafb;
  outline: 0;
}

.resolution-year-title strong,
.resolution-year-title small {
  display: block;
}

.resolution-year-title strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.resolution-year-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resolution-year > .resolution-list {
  padding: 0 12px 12px;
}

.resolution-item {
  overflow: hidden;
}

.resolution-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.resolution-item summary::-webkit-details-marker {
  display: none;
}

.resolution-item summary:hover,
.resolution-item summary:focus-visible {
  background: #f8fafb;
  outline: 0;
}

.resolution-item summary strong,
.resolution-item summary small {
  display: block;
}

.resolution-summary-subject {
  display: block;
  margin-top: 5px;
  color: #343948;
  font-size: 0.94rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.resolution-item summary small {
  margin-top: 3px;
  color: var(--muted);
}

.resolution-item summary b {
  color: var(--accent-strong);
  font-size: 0.72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.resolution-item > div {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.resolution-subject {
  margin: 16px 0 14px;
  color: var(--ink);
  font-weight: 800;
}

.resolution-document {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  background: #fbfbfd;
  border: 1px solid rgba(30, 30, 44, 0.08);
  border-radius: 8px;
  color: #454957;
}

.resolution-document h3,
.resolution-document h4,
.resolution-document p,
.resolution-document ol {
  margin: 0;
}

.resolution-doc-title {
  color: var(--ink);
  font-size: 1.28rem;
  text-align: center;
}

.resolution-attachment-title {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.02rem;
}

.resolution-section-number {
  justify-self: center;
  width: fit-content;
  min-width: 44px;
  margin-top: 4px;
  padding: 5px 10px;
  background: #eef4f4;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.resolution-doc-meta,
.resolution-doc-center {
  text-align: center;
}

.resolution-doc-meta {
  color: var(--muted);
  font-weight: 800;
}

.resolution-doc-center {
  color: var(--ink);
  font-weight: 800;
}

.resolution-case {
  padding: 12px 14px;
  background: #fff;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.resolution-paragraph {
  max-width: 1080px;
  line-height: 1.68;
}

.resolution-vote-intro {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

.resolution-vote-line {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resolution-list-numbered {
  padding-left: 22px;
}

.resolution-list-numbered li + li {
  margin-top: 6px;
}

.resolution-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resolution-doc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.resolution-doc-table th,
.resolution-doc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.resolution-doc-table th {
  background: #f5f7f8;
  color: var(--ink);
  font-weight: 900;
}

.resolution-doc-table tr:last-child td {
  border-bottom: 0;
}

.profile-option {
  display: grid;
  gap: 7px;
  padding: 20px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-option:hover,
.profile-option:focus-visible {
  border-color: rgba(22, 123, 118, 0.42);
  outline: 3px solid rgba(52, 177, 170, 0.18);
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.owner-shell {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 64px) 72px;
}

.owner-hero {
  max-width: 820px;
  min-width: 0;
  margin-bottom: 28px;
}

.owner-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.owner-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  gap: 14px;
}

.owner-grid h2 {
  font-size: 1.18rem;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(30, 30, 44, 0.08);
  color: var(--ink);
}

@media (max-width: 920px) {
  section[id] {
    scroll-margin-top: 230px;
  }

  #localSettlement {
    scroll-margin-top: 230px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid,
  .owner-grid,
  .split-section,
  .contact-section,
  .owner-login,
  .owner-summary,
  .arrears-summary-grid,
  .open-items,
  .profile-choice,
  .local-detail-metrics {
    grid-template-columns: 1fr;
  }

  .ledger-year summary,
  .annual-charge-item summary {
    grid-template-columns: 1fr auto;
  }

  .ledger-year summary span:not(.ledger-year-title),
  .annual-charge-item summary span:not(.annual-charge-title) {
    grid-column: 1 / -1;
  }

  .ledger-year summary::after,
  .annual-charge-item summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .owner-document-toolbar,
  .owner-document-body .note-header,
  .owner-document-body .identity,
  .owner-document-body .amount-band,
  .owner-document-body footer {
    flex-direction: column;
    align-items: stretch;
  }

  .owner-document-body .period-mark {
    text-align: left;
  }

  .owner-document-body footer {
    position: static;
    margin-top: 24px;
  }

  .assurance-list p,
  .contact-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  section[id] {
    scroll-margin-top: 320px;
  }

  #localSettlement {
    scroll-margin-top: 320px;
  }

  .site-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-content {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .site-nav {
    max-width: calc(100vw - 48px);
  }

  .site-nav,
  .site-nav a,
  .site-nav button,
  .primary-action,
  .secondary-action,
  .password-row {
    width: 100%;
  }

  .site-nav a,
  .site-nav button,
  .primary-action,
  .secondary-action {
    justify-content: center;
  }

  h1 {
    font-size: 2.14rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 1rem;
  }

  .section,
  .owner-shell,
  .owner-app {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section > *,
  .owner-shell > *,
  .owner-app > *,
  .service-grid,
  .owner-grid,
  .assurance-list,
  .contact-panel {
    max-width: 100%;
  }

  .dashboard-head,
  .dashboard-actions,
  .open-items article,
  .proxy-list article,
  .resolution-item summary,
  .future-ledger-head {
    flex-direction: column;
    align-items: stretch;
  }

  .proxy-list article,
  .resolution-item summary {
    grid-template-columns: 1fr;
  }

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

@media print {
  body.owner-document-open > :not(.owner-document-overlay) {
    display: none !important;
  }

  .owner-document-overlay {
    position: static;
    display: block;
    padding: 0;
    background: #fff;
  }

  .owner-document-modal {
    display: block;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .owner-document-toolbar {
    display: none;
  }

  .owner-document-body {
    overflow: visible;
    padding: 0;
  }

  .owner-document-body .page {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
}
