:root {
  --ink: #203431;
  --muted: #7a8782;
  --green: #286b55;
  --lime: #d9eab7;
  --bg: #f5f6f2;
  --line: #e2e7e0;
  --white: #fff;
  --dark: #172c28;
  --red: #b74f42;
  --shadow: 0 12px 42px #182b2812;
}

.utilities-panel .section-head {
  align-items: center;
}
.utility-uploaded {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
#utility-bill-form .utility-bill-payer {
  margin: 0 0 20px;
}
.utility-upload-item,
.recurring-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.utility-upload-item a {
  color: var(--green);
  overflow-wrap: anywhere;
}
.recurring-list {
  border-bottom: 1px solid var(--line);
}
.recurring-item > div:first-child {
  min-width: 0;
}
.recurring-item .sub {
  margin-top: 4px;
}
.calculator-panel {
  max-width: 980px;
}
.calculator-scenario-fields {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.calculator-scenario-fields h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.calculator-scenario-fields > .sub {
  margin: 0 0 16px;
}
.calculator-save-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.calculator-save-row .btn {
  width: auto;
}
.calculator-save-row small {
  color: var(--muted);
}
.calculator-saved-panel {
  max-width: 980px;
  margin-top: 20px;
}
.calculator-saved-panel .panel-head {
  align-items: flex-start;
}
.calculator-scenario-count {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #edf4e9;
  color: var(--green);
  font-weight: 700;
}

.email-verification-banner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #dce7d8;
  border-radius: 12px;
  background: #f1f6ed;
}
.email-verification-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #e2eedc;
  color: var(--green);
}
.email-verification-mark .icon svg {
  width: 20px;
  height: 20px;
}
.email-verification-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.email-verification-copy .eyebrow {
  color: var(--green);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.email-verification-copy strong {
  color: var(--ink);
  font-size: 16px;
}
.email-verification-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.email-verification-copy em {
  color: #52665e;
  font-size: 12px;
  font-style: normal;
}
.email-verification-banner > .btn {
  width: auto;
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .email-verification-banner {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }
  .email-verification-mark {
    width: 38px;
    height: 38px;
  }
  .email-verification-banner > .btn {
    grid-column: 2;
    width: fit-content;
  }
}
.calculator-empty {
  margin: 0;
  padding: 18px;
  border-radius: 10px;
  background: #f8faf6;
}
.calculator-scenario-list {
  display: grid;
  gap: 12px;
}
.calculator-scenario {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.calculator-scenario-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.calculator-scenario-head h3 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.calculator-scenario-head a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--green);
  font-size: 13px;
  text-decoration: none;
}
.calculator-scenario-head a:hover {
  text-decoration: underline;
}
.calculator-scenario-head time {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}
.calculator-scenario-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.calculator-scenario-inputs {
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.calculator-scenario-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.calculator-scenario-metrics > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.calculator-scenario-metrics span {
  color: var(--muted);
  font-size: 12px;
}
.calculator-scenario-metrics strong {
  font-variant-numeric: tabular-nums;
}
.calculator-results {
  margin: 24px 0 12px;
  padding: 20px;
  border: 1px solid #dce7dc;
  border-radius: 10px;
  background: #f8faf6;
}
.calculator-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.calculator-result-grid > div {
  display: grid;
  gap: 6px;
}
.calculator-result-grid span {
  color: var(--muted);
  font-size: 12px;
}
.calculator-result-grid strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.calculator-result-grid .calculator-payback {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calculator-payback strong {
  color: var(--green);
  font-size: 28px;
}
@media (max-width: 600px) {
  .utility-upload-item,
  .recurring-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .calculator-result-grid {
    gap: 15px;
  }
  .calculator-result-grid strong {
    font-size: 18px;
  }
  .calculator-scenario-metrics {
    grid-template-columns: 1fr;
  }
  .calculator-scenario-head {
    flex-direction: column;
    gap: 8px;
  }
  .calculator-scenario-actions {
    width: 100%;
    justify-content: space-between;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #9eba73;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b2d39d;
  border-color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--dark);
  color: #dae3dc;
  padding: 36px 22px 24px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1.4px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 56px;
  color: #fafbf7;
}
.logo {
  height: 29px;
  width: 29px;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  color: #859d93;
  margin: 0 16px 14px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 14px 15px;
  color: #aebfb6;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
}
.nav button.active {
  background: #2c433b;
  color: #ebf3da;
}
.nav button:hover {
  background: #253e35;
}
.nav .count {
  margin-left: auto;
  background: #42604c;
  color: #dcecbd;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.side-note {
  padding: 20px 16px;
  border: 1px solid #395044;
  border-radius: 10px;
  margin-bottom: 24px;
}
.side-note span {
  color: #c8dba9;
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}
.side-note p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: #8fa99a;
}
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
}
.avatar {
  background: #d9e8ba;
  color: #253b29;
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 11px;
  color: #86a091;
  margin-top: 4px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  background: #fbfcf8;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  color: var(--ink);
  position: relative;
}
.icon-btn svg,
.icon svg {
  width: 17px;
  height: 17px;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-dot {
  position: absolute;
  right: 5px;
  top: 5px;
  background: #ce9752;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid white;
}
.content {
  padding: 35px 44px 50px;
  max-width: 1570px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.1px;
  line-height: 1.18;
  margin: 0 0 11px;
  font-weight: 550;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin: 0;
}
h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
.sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover {
  background: #eef2e9;
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.primary:hover {
  background: #205b48;
}
.btn.soft {
  background: #eef4e7;
  border-color: #dde8d0;
  color: #44673d;
}
.btn.danger {
  color: var(--red);
}
.btn.danger-fill {
  color: white;
  background: var(--red);
  border-color: var(--red);
}
.btn.danger-fill:hover {
  background: #9f3434;
}
.btn.link {
  border: 0;
  background: transparent;
  padding: 6px;
  color: var(--green);
}
.btn.small {
  padding: 7px 10px;
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 128px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.stat.highlight {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.3;
}
.highlight .stat-label {
  color: #a6bba8;
}
.stat-value {
  font-size: clamp(26px, 2.25vw, 31px);
  font-weight: 650;
  letter-spacing: -1.1px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.highlight .stat-value {
  color: var(--lime);
}
.stat-value .currency {
  font-size: 17px;
  margin-left: 3px;
}
.stat-foot {
  font-size: 11px;
  margin-top: 13px;
  color: var(--muted);
}
.stat-lines {
  display: grid;
  gap: 6px;
  line-height: 1.35;
}
.stat-foot strong {
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
}
.stat-payback {
  display: grid;
  gap: 8px;
}
.stat-progress {
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  background: #edf1e7;
}
.stat-progress > div {
  height: 100%;
  border-radius: inherit;
  background: #87aa68;
}
.stat-payback-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.stat-payback-label span:last-child {
  text-align: right;
}
.stat-focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.stat-focus > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.stat-focus strong {
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-focus span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}
.stat-key {
  font-weight: 600;
  color: var(--dark);
}
.stat-foot.positive {
  color: var(--green);
}
.highlight .stat-foot {
  color: #c2d69f;
}
.highlight .stat-foot strong,
.highlight .stat-focus strong {
  color: #f1f6e7;
}
.highlight .stat-note,
.highlight .stat-focus span {
  color: #a6bba8;
}
.highlight .stat-focus {
  border-color: #41534a;
}
.highlight .stat-key {
  color: #eef5df;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.muted-count {
  color: var(--muted);
  font-size: 12px;
}
.filters-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
}
.chip.active {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.property-card,
.listing-card {
  background: white;
  border-radius: 11px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.property-card:hover,
.listing-card:hover {
  box-shadow: var(--shadow);
}
.card-image {
  height: 192px;
  width: 100%;
  object-fit: cover;
  background: #e1e8d9;
  display: block;
}
.card-visual {
  position: relative;
}
.status {
  display: inline-flex;
  font-size: 10px;
  border-radius: 4px;
  padding: 5px 8px;
  font-weight: 500;
  background: #e7f1df;
  color: #41634d;
  gap: 5px;
  align-items: center;
}
.status.rented:before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #5c8c57;
}
.status.idle {
  background: #edf0ea;
  color: #737e72;
}
.status.repair {
  background: #f9edd9;
  color: #9c713a;
}
.status.sale {
  background: #e9edf8;
  color: #697ba0;
}
.status.sold {
  background: #e7eee9;
  color: #4c6257;
}
.card-visual > .status {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #fffffff0;
}
.card-image-link {
  display: block;
}
.card-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #fff9;
  border: 0;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
}
.card-body {
  padding: 20px;
}
.card-title {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 7px;
  line-height: 1.3;
  display: block;
}
.card-address {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-finance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 21px 0 18px;
}
.mini-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.mini-value {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.mini-value.green {
  color: var(--green);
}
.card-contract {
  display: grid;
  gap: 4px;
  margin: -4px 0 16px;
  padding: 10px 11px;
  border-radius: 7px;
  background: #f1f5eb;
  color: var(--muted);
  font-size: 10px;
}
.card-contract strong {
  color: var(--green);
  font-weight: 600;
}
.card-contract.warning,
.card-contract.expired {
  background: #fbefeb;
}
.card-contract.warning strong,
.card-contract.expired strong {
  color: var(--red);
}
.card-contract.upcoming {
  background: #eef2f8;
}
.card-contract.upcoming strong {
  color: #5a6e92;
}
.card-contract.none {
  background: #f3f3ef;
}
.card-contract.none strong {
  color: var(--muted);
}
.progress {
  height: 4px;
  border-radius: 4px;
  background: #edf1e7;
  overflow: hidden;
}
.progress div {
  height: 100%;
  background: #87aa68;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin: 7px 0 18px;
}
.card-footer {
  border-top: 1px solid #ecf0e7;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.card-footer button {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 11px;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.neutral {
  color: var(--muted);
}
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.lower-grid .portfolio-rental-panel .yield-chart.compact {
  width: min(100%, 680px);
}
.portfolio-chart-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 23px;
}
.panel-head h3 {
  font-size: 14px;
}
.panel-head .sub {
  font-size: 10px;
  margin-top: 5px;
}
.current-contract-panel {
  margin-top: 18px;
}
.sale-record-panel {
  margin-top: 18px;
  padding: 22px;
}
.sale-record-panel .panel-head {
  margin-bottom: 18px;
}
.sale-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8faf6;
}
.sale-record-grid > div {
  display: grid;
  align-content: start;
  gap: 6px;
}
.sale-record-grid span {
  color: var(--muted);
  font-size: 11px;
}
.sale-record-grid strong {
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.sale-record-result strong {
  color: var(--green);
  font-size: 20px;
}
.sale-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sale-form-grid .field:last-child {
  grid-column: 1 / -1;
}
.sale-form-note {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf6;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.sale-confirm .confirm-icon {
  color: var(--green);
}
.property-card-sold .progress > div {
  background: var(--green);
}
.current-contract-panel .panel-head {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 17px;
  gap: 14px;
}
.contract-countdown {
  flex-shrink: 0;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  border-radius: 5px;
  padding: 7px 10px;
  background: #eaf2e8;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.contract-countdown.warning,
.contract-countdown.expired {
  background: #fbefeb;
  color: var(--red);
}
.contract-countdown.upcoming {
  background: #eef2f8;
  color: #5a6e92;
}
.contract-countdown.none {
  background: #f0f1ec;
  color: var(--muted);
}
.contract-attention {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #eadcbf;
  border-radius: 9px;
  color: #795d32;
  background: #fff9ed;
  font-size: 12px;
  line-height: 1.5;
}
.contract-attention strong {
  color: #60471f;
}
.current-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.current-contract-grid > div {
  display: grid;
  gap: 5px;
}
.current-contract-grid span {
  color: var(--muted);
  font-size: 10px;
}
.current-contract-grid strong {
  font-size: 13px;
  font-weight: 550;
}
.contract-actions,
.contract-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contract-inline-actions {
  margin-top: 8px;
  padding-top: 0;
  border: 0;
}
.contract-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--green);
  font-size: 11px;
}
.contract-pdf-missing {
  margin: 14px 0 0;
  font-size: 10px;
}
.contract-history-list {
  display: grid;
  gap: 10px;
}
.contract-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.contract-history-item h3 {
  margin: 0;
  font-size: 13px;
}
.contract-history-item .sub {
  margin: 6px 0 0;
}
.contract-viewer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 12px;
}
.contract-viewer-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.contract-pdf-frame {
  display: block;
  width: 100%;
  height: min(68dvh, 820px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8f5;
}
.contract-inline-preview {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 10px;
}
.contract-inline-preview[hidden] {
  display: none;
}
.contract-inline-preview .contract-pdf-frame {
  height: min(56dvh, 680px);
  min-height: 340px;
}
.field-error {
  color: var(--red);
  font-size: 11px;
}
.field-error[hidden] {
  display: none;
}
.activity {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #eef1e9;
}
.activity:last-child {
  border: 0;
}
.activity-icon {
  background: #f2f5ec;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  flex-shrink: 0;
  color: #68945d;
}
.activity p {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}
.activity small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed #cedac2;
  border-radius: 10px;
  background: #fbfcf7;
}
.empty .empty-icon {
  color: var(--green);
  width: 50px;
  height: 50px;
  background: #eaf0dd;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.empty h3 {
  margin-bottom: 10px;
}
.empty p {
  max-width: 420px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.portfolio-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcf7;
}
.portfolio-empty-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.portfolio-empty-main .empty-icon {
  flex: 0 0 50px;
  height: 50px;
  color: var(--green);
  background: #eaf0dd;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.portfolio-empty h2 {
  margin: 3px 0 8px;
  font-size: 21px;
}
.portfolio-empty .sub {
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.onboarding-steps {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.onboarding-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
}
.onboarding-steps > div > span {
  color: #819273;
  font-size: 11px;
  font-weight: 700;
  padding-top: 2px;
}
.onboarding-steps p {
  margin: 0;
  font-size: 12px;
}
.onboarding-steps small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.market-valuation-panel .panel-head {
  margin-bottom: 18px;
}
.valuation-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf6;
}
.valuation-current > div {
  display: grid;
  gap: 6px;
}
.valuation-current > div > span {
  color: var(--muted);
  font-size: 12px;
}
.valuation-current strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.valuation-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.valuation-badge.current {
  color: var(--green);
  background: #eaf2e7;
}
.valuation-badge.missing {
  color: #8a6530;
  background: #fff3df;
}
.valuation-badge.stale {
  color: #8a6530;
  background: #fff3df;
}
.valuation-notice {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid #eadcbf;
  border-radius: 9px;
  color: #795d32;
  background: #fff9ed;
  font-size: 12px;
  line-height: 1.5;
}
.valuation-notice strong {
  color: #60471f;
}
.valuation-notice.stale {
  border-color: #eadcbf;
}
.valuation-form {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf9;
}
.valuation-form-grid {
  grid-template-columns: minmax(220px, 360px) minmax(200px, 1fr) auto;
  align-items: end;
  gap: 18px 24px;
}
.valuation-form-grid .field {
  gap: 9px;
}
.valuation-form-grid .field label {
  font-size: 12px;
  font-weight: 550;
}
.valuation-form-grid .field input {
  min-height: 46px;
  font-size: 16px;
}
.valuation-date {
  align-self: stretch;
  justify-content: center;
  padding: 2px 0;
}
.valuation-today {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.valuation-date small {
  max-width: 230px;
}
.valuation-submit {
  display: flex;
  align-items: flex-end;
}
.valuation-submit .btn {
  min-height: 46px;
  min-width: 190px;
  padding-inline: 20px;
}
.valuation-history {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.valuation-history h4 {
  margin: 0;
  font-size: 15px;
}
.valuation-chart-scroll {
  overflow-x: auto;
  margin: 8px 0 18px;
  padding-bottom: 4px;
}
.valuation-chart {
  display: block;
  max-width: none;
}
.valuation-chart-plot {
  fill: #f8faf6;
  stroke: #e8eee5;
}
.valuation-chart-grid {
  stroke: #e1e8df;
  stroke-dasharray: 4 5;
}
.valuation-chart-axis,
.valuation-chart-y-axis {
  stroke: #a8b6a8;
  stroke-width: 1.2;
}
.valuation-chart-tick,
.valuation-chart-period {
  fill: var(--muted);
  font: 11px system-ui, sans-serif;
}
.valuation-chart-area {
  fill: url(#valuation-fill);
}
.valuation-chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.valuation-chart-point {
  fill: #75a864;
  stroke: #fff;
  stroke-width: 3;
  cursor: pointer;
}
.valuation-chart-point:hover,
.valuation-chart-point:focus-visible {
  fill: var(--green);
  stroke: #d9eab7;
  stroke-width: 4;
  outline: none;
}
.valuation-tooltip-change.negative strong {
  color: #f1a49a;
}
.market-valuation-panel .details-section {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .valuation-current {
    align-items: flex-start;
    flex-direction: column;
  }
  .valuation-form {
    padding: 17px;
  }
  .valuation-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .valuation-submit .btn {
    width: 100%;
  }
  .valuation-date {
    padding: 0;
  }
}
.demo-info {
  font-size: 11px;
  padding: 12px 15px;
  border-radius: 7px;
  background: #edf2e6;
  color: #6a795d;
  line-height: 1.6;
  margin-bottom: 23px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.notice {
  font-size: 12px;
  background: #fff6e5;
  border: 1px solid #f0dfbc;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #8c6b36;
}
.search-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.search-toolbar select {
  max-width: 350px;
}
.search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.listing-card .card-finance {
  margin: 15px 0;
}
.listing-card .card-body {
  padding: 18px;
}
.source {
  font-size: 10px;
  background: #ffffffee;
  padding: 5px 8px;
  border-radius: 4px;
  position: absolute;
  top: 12px;
  left: 12px;
}
.favorite {
  position: absolute;
  right: 12px;
  top: 12px;
  background: white;
  border: 0;
  color: #7c8976;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.favorite.active {
  color: #af8845;
  background: #fff9e9;
}
.listing-meta {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 12px;
}
.payback {
  font-size: 11px;
  color: var(--green);
  background: #f0f5e9;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
}
.card-tools {
  display: flex;
  gap: 6px;
  margin-top: 15px;
  align-items: center;
  justify-content: space-between;
}
.card-tools .icon-btn {
  width: 29px;
  height: 29px;
}
.card-tools .tools-right {
  display: flex;
  gap: 6px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
}
.overlay {
  position: fixed;
  inset: 0;
  background: #132a2580;
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  z-index: 20;
}
.drawer {
  width: 650px;
  max-width: 100%;
  height: 100%;
  background: var(--bg);
  box-shadow: -15px 0 60px #142c2629;
  display: flex;
  flex-direction: column;
}
.drawer.wide {
  width: 850px;
}
.drawer-head {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: white;
  flex-shrink: 0;
}
.drawer-body {
  padding: 26px 28px;
  overflow: auto;
  flex: 1;
}
.drawer-footer {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.danger-zone {
  border-color: #ead2d0;
  background: #fffafa;
}
.danger-zone h3 {
  color: var(--red);
}
.confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 80px #142c2633;
}
.confirm-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--red);
  background: #fbebea;
}
.confirm-dialog h2 {
  margin-bottom: 10px;
}
.confirm-dialog p {
  color: var(--muted);
  line-height: 1.55;
}
.notification-confirm::backdrop {
  background: #132a2580;
}
.notification-confirm h2 {
  text-wrap: balance;
}
.notification-confirm p {
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.notification-confirm .confirm-actions {
  flex-wrap: wrap;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.bulk-payment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.bulk-payment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.bulk-payment-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.selected-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}
.selected-periods span {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--green);
  background: #edf4ed;
  font-size: 12px;
}
.form-section {
  margin-bottom: 26px;
}
.form-section h3 {
  font-size: 13px;
  margin-bottom: 16px;
}
.lease-contract {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  background: #fbfcf9;
}
.lease-contract .section-head {
  margin-bottom: 14px;
}
.lease-contract .section-head strong {
  font-size: 13px;
}
.lease-history {
  margin: 0;
  padding-left: 18px;
}
.lease-history li + li {
  margin-top: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 11px;
  color: #65766a;
}
.required {
  color: #8b9d74;
}
.field input,
.field select,
.field textarea,
.search-toolbar select {
  width: 100%;
  border: 1px solid #dce3d6;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 6px;
  min-height: 39px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 75px;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.date-field-control {
  position: relative;
  display: flex;
  align-items: center;
}
.date-field-control .date-text {
  padding-right: 48px;
}
.date-field-control .date-picker-native {
  position: absolute;
  right: 41px;
  top: 50%;
  width: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  height: 1px;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.date-picker-button {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}
.date-picker-button:hover:not(:disabled) {
  background: #f1f4ee;
  color: var(--ink);
}
.date-picker-button:disabled {
  opacity: 0.5;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #586b5a;
  line-height: 1.5;
}
.check input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.details-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 15px;
  margin-bottom: 20px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.details-section .form-grid {
  margin-top: 17px;
}
.form-error {
  background: #fff0eb;
  color: var(--red);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.form-error:empty {
  display: none;
}
.upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.file-drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px dashed #cbd8c7;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.file-drop-zone:hover,
.file-drop-zone.is-dragover {
  border-color: var(--green);
  background: #f2f7ef;
  color: var(--ink);
}
.file-drop-zone:focus-within {
  outline: 2px solid #9bb98e;
  outline-offset: 2px;
}
input.file-drop-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}
.file-drop-copy {
  display: grid;
  gap: 4px;
  pointer-events: none;
}
.file-drop-copy strong {
  color: var(--ink);
  font-size: 12px;
}
.file-drop-copy span {
  font-size: 10px;
}
.upload-item {
  position: relative;
}
.upload-item img {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}
.upload-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  height: 19px;
  width: 19px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.detail-hero {
  height: 245px;
  width: 100%;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 10px;
  background: #dce5d3;
}
.photo-thumbs {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
}
.photo-thumbs button {
  border: 0;
  padding: 0;
  background: none;
}
.photo-thumbs img {
  height: 47px;
  width: 63px;
  object-fit: cover;
  border-radius: 4px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.detail-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.meta-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
  font-size: 12px;
}
.meta-table dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.meta-table dd {
  margin: 0;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
.table th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  background: #f8faf5;
  padding: 13px 11px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 12px 11px;
  border-bottom: 1px solid #edf0e7;
}
.utilities-bills-table td:first-child {
  white-space: nowrap;
}
.utilities-bills-table td:first-child small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
  white-space: normal;
}
.utilities-bills-table .utility-bill-note span {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.utility-note-field textarea {
  min-height: 92px;
  line-height: 1.5;
}
.table-actions {
  display: flex;
  gap: 6px;
}
.table-actions .btn {
  padding: 6px 9px;
}
.table tr:last-child td {
  border: 0;
}
.table .skipped {
  color: #aab3a5;
  text-decoration: line-through;
}
.manual-badge {
  font-size: 9px;
  color: #ae854e;
  background: #fbf2e2;
  padding: 3px 5px;
  border-radius: 3px;
}
.modal-back {
  background: none;
  border: 0;
  font-size: 11px;
  color: var(--green);
  padding: 0;
  margin-bottom: 20px;
}
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notification-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.notification-tools > .sub {
  flex-basis: 100%;
}
.notification-filters {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-bottom: 20px;
}
.notification-filter-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}
.notification-filters .portfolio-owner-filter {
  width: min(100%, 380px);
}
.notification-feed-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.notification-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.notification-empty {
  padding: 20px 0;
}
.notification {
  padding: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.notification.unread {
  border-left: 3px solid var(--green);
}
.notification-row {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.notification-row.unread {
  border-left: 3px solid var(--green);
}
.notification-row > .notification {
  border: 0;
  background: transparent;
}
.notification-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0 17px 12px;
}
.notification-unread-action,
.notification-delete-action {
  border: 0;
  border-radius: 4px;
  padding: 5px 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  text-wrap: pretty;
}
.notification-delete-action {
  margin-left: auto;
  color: var(--red);
}
.notification-unread-action:hover,
.notification-delete-action:hover {
  text-decoration: underline;
}
.notification small {
  color: var(--muted);
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
.activity-link,
.notification-link {
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.activity-link {
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}
.notification-content {
  display: block;
  min-width: 0;
}
.notification-context {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.notification-property {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}
.notification-owner {
  font-size: 11px;
  line-height: 1.5;
  color: var(--green);
}
.notification-message {
  display: block;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  white-space: pre-line;
}
.activity-link .notification-message {
  font-size: 11px;
  line-height: 1.5;
}
.notification-content time {
  font-variant-numeric: tabular-nums;
}
.activity-link:hover .notification-property,
.notification-link:hover .notification-property {
  color: var(--green);
  text-decoration: underline;
}
#toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
  max-width: 380px;
}
.toast {
  background: #253e33;
  color: #f4f8ec;
  border: 1px solid #425846;
  box-shadow: var(--shadow);
  border-radius: 9px;
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.toast.error {
  background: #784e3e;
}
.login {
  max-width: 390px;
  margin: 12vh auto;
  background: white;
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 12px;
}
.login h1 {
  font-size: 28px;
}
.login .field {
  margin: 24px 0 16px;
}
.login .btn {
  width: 100%;
}
.marketing-shell {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}
.marketing-header,
.marketing-shell main,
.marketing-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.marketing-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--line);
}
.marketing-header .brand,
.marketing-footer .brand,
.auth-brand {
  color: var(--ink);
  font-size: 26px;
}
.marketing-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.marketing-header nav a,
.marketing-footer > a:last-child,
.marketing-text-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.marketing-header nav a:hover,
.marketing-footer > a:last-child:hover,
.marketing-text-link:hover {
  color: var(--green);
}
.marketing-header-actions,
.marketing-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.marketing-header-actions .btn {
  width: auto;
}
.marketing-hero {
  min-height: 535px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  padding-block: 64px 76px;
}
.marketing-hero-copy h1 {
  max-width: 670px;
  margin: 18px 0;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.marketing-hero-copy > .sub {
  max-width: 580px;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}
.marketing-hero-actions {
  flex-wrap: wrap;
  margin-top: 30px;
}
.marketing-hero-actions .btn {
  width: auto;
}
.marketing-text-link {
  padding: 12px 4px;
  font-weight: 600;
}
.marketing-note,
.marketing-card-stat small,
.public-calculator-disclaimer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.marketing-note {
  margin: 17px 0 0;
}
.marketing-hero-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.marketing-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.marketing-card-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf4e8;
  color: var(--green);
  font-weight: 700;
}
.marketing-card-logo {
  display: block;
  width: 26px;
  height: 26px;
}
.marketing-card-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.marketing-card-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79a968;
}
.marketing-card-stat {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.marketing-card-stat span {
  color: var(--muted);
  font-size: 13px;
}
.marketing-card-stat strong {
  font-size: 26px;
  line-height: 1.2;
}
.marketing-card-lines {
  display: grid;
  gap: 2px;
  padding-top: 12px;
}
.marketing-card-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  color: var(--ink);
  font-size: 14px;
}
.marketing-card-lines b {
  color: var(--green);
}
.marketing-card-lines .icon,
.marketing-feature-icon .icon {
  width: 18px;
  height: 18px;
}
.marketing-benefits {
  padding: 68px 0 82px;
  border-top: 1px solid var(--line);
}
.marketing-section-title {
  max-width: 680px;
}
.marketing-section-title h2,
.public-calculator-intro h2,
.marketing-final-cta h2 {
  margin: 12px 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.025em;
  line-height: 1.18;
}
.marketing-section-title .sub,
.public-calculator-intro .sub,
.marketing-final-cta .sub {
  font-size: 15px;
  line-height: 1.65;
}
.marketing-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.marketing-benefit-grid article {
  min-height: 200px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.marketing-feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf4e8;
  color: var(--green);
}
.marketing-benefit-grid h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}
.marketing-benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.public-calculator-section {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 50px;
  padding: 44px;
  background: #eef2e9;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.public-calculator-intro h2 {
  font-size: 31px;
}
.public-calculator-intro .sub {
  margin: 0;
}
.public-calculator-card {
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.public-calculator-card .form-grid {
  gap: 16px;
}
.public-calculator-output {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.public-calculator-output .calculator-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.public-calculator-disclaimer {
  margin: 14px 0 0;
}
.marketing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 64px 0;
  padding: 32px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.marketing-final-cta h2 {
  margin-bottom: 6px;
  font-size: 27px;
}
.marketing-final-cta .sub {
  margin: 0;
}
.marketing-final-cta .btn {
  flex: 0 0 auto;
  width: auto;
}
.marketing-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.marketing-footer .brand {
  font-size: 20px;
}
.marketing-footer .logo {
  width: 23px;
  height: 23px;
}
.auth-layout {
  min-height: 100vh;
  padding: 28px;
  background: var(--bg);
}
.auth-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.auth-card {
  width: min(460px, 100%);
  margin: 6vh auto 4vh;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.auth-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.auth-card h1 {
  margin: 10px 0;
  font-size: 30px;
  letter-spacing: -.025em;
}
.auth-card > .sub {
  margin: 0 0 22px;
  line-height: 1.55;
}
.oauth-actions {
  display: grid;
  gap: 10px;
}
.oauth-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.oauth-button:not(:disabled):hover {
  border-color: #b9c9bb;
  background: #fafbf8;
}
.oauth-button:disabled {
  color: #87918c;
  cursor: not-allowed;
}
.oauth-provider-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}
.google-mark {
  color: #4285f4;
}
.yandex-mark {
  color: #e33a30;
}
.oauth-config-hint {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f5f6f2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 11px;
}
.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}
#account-form .field {
  margin-bottom: 16px;
}
#account-form .btn {
  width: 100%;
  margin-top: 5px;
}
.auth-switch,
.auth-privacy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}
.auth-switch a {
  color: var(--green);
  font-weight: 600;
}
.auth-privacy {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.profile-account {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.profile-account small {
  font-size: 10px;
}
.footer-note {
  color: #91a08e;
  font-size: 10px;
  margin: 26px 0 0;
}
.negative {
  color: var(--red) !important;
}
.busy {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--green);
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #d0ddc3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1450px) {
  .card-image {
    height: 225px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding: 30px 14px;
  }
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .topbar {
    padding: 0 25px;
  }
  .content {
    padding: 30px 25px;
  }
  .stats {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 26px;
  }
  .property-grid {
    gap: 14px;
  }
  .card-image {
    height: 165px;
  }
  .card-body {
    padding: 16px;
  }
  .mini-value {
    font-size: 14px;
  }
  .brand {
    font-size: 25px;
  }
  .card-title {
    font-size: 14px;
  }
  .lower-grid {
    gap: 14px;
  }
}
@media (max-width: 930px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .card-image {
    height: 200px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .portfolio-empty {
    grid-template-columns: 1fr;
  }
  .onboarding-steps {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
  }
  .main {
    padding-bottom: 0;
  }
  .sidebar {
    display: none;
  }
  .portfolio-empty {
    grid-template-columns: 1fr;
    padding: 23px 18px;
    gap: 18px;
  }
  .portfolio-empty-main {
    gap: 14px;
  }
  .portfolio-empty h2 {
    font-size: 18px;
  }
  .onboarding-steps {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }
  .topbar {
    height: 61px;
    padding: 0 20px;
  }
  .content {
    padding: 26px 18px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions > .avatar {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-heading .btn {
    padding: 10px;
    font-size: 11px;
  }
  h1 {
    font-size: 27px;
  }
  .property-grid {
    grid-template-columns: 1fr;
  }
  .card-image {
    height: 225px;
  }
  .stat {
    min-height: 115px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stats {
    gap: 10px;
  }
  .drawer-head {
    padding: 20px;
  }
  .drawer-body {
    padding: 22px 18px;
  }
  .drawer-footer {
    padding: 15px 18px;
  }
  .form-grid {
    gap: 12px;
  }
  .field input,
  .field select {
    padding: 11px 9px;
  }
  .detail-actions .btn {
    padding: 9px 11px;
  }
  .search-toolbar {
    flex-wrap: wrap;
  }
  .detail-hero {
    height: 210px;
  }
  .contract-actions {
    align-items: stretch;
  }
  .sale-record-panel {
    padding: 17px;
  }
  .sale-record-grid,
  .sale-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sale-form-grid .field:last-child {
    grid-column: auto;
  }
  .contract-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .contract-history-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .contract-pdf-frame {
    height: 62dvh;
    min-height: 320px;
  }
  #toasts {
    bottom: 82px;
    left: 18px;
    right: 18px;
    max-width: none;
  }
  .table th,
  .table td {
    padding: 12px 9px;
  }
  .utilities-bills-table .utility-bill-note span {
    max-width: 160px;
  }
  .notice {
    font-size: 11px;
  }
}
[hidden] {
  display: none !important;
}
.space-top {
  margin-top: 20px;
}
.modal-open {
  overflow: hidden;
}
.login .field {
  margin-top: 18px;
}
.field .icon {
  height: 15px;
}
.photo-thumbs .icon {
  height: 18px;
}
.geo-field {
  min-width: 0;
}
.geo-control {
  position: relative;
}
.geo-control > input[data-geo-input] {
  padding-right: 64px;
  text-overflow: ellipsis;
}
.geo-toggle,
.geo-clear {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 27px;
  height: 30px;
  background: transparent;
  color: #72846e;
  border: 0;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.geo-clear {
  right: 33px;
}
.geo-toggle:hover,
.geo-clear:hover {
  background: #f0f4e8;
}
.geo-control input:disabled {
  background: #eef1e9;
  color: #9ba795;
}
.geo-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d8e2cf;
  border-radius: 8px;
  box-shadow: 0 9px 28px #1c372a20;
  max-height: 250px;
  overflow: auto;
  padding: 5px;
  z-index: 8;
  overscroll-behavior: contain;
}
.geo-up .geo-list {
  top: auto;
  bottom: calc(100% + 5px);
}
.geo-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 10px 11px;
  background: #fff;
  color: #24392e;
  text-align: left;
  font-size: 12px;
}
.geo-option small {
  font-size: 10px;
  color: #8a977f;
  line-height: 1.35;
}
.geo-option:hover,
.geo-option.geo-active {
  background: #eff4e6;
}
.geo-option[aria-selected="true"] {
  background: #e5eed8;
  color: #356d46;
}
.geo-empty {
  padding: 15px 10px;
  color: #889580;
  font-size: 11px;
}
.address-field {
  min-width: 0;
}
.address-control {
  position: relative;
}
.address-control > input[name="address"] {
  text-overflow: ellipsis;
}
.address-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 9;
  max-height: 250px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #d8e2cf;
  border-radius: 8px;
  background: white;
  box-shadow: 0 9px 28px #1c372a20;
  overscroll-behavior: contain;
}
.address-up .address-list {
  top: auto;
  bottom: calc(100% + 5px);
}
.address-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 5px;
  background: white;
  color: #24392e;
  text-align: left;
  font-size: 12px;
}
.address-option small {
  color: #8a977f;
  font-size: 10px;
  line-height: 1.35;
}
.address-option:hover,
.address-option.address-active {
  background: #eff4e6;
}
.address-empty {
  padding: 15px 10px;
  color: #889580;
  font-size: 11px;
}
.yield-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.yield-chart-head h3 {
  margin: 0;
}
.yield-chart-head .sub {
  margin-bottom: 0;
  max-width: 620px;
}
.yield-chart-switch {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f5;
}
.yield-chart-switch .chip {
  padding: 8px 12px;
  border-radius: 6px;
}
.yield-chart-switch .chip.active {
  border-color: transparent;
  background: white;
  box-shadow: 0 1px 4px #172c2812;
  color: var(--green);
  font-weight: 600;
}
.yield-chart-range {
  margin: 18px 0 10px;
}
.yield-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 11px;
}
.yield-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.yield-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--green);
}
.yield-chart-legend i.net {
  background: #75a864;
}
.yield-chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.yield-chart-pan,
.yield-chart-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.yield-chart-pan .btn,
.yield-chart-zoom .btn {
  min-height: 32px;
  padding: 5px 9px;
}
.yield-chart-pan .btn:disabled,
.yield-chart-zoom .btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.yield-chart-zoom .btn {
  min-width: 32px;
  font-size: 16px;
  line-height: 1;
}
.yield-chart-scroll {
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
  border-radius: 11px;
  scrollbar-color: #cbd7c7 transparent;
}
.yield-chart {
  display: block;
  max-width: none;
}
.yield-chart.compact {
  width: 100%;
  height: auto;
}
.yield-chart-axis {
  stroke: #8e9f91;
  stroke-width: 1.4;
}
.yield-chart-y-axis {
  stroke: #9aa99c;
  stroke-width: 1.2;
}
.yield-chart-grid {
  stroke: #dce5d9;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.yield-chart-plot {
  fill: #f8faf5;
  stroke: #edf1e9;
  stroke-width: 1;
}
.yield-chart-area {
  fill: url(#yield-area-fill);
}
.yield-chart-line {
  stroke: #397d61;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.yield-chart-line.negative {
  stroke: #bd6155;
}
.yield-chart-tick {
  fill: #7b8980;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.yield-chart-point {
  fill: #75a864;
  stroke: white;
  stroke-width: 3;
  cursor: pointer;
  transition: r 120ms ease, fill 120ms ease;
}
.yield-chart-point:hover,
.yield-chart-point:focus-visible {
  fill: var(--green);
  stroke: #d9eab7;
  stroke-width: 4;
}
.yield-chart-point.negative {
  fill: var(--red);
}
.yield-chart-point.zero {
  fill: #98a49d;
}
.rental-yield-tooltip {
  position: fixed;
  z-index: 80;
  width: max-content;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid #3c5b4e;
  border-radius: 10px;
  background: #172c28;
  box-shadow: 0 10px 32px #132a2540;
  color: #f5f7f2;
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
}
.rental-yield-tooltip[hidden] {
  display: none;
}
.rental-yield-tooltip-title {
  display: block;
  margin-bottom: 7px;
  color: #d9eab7;
  font-size: 12px;
}
.rental-yield-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}
.rental-yield-tooltip-row span {
  color: #b6c5bd;
}
.rental-yield-tooltip-row strong {
  text-align: right;
  white-space: nowrap;
}
.rental-yield-tooltip-row.net {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid #3c554a;
  color: #d9eab7;
  font-size: 12px;
}
.yield-chart-period {
  fill: var(--muted);
  font-size: 10px;
}
.yield-data {
  margin-top: 12px;
  font-size: 11px;
}
.yield-data summary {
  width: fit-content;
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
}
.yield-data .table-wrap {
  max-width: 100%;
}
.yield-data .table {
  min-width: 650px;
}
@media (max-width: 680px) {
  .yield-chart-head {
    flex-direction: column;
    gap: 14px;
  }
  .portfolio-chart-tools {
    justify-content: flex-start;
  }
  .yield-chart-switch {
    align-self: stretch;
  }
  .yield-chart-switch .chip {
    flex: 1;
  }
  .yield-chart-controls {
    align-items: start;
    flex-direction: column;
  }
  .yield-chart-pan {
    width: 100%;
    justify-content: space-between;
  }
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-nav {
  display: none;
}
.portfolio-scope-note {
  max-width: 620px;
  margin-top: 8px;
  text-wrap: pretty;
}
.portfolio-context-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.portfolio-context-controls > .sub {
  padding-bottom: 11px;
}
.portfolio-owner-filter {
  display: grid;
  gap: 7px;
  min-width: 240px;
  max-width: 100%;
}
.portfolio-owner-filter label {
  color: var(--muted);
  font-size: 12px;
}
.portfolio-owner-filter select {
  width: 100%;
  min-height: 42px;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}
.workspace-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}
.managed-owner-label {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.managed-owner-label strong {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 480px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.9fr);
  align-items: start;
  gap: 18px;
}
.calendar-panel,
.calendar-agenda {
  padding: 22px;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}
.calendar-toolbar h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  text-transform: capitalize;
  font-size: 18px;
  font-weight: 600;
}
.calendar-today {
  margin-left: 8px;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.calendar-weekdays span {
  padding: 7px 0;
}
.calendar-grid {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.calendar-day {
  min-width: 0;
  min-height: 78px;
  padding: 9px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  transition: background-color 120ms ease;
}
.calendar-day:hover {
  background: #f6f8f4;
}
.calendar-day.empty-day {
  background: #f8f9f6;
}
.calendar-day.selected {
  background: #edf4e9;
  box-shadow: inset 0 0 0 2px var(--green);
}
.calendar-day.today .calendar-day-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--green);
  color: white;
}
.calendar-day-number {
  font-weight: 600;
  font-size: 13px;
}
.calendar-day-markers {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Account delivery preferences, property access and on-demand change history. */
.tools-intro { margin: 20px 0 24px; max-width: 65ch; line-height: 1.65; }
.tools-footnote { margin: 16px 0; line-height: 1.65; max-width: 68ch; }
.tools-error:empty { display: none; }
.tools-error { margin: 12px 0; }
.tools-skeleton { display: grid; gap: 16px; padding: 20px 0; }
.tools-skeleton span { display: block; height: 90px; border-radius: 10px; background: var(--bg, #f4f5ef); }
.tools-notification-settings { margin: 0 0 16px; }
.delivery-channel { margin: 0 0 18px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.delivery-channel-head { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.delivery-channel-head h3 { margin: 0 0 5px; }
.delivery-channel-head .sub { margin: 0; overflow-wrap: anywhere; }
.delivery-channel-head > div { flex: 1; min-width: 0; }
.channel-icon { display: inline-flex; padding: 10px; border-radius: 9px; color: var(--green); background: #edf2e6; }
.channel-state { display: inline-flex; align-items: center; padding: 5px 8px; font-size: 11px; font-weight: 600; border-radius: 6px; color: var(--muted); background: #f2f4ef; flex-shrink: 0; }
.channel-state.connected { color: var(--green); background: #eaf2e8; }
.channel-state.attention { color: #84622d; background: #fff6e5; }
.telegram-connection-notice { display: grid; gap: 12px; margin: 0 0 16px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg, #f4f5ef); }
.telegram-connection-notice h4 { margin: 0; font-size: 14px; font-weight: 600; text-wrap: balance; }
.telegram-connection-notice p { margin: 0; max-width: 60ch; font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.telegram-connection-notice small { color: var(--muted); font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.telegram-connection-notice .btn { justify-self: start; }
.telegram-connection-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.telegram-connection-help { margin: 14px 0 0; max-width: 60ch; line-height: 1.65; }
#telegram-connection-error:empty { display: none; }

.channel-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.5; margin: 0 0 16px; cursor: pointer; }
.channel-toggle input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.channel-toggle:has(input:disabled) { color: var(--muted); cursor: default; }
.delivery-attention { margin: 18px 0; padding: 14px; background: #fff6e5; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.sharing-form-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.sharing-members { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.sharing-members h3 { margin: 0 0 10px; }
.sharing-member, .invitation-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sharing-member > div, .invitation-row > div { display: grid; gap: 6px; min-width: 0; }
.sharing-member strong, .invitation-row strong { font-size: 13px; overflow-wrap: anywhere; }
.sharing-member small, .invitation-row small { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.sharing-member .btn, .invitation-row .btn { flex-shrink: 0; }
.invitation-banner { padding: 24px; border: 1px solid #c5d7bd; background: #fff; border-radius: 12px; margin-bottom: 28px; }
.invitation-banner .section-head { margin: 0; }
.invitation-banner h3 { margin-bottom: 7px; }
.invitation-banner .invitation-row:last-child { border-bottom: 0; padding-bottom: 0; }
.property-access-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 16px 0; overflow-wrap: anywhere; }
.shared-object-label { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--green); font-size: 10px; }
.shared-object-label .icon { width: 14px; height: 14px; }
.annualized-result { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.annualized-result strong { font-variant-numeric: tabular-nums; font-size: 24px; }
.annualized-result small { font-size: 11px; color: var(--muted); line-height: 1.6; }
.history-timeline { margin-top: 6px; }
.history-entry { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.history-entry-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--green); background: #edf2e6; }
.history-entry-icon .icon { width: 16px; height: 16px; }
.history-entry-copy { min-width: 0; }
.history-entry-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.history-entry h3 { font-size: 14px; line-height: 1.5; margin: 0; }
.history-entry p { font-size: 12px; line-height: 1.6; margin: 7px 0 10px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.history-entry > .btn { grid-column: 2; justify-self: start; }
.history-meta { color: var(--muted); font-size: 10px; display: block; margin-top: 9px; line-height: 1.7; overflow-wrap: anywhere; }
.history-undone { font-size: 10px; color: var(--muted); border-radius: 4px; background: #f2f4ef; padding: 3px 6px; }
.history-details { margin: 10px 0; }
.history-details summary { font-size: 11px; cursor: pointer; color: var(--green); padding: 4px 0; }
.history-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; padding: 14px; background: #f8faf6; border-radius: 7px; }
.history-comparison small { font-size: 10px; color: var(--muted); }
.history-comparison p { margin-bottom: 0; }
.history-more { margin-top: 22px; }
.object-more-actions { position: relative; }
.object-more-actions > summary { list-style: none; cursor: pointer; }
.object-more-actions > summary::-webkit-details-marker { display: none; }
.object-more-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; padding: 8px; display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 16px rgb(0 0 0 / .08); }
.object-more-list .btn { border: 0; justify-content: flex-start; font-size: 12px; }
.object-more-list .btn:hover { background: #f2f4ef; }
@media (max-width: 600px) {
  .object-more-list { position: static; min-width: 0; margin-top: 8px; box-shadow: none; }
}
.import-selected-file { display: block; font-size: 12px; margin-top: 10px; overflow-wrap: anywhere; }
.import-errors { padding: 16px; margin: 18px 0; border: 1px solid #ead8cd; background: #fff7f2; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.import-errors ul { margin: 10px 0 0; padding-left: 20px; }
.import-ready { margin: 18px 0; color: var(--green); font-size: 13px; }
@media (max-width: 600px) {
  .sharing-form-grid, .history-comparison { grid-template-columns: minmax(0, 1fr); }
  .sharing-member, .invitation-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .delivery-channel { padding: 17px; }
  .delivery-channel-head { flex-wrap: wrap; }
  .delivery-channel-head .channel-state { margin-left: 52px; }
  .invitation-banner { padding: 18px; }
}
.calendar-day-markers i,
.calendar-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.calendar-day-markers i.contract,
.calendar-legend i.contract {
  background: #ce9752;
}
.calendar-day-markers i.expense,
.calendar-legend i.expense,
.calendar-day-markers i.excluded {
  background: #b96956;
}
.calendar-day-markers i.income,
.calendar-legend i.income {
  background: #7ba967;
}
.calendar-day-markers i.utilities,
.calendar-legend i.utilities {
  background: #4f9d85;
}
.calendar-day-markers i.reminder {
  background: #9b79b2;
}
.calendar-day-count {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.calendar-agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.calendar-agenda-head .eyebrow {
  margin-bottom: 6px;
}
.calendar-agenda-head h2 {
  margin: 0;
  font-size: 19px;
}
.calendar-event-count {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf4e9;
  color: var(--green);
  font-weight: 600;
}
.calendar-event-list {
  display: grid;
  gap: 8px;
}
.calendar-event {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
  color: var(--ink);
}
.calendar-event:hover {
  border-color: #b9c9bd;
  background: #fafbf9;
}
.calendar-event-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #edf4e9;
  color: var(--green);
}
.calendar-event.contract .calendar-event-icon,
.calendar-event.reminder .calendar-event-icon {
  background: #f8f1e6;
  color: #a77838;
}
.calendar-event.expense .calendar-event-icon,
.calendar-event.excluded .calendar-event-icon {
  background: #f9eeeb;
  color: #a75042;
}
.calendar-event.income .calendar-event-icon {
  background: #edf5eb;
  color: #61894f;
}
.calendar-event.utilities .calendar-event-icon {
  background: #eaf4f0;
  color: #327b65;
}
.calendar-event-icon svg {
  width: 16px;
  height: 16px;
}
.calendar-event-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.calendar-event-copy strong {
  font-size: 12px;
}
.calendar-event-copy small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}
.calendar-event > .icon {
  color: var(--green);
}
.calendar-reminder-add {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}
.calendar-day-markers i.custom_reminder,
.calendar-legend i.custom_reminder {
  background: var(--green);
}
.calendar-event.custom_reminder .calendar-event-icon {
  background: #edf4e9;
  color: var(--green);
}
.custom-reminder-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.custom-reminder-time,
.custom-reminder-form input[name="time"] {
  font-variant-numeric: tabular-nums;
}
.custom-reminder-form > .sub {
  margin-bottom: 24px;
  text-wrap: pretty;
}
.custom-reminder-form textarea {
  min-height: 152px;
  line-height: 1.6;
  resize: vertical;
}
.custom-reminder-form .field small {
  line-height: 1.5;
}
.custom-reminder-meta {
  display: grid;
  gap: 20px;
  margin: 24px 0;
  font-variant-numeric: tabular-nums;
}
.custom-reminder-meta dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.custom-reminder-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.custom-reminder-text {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.custom-reminder-view > .sub {
  text-wrap: pretty;
}
.drawer-footer .custom-reminder-delete {
  margin-right: auto;
}
.time-zone-setting { display: grid; gap: 14px; }
.time-zone-setting > strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.time-zone-setting > p { margin: 0; line-height: 1.55; }
.time-zone-setting > .btn { justify-self: start; }
.time-zone-setting [data-time-zone-summary] { display: grid; justify-items: start; gap: 12px; }
.time-zone-setting [data-time-zone-summary] > p { margin: 0; line-height: 1.55; text-wrap: pretty; }
.time-zone-setting [data-time-zone-summary] strong,
.time-zone-setting [data-time-zone-summary] b { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.notification-schedule-form { display: grid; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.notification-schedule-form .field { margin: 0; min-width: 0; }
.notification-schedule-form .field small { line-height: 1.55; text-wrap: pretty; }
.notification-schedule-form .schedule-clock-field > input { max-width: 160px; font-variant-numeric: tabular-nums; }
.notification-schedule-form > .btn { justify-self: start; }
.notification-schedule-form > p { margin: 0; line-height: 1.55; text-wrap: pretty; }
.notification-schedule-form [hidden],
.notification-schedule-form [data-schedule-error]:empty,
.notification-schedule-form [data-schedule-change]:empty { display: none; }
.time-zone-warning { max-width: 230px; white-space: normal; text-align: left; }
.time-zone-warning[hidden] { display: none; }
[data-reminder-zone-status]:not(:empty) { margin: 0 0 24px; }
[data-reminder-zone-status] > .delivery-attention { margin: 0 0 12px; }
.calendar-empty {
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}
.calendar-empty .empty-icon {
  color: #9aa8a1;
}
.calendar-empty p {
  margin: 0;
}
.calendar-footnote {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 1120px) {
  .calendar-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
    gap: 12px;
  }
  .calendar-day {
    min-height: 68px;
    padding: 7px;
  }
}
@media (max-width: 930px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-agenda {
    min-height: 250px;
  }
}
@media (max-width: 680px) {
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
    justify-content: center;
    padding-inline: 9px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }
  .mobile-nav button {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
  }
  .mobile-nav button.active {
    background: #edf4e9;
    color: var(--green);
  }
  .portfolio-context-controls {
    align-items: stretch;
    gap: 10px;
  }
  .portfolio-owner-filter {
    width: 100%;
    min-width: 0;
  }
  .portfolio-context-controls > .sub {
    padding-bottom: 0;
  }
  .workspace-switch {
    width: 100%;
  }
  .workspace-switch .chip {
    flex: 1;
    text-align: center;
  }
  .calendar-panel,
  .calendar-agenda {
    padding: 15px;
  }
  .calendar-toolbar {
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .calendar-toolbar h2 {
    font-size: 16px;
  }
  .calendar-today {
    margin-left: auto;
  }
  .calendar-day {
    min-height: 55px;
    padding: 6px;
    gap: 7px;
  }
  .calendar-day-number {
    font-size: 11px;
  }
  .calendar-day-count {
    right: 4px;
    bottom: 3px;
    font-size: 9px;
  }
  .calendar-legend {
    gap: 9px;
    font-size: 10px;
  }
}
@media (max-width: 850px) {
  .marketing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    gap: 32px;
  }
  .marketing-hero-copy h1 {
    font-size: 44px;
  }
  .public-calculator-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px;
  }
}
@media (max-width: 680px) {
  .marketing-header,
  .marketing-shell main,
  .marketing-footer {
    width: min(100% - 32px, 520px);
  }
  .marketing-header {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }
  .marketing-header .brand {
    font-size: 23px;
  }
  .marketing-header nav {
    display: none;
  }
  .marketing-header-actions {
    margin-left: auto;
    gap: 7px;
  }
  .marketing-header-actions .btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 11px;
  }
  .marketing-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 58px 48px;
  }
  .marketing-hero-copy h1 {
    font-size: clamp(40px, 11vw, 54px);
  }
  .marketing-hero-copy > .sub {
    font-size: 15px;
  }
  .marketing-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .marketing-hero-actions .btn {
    width: 100%;
  }
  .marketing-hero-card {
    padding: 21px;
  }
  .marketing-benefits {
    padding: 46px 0;
  }
  .marketing-benefit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .marketing-benefit-grid article {
    min-height: 0;
    padding: 20px;
  }
  .public-calculator-section {
    gap: 16px;
    padding: 20px 15px;
    border-radius: 13px;
  }
  .public-calculator-intro h2 {
    font-size: 27px;
  }
  .public-calculator-card {
    padding: 16px;
  }
  .public-calculator-output .calculator-result-grid {
    grid-template-columns: 1fr;
  }
  .marketing-final-cta {
    align-items: stretch;
    flex-direction: column;
    margin: 34px 0;
    padding: 23px 19px;
  }
  .marketing-final-cta .btn {
    width: 100%;
  }
  .marketing-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px 0;
  }
  .marketing-footer > span {
    flex: 1 0 100%;
    order: 1;
  }
  .auth-layout {
    padding: 20px 14px;
  }
  .auth-card {
    margin-top: 35px;
    padding: 24px 20px;
  }
}

.repair-panel {
  margin-top: 18px;
}
.repair-panel .panel-head {
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.repair-panel h3,
.repair-expenses-heading h3 {
  text-wrap: balance;
}
.repair-panel .sub,
.repair-form-intro,
.repair-form-note {
  text-wrap: pretty;
}
.repair-deadline {
  display: inline-flex;
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: #f5eee2;
  color: #8d6937;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.repair-deadline.overdue {
  background: #fbefeb;
  color: var(--red);
}
.repair-deadline.none {
  background: #f0f1ec;
  color: var(--muted);
}
.repair-overview {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(0, 1.5fr);
  gap: 22px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.repair-overview > div {
  display: grid;
  align-content: start;
  gap: 7px;
}
.repair-overview span {
  color: var(--muted);
  font-size: 11px;
}
.repair-overview strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.repair-description {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
}
.repair-notice {
  margin-top: 16px;
  line-height: 1.65;
}
.repair-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.repair-history {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.repair-history summary {
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.repair-panel-history .repair-history {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}
.repair-history-entry {
  padding-top: 18px;
}
.repair-history-entry + .repair-history-entry {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.repair-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.repair-history-entry .sub {
  margin-top: 10px;
}
.repair-history-cost {
  display: grid;
  gap: 5px;
  text-align: right;
}
.repair-history-cost > span {
  color: var(--muted);
  font-size: 10px;
}
.repair-cost-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
}
.repair-cost-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}
.repair-cost-list dt {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.repair-cost-list dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card-contract.card-repair {
  background: #f5eee2;
}
.card-contract.card-repair strong {
  color: #8d6937;
}
.card-contract.card-repair.overdue {
  background: #fbefeb;
}
.card-contract.card-repair.overdue strong {
  color: var(--red);
}
.repair-form-intro {
  max-width: 620px;
  margin: 22px 0 26px;
  font-size: 12px;
  line-height: 1.7;
}
.repair-form {
  display: grid;
  gap: 22px;
}
.repair-form [data-repair-error]:empty {
  display: none;
}
.repair-form .field {
  margin: 0;
}
.repair-date-input {
  width: min(100%, 320px);
}
.repair-form textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.repair-form-note {
  padding: 14px 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf6;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.repair-expenses-heading {
  display: grid;
  gap: 7px;
  padding-top: 4px;
}
.repair-expenses-heading h3 {
  font-size: 14px;
}
.repair-expenses-heading .sub {
  font-size: 11px;
}
.repair-no-expenses {
  font-size: 12px;
}
.repair-expense-rows {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.repair-expense-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) 36px;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.repair-expense-row textarea {
  min-height: 82px;
}
.repair-expense-row input {
  font-variant-numeric: tabular-nums;
}
.repair-remove-row {
  margin-top: 24px;
  width: 36px;
  height: 36px;
}
.repair-remove-row:disabled {
  opacity: .35;
}
.repair-expense-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.repair-expense-total strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.calendar-day-markers i.repair,
.calendar-legend i.repair {
  background: #ad8954;
}
.calendar-event.repair .calendar-event-icon {
  background: #f5eee2;
  color: #8d6937;
}
@media (max-width: 600px) {
  .repair-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .repair-overview {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .repair-expense-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 12px;
    padding: 14px;
  }
  .repair-expense-row > .field:first-child {
    grid-column: 1;
  }
  .repair-expense-row > .field:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
    width: min(100%, 220px);
  }
  .repair-remove-row {
    grid-column: 2;
    grid-row: 1;
  }
  .repair-panel-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
