:root {
  color-scheme: light;
  --canvas: #f5f7f6;
  --paper: #fff;
  --ink: #1d312f;
  --muted: #526461;
  --line: #dde5e2;
  --teal: #224b43;
  --teal-soft: #e7f2eb;
  --accent: #963e2b;
  --accent-strong: #73301f;
  --warning: #704316;
  --warning-soft: #fff1d9;
  --error: #8d291f;
  --error-soft: #fceae6;
  --focus: #267269;
  --radius: 16px;
  --small-radius: 9px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.45;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong, label, legend { font-weight: 650; }
h1 { font-size: clamp(2.15rem, 5vw, 3.28rem); line-height: 1.06; letter-spacing: -.052em; }
h2 { font-size: 1.24rem; line-height: 1.25; letter-spacing: -.021em; }
h3 { font-size: 1.08rem; line-height: 1.25; }
p { color: var(--muted); }

.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-layout {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1fr);
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding-block: 4px;
  font-size: 1.06rem;
  font-weight: 720;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  position: relative;
  width: 23px;
  height: 27px;
  padding: 5px;
  border-radius: 4px 4px 5px 5px;
  background: var(--teal);
}
.brand-mark i { width: 100%; height: 1.5px; background: #e8f4ed; border-radius: 2px; }
.brand-mark i:last-child { width: 65%; }
#navigation { display: flex; align-items: center; gap: 4px; }
#navigation a {
  display: block;
  padding: 8px 13px;
  color: var(--muted);
  border-radius: var(--small-radius);
  font-size: .906rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}
#navigation a:hover { background: var(--canvas); color: var(--ink); }
#navigation a[aria-current] { color: var(--teal); background: var(--teal-soft); }
.account {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 9px;
  color: var(--muted);
}
.account > span {
  overflow: hidden;
  max-width: min(15vw, 225px);
  text-overflow: ellipsis;
  font-size: .82rem;
  white-space: nowrap;
}
.main-shell { padding-block: 53px 70px; }
.standalone {
  width: min(100%, 590px);
  margin: clamp(24px, 11vw, 112px) auto 0;
  padding: clamp(26px, 6vw, 52px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 35px rgb(22 46 41 / 5%);
}
.standalone p { margin-block: 14px 21px; max-width: 38ch; }
.standalone p:last-child { margin-bottom: 0; }
.view { animation: appear .18s ease-out; }
@keyframes appear {
  from { opacity: .5; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 26px;
}
.page-head p { margin-top: 11px; }
.period-control { display: grid; gap: 5px; }
.period-control label { font-size: .88rem; }
.period-buttons { display: flex; align-items: center; gap: 5px; }
.period-buttons input { flex: 1; min-width: 132px; }
input:is([type="month"], [type="text"], [type="email"]), select, textarea {
  width: 100%;
  min-height: 43px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c9d6d2;
  border-radius: var(--small-radius);
}
input:hover, select:hover, textarea:hover, .button:hover { border-color: #9aacaa; }
input:disabled, select:disabled { opacity: .62; cursor: not-allowed; }
input::placeholder { color: #647573; }
input:is([type="checkbox"]) { accent-color: var(--teal); width: 17px; height: 17px; flex: 0 0 17px; }
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #c9d6d2;
  border-radius: var(--small-radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.28;
  cursor: pointer;
}
.button:hover { background: #f1f5f3; }
.button[disabled] { opacity: .65; cursor: not-allowed; }
.button[disabled]:hover { background: var(--paper); border-color: #c9d6d2; }
.button-primary, .button-primary[disabled]:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-header, .button-compact { min-height: 35px; padding: 6px 10px; }
.icon-button { width: 42px; padding: 0; font-size: 1.45rem; line-height: 1; }
.text-link { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; font-size: .88rem; font-weight: 650; }
.text-link:hover { color: var(--accent); }
.document-links .text-link { display: block; white-space: nowrap; }
.document-links .text-link + .text-link { margin-top: 5px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.metric {
  min-height: 99px;
  display: grid;
  gap: 3px;
  align-content: center;
  min-width: 0;
  padding: 14px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.metric > span { color: var(--muted); font-size: .89rem; font-weight: 620; }
.metric > strong { font-size: clamp(1.47rem, 3vw, 1.86rem); line-height: 1.18; letter-spacing: -.036em; font-variant-numeric: tabular-nums; }
.metric-money { background: #edf5f0; border-color: #d7e6db; }
.metric-money strong { color: var(--teal); }
.panel {
  margin-bottom: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgb(22 46 41 / 3%);
}
.panel-head, .panel-body, .panel-footer { padding-inline: 21px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 19px 14px; }
.panel-head p { padding-top: 4px; }
.panel-head p, .panel-subsection p { font-size: .9rem; }
.panel-body { padding-block: 8px 18px; }
.panel-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding-block: 13px;
  border-top: 1px solid var(--line);
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: .92rem;
  text-align: left;
}
caption { text-align: left; }
th, td { padding: 13px 10px; vertical-align: middle; }
thead { background: #edf2f0; color: var(--teal); }
th { padding-block: 9px; font-size: .82rem; font-weight: 670; }
tr > :first-child { padding-left: 21px; }
tr > :last-child { padding-right: 21px; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: #f6f9f8; }
tbody td { overflow-wrap: anywhere; }
td:last-child:not(:only-child) { text-align: right; }
.invoice-table th:nth-child(1) { width: 42%; }
.invoice-table th:nth-child(2) { width: 14%; }
.invoice-table th:nth-child(3) { width: 13%; }
.invoice-table th:nth-child(4) { width: 19%; }
.invoice-table th[scope="col"]:last-child { width: 12%; }
.invoice-table td:nth-child(2), .td-money { white-space: nowrap; }
.align-end, .td-money { text-align: right; font-variant-numeric: tabular-nums; }
.td-money { font-weight: 650; }
.row-main { display: block; font-weight: 650; }
.row-secondary, .row-problem { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.row-problem { color: var(--error); }
.text-dim { color: var(--muted); }
.row-empty td { padding-block: 25px; color: var(--muted); text-align: center; }
.status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px 4px;
  border-radius: 7px;
  background: #edf2f1;
  color: #394b48;
  font-size: .81rem;
  font-weight: 650;
  line-height: 1.25;
}
.status-green { color: #1c573d; background: #e1f1e7; }
.status-warn { color: var(--warning); background: var(--warning-soft); }
.status-error { color: var(--error); background: var(--error-soft); }

.notice {
  margin-bottom: 15px;
  padding: 10px 13px;
  border: 1px solid #d4e5da;
  border-radius: var(--small-radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.notice-inline { margin-inline: 21px; }
.notice-warning { color: var(--warning); border-color: #f0dfc0; background: var(--warning-soft); }
.notice-error { color: var(--error); border-color: #f2d5ce; background: var(--error-soft); }
.batch-footer { justify-content: space-between; align-items: center; }
.actions, .mail-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mail-status { font-size: .88rem; color: var(--muted); align-self: center; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #a77726; }
.mail-status.connected .status-dot { background: #437758; }
.gmail-check-feedback { flex-basis: 100%; margin-bottom: 0; }
.electronic-status { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; font-size: .89rem; }
.electronic-status p { margin-top: 1px; }
.electronic-issues { margin-top: 5px; }
.electronic-issues summary { cursor: pointer; color: var(--teal); font-weight: 650; }
.electronic-issues ul { padding-inline-start: 1.15rem; }
.electronic-issues > ul { display: grid; gap: 5px; margin-block: 5px 0; }
.electronic-issues ul ul { color: var(--muted); }
.electronic-mark {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 33px;
  background: #e6edeb;
  border-radius: 9px;
  color: var(--teal);
  font-size: 1.24rem;
  font-weight: 730;
}

.form-grid { display: grid; grid-template-columns: 1fr .9fr 1.55fr; align-items: start; gap: 16px 14px; }
.field { min-width: 0; display: grid; gap: 5px; color: var(--ink); }
fieldset.field { margin: 0; border: 0; padding: 0; }
.field label, .field legend { font-size: .9rem; }
.field legend { margin-bottom: 5px; padding: 0; }
.field small, .label-note { color: var(--muted); font-size: .8rem; font-weight: 400; }
.field-wide { grid-column: 1 / -1; }
.form-grid .notice { margin: 0; }
.input-unit { position: relative; }
.input-unit input { padding-right: 32px; }
.input-unit > span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.choice-grid label {
  display: flex;
  align-items: start;
  gap: 8px;
  min-height: 41px;
  padding: 8px 10px;
  background: #f4f7f6;
  border: 1px solid #e8efec;
  border-radius: var(--small-radius);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.choice-grid input { margin: 2px 0 0; }
.panel-subsection { border-top: 1px solid var(--line); background: #f8faf8; border-radius: 0 0 var(--radius) var(--radius); }
.rate-table td:last-child:not(:only-child) { text-align: inherit; }
.rate-table td:last-child.align-end, .rate-table td:last-child.td-money { text-align: right; }

.field-two { grid-column: span 2; }
.client-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.client-selector .notice { margin-bottom: 0; }
.client-grid, .setup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.client-grid { padding-top: 1px; }
.setup-panel > summary { padding: 17px 21px; font-size: 1.06rem; font-weight: 650; cursor: pointer; }
.setup-panel[open] > summary { border-bottom: 1px solid var(--line); }
.setup-panel .panel-head { padding-bottom: 11px; }
.setup-rate { border-top: 1px solid var(--line); }
.setup-rate .panel-body { padding-top: 17px; }
.setup-grid .field-wide { margin: 0; }
.setup-grid h3 { font-size: 1rem; }
select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 49%, #42635a 50%), linear-gradient(135deg, #42635a 49%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
dialog {
  width: min(480px, calc(100vw - 30px));
  max-height: calc(100dvh - 60px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 65px rgb(12 30 25 / 20%);
}
dialog::backdrop { background: rgb(17 33 31 / 55%); }
.dialog-body { padding: 23px 21px 17px; }
.dialog-body p { padding-top: 6px; }
.confirm-items { padding-left: 20px; margin: 10px 0 0; font-size: .88rem; }
.confirm-items li + li { margin-top: 6px; }
.confirm-items li { overflow-wrap: anywhere; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 21px; border-top: 1px solid var(--line); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 820px) {
  .shell { width: calc(100% - 36px); }
  .header-layout { gap: 12px; }
  .account > span { max-width: min(17vw, 160px); }
  #navigation a { padding-inline: 9px; }
}
@media (max-width: 760px) {
  .header-layout { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-block: 9px; }
  #navigation { grid-row: 2; grid-column: 1 / -1; }
  #navigation a { padding: 6px 8px; }
  #account { grid-column: 2; grid-row: 1; }
  .account > span { max-width: 34vw; }
  .main-shell { padding-block: 30px 44px; }
  .page-head { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .page-head p { margin-top: 7px; }
  .metrics { gap: 6px; margin-bottom: 14px; }
  .metric { padding: 10px; align-content: space-between; min-height: 81px; min-width: 0; border-radius: 10px; }
  .metric > span { font-size: .79rem; line-height: 1.24; }
  .metric > strong { font-size: clamp(1.02rem, 4vw, 1.5rem); overflow-wrap: anywhere; }
  .panel-head, .panel-body, .panel-footer { padding-inline: 12px; }
  .notice-inline { margin-inline: 12px; }
  .panel-head { padding-top: 15px; }
  .batch-footer { flex-direction: column; align-items: flex-start; }
  .actions { width: 100%; }
  .actions .button { flex: 1 1 auto; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  #ipc-form .form-grid > .field:nth-child(3) { grid-column: 1 / -1; }
  .client-selector { grid-template-columns: 1fr; }
  .setup-panel > summary { padding-inline: 12px; }
  table.rate-table { min-width: 520px; }
  .panel-subsection table.rate-table { min-width: 320px; }
  table.rate-table tr > :first-child { padding-left: 12px; }
  table.rate-table tr > :last-child { padding-right: 12px; }
  table.invoice-table, .invoice-table tbody, .invoice-table td { display: block; }
  .invoice-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .invoice-table tbody tr:not(.row-empty) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    padding: 11px 12px;
  }
  .invoice-table tr > td, .invoice-table tr > :first-child, .invoice-table tr > :last-child { padding: 0; }
  .invoice-table tr > td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .invoice-table tr > td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: .83rem; }
  .invoice-table tr > td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .invoice-table tr > td:nth-child(4) { grid-column: 1; grid-row: 3; }
  .invoice-table tr > td:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .invoice-table .row-empty td { padding: 17px 12px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 24px); }
  .brand { gap: 7px; }
  .account > span { display: none; }
  .choice-grid { grid-template-columns: 1fr; }
  #navigation { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
.link-button { border: 0; padding: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.document-links .link-button { margin-left: auto; }
.reconcile-body { display: grid; gap: 12px; }
.reconcile-body p { padding-top: 0; }
.reconcile-body textarea { resize: vertical; }
.reconcile-body .notice { margin-bottom: 0; }
.archive-head { align-items: end; flex-wrap: wrap; }
.archive-year { min-width: 130px; }


.archive-file-field { width: min(100%, 560px); }
.policy-page { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; }
.policy-page h2 { margin-top: 2rem; }
.legal-links { margin-top: 1.5rem; font-size: .875rem; }
.archive-file-field input[type="file"] {
  width: 100%;
  min-height: 43px;
  padding: 6px;
  border: 1px solid #c9d6d2;
  border-radius: var(--small-radius);
  background: var(--paper);
  color: var(--muted);
  font-size: .89rem;
}
.archive-file-field input[type="file"]::file-selector-button {
  margin-right: 7px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.archive-pdf-link { display: block; margin-top: 4px; }
.property-doc-form { border-top: 1px solid var(--line); }
.property-doc-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.property-doc-grid .notice { margin-bottom: 0; }
@media (max-width: 760px) {
  .property-doc-grid { grid-template-columns: minmax(0, 1fr); }
}

