:root {
  color-scheme: light;
  --ink: #292a35;
  --muted: #858591;
  --soft-muted: #a4a4ad;
  --line: #eeedf0;
  --surface: #fff;
  --canvas: #f7f7f5;
  --purple: #7065aa;
  --purple-dark: #5e5398;
  --purple-pale: #f0eef9;
  --green: #2e8062;
  --green-pale: #eaf5ef;
  --red: #b95d55;
  --red-pale: #fff0ed;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
}

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

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

:focus-visible {
  outline: 3px solid #8e82c2;
  outline-offset: 3px;
}

body.easy-read .field {
  font-size: 13px;
}

body.easy-read .field small {
  font-size: 11px;
}

body.easy-read .field input,
body.easy-read .field select,
body.easy-read .field textarea {
  min-height: 44px;
  font-size: 14px;
}

body.easy-read .button,
body.easy-read .tool-button,
body.easy-read .nav-link {
  min-height: 44px;
  font-size: 12px;
}

body.easy-read .heading-copy,
body.easy-read .panel-intro,
body.easy-read .reference-details p {
  font-size: 13px;
}

body.easy-read .form-feedback,
body.easy-read .storage-feedback,
body.easy-read .copy-feedback {
  font-size: 12px;
}

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

.app-shell {
  width: min(1192px, calc(100% - 64px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eae9e7;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--purple);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 22px;
}

.nav-link {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: #777782;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: #625796;
  background: #f0eef8;
}

.assist-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #eeedf0;
  border-radius: 10px;
  background: #fff;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid #e8e7eb;
  border-radius: 8px;
  color: #555460;
}

.language-picker select {
  min-height: 40px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 13px;
}

.assist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e6e3f0;
  border-radius: 8px;
  color: #5e5398;
  background: #f8f7fc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.assist-button:hover {
  background: #f0eef8;
}

.assist-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.speech-feedback {
  flex: 1 1 100%;
  min-height: 16px;
  margin: 0;
  color: #666471;
  font-size: 12px;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #777782;
  font-size: 12px;
}

.demo-label > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6da78c;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #5c518f;
  background: #e8e4f6;
  font-size: 13px;
  font-weight: 700;
}

main {
  padding-top: 40px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 27px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9998a3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

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

h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(29px, 3.5vw, 39px);
  font-weight: 700;
  letter-spacing: -1.7px;
  line-height: 1.2;
}

.mobile-break {
  display: none;
}

.heading-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #777184;
  font-size: 11px;
  font-weight: 600;
}

.text-link svg {
  width: 18px;
  height: 18px;
  color: #8276b7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 19px;
}

.stat-card,
.panel {
  border: 1px solid #efeff0;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgb(34 33 49 / 2%);
}

.stat-card {
  min-height: 130px;
  padding: 18px 20px 16px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
}

.stat-icon svg {
  width: 17px;
  height: 17px;
}

.icon-lilac {
  color: #8174ba;
  background: #f0eef9;
}

.icon-peach {
  color: #c27a5f;
  background: #fff1e9;
}

.icon-green {
  color: #559174;
  background: #eaf5ef;
}

.stat-period {
  color: #aaa9b1;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.stat-value {
  margin-bottom: 2px;
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.1;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 17px;
}

.setup-guide {
  min-height: auto;
  margin-bottom: 17px;
}

.setup-guide-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.setup-guide-heading .panel-intro {
  margin-bottom: 0;
}

.setup-progress {
  flex: 0 0 auto;
  margin: 4px 0 0;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 700;
}

.setup-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.setup-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.setup-step[aria-current="step"] {
  border-color: #c9c2e0;
  background: #fbfaff;
}

.setup-step.is-complete {
  background: #f8fbf9;
}

.setup-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--purple-dark);
  background: var(--purple-pale);
  font-size: 12px;
  font-weight: 700;
}

.setup-step.is-complete .setup-step-number {
  color: var(--green);
  background: var(--green-pale);
}

.setup-step-copy h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.setup-step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.setup-step-status {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.setup-step.is-complete .setup-step-status {
  color: var(--green);
  font-weight: 700;
}

.setup-step-action {
  white-space: nowrap;
}

.setup-step-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.setup-complete {
  margin: 14px 0 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.panel {
  min-height: 390px;
  padding: 22px;
}

.panel-heading,
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading .eyebrow,
.list-heading .eyebrow {
  margin-bottom: 5px;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.65px;
}

.heading-number {
  color: #d3d1db;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.panel-intro {
  max-width: 310px;
  margin: 12px 0 21px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.optional-settings {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.optional-settings summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  color: var(--purple-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.optional-settings summary::-webkit-details-marker {
  display: none;
}

.optional-settings summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
}

.optional-settings[open] summary::after {
  content: "−";
}

.optional-settings-content {
  padding: 2px 0 8px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #53535e;
  font-size: 10px;
  font-weight: 600;
}

.field + .field,
.field-row {
  margin-top: 13px;
}

.field small {
  color: #a5a4ac;
  font-size: 9px;
  font-weight: 400;
}

.field input,
.field textarea,
.field select,
.search-box input,
.message-dialog textarea {
  min-width: 0;
  border: 1px solid #e8e7eb;
  border-radius: 7px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 400;
}

.field textarea,
.field select {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 400;
}

.field textarea {
  min-height: 62px;
  resize: vertical;
  line-height: 1.5;
}

.field select {
  padding: 0 8px;
  color: #65646f;
  background: white;
}

.field input::placeholder,
.field textarea::placeholder,
.search-box input::placeholder {
  color: #b2b1ba;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-box input:focus,
.message-dialog textarea:focus {
  border-color: #9c91c8;
  box-shadow: 0 0 0 3px rgb(112 101 170 / 10%);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.field-row .field {
  margin: 0;
}

.notes-field,
.reminder-template-field {
  margin-top: 13px;
}

.checkbox-field {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #53535e;
  font-size: 10px;
  font-weight: 600;
}

.checkbox-field input {
  width: 15px;
  height: 15px;
  accent-color: var(--purple);
}

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

.checkbox-field small {
  color: #a5a4ac;
  font-size: 8px;
  font-weight: 400;
}

.reminder-template-field > small {
  color: #9998a2;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
}

.input-with-prefix {
  position: relative;
}

.input-with-prefix > span {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 11px;
  color: #92919c;
  font-size: 11px;
}

.input-with-prefix input {
  padding-left: 24px;
}

input[type="date"] {
  color: #65646f;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: background 150ms ease, transform 150ms ease;
}

.button:active,
.reminder-button:active {
  transform: translateY(1px);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-primary {
  color: white;
  background: var(--purple);
}

.button-primary:hover {
  background: var(--purple-dark);
}

.submit-button {
  width: 100%;
  margin-top: 17px;
}

.form-buttons {
  display: flex;
  gap: 8px;
}

.form-buttons .submit-button {
  flex: 1;
}

.cancel-edit-button {
  margin-top: 17px;
  padding: 0 13px;
}

.form-feedback,
.storage-feedback,
.copy-feedback {
  min-height: 15px;
  margin: 6px 0 0;
  color: var(--green);
  font-size: 10px;
}

.storage-feedback {
  color: var(--red);
}

.privacy-note {
  display: flex;
  gap: 9px;
  margin-top: 7px;
  padding: 11px 10px;
  border: 1px solid #efedf7;
  border-radius: 8px;
  background: #faf9fd;
}

.privacy-icon {
  flex: 0 0 18px;
  color: #8d82bb;
}

.privacy-icon svg {
  width: 17px;
  height: 17px;
}

.privacy-note p {
  margin: 0;
  color: #85828f;
  font-size: 9px;
  line-height: 1.55;
}

.privacy-note strong {
  color: #5f5a70;
  font-weight: 700;
}

.tenants-panel {
  min-height: 390px;
  padding: 22px 22px 12px;
}

.list-heading {
  align-items: end;
  margin-bottom: 17px;
}

.list-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  color: #766ca5;
  background: #f0eef8;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.tenant-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-box {
  display: flex;
  width: min(190px, 45%);
  height: 32px;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border: 1px solid #eeedf0;
  border-radius: 7px;
  color: #a2a1ab;
}

.tool-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #e8e5f1;
  border-radius: 6px;
  color: #71679f;
  background: #fbfaff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.tool-button:hover {
  border-color: #d6d0e9;
  background: #f4f2fa;
}

.card-action {
  min-height: 27px;
  padding: 0 7px;
  font-size: 8px;
}

.search-box svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

.search-box input {
  width: 100%;
  height: 29px;
  padding: 0 6px 0 0;
  border: 0;
  box-shadow: none !important;
  font-size: 10px;
}

.tenant-list {
  display: grid;
}

.tenant-card {
  display: grid;
  grid-template-columns: 37px minmax(110px, 1.3fr) minmax(100px, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid #f0eff1;
}

.tenant-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #776da5;
  background: #f0eef8;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.tenant-card:nth-child(3n + 2) .tenant-avatar {
  color: #a36953;
  background: #fff1e9;
}

.tenant-card:nth-child(3n) .tenant-avatar {
  color: #4a896d;
  background: #eaf5ef;
}

.tenant-identity,
.tenant-summary {
  min-width: 0;
}

.tenant-identity h3 {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-property {
  overflow: hidden;
  margin: 0;
  color: #9998a2;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-summary {
  display: grid;
  gap: 3px;
}

.tenant-summary strong {
  font-size: 11px;
  font-weight: 700;
}

.tenant-summary span {
  color: #9998a2;
  font-size: 9px;
}

.status-pill {
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.status-due {
  color: #a47737;
  background: #fff5e3;
}

.status-overdue {
  color: var(--red);
  background: var(--red-pale);
}

.status-partial {
  color: #8e6d32;
  background: #fff5e3;
}

.status-paid {
  color: var(--green);
  background: var(--green-pale);
}

.tenant-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 4px;
}

.icon-button {
  display: inline-grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #898792;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button:hover {
  border-color: #eceaf3;
  color: var(--purple);
  background: #f8f7fb;
}

.delete-button:hover {
  border-color: #f7e5e2;
  color: var(--red);
  background: #fff8f6;
}

.reminder-button {
  display: inline-flex;
  height: 29px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #e8e5f1;
  border-radius: 6px;
  color: #71679f;
  background: #fbfaff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.reminder-button:hover {
  border-color: #d6d0e9;
  background: #f4f2fa;
}

.reminder-button svg {
  width: 14px;
  height: 14px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  align-content: center;
  justify-items: center;
  padding: 20px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-illustration {
  margin-bottom: 12px;
}

.empty-illustration svg {
  width: 72px;
  height: 59px;
}

.empty-state h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
}

.empty-state p {
  max-width: 250px;
  margin: 0;
  color: #9998a2;
  font-size: 10px;
  line-height: 1.55;
}

.empty-state > .button {
  margin-top: 16px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 2px 24px;
  color: #aaa9b1;
  font-size: 9px;
}

.message-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #efedf2;
  border-radius: 15px;
  color: var(--ink);
  box-shadow: 0 18px 60px rgb(31 28 45 / 17%);
}

.message-dialog::backdrop {
  background: rgb(39 37 48 / 35%);
  backdrop-filter: blur(2px);
}

.language-dialog .language-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.language-option-row {
  display: flex;
  min-width: 0;
  gap: 6px;
}

.language-option,
.language-preview {
  min-height: 52px;
  border: 1px solid #e8e7eb;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.language-option {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.language-option small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.language-preview {
  width: 48px;
  flex: 0 0 48px;
  color: var(--purple-dark);
  font-size: 18px;
}

.language-option:hover,
.language-preview:hover {
  border-color: #bdb5d9;
  background: #f8f7fc;
}

.language-dialog .speech-feedback {
  margin-top: 8px;
}

.onboarding-dialog {
  width: min(520px, calc(100% - 32px));
}

.onboarding-dialog h2 {
  margin-top: 4px;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.onboarding-skip {
  min-height: 44px;
  margin-left: auto;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.onboarding-skip:hover {
  color: var(--ink);
  background: #f7f6f9;
}

.example-rental {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaff;
  font-size: 13px;
}

.example-rental span {
  color: var(--muted);
}

.example-rental p {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: #5e5398;
  line-height: 1.5;
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dialog-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #756ba7;
  background: #f0eef8;
}

.dialog-icon svg {
  width: 21px;
  height: 21px;
}

.close-dialog {
  color: #9998a2;
}

.message-dialog .eyebrow {
  margin-bottom: 6px;
}

.message-dialog h2 {
  font-size: 21px;
}

.dialog-copy {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.message-dialog textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.65;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.button-secondary {
  border-color: #e9e7ef;
  color: #676470;
  background: white;
}

.button-secondary:hover {
  background: #f8f7fa;
}

.button-whatsapp {
  color: white;
  background: #258962;
}

.button-whatsapp:hover {
  background: #1e7654;
}

.copy-feedback {
  margin-top: 8px;
}

.payment-history {
  display: grid;
  max-height: 230px;
  gap: 9px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.payment-period {
  padding: 10px 11px;
  border: 1px solid #efedf2;
  border-radius: 8px;
  background: #fcfbfd;
}

.payment-period-heading,
.payment-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.payment-period-heading {
  padding-bottom: 7px;
  color: #565461;
  font-size: 10px;
}

.payment-period-heading span,
.payment-row span,
.no-payments,
.payment-balance {
  color: #8f8e98;
  font-size: 9px;
}

.payment-row {
  padding-top: 7px;
  border-top: 1px solid #f0eff2;
}

.payment-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-row strong {
  flex: 0 0 auto;
  color: #4b8069;
  font-size: 10px;
}

.no-payments {
  margin: 0;
}

.payment-balance {
  margin: 0 0 10px;
  color: #6d6592;
  font-weight: 600;
}

.payment-note-field {
  margin-top: 11px;
}

.payment-dialog form[hidden] {
  display: none;
}

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  padding: 8px 11px;
  border: 1px solid #e8e5f1;
  border-radius: 20px;
  color: #6d6592;
  background: #fbfaff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.private-badge svg {
  width: 16px;
  height: 16px;
}

.reference-safety-banner {
  display: flex;
  gap: 11px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid #efedf7;
  border-radius: 10px;
  color: #756d8d;
  background: #f5f3fa;
}

.reference-safety-banner .privacy-icon {
  flex: 0 0 18px;
}

.reference-safety-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #534b70;
  font-size: 11px;
}

.reference-safety-banner p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}

.references-panel {
  min-height: 350px;
  padding: 22px;
}

.references-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.references-heading .eyebrow {
  margin-bottom: 5px;
}

.references-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reference-search {
  width: min(230px, 42%);
}

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

.reference-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #efedf2;
  border-radius: 9px;
  background: #fff;
}

.reference-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.reference-identity {
  min-width: 0;
}

.reference-identity h3 {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-identity p {
  margin: 0;
  color: #9998a2;
  font-size: 9px;
}

.reference-visibility {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 20px;
  color: #71679f;
  background: #f0eef8;
  font-size: 8px;
  font-weight: 600;
}

.reference-details {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 7px;
  background: #faf9fc;
}

.reference-status,
.reference-tenancy,
.reference-statement,
.reference-no-record {
  margin: 0;
  color: #777681;
  font-size: 10px;
  line-height: 1.6;
}

.reference-status {
  color: #6d6592;
  font-weight: 600;
}

.reference-statement {
  margin-top: 6px;
  color: #4e4d58;
  overflow-wrap: anywhere;
}

.reference-no-record {
  color: #92919b;
}

.reference-actions {
  display: flex;
  justify-content: end;
  gap: 7px;
  margin-top: 11px;
}

.reference-delete {
  color: #a45e56;
  border-color: #f1e5e3;
  background: #fffafa;
}

.reference-empty {
  min-height: 250px;
}

.reference-empty .button {
  margin-top: 14px;
  padding: 0 14px;
}

.reference-recipient-field,
.reference-consent-date,
.reference-statement-field {
  margin-top: 13px;
}

.consent-confirmation {
  display: flex;
  align-items: start;
  gap: 9px;
  margin-top: 14px;
  color: #625d70;
  font-size: 10px;
  line-height: 1.55;
}

.consent-confirmation input {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--purple);
}

.reference-consent-disclaimer {
  margin: 9px 0 0;
  color: #96949e;
  font-size: 9px;
  line-height: 1.55;
}

.reference-dialog .dialog-actions {
  grid-template-columns: 1fr 1.5fr;
}

.verification-date-field {
  margin-top: 13px;
}

.verification-dialog .dialog-actions {
  grid-template-columns: 1fr 1.5fr;
}

.moveout-fieldset {
  display: grid;
  min-width: 0;
  margin: 15px 0 0;
  padding: 12px;
  border: 1px solid #e8e7eb;
  border-radius: 9px;
}

.moveout-fieldset legend {
  padding: 0 5px;
  color: #555460;
  font-size: 11px;
  font-weight: 700;
}

.moveout-fieldset-copy {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.moveout-dialog .dialog-actions {
  grid-template-columns: 1fr 1.5fr;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .app-shell {
    width: min(760px, calc(100% - 40px));
  }

  .workspace-grid {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.25fr);
    gap: 12px;
  }

  .panel {
    padding: 19px;
  }

  .tenants-panel {
    padding: 19px 16px 12px;
  }

  .tenant-card {
    grid-template-columns: 34px minmax(80px, 1fr) auto;
    gap: 9px;
  }

  .tenant-avatar {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .tenant-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .tenant-summary {
    grid-column: 2;
    grid-row: 2;
  }

  .status-pill {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .tenant-actions {
    grid-column: 1 / 4;
    grid-row: 3;
    justify-self: end;
  }

  .tenant-tools {
    gap: 4px;
  }

  .search-box {
    flex: 1;
    width: auto;
  }

  .tool-button {
    padding: 0 7px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 32px);
  }

  .topbar {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar-right {
    gap: 11px;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding-bottom: 2px;
    row-gap: 2px;
  }

  .nav-link {
    min-height: 31px;
    padding: 0 7px;
    font-size: 9px;
  }

  .demo-label {
    font-size: 10px;
  }

  main {
    padding-top: 29px;
  }

  .page-heading {
    align-items: start;
    margin-bottom: 20px;
  }

  .page-heading > div {
    max-width: 72%;
  }

  .moveout-view .page-heading {
    flex-wrap: wrap;
    gap: 8px;
  }

  .moveout-view .page-heading > div {
    max-width: 100%;
  }

  .moveout-view .private-badge {
    white-space: normal;
  }

  .mobile-break {
    display: initial;
  }

  h1 {
    font-size: 31px;
  }

  .heading-copy {
    max-width: 240px;
    font-size: 11px;
    line-height: 1.5;
  }

  .text-link {
    gap: 5px;
    margin-top: 8px;
    font-size: 0;
  }

  .text-link svg {
    width: 20px;
    height: 20px;
  }

  .stats-grid {
    gap: 8px;
    margin-bottom: 12px;
  }

  .stat-card {
    min-height: 105px;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .stat-top {
    align-items: start;
    gap: 4px;
    margin-bottom: 9px;
  }

  .stat-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }

  .stat-icon svg {
    width: 15px;
    height: 15px;
  }

  .stat-period {
    padding-top: 4px;
    font-size: 6px;
    letter-spacing: 0.5px;
    text-align: right;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 9px;
    line-height: 1.3;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .setup-guide-heading {
    display: block;
  }

  .setup-progress {
    margin-top: 10px;
  }

  .setup-step {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .setup-step-status {
    grid-column: 2;
  }

  .setup-step-action {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-actions .button {
    width: 100%;
  }

  .onboarding-skip {
    margin-left: 0;
  }

  .panel,
  .tenants-panel {
    min-height: auto;
    padding: 19px;
    border-radius: 11px;
  }

  .panel-intro {
    margin-bottom: 17px;
  }

  .privacy-note {
    margin-top: 8px;
  }

  .tenants-panel {
    padding-bottom: 12px;
  }

  .list-heading {
    gap: 8px;
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .references-heading {
    align-items: start;
    flex-wrap: wrap;
  }

  .reference-search {
    width: 100%;
  }

  .private-badge {
    margin-top: 0;
    padding: 7px 8px;
    font-size: 8px;
  }

  .reference-safety-banner {
    padding: 12px;
  }

  .reference-card {
    padding: 12px;
  }

  .reference-card-top {
    flex-wrap: wrap;
  }

  .reference-visibility {
    font-size: 7px;
  }

  .tenant-tools {
    width: 100%;
  }

  .search-box {
    width: auto;
  }

  .tenant-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 0;
  }

  .tenant-avatar {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .tenant-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .tenant-summary {
    grid-column: 2;
    grid-row: 2;
    gap: 2px;
  }

  .tenant-summary strong,
  .tenant-identity h3 {
    font-size: 10px;
  }

  .tenant-property,
  .tenant-summary span {
    font-size: 8px;
  }

  .status-pill {
    grid-column: 3;
    grid-row: 1;
  }

  .tenant-actions {
    grid-column: 1 / 4;
    grid-row: 3;
  }

  .reminder-button {
    padding: 0 6px;
    font-size: 8px;
  }

  .page-footer {
    padding-top: 16px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

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

.auth-card {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgb(41 42 53 / 8%);
}

.auth-brand {
  margin-bottom: 32px;
}

.auth-card h1 {
  margin: 8px 0;
  font-family: Manrope, sans-serif;
  font-size: 28px;
}

.auth-buttons {
  margin-top: 20px;
}

.auth-buttons .button {
  flex: 1;
}

.auth-link {
  display: block;
  margin: 12px 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px;
  }
}
