:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #1f2a26;
  background: #f5f7f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #1f2a26;
  --muted: #617069;
  --line: #dfe5dc;
  --panel: #ffffff;
  --panel-soft: #f8faf6;
  --green: #2f6b55;
  --green-soft: #e6f2eb;
  --blue: #2f6680;
  --blue-soft: #e6f0f4;
  --amber: #99661f;
  --amber-soft: #fff3d9;
  --red: #aa453f;
  --red-soft: #fae7e5;
  --shadow: 0 18px 50px rgba(31, 42, 38, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(47, 102, 128, 0.08), transparent 360px),
    #f5f7f3;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-panel {
  width: min(480px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-panel p {
  margin: 0;
  color: var(--muted);
}

.auth-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.landing-shell {
  min-height: 100vh;
  overflow: hidden;
  color: #173128;
  background:
    radial-gradient(circle at 8% 7%, rgba(221, 241, 228, 0.82), transparent 25rem),
    radial-gradient(circle at 91% 21%, rgba(222, 236, 244, 0.78), transparent 27rem),
    #fbfcfa;
}

.landing-shell button,
.landing-shell a {
  -webkit-tap-highlight-color: transparent;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 12px max(28px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(31, 42, 38, 0.08);
  background: rgba(251, 252, 250, 0.88);
  box-shadow: 0 8px 32px rgba(23, 49, 40, 0.04);
  backdrop-filter: blur(18px);
}

.landing-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #173128;
  text-decoration: none;
}

.landing-brand > span:last-child {
  display: grid;
}

.landing-brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.landing-brand small {
  color: #6a7b74;
  font-size: 11px;
  line-height: 1.35;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.landing-nav a,
.landing-text-button {
  padding: 6px 0;
  border: 0;
  color: #53665f;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.landing-nav a:hover,
.landing-text-button:hover {
  color: var(--green);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.landing-header-actions .primary-button {
  min-height: 42px;
  padding-inline: 18px;
}

.landing-hero {
  position: relative;
  width: min(1200px, calc(100% - 56px));
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  margin: 0 auto;
  padding: 74px 0 76px;
}

.landing-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 70px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(47, 107, 85, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(47, 107, 85, 0.025),
    0 0 0 140px rgba(47, 102, 128, 0.018);
  pointer-events: none;
}

.landing-hero-copy,
.landing-auth-card {
  position: relative;
  z-index: 1;
}

.landing-kicker {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #cfe0d5;
  border-radius: 999px;
  color: #2b644f;
  background: rgba(239, 247, 241, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 720px;
  margin: 24px 0 22px;
  color: #142a23;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.2vw, 74px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.landing-hero h1 em {
  color: #2f6b55;
  font-weight: 500;
}

.landing-lead {
  max-width: 680px;
  margin: 0;
  color: #53665f;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.landing-cta,
.landing-auth-submit {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: #245d48;
  box-shadow: 0 12px 28px rgba(36, 93, 72, 0.2);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.landing-cta:hover,
.landing-auth-submit:hover {
  background: #1d503d;
  box-shadow: 0 15px 32px rgba(36, 93, 72, 0.26);
  transform: translateY(-2px);
}

.landing-secondary-cta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid #d4ddd7;
  border-radius: 9px;
  color: #29483d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  text-decoration: none;
}

.landing-secondary-cta:hover {
  border-color: #98b5a7;
  background: #ffffff;
}

.landing-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin: 24px 0 0;
  padding: 0;
  color: #64766f;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.landing-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.landing-benefits svg {
  color: #2f7d5f;
}

.landing-auth-card {
  scroll-margin-top: 110px;
  display: grid;
  gap: 17px;
  padding: 26px;
  border: 1px solid rgba(47, 107, 85, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 26px 80px rgba(28, 58, 47, 0.14),
    0 4px 12px rgba(28, 58, 47, 0.05);
}

.landing-auth-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-card-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #235b46;
  background: #e8f3ec;
}

.landing-auth-heading h2 {
  margin: 3px 0 0;
  color: #18342a;
  font-size: 22px;
  line-height: 1.18;
}

.landing-auth-card > p {
  margin: 0;
  color: #62746c;
  font-size: 14px;
}

.landing-auth-card label {
  color: #40564e;
}

.landing-auth-card input {
  min-height: 44px;
  background: #fbfcfa;
}

.landing-auth-submit {
  width: 100%;
  min-height: 47px;
  margin-top: 2px;
}

.landing-auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #71827b;
  font-size: 11px;
  text-align: center;
}

.landing-proof {
  width: min(1200px, calc(100% - 56px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid #dfe7e1;
  border-bottom: 1px solid #dfe7e1;
}

.landing-proof div {
  display: grid;
  gap: 2px;
  padding: 4px 24px;
  border-right: 1px solid #e1e8e3;
  text-align: center;
}

.landing-proof div:last-child {
  border-right: 0;
}

.landing-proof strong {
  color: #254e3f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
}

.landing-proof span {
  color: #71817a;
  font-size: 11px;
  font-weight: 700;
}

.landing-section {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 112px 0;
  scroll-margin-top: 74px;
}

.landing-section-heading {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.landing-section-heading.compact {
  max-width: 690px;
}

.landing-section-heading .landing-kicker {
  margin-inline: auto;
}

.landing-section-heading h2,
.landing-how h2,
.landing-final-cta h2 {
  margin: 18px 0 14px;
  color: #173128;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.landing-section-heading p,
.landing-how-copy > p {
  margin: 0;
  color: #60726b;
  font-size: 16px;
  line-height: 1.65;
}

.example-section {
  padding-bottom: 74px;
}

.landing-product-preview {
  overflow: hidden;
  border: 1px solid #cedbd3;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(26, 57, 46, 0.16);
}

.preview-browser-bar {
  min-height: 48px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-bottom: 1px solid #dbe4de;
  color: #697a73;
  background: #f5f8f5;
  font-size: 10px;
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5ce;
}

.preview-dots i:first-child {
  background: #e79b92;
}

.preview-dots i:nth-child(2) {
  background: #e7c976;
}

.preview-dots i:nth-child(3) {
  background: #8ec5a5;
}

.preview-address {
  justify-self: center;
  width: min(380px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #e0e7e2;
  border-radius: 6px;
  background: #ffffff;
}

.preview-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.preview-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43a375;
  box-shadow: 0 0 0 3px #dff1e6;
}

.preview-app {
  min-height: 510px;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
}

.preview-sidebar {
  padding: 20px 14px;
  color: #e9f1ec;
  background: #17221d;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 11px;
  line-height: 1.25;
}

.preview-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.preview-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #bac9c0;
  font-size: 10px;
  font-weight: 700;
}

.preview-nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.preview-main {
  min-width: 0;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(47, 102, 128, 0.05), transparent 220px),
    #f6f8f5;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-heading span:not(.preview-avatar),
.preview-card-heading span {
  display: block;
  color: #7b8b84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-heading h3 {
  margin: 2px 0 0;
  color: #1e342c;
  font-size: 20px;
}

.preview-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6b55;
  font-size: 10px;
  font-weight: 800;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.preview-metrics > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(31, 42, 38, 0.045);
}

.preview-metrics span {
  color: #71827b;
  font-size: 9px;
  font-weight: 700;
}

.preview-metrics strong {
  color: #20382f;
  font-size: 19px;
}

.preview-metrics small {
  color: #778780;
  font-size: 8px;
}

.preview-metrics small.positive {
  color: #31805f;
}

.preview-metrics small.warning {
  color: #9b6b22;
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  margin-top: 14px;
}

.preview-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  background: #ffffff;
}

.preview-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-card-heading strong {
  display: block;
  margin-top: 2px;
  color: #263c34;
  font-size: 12px;
}

.preview-card-heading > small {
  color: #788981;
  font-size: 8px;
}

.preview-chart {
  height: 146px;
  display: grid;
  grid-template-columns: repeat(12, minmax(4px, 1fr));
  align-items: end;
  gap: 5px;
  padding: 18px 2px 0;
  border-bottom: 1px solid #e7ece8;
}

.preview-bar {
  height: 70%;
  border-radius: 3px 3px 0 0;
  background: #4b8b72;
}

.preview-bar.expense {
  background: #b7d0d9;
}

.preview-chart .bar-1 {
  height: 63%;
}

.preview-chart .bar-2 {
  height: 36%;
}

.preview-chart .bar-3 {
  height: 73%;
}

.preview-chart .bar-4 {
  height: 45%;
}

.preview-chart .bar-5 {
  height: 68%;
}

.preview-chart .bar-6 {
  height: 39%;
}

.preview-chart .bar-7 {
  height: 79%;
}

.preview-chart .bar-8 {
  height: 49%;
}

.preview-chart .bar-9 {
  height: 76%;
}

.preview-chart .bar-10 {
  height: 42%;
}

.preview-chart .bar-11 {
  height: 88%;
}

.preview-chart .bar-12 {
  height: 46%;
}

.preview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: #75867f;
  font-size: 8px;
}

.preview-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #4b8b72;
}

.preview-legend i.expense {
  background: #b7d0d9;
}

.preview-action-card {
  display: grid;
  align-content: start;
}

.preview-action-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0ed;
}

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

.preview-action-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.preview-action-icon.amber {
  color: #99661f;
  background: #fff3d9;
}

.preview-action-icon.blue {
  color: #2f6680;
  background: #e6f0f4;
}

.preview-action-icon.green {
  color: #2f6b55;
  background: #e6f2eb;
}

.preview-action-row strong,
.preview-action-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.preview-action-row strong {
  color: #30443d;
  font-size: 9px;
}

.preview-action-row small {
  margin-top: 2px;
  color: #7a8983;
  font-size: 7px;
}

.preview-action-row b {
  padding: 4px 6px;
  border-radius: 999px;
  color: #52675e;
  background: #f1f5f2;
  font-size: 7px;
}

.example-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
  color: #778780;
  font-size: 11px;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-feature-grid article {
  min-width: 0;
  padding: 26px;
  border: 1px solid #dfe7e1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.landing-feature-grid article:hover {
  border-color: #b9d0c2;
  box-shadow: 0 18px 45px rgba(35, 75, 60, 0.09);
  transform: translateY(-3px);
}

.landing-feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.landing-feature-icon.green {
  color: #2f6b55;
  background: #e6f2eb;
}

.landing-feature-icon.blue {
  color: #2f6680;
  background: #e6f0f4;
}

.landing-feature-icon.amber {
  color: #99661f;
  background: #fff3d9;
}

.landing-feature-grid h3 {
  margin: 18px 0 8px;
  color: #203a31;
  font-size: 18px;
}

.landing-feature-grid p {
  margin: 0;
  color: #667870;
  font-size: 13px;
  line-height: 1.65;
}

.landing-how {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: center;
}

.landing-how-copy .landing-cta {
  margin-top: 26px;
}

.landing-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid #dfe7e1;
  border-radius: 11px;
  background: #ffffff;
}

.landing-steps li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6b55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.landing-steps strong {
  color: #28463b;
}

.landing-steps p {
  margin: 4px 0 0;
  color: #6c7d76;
  font-size: 13px;
  line-height: 1.55;
}

.landing-final-cta {
  width: min(1100px, calc(100% - 56px));
  display: grid;
  justify-items: center;
  margin: 20px auto 90px;
  padding: 64px 28px;
  border-radius: 20px;
  color: #edf5f0;
  background:
    radial-gradient(circle at 15% 10%, rgba(116, 172, 147, 0.22), transparent 17rem),
    radial-gradient(circle at 86% 90%, rgba(99, 151, 177, 0.2), transparent 20rem),
    #172b23;
  box-shadow: 0 28px 70px rgba(23, 43, 35, 0.2);
  text-align: center;
}

.landing-final-cta h2 {
  margin-top: 22px;
  color: #ffffff;
}

.landing-final-cta p {
  max-width: 600px;
  margin: 0 0 24px;
  color: #c1d0c7;
}

.landing-cta.light {
  color: #1c4f3c;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.landing-cta.light:hover {
  background: #f0f7f2;
}

.landing-footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px max(28px, calc((100vw - 1200px) / 2));
  border-top: 1px solid #dfe7e1;
  background: #f5f8f5;
}

.landing-footer p {
  color: #75847d;
  font-size: 12px;
  text-align: center;
}

.landing-footer .landing-text-button {
  justify-self: end;
}

.auth-error {
  padding: 11px 12px;
  border: 1px solid #e6b8b4;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 13px;
  font-weight: 700;
}

.form-success {
  padding: 11px 12px;
  border: 1px solid #b5dbc5;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #17221d;
  color: #f4f7f2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  font-size: 16px;
}

.brand span:not(.brand-mark) {
  display: block;
  color: #b7c5bd;
  font-size: 13px;
}

.brand-mark,
.metric-icon,
.reminder-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.brand-mark {
  background: #edf6ef;
  color: #245645;
}

.nav-list,
.sidebar-actions,
.stack-list,
.tenant-list,
.maintenance-list,
.room-list,
.property-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item,
.ghost-button,
.primary-button,
.secondary-button,
.icon-button,
.property-tab,
.file-button {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.nav-item {
  justify-content: flex-start;
  color: #d8e2dc;
  background: transparent;
  padding: 10px 12px;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-section {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.mini-metric {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: #d9e2dc;
}

.mini-metric strong {
  color: #ffffff;
}

.sidebar-actions {
  margin-top: auto;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.main {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1,
.panel-header h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

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

.account-button {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ffffff;
  background: #ffffff;
}

.account-button:hover,
.account-button:focus-visible,
.account-button.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 85, 0.12);
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green);
  font-size: 15px;
}

.account-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 220px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.account-button:hover .account-tooltip,
.account-button:focus-visible .account-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.account-tooltip strong,
.account-tooltip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-tooltip span {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.search-box input {
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.full-width {
  grid-column: 1 / -1;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-9 {
  grid-column: span 9;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}

.panel-header {
  margin-bottom: 16px;
}

.panel-header.compact {
  margin-top: 16px;
  margin-bottom: 10px;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-header h2 {
  font-size: 20px;
  line-height: 1.2;
}

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

.metric-card {
  min-height: 124px;
  padding: 16px;
  display: grid;
  gap: 7px;
  align-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card span:not(.metric-icon) {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.metric-icon {
  color: var(--green);
  background: var(--green-soft);
}

.metric-card.good .metric-icon {
  color: var(--green);
  background: var(--green-soft);
}

.metric-card.warn .metric-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.metric-card.cool .metric-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.collection-pulse {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut-chart {
  --value: 0;
  width: 156px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 57%, transparent 58%),
    conic-gradient(var(--green) calc(var(--value) * 1%), #e8eee9 0);
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-chart > div {
  display: grid;
  gap: 2px;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 10px;
  text-align: center;
}

.donut-chart strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.donut-chart span,
.progress-line span,
.performance-row span,
.trend-month span,
.chart-legend,
.series-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.collection-breakdown,
.performance-bars,
.series-bars,
.maintenance-pulse {
  display: grid;
  gap: 12px;
}

.analytics-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.progress-line {
  display: grid;
  gap: 7px;
}

.progress-line > div:first-child,
.series-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.progress-line strong,
.series-row strong {
  font-size: 13px;
  white-space: nowrap;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee9;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.progress-track .warn {
  background: var(--amber);
}

.progress-track .cool {
  background: var(--blue);
}

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

.performance-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1fr) minmax(230px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.performance-row strong,
.performance-row span {
  display: block;
}

.property-money {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.property-money > div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.property-money span {
  font-size: 11px;
}

.property-money strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.trend-chart {
  min-height: 240px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 8px;
}

.trend-month {
  min-width: 0;
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.trend-bars {
  height: 150px;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.trend-bar {
  width: min(28px, 38%);
  border-radius: 999px 999px 3px 3px;
}

.trend-bar.income,
.legend-dot.income {
  background: var(--green);
}

.trend-bar.expense,
.legend-dot.expense {
  background: var(--amber);
}

.trend-month strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.chart-legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.maintenance-pulse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.series-row {
  grid-template-columns: 84px minmax(0, 1fr) 26px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

td strong,
.subtle {
  display: block;
}

.subtle,
.meta-line,
.record-note,
.contact-grid,
.work-meta,
.detail-grid span,
.balance-item small,
.room-header span {
  color: var(--muted);
  font-size: 13px;
}

.table-actions,
.button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions {
  min-width: 84px;
  flex-wrap: nowrap;
}

.ledger-table {
  min-width: 780px;
  table-layout: auto;
}

.tenant-sheet {
  min-width: 1180px;
  table-layout: auto;
}

.tenant-sheet .table-actions {
  min-width: 170px;
}

.link-button {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.link-button:hover {
  color: var(--green);
  text-decoration: underline;
  transform: none;
}

.muted-link {
  color: var(--muted);
}

.primary-button,
.secondary-button,
.ghost-button {
  padding: 9px 13px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  color: #ffffff;
  background: var(--green);
}

.primary-button.muted {
  background: var(--blue);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #ffffff;
}

.secondary-button.selected,
.secondary-button:hover,
.ghost-button:hover,
.primary-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.secondary-button:disabled:hover,
.ghost-button:disabled:hover,
.primary-button:disabled:hover,
.icon-button:disabled:hover {
  transform: none;
}

.secondary-button.selected {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.ghost-button {
  color: #eef6f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ghost-button.compact {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.ghost-button.danger,
.icon-button.danger {
  color: #ffd8d5;
}

.ghost-button.compact.danger {
  color: var(--red);
}

.danger-outline {
  color: var(--red);
  border-color: #e6b8b4;
  background: var(--red-soft);
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 0;
}

.icon-button.danger {
  color: var(--red);
}

.full {
  width: 100%;
  margin-top: 12px;
}

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

.form-grid.single {
  grid-template-columns: 1fr;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 85, 0.14);
}

.wide {
  grid-column: 1 / -1;
}

.form-summary,
.ledger-overview {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.form-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-summary > div {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.form-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.form-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.ledger-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tenant-detail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.tenant-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tenant-identity,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tenant-identity h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.contact-actions a {
  text-decoration: none;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.account-hero strong,
.account-hero span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-hero strong {
  font-size: 22px;
  line-height: 1.15;
}

.account-hero span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--green);
  font-size: 24px;
}

.account-form {
  margin-top: 14px;
}

.form-divider {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.help-hero h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
}

.help-hero p {
  margin: 0;
  color: var(--muted);
}

.tutorial-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tutorial-status-row > span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tutorial-map,
.help-actions,
.tutorial-choice-grid {
  display: grid;
  gap: 10px;
}

.tutorial-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.tutorial-choice-grid article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.tutorial-choice-grid h3,
.tutorial-choice-grid p {
  margin: 0;
}

.tutorial-choice-grid h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.tutorial-choice-grid p {
  color: var(--muted);
  font-size: 13px;
}

.tutorial-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tutorial-map > div {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.tutorial-map strong,
.tutorial-map span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tutorial-map span {
  color: var(--muted);
  font-size: 13px;
}

.help-actions .secondary-button {
  justify-content: flex-start;
}

.tutorial-panel {
  position: fixed;
  z-index: 50;
  width: min(430px, calc(100vw - 24px));
  max-width: 430px;
  pointer-events: none;
}

.tutorial-panel.dock-right {
  top: 18px;
  right: 18px;
}

.tutorial-panel.dock-left {
  top: 18px;
  left: 18px;
}

.tutorial-panel.dock-bottom {
  left: 50%;
  bottom: 14px;
  width: min(720px, calc(100vw - 24px));
  max-width: 720px;
  transform: translateX(-50%);
}

.tutorial-card {
  max-height: min(78vh, 720px);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    0 0 0 4px rgba(230, 242, 235, 0.9),
    0 18px 60px rgba(31, 42, 38, 0.22);
  pointer-events: auto;
}

.tutorial-target-active {
  position: relative;
  outline: 3px solid var(--green);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(47, 107, 85, 0.14);
  scroll-margin: 120px;
}

.tutorial-target-active::after {
  content: "Tutorial step";
  position: absolute;
  top: -12px;
  right: 10px;
  z-index: 50;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tutorial-topline,
.tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tutorial-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.16;
}

.tutorial-card p,
.tutorial-checklist {
  margin: 0;
}

.tutorial-challenge {
  color: var(--muted);
}

.tutorial-pointer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #b5dbc5;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tutorial-checklist {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tutorial-checklist li {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 10px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 700;
}

.tutorial-checklist li::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.tutorial-note {
  padding: 10px 12px;
  border: 1px solid var(--blue-soft);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.tutorial-field-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.tutorial-field-guide > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tutorial-field-guide strong,
.tutorial-field-guide span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tutorial-field-guide strong {
  color: var(--ink);
  font-size: 13px;
}

.tutorial-field-guide span {
  color: var(--muted);
  font-size: 12px;
}

.tutorial-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 5px;
}

.tutorial-progress span {
  height: 7px;
  border-radius: 999px;
  background: #e2e8e3;
}

.tutorial-progress span.active {
  background: var(--green);
}

.tutorial-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.crm-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.crm-metrics > div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.crm-metrics span,
.detail-list span,
.follow-up-cell span,
.timeline-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.crm-metrics strong,
.detail-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}

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

.detail-list > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.follow-up-cell {
  display: grid;
  gap: 2px;
}

.follow-up-cell strong {
  font-size: 13px;
  color: var(--amber);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.timeline-top strong,
.timeline-top span {
  display: block;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.good {
  color: #245645;
  background: var(--green-soft);
}

.status-pill.warn {
  color: #7b4e08;
  background: var(--amber-soft);
}

.status-pill.danger {
  color: var(--red);
  background: var(--red-soft);
}

.status-pill.cool {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-pill.neutral {
  color: #505e58;
  background: #edf0ec;
}

.reminder-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.reminder-row span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reminder-row strong {
  font-size: 13px;
  white-space: nowrap;
}

.reminder-icon {
  width: 34px;
  height: 34px;
}

.reminder-icon.neutral {
  color: var(--blue);
  background: var(--blue-soft);
}

.reminder-icon.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.reminder-icon.danger {
  color: var(--red);
  background: var(--red-soft);
}

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

.snapshot-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 14px 0;
}

.snapshot-grid.compact.analytics-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-grid > div,
.balance-item {
  min-height: 84px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.snapshot-grid span,
.balance-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.snapshot-grid strong,
.balance-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.analytics-strip strong {
  overflow-wrap: normal;
  font-size: 16px;
}

.tenant-list,
.maintenance-list {
  gap: 14px;
}

.record-card,
.work-card,
.room-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 14px;
}

.record-main {
  display: flex;
  min-width: 0;
  gap: 12px;
}

.record-title {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
  min-width: 0;
}

.record-title-tags {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.record-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.meta-line,
.contact-grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

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

.record-side > div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.record-side span {
  color: var(--muted);
  font-size: 12px;
}

.record-side strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.record-note {
  grid-column: 1 / -1;
  margin: 0;
}

.record-card .button-row {
  grid-column: 1 / -1;
}

.text-warn {
  color: var(--amber) !important;
}

.text-danger {
  color: var(--red) !important;
}

.balance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.property-picker {
  margin-bottom: 12px;
}

.property-tab {
  justify-content: flex-start;
  min-height: 54px;
  padding: 10px;
  color: var(--ink);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.property-tab.active {
  border-color: rgba(47, 107, 85, 0.55);
  background: var(--green-soft);
}

.property-tab span {
  min-width: 0;
  flex: 1;
  text-align: left;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.property-tab small {
  color: var(--muted);
}

.property-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.property-admin-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: -4px !important;
}

.property-renter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.renter-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.renter-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(110px, 0.35fr)) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.renter-card span,
.renter-card strong {
  display: block;
}

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

.expense-summary > div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.expense-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.expense-summary strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.split-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin: 14px 0;
}

.inventory-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  margin: 14px 0;
}

.inventory-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.inventory-form-head {
  display: grid;
  gap: 4px;
}

.inventory-form-head strong {
  color: var(--ink);
  font-size: 16px;
}

.inventory-form-head span,
.field-help,
.checkbox-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 2px;
}

.checkbox-field {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.checkbox-field span {
  display: grid;
  gap: 2px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.inline-form strong {
  align-self: center;
}

.appliance-inline {
  grid-template-columns: 0.9fr repeat(6, minmax(0, 1fr)) auto;
}

.expense-inline {
  grid-template-columns: 0.8fr 0.9fr 1.2fr 0.8fr 0.9fr 0.7fr 1fr 1fr 1fr auto;
  margin-bottom: 12px;
}

.expense-table {
  margin-bottom: 18px;
}

.expense-table table {
  min-width: 860px;
  table-layout: auto;
}

.room-list {
  margin-top: 14px;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.room-header strong,
.room-header span {
  display: block;
}

.appliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.appliance-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 5px 10px;
  margin: 10px 0;
}

.detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.work-card {
  display: grid;
  gap: 12px;
}

.work-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.work-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.work-meta span {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 16px;
  color: var(--muted);
  border: 1px dashed #c8d1cb;
  border-radius: 8px;
  background: var(--panel-soft);
  text-align: center;
}

@media (max-width: 1180px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-nav {
    display: none;
  }

  .landing-hero {
    gap: 42px;
  }

  .preview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .balance-strip,
  .crm-metrics,
  .expense-summary,
  .snapshot-grid,
  .snapshot-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-3,
  .span-4,
  .span-5,
  .span-7,
  .span-8,
  .span-9 {
    grid-column: 1 / -1;
  }

  .split-row,
  .inventory-form-grid,
  .record-card,
  .help-hero,
  .tenant-hero,
  .work-meta {
    grid-template-columns: 1fr;
  }

  .appliance-inline,
  .expense-inline,
  .inline-form,
  .performance-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-bars,
  .property-money {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .landing-header {
    min-height: 68px;
    gap: 16px;
    padding: 10px 18px;
  }

  .landing-header-actions {
    gap: 12px;
  }

  .landing-header-actions .primary-button {
    width: auto;
    min-height: 40px;
  }

  .landing-hero {
    width: min(680px, calc(100% - 36px));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 54px 0 62px;
  }

  .landing-hero::before {
    top: 370px;
    right: -190px;
  }

  .landing-hero-copy {
    text-align: center;
  }

  .landing-kicker,
  .landing-hero-actions {
    margin-inline: auto;
  }

  .landing-benefits {
    justify-content: center;
  }

  .landing-auth-card {
    width: min(480px, 100%);
    margin-inline: auto;
    text-align: left;
  }

  .landing-auth-card .primary-button,
  .landing-auth-card .secondary-button {
    width: 100%;
  }

  .landing-proof {
    width: min(680px, calc(100% - 36px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-proof div {
    padding: 14px;
  }

  .landing-proof div:nth-child(2) {
    border-right: 0;
  }

  .landing-proof div:nth-child(-n + 2) {
    border-bottom: 1px solid #e1e8e3;
  }

  .landing-section {
    width: min(680px, calc(100% - 36px));
    padding: 78px 0;
  }

  .preview-browser-bar {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .preview-live {
    display: none;
  }

  .preview-app {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    overflow-x: auto;
  }

  .preview-brand {
    flex: 0 0 auto;
    margin: 0 10px 0 0;
  }

  .preview-brand strong {
    display: none;
  }

  .preview-nav-item {
    flex: 0 0 auto;
    margin: 0;
  }

  .preview-main {
    padding: 18px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-how {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .landing-final-cta {
    width: calc(100% - 36px);
    margin-bottom: 58px;
    padding: 52px 22px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 28px 18px;
    text-align: center;
  }

  .landing-footer .landing-text-button {
    justify-self: center;
  }

  .landing-footer p {
    margin: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow-x: hidden;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    max-width: 100%;
    gap: 14px;
    padding: 16px 18px;
    overflow: hidden;
  }

  .nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .sidebar-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .sidebar-section .eyebrow {
    grid-column: 1 / -1;
  }

  .mini-metric {
    display: grid;
    justify-content: stretch;
    gap: 4px;
    padding: 5px;
  }

  .sidebar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sidebar-actions .ghost-button {
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    font-size: 12px;
    white-space: normal;
  }

  .sidebar-actions .danger {
    grid-column: auto;
  }

  .main {
    padding: 18px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar,
  .property-heading,
  .property-renter-heading,
  .tenant-hero,
  .work-top {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .search-box,
  .primary-button,
  .secondary-button,
  .main .ghost-button {
    width: 100%;
  }

  .metric-grid,
  .balance-strip,
  .crm-metrics,
  .expense-summary,
  .snapshot-grid,
  .snapshot-grid.compact,
  .analytics-strip,
  .appliance-grid,
  .record-side,
  .form-grid,
  .form-summary,
  .ledger-overview,
  .inventory-form-grid,
  .appliance-inline,
  .expense-inline,
  .inline-form,
  .collection-pulse,
  .maintenance-pulse,
  .performance-row,
  .property-money,
  .renter-card {
    grid-template-columns: 1fr;
  }

  .tutorial-map {
    grid-template-columns: 1fr;
  }

  .tutorial-choice-grid,
  .tutorial-field-guide {
    grid-template-columns: 1fr;
  }

  .tutorial-panel {
    top: auto;
    right: auto;
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: none;
    transform: none;
  }

  .tutorial-card {
    max-height: 46vh;
    padding: 14px;
  }

  .tutorial-target-active {
    scroll-margin-top: 86px;
    scroll-margin-bottom: 52vh;
  }

  .tutorial-card h2 {
    font-size: 20px;
  }

  .tutorial-topline,
  .tutorial-actions,
  .tutorial-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-top,
  .tenant-identity,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .donut-chart {
    justify-self: center;
  }

  .trend-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trend-bars {
    height: 116px;
  }

  .button-row,
  .table-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .landing-brand small {
    display: none;
  }

  .landing-header .landing-brand strong {
    max-width: 92px;
    font-size: 12px;
    line-height: 1.05;
  }

  .landing-header-actions .landing-text-button {
    display: none;
  }

  .landing-header-actions .primary-button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .landing-hero {
    width: calc(100% - 28px);
    padding-top: 42px;
  }

  .landing-hero h1 {
    font-size: clamp(39px, 13vw, 52px);
  }

  .landing-lead {
    font-size: 16px;
  }

  .landing-hero-actions {
    display: grid;
  }

  .landing-cta,
  .landing-secondary-cta {
    width: 100%;
  }

  .landing-benefits {
    display: grid;
    justify-content: center;
    text-align: left;
  }

  .landing-auth-card {
    padding: 21px;
  }

  .landing-auth-heading {
    align-items: flex-start;
  }

  .landing-auth-heading h2 {
    font-size: 19px;
  }

  .landing-proof,
  .landing-section {
    width: calc(100% - 28px);
  }

  .landing-proof strong {
    font-size: 16px;
  }

  .landing-proof span {
    font-size: 9px;
  }

  .landing-section {
    padding: 66px 0;
  }

  .landing-section-heading {
    margin-bottom: 30px;
  }

  .landing-section-heading h2,
  .landing-how h2,
  .landing-final-cta h2 {
    font-size: 34px;
  }

  .preview-browser-bar {
    min-height: 40px;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 9px;
  }

  .preview-address {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .preview-sidebar {
    padding: 8px;
  }

  .preview-sidebar .preview-nav-item:nth-of-type(n + 4) {
    display: none;
  }

  .preview-main {
    padding: 13px;
  }

  .preview-heading h3 {
    font-size: 16px;
  }

  .preview-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .preview-metrics > div {
    padding: 10px;
  }

  .preview-metrics strong {
    font-size: 16px;
  }

  .preview-card {
    padding: 12px;
  }

  .preview-cashflow {
    display: none;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-feature-grid article {
    padding: 22px;
  }

  .landing-steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .landing-steps li > span {
    width: 36px;
    height: 36px;
  }

  .landing-final-cta {
    width: calc(100% - 28px);
  }
}
