:root {
  color-scheme: light;
  --ink: #17202f;
  --muted: #8390a3;
  --line: #e9edf3;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --primary: #5064e8;
  --primary-dark: #3e51d3;
  --primary-light: #eef0ff;
  --green: #2eaa79;
  --green-light: #e9f7f1;
  --amber: #dc9a30;
  --amber-light: #fff5e4;
  --red: #dc666b;
  --red-light: #fff0f0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: 252px; padding: 25px 16px 15px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; margin: 0 0 39px; text-decoration: none; color: inherit; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; background: var(--primary); border-radius: 12px; box-shadow: 0 6px 14px #5064e83b; }
.brand-mark svg { width: 23px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy strong { display: block; font: 800 20px Manrope, sans-serif; letter-spacing: -.7px; }
.brand-copy small { display: block; color: #a0a9b7; font-size: 9px; letter-spacing: 1.35px; margin-top: 1px; }
.nav-label, .eyebrow { color: #a0a9b7; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.nav-label { padding: 0 12px; margin-bottom: 12px; }
.nav-list { display: grid; min-height: 0; gap: 5px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #737f91; font-size: 13px; text-align: left; transition: .16s ease; }
.nav-item[hidden] { display: none; }
.nav-item:hover { background: #f7f8fc; color: var(--ink); }
.nav-item.active { color: var(--primary); background: var(--primary-light); font-weight: 700; }
.nav-icon { width: 18px; font-size: 17px; line-height: 1; text-align: center; }
.sidebar-bottom { flex-shrink: 0; margin-top: auto; }
.help-card { padding: 17px 16px 13px; margin: 0 3px 18px; background: linear-gradient(145deg,#f2f3ff,#f7f8ff); border-radius: 12px; }
.help-icon { display: inline-grid; width: 25px; height: 25px; margin-bottom: 10px; place-items: center; color: var(--primary); background: #fff; border-radius: 8px; }
.help-card strong { display: block; font: 700 13px/1.5 Manrope,sans-serif; }
.help-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.profile-button { display: flex; align-items: center; width: 100%; padding: 10px 8px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e8edff; color: var(--primary); font-weight: 700; }
.profile-copy { flex: 1; padding-left: 10px; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { max-width: 140px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.more { color: #98a2b1; font-size: 20px; }
.main-area { min-height: 100vh; margin-left: 252px; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 39px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9aa4b2; font-size: 12px; }
.breadcrumb strong { color: #3d4655; font-weight: 600; }
.crumb-separator { color: #c8ced7; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
#platform-password-button[hidden] { display: none; }
.button:disabled, .icon-button:disabled, .profile-button:disabled { opacity: .5; cursor: not-allowed; }
.permission-table input[type="checkbox"], .permission-site input { width: 18px; height: 18px; accent-color: var(--primary); }
.permission-table td:not(:first-child), .permission-table th:not(:first-child) { text-align: center; }
.permission-sites { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.permission-site { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.today-label { color: #8490a1; font-size: 11px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #778397; font-size: 16px; }
.icon-button:hover { background: #f7f8fb; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 20px; }
.page-content { max-width: 1440px; padding: 34px 39px 55px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font: 700 24px Manrope,sans-serif; letter-spacing: -.65px; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 600; transition: .15s ease; white-space: nowrap; }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 3px 8px #5064e82a; }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: #536176; border-color: var(--line); background: #fff; }
.button-secondary:hover, .button-quiet:hover { background: #f7f8fb; }
.button-quiet { color: #788396; background: transparent; }
.button-danger { color: var(--red); border-color: #f5dada; background: #fff; }
.button-small { min-height: 29px; padding: 0 10px; font-size: 10px; }
.plus { font-size: 16px; font-weight: 400; line-height: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 17px; }
.stat-card, .panel { background: var(--surface); border: 1px solid #edf0f5; border-radius: 12px; box-shadow: 0 3px 14px #202b3d05; }
.stat-card { min-height: 125px; padding: 17px 18px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: #8792a3; font-size: 11px; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-size: 15px; }
.stat-icon.blue { color: var(--primary); background: var(--primary-light); }
.stat-icon.green { color: var(--green); background: var(--green-light); }
.stat-icon.amber { color: var(--amber); background: var(--amber-light); }
.stat-icon.red { color: var(--red); background: var(--red-light); }
.stat-value { margin-top: 14px; font: 700 22px Manrope,sans-serif; letter-spacing: -.5px; }
.stat-note { margin-top: 5px; color: #a0a9b6; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(270px,1fr); gap: 16px; margin-bottom: 16px; }
.panel { padding: 19px 20px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-title { margin: 0; font: 700 14px Manrope,sans-serif; letter-spacing: -.2px; }
.panel-subtitle { margin: 5px 0 0; color: #98a2b0; font-size: 10px; }
.text-link { padding: 4px; border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 600; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; color: #657184; font-size: 10px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--primary); }
.legend-dot.muted { background: #dce1f5; }
.chart { position: relative; height: 174px; display: flex; align-items: flex-end; justify-content: space-around; padding: 13px 8px 23px; border-bottom: 1px solid #edf0f5; background: repeating-linear-gradient(to bottom, transparent 0, transparent 42px, #f0f2f7 43px, transparent 44px); }
.chart-month { position: absolute; bottom: -19px; color: #a2abba; font-size: 9px; transform: translateX(-50%); }
.chart-column { position: relative; z-index: 1; width: 36px; height: 100%; display: flex; align-items: flex-end; gap: 3px; }
.chart-bar { flex: 1; min-height: 0; border-radius: 4px 4px 0 0; background: var(--primary); }
.chart-bar.unpaid { background: #dce1f5; }
.chart-bar.total, .legend-dot.total { background: #5286cb; }
.chart-bar.expense, .legend-dot.expense { background: #d35a4a; }
.financial-summary { margin-top: 12px; }
.financial-summary caption { padding: 10px 0; text-align: left; color: var(--muted); font-size: 11px; }
.financial-summary tfoot { font-weight: 700; background: #f2f5f9; }
.annual-year-label { display: flex; align-items: center; gap: 8px; }
.annual-year-label select { width: auto; min-width: 90px; }
.annual-dues-summary { font-size: 12px; line-height: 1.8; }
.annual-dues-table th, .annual-dues-table td { min-width: 100px; }
.annual-dues-table th:first-child { min-width: 160px; text-align: left; }
.receipt-document { padding: 20px; border: 1px solid #dce1e8; background: #fff; color: #182333; }
.receipt-document dl { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); gap: 10px; }
.receipt-document dd { margin: 0; overflow-wrap: anywhere; }
.receipt-document dt { font-weight: 700; }
.receipt-document p { font-size: 12px; line-height: 1.6; }
.receipt-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.receipt-amount { font-size: 20px; font-weight: 800; }
@media print {
  body.printing-receipt > :not(#modal-backdrop) { display: none !important; }
  body.printing-receipt #modal-backdrop { position: static; display: block; padding: 0; background: #fff; }
  body.printing-receipt .modal { width: 100%; max-width: none; max-height: none; overflow: visible; box-shadow: none; border: 0; }
  body.printing-receipt .modal-header, body.printing-receipt .modal-actions, body.printing-receipt #form-error,
  body.printing-receipt .modal-fields > :not(#receipt-document) { display: none !important; }
  body.printing-receipt .modal-fields { display: block; }
  body.printing-receipt .receipt-document { border: 0; }
}
.chart-empty { align-self: center; margin: auto; color: #9aa4b2; font-size: 11px; }
.activity-list { display: grid; }
.activity-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f2f6; }
.activity-row:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #6c7bed; }
.activity-dot.green { background: var(--green); }
.activity-dot.amber { background: var(--amber); }
.activity-copy { flex: 1; min-width: 0; font-size: 10px; line-height: 1.5; }
.activity-copy strong { font-weight: 600; }
.activity-copy span { display: block; color: #9aa4b2; font-size: 9px; }
.activity-amount { color: #3c4758; font-size: 10px; font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 10px 12px; color: #9aa4b2; background: #fafbfc; font-size: 9px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.data-table td { padding: 12px; border-bottom: 1px solid #f0f2f6; color: #596576; font-size: 10px; }
.data-table tr:last-child td { border-bottom: 0; }
.table-primary { color: #303b4b !important; font-weight: 600; }
.table-muted { display: block; margin-top: 3px; color: #a0a9b6; font-size: 9px; font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; }
.status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status.paid, .status.done, .status.active { color: #26996b; background: #eaf7f1; }
.status.unpaid, .status.open, .status.pending { color: #d29329; background: #fff5e3; }
.status.overdue, .status.high { color: #cf5a60; background: #fff0f0; }
.status.normal { color: #6473dd; background: #eef0ff; }
.table-actions { display: flex; gap: 5px; }
.empty-state { padding: 34px 15px; color: #9aa4b2; text-align: center; font-size: 11px; }
.empty-state strong { display: block; margin-bottom: 5px; color: #586476; font: 600 13px Manrope,sans-serif; }
.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.search-input, .filter-select { height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; color: #526074; font-size: 10px; }
.search-input { width: min(260px,100%); }
.search-input:focus, .filter-select:focus, .field-control:focus { border-color: #a9b2f7; box-shadow: 0 0 0 3px #5064e814; }
.toolbar-spacer { flex: 1; }
.inline-summary { display: flex; gap: 20px; align-items: center; margin: -2px 0 14px; color: #8b96a5; font-size: 10px; }
.inline-summary strong { color: #394657; font-size: 11px; }
.report-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.report-card { padding: 15px 16px; border-radius: 10px; background: #f9faff; border: 1px solid #edf0f8; }
.report-card span { display: block; color: #8f9aab; font-size: 10px; }
.report-card strong { display: block; margin-top: 9px; font: 700 18px Manrope,sans-serif; }
.report-card small { display: block; margin-top: 4px; color: #a0a9b6; font-size: 9px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: #17202f73; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(490px,100%); max-height: min(90vh,760px); overflow: auto; padding: 23px; border-radius: 14px; background: #fff; box-shadow: 0 18px 70px #16203633; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-header .eyebrow { margin: 0 0 7px; }
.modal-header h2 { margin: 0; font: 700 19px Manrope,sans-serif; }
.close-modal { border: 0; font-size: 21px; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.modal-fields > .full { grid-column: 1/-1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1/-1; }
.field label { color: #687587; font-size: 10px; font-weight: 600; }
.field-control { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #e4e8ef; border-radius: 7px; outline: 0; background: #fff; color: #394657; font-size: 11px; }
.password-control { position: relative; display: flex; align-items: center; }
.password-control .field-control { padding-right: 62px; }
.password-visibility-toggle { position: absolute; right: 8px; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: #66758a; font-size: 10px; font-weight: 700; }
.password-visibility-toggle:hover { color: var(--primary); background: #f5f6fb; }
textarea.field-control { min-height: 82px; resize: vertical; }
.form-error { min-height: 17px; margin-top: 7px; color: var(--red); font-size: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 11px; border-top: 1px solid #f0f2f6; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; padding: 12px 17px; border-radius: 9px; background: #222d3e; color: #fff; box-shadow: 0 8px 28px #17202f33; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.section-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 15px; border-radius: 9px; background: #eff1f6; }
.suggestion-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 24px 0; padding: 16px; border: 2px solid #edab32; border-radius: 12px; background: #fff4d7; color: #754900; }
.suggestion-notice[hidden] { display: none; }
.suggestion-notice > span { font-size: 28px; }
.suggestion-notice strong { flex: 1; min-width: 160px; font-size: 14px; }
.nav-item.has-pending-suggestions { background: #fff0c5; color: #805000; font-weight: 800; }
.nav-item.has-pending-suggestions::after { content: "●"; margin-left: auto; color: #d43a27; }
.suggestion-pending { background: #fff9e9; }
.suggestion-reply { margin-top: 10px; padding: 12px; border-left: 3px solid var(--primary); border-radius: 6px; background: #edf4f8; }
.suggestion-reply p, .suggestion-original { white-space: pre-wrap; overflow-wrap: anywhere; }
.suggestion-reply small { color: var(--muted); }
.section-tab { padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: #818c9d; font-size: 10px; }
.section-tab.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px #202b3d10; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(ellipse at 16% 15%,#e8ecff 0,transparent 42%),radial-gradient(ellipse at 85% 85%,#e5f5f0 0,transparent 38%),#f6f7fb; }
.auth-screen[hidden] { display: none; }
.auth-layout { width: min(970px,100%); min-height: 580px; display: grid; grid-template-columns: 1fr .92fr; overflow: hidden; border: 1px solid #edf0f5; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px #24304a12; }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 40px; color: #fff; background: linear-gradient(145deg,#5367e9,#404fca); }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-mark { background: #ffffff26; box-shadow: none; }
.auth-brand strong { display: block; font: 800 21px Manrope,sans-serif; }
.auth-brand small { display: block; margin-top: 3px; color: #ffffffb5; font-size: 9px; letter-spacing: 1px; }
.auth-intro-copy { max-width: 340px; }
.auth-intro-copy .eyebrow { color: #ffffffa3; }
.auth-intro-copy h1 { margin: 13px 0; font: 700 33px/1.25 Manrope,sans-serif; letter-spacing: -.9px; }
.auth-intro-copy p { color: #ffffffc4; font-size: 13px; line-height: 1.8; }
.auth-intro-foot { color: #ffffffa3; font-size: 10px; }
.auth-form-wrap { display: flex; align-items: center; padding: 38px; }
.auth-form-content { width: 100%; max-width: 350px; margin: auto; }
.auth-form-content h2 { margin: 0; font: 700 22px Manrope,sans-serif; letter-spacing: -.4px; }
.auth-form-content > p { margin: 8px 0 23px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-form { display: grid; gap: 13px; }
.auth-form .field label { font-size: 10px; }
.auth-form .field-control { min-height: 42px; font-size: 12px; }
.auth-form .button { min-height: 42px; margin-top: 3px; font-size: 12px; }
.auth-hint { margin-top: 15px; color: #98a2b0; font-size: 10px; line-height: 1.7; }
.auth-link { padding: 0; border: 0; background: none; color: var(--primary); font-size: 11px; font-weight: 600; }
.forgot-password-help { margin-top: 8px; padding: 10px 12px; border: 1px solid #e9edf3; border-radius: 8px; background: #f8f9fc; color: #667386; font-size: 10px; line-height: 1.65; }
.auth-error { min-height: 16px; color: var(--red); font-size: 10px; line-height: 1.6; }
.auth-success { padding: 11px 12px; border: 1px solid #ccebdd; border-radius: 8px; background: #effaf4; color: #27835c; font-size: 10px; line-height: 1.6; }
.demo-accounts { display: grid; gap: 7px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.demo-accounts > strong { margin-bottom: 2px; color: #687587; font-size: 10px; }
.demo-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }
.demo-account:hover { border-color: #bbc3f7; background: #fafaff; }
.demo-account > span:first-child { display: grid; gap: 3px; }
.demo-account strong { font-size: 10px; }
.demo-account small { color: #929dad; font-size: 9px; }
.demo-use { color: var(--primary); font-size: 9px; font-weight: 600; white-space: nowrap; }
.demo-warning { color: #9aa4b2; font-size: 9px; line-height: 1.6; }
.app-shell[hidden] { display: none; }
.app-shell.resident-mode .sidebar { display: none; }
.app-shell.resident-mode .main-area { margin-left: 0; }
.app-shell.resident-mode #top-settings { display: none; }
.resident-welcome { padding: 23px; margin-bottom: 16px; border-radius: 12px; background: linear-gradient(110deg,#eef0ff,#f8f8ff); }
.resident-welcome h2 { margin: 0; font: 700 18px Manrope,sans-serif; }
.resident-welcome p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.resident-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 15px; margin-bottom: 15px; }
.suggestion-form { display: grid; gap: 11px; }
.suggestion-list { display: grid; gap: 9px; }
.suggestion-item, .announcement-item { padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.suggestion-item:last-child, .announcement-item:last-child { border-bottom: 0; }
.suggestion-item strong, .announcement-item strong { color: #3d4859; font-size: 11px; }
.suggestion-item p, .announcement-item p { margin: 6px 0 0; color: #818c9c; font-size: 10px; line-height: 1.7; white-space: pre-wrap; }
.announcement-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: #98a2b0; font-size: 9px; }
.resident-only-note { margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: #f7f8fb; color: #8792a2; font-size: 9px; line-height: 1.6; }
@media (max-width: 760px) {
  .auth-screen { padding: 15px; }
  .auth-layout { min-height: auto; grid-template-columns: 1fr; }
  .auth-intro { min-height: 190px; padding: 23px; }
  .auth-intro-copy { margin-top: 26px; }
  .auth-intro-copy h1 { margin: 7px 0; font-size: 24px; }
  .auth-intro-copy p, .auth-intro-foot { display: none; }
  .auth-form-wrap { padding: 26px 23px; }
  .auth-form-content h2 { font-size: 19px; }
  .resident-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .sidebar { width: 224px; }
  .main-area { margin-left: 224px; }
  .topbar { padding: 0 25px; }
  .page-content { padding: 28px 25px 45px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sidebar { width: 252px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 25px #1d294012; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .topbar { height: 60px; padding: 0 16px; gap: 11px; }
  .menu-toggle { display: block; }
  .breadcrumb { flex: 1; gap: 7px; font-size: 10px; }
  .today-label { display: none; }
  .topbar-right { gap: 8px; }
  .page-content { padding: 24px 16px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .page-heading h1 { font-size: 21px; }
  .heading-actions { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .report-cards { grid-template-columns: 1fr; }
  .stat-card { min-height: 112px; padding: 14px; }
  .stat-value { font-size: 19px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar-spacer { display: none; }
  .toolbar .button { margin-left: auto; }
  .modal { padding: 19px; }
}
@media (max-width: 420px) {
  .stats-grid { gap: 9px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 17px; }
  .stat-note { font-size: 9px; }
  .stat-label { font-size: 10px; }
  .modal-fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .inline-summary { flex-wrap: wrap; gap: 7px 14px; }
}

.auth-screen.landing-mode { display: block; padding: 0; background: #fbfaf6; }
.landing-page { overflow: hidden; color: #1c3435; background: #fbfaf6; font-family: "DM Sans", sans-serif; }
.landing-page button, .landing-page a { -webkit-tap-highlight-color: transparent; }
.landing-header { position: relative; z-index: 2; width: min(1200px,calc(100% - 80px)); height: 88px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: #17363a; text-decoration: none; }
.landing-brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #1f5553; box-shadow: 0 6px 15px #143e3c26; }
.landing-brand-mark svg { width: 23px; fill: none; stroke: #e8f4df; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.landing-brand strong { display: block; font: 800 23px/1 Manrope,sans-serif; letter-spacing: -1px; }
.landing-brand small { display: block; margin-top: 4px; color: #8a9890; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.landing-nav { display: flex; align-items: center; gap: 37px; margin-left: 63px; }
.landing-nav a, .landing-footer > a:last-child { color: #64716a; font-size: 12px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.landing-nav a:hover, .landing-footer > a:last-child:hover { color: #1e6056; }
.landing-header-actions { display: flex; align-items: center; gap: 23px; }
.landing-login-link { padding: 8px 0; border: 0; background: none; color: #455650; font-size: 11px; font-weight: 700; }
.landing-login-link:hover { color: #1e6056; }
.landing-install-button { padding: 8px 10px; border: 1px solid #d7e4d8; border-radius: 7px; background: #f1f6ef; color: #326b57; font-size: 10px; font-weight: 700; }
.landing-install-button:hover { background: #e5efe3; }
.landing-install-button[hidden] { display: none; }
.landing-header-button, .landing-primary-button { min-height: 43px; padding: 0 18px; border-radius: 8px; background: #1f5553; color: #fff; font-size: 11px; box-shadow: 0 7px 15px #1f555324; }
.landing-header-button:hover, .landing-primary-button:hover { background: #174744; }
.landing-header-button span, .landing-primary-button span, .landing-contact-primary span { margin-left: 4px; font-size: 15px; }
.landing-hero { position: relative; min-height: 584px; display: grid; grid-template-columns: minmax(380px,.95fr) minmax(400px,1.05fr); align-items: center; gap: 35px; width: min(1200px,calc(100% - 80px)); padding: 30px 0 61px; margin: 0 auto; }
.landing-hero::before { position: absolute; z-index: 0; top: -33px; right: -130px; width: 690px; height: 610px; border-radius: 48% 52% 45% 55%; background: radial-gradient(ellipse at 55% 46%,#e5eee1 0,#eaf0e6 48%,#f5f5ed 75%,transparent 76%); content: ""; }
.landing-hero-copy { position: relative; z-index: 1; padding-bottom: 19px; }
.landing-kicker { display: inline-flex; align-items: center; gap: 9px; color: #d4e5d7; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.landing-kicker > span { width: 7px; height: 7px; border-radius: 50%; background: #de986b; box-shadow: 0 0 0 4px #de986b20; }
.landing-hero h1 { margin: 23px 0 17px; color: #183638; font: 700 clamp(43px,5.2vw,67px)/1.11 Manrope,sans-serif; letter-spacing: -3.7px; }
.landing-hero h1 span { color: #42816e; }
.landing-hero-copy > p { max-width: 460px; margin: 0; color: #687971; font-size: 14px; line-height: 1.9; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.landing-primary-button { min-height: 48px; padding: 0 20px; }
.landing-outline-button { min-height: 48px; padding: 0 18px; border: 1px solid #d9e1d7; border-radius: 8px; background: #fbfaf6; color: #39534b; font-size: 11px; }
.landing-outline-button:hover { border-color: #89aa95; background: #f2f5ed; }
.landing-trust { display: flex; align-items: center; gap: 9px; margin-top: 27px; color: #89958e; font-size: 10px; }
.landing-trust-icon { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #e3eee2; color: #40805f; font-size: 10px; font-weight: 700; }
.landing-hero-visual { position: relative; z-index: 1; min-height: 442px; display: grid; place-items: center; }
.landing-orbit { position: absolute; border: 1px solid #c9d9ca80; border-radius: 50%; }
.landing-orbit-one { width: 420px; height: 420px; }
.landing-orbit-two { width: 340px; height: 340px; border-style: dashed; opacity: .65; }
.landing-building-art { position: relative; z-index: 1; width: min(100%,460px); margin: 0 12px 3px 0; filter: drop-shadow(0 17px 20px #274b3820); }
.landing-building-art svg { display: block; width: 100%; overflow: visible; }
.landing-hero-upload { position: relative; z-index: 1; width: min(100%,460px); max-height: 390px; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 17px 20px #274b3820); }
.art-ground { fill: none; stroke: #b8cbb8; stroke-linecap: round; stroke-width: 2; }
.art-building-shadow { fill: #c4d3c4; opacity: .6; }
.art-building { fill: #f8f3e7; stroke: #52756a; stroke-linejoin: round; stroke-width: 2; }
.art-building-side { fill: #e4e9d8; }
.art-roof { fill: #d88562; }
.art-door { fill: #638b79; }
.art-window { fill: #b9dbd0; stroke: #688d80; stroke-width: 2; }
.art-window-detail { fill: none; stroke: #edf3e8; stroke-width: 2; }
.art-plant { fill: none; stroke: #648b6e; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.art-sun { fill: #e6ba78; opacity: .9; }
.art-spark { fill: none; stroke: #d39d6d; stroke-linecap: round; stroke-width: 2; }
.landing-float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; min-width: 191px; padding: 11px 13px; border: 1px solid #edf0e8; border-radius: 11px; background: #fff; box-shadow: 0 12px 32px #29473615; }
.landing-float-card > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.landing-float-card small { color: #929d94; font-size: 8px; }
.landing-float-card strong { color: #345047; font-size: 10px; }
.landing-float-dues { top: 94px; left: 4px; }
.landing-float-notice { right: -5px; bottom: 76px; }
.float-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #e5f0e4; color: #418269; font-size: 15px; font-weight: 700; }
.notice-icon { background: #f9ece0; color: #d48960; }
.float-check { color: #43836c; font-weight: 700; }
.float-dot, .caption-dot { width: 7px; height: 7px; border-radius: 50%; background: #df916e; }
.landing-visual-caption { position: absolute; right: 37px; bottom: 18px; display: flex; align-items: center; gap: 7px; color: #829087; font-size: 9px; }
.landing-scroll-cue { position: absolute; bottom: 9px; left: 0; display: flex; align-items: center; gap: 10px; color: #8b978f; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; text-decoration: none; }
.landing-scroll-cue span:last-child { font-size: 14px; }
.landing-section { padding-right: max(40px,calc((100% - 1120px)/2)); padding-left: max(40px,calc((100% - 1120px)/2)); scroll-margin-top: 24px; }
.landing-features { padding-top: 103px; padding-bottom: 105px; background: #fff; }
.landing-section-heading { max-width: 570px; margin: 0 auto 43px; text-align: center; }
.landing-kicker-dark { color: #6d8b78; }
.landing-section-heading h2, .landing-about-copy h2 { margin: 15px 0 12px; color: #1d3838; font: 700 37px/1.2 Manrope,sans-serif; letter-spacing: -1.7px; }
.landing-section-heading h2 span, .landing-about-copy h2 span { color: #49836f; }
.landing-section-heading > p { max-width: 480px; margin: 0 auto; color: #829087; font-size: 12px; line-height: 1.8; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.landing-feature-card { position: relative; min-height: 203px; padding: 24px 20px; overflow: hidden; border: 1px solid #edf0eb; border-radius: 11px; background: #fff; transition: transform .2s ease,box-shadow .2s ease; }
.landing-feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #263f3010; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 17px; font-weight: 700; }
.feature-icon-green { background: #e9f3e7; color: #4a8a6b; }
.feature-icon-blue { background: #e7eff3; color: #547e93; }
.feature-icon-orange { background: #fbefe5; color: #c87e55; }
.feature-icon-violet { background: #eeeaf5; color: #83749d; }
.landing-feature-card h3 { margin: 18px 0 8px; color: #304943; font: 700 13px Manrope,sans-serif; }
.landing-feature-card p { max-width: 230px; margin: 0; color: #829087; font-size: 10px; line-height: 1.8; }
.feature-number { position: absolute; top: 23px; right: 19px; color: #d4ddd4; font: 600 10px Manrope,sans-serif; }
.landing-about { min-height: 543px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 92px; padding-top: 92px; padding-bottom: 92px; background: #f4f5ed; }
.landing-about-visual { position: relative; min-height: 345px; display: grid; place-items: center; }
.about-pattern { position: absolute; inset: 4px 15px; border-radius: 49% 51% 50% 50%; background: radial-gradient(circle at 22% 20%,#d9e4d5 0,transparent 38%),radial-gradient(circle at 77% 78%,#e5d7c3 0,transparent 39%),#e6ecdf; transform: rotate(-6deg); }
.about-note { position: relative; z-index: 1; width: 240px; min-height: 233px; display: flex; flex-direction: column; justify-content: center; padding: 31px; border: 1px solid #e8e5d9; border-radius: 5px; background: #fffdf6; box-shadow: 0 22px 48px #30483b1c; transform: rotate(-4deg); }
.about-note > span { color: #a48564; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; }
.about-note strong { margin-top: 15px; color: #345248; font: 700 22px/1.35 Manrope,sans-serif; letter-spacing: -.6px; }
.about-note > div { display: flex; gap: 5px; margin-top: 25px; }
.about-note i { width: 8px; height: 8px; border-radius: 50%; background: #b8ceb5; }
.about-note i:nth-child(2) { background: #e6bc86; }
.about-note i:nth-child(3) { background: #89aaa0; }
.about-note i:nth-child(4) { background: #d78f70; }
.about-stamp { position: absolute; z-index: 2; right: 3px; bottom: 23px; width: 91px; height: 91px; display: grid; place-content: center; border: 1px solid #fff; border-radius: 50%; background: #d67e5d; color: white; font: 700 10px/1.3 Manrope,sans-serif; letter-spacing: 1px; text-align: center; transform: rotate(8deg); }
.about-stamp span { color: #fae2bf; }
.landing-about-copy { max-width: 470px; }
.landing-about-copy h2 { margin-top: 17px; font-size: 34px; }
.landing-about-copy > p { margin: 15px 0 22px; color: #78867e; font-size: 11px; line-height: 1.9; }
.landing-benefits { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.landing-benefits li { display: flex; align-items: flex-start; gap: 11px; }
.landing-benefits li > span { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; border-radius: 50%; background: #dce9dc; color: #468064; font-size: 10px; font-weight: 700; }
.landing-benefits li div { display: grid; gap: 4px; }
.landing-benefits strong { color: #456056; font-size: 10px; }
.landing-benefits small { color: #89958c; font-size: 9px; }
.landing-contact { min-height: 274px; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-top: 51px; padding-bottom: 51px; background: #214d4a; }
.landing-contact h2 { margin: 13px 0 9px; color: #fff; font: 700 31px/1.22 Manrope,sans-serif; letter-spacing: -1px; }
.landing-contact > div:first-child > p { margin: 0; color: #c2d3c8; font-size: 10px; line-height: 1.7; }
.landing-contact-actions { display: grid; gap: 10px; width: 210px; flex: 0 0 210px; }
.landing-contact-primary, .landing-contact-secondary { min-height: 43px; border-radius: 7px; font-size: 10px; font-weight: 700; }
.landing-contact-primary { background: #e5b07c; color: #263d38; }
.landing-contact-primary:hover { background: #edbd8e; }
.landing-contact-secondary { border: 1px solid #ffffff55; background: transparent; color: #fff; }
.landing-contact-secondary:hover { background: #ffffff12; }
.landing-footer { min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1200px,calc(100% - 80px)); margin: 0 auto; }
.landing-footer-brand .landing-brand-mark { width: 34px; height: 34px; border-radius: 11px; }
.landing-footer-brand .landing-brand-mark svg { width: 20px; }
.landing-footer-brand strong { font-size: 19px; }
.landing-footer-brand small { font-size: 7px; }
.landing-footer > span { color: #929b93; font-size: 9px; }
.landing-footer > a:last-child { font-size: 9px; }
.auth-layout { position: relative; }
.auth-home-link { position: absolute; top: 15px; left: 17px; z-index: 2; padding: 7px 9px; border: 0; border-radius: 6px; background: #ffffff20; color: #fff; font-size: 9px; }
.auth-home-link:hover { background: #ffffff32; }
.auth-home-link span { margin-right: 4px; }

@media (max-width: 980px) {
  .landing-header, .landing-footer { width: min(100% - 48px,760px); }
  .landing-nav { gap: 20px; margin-left: 0; }
  .landing-hero { width: min(100% - 48px,760px); grid-template-columns: minmax(330px,1fr) minmax(300px,.9fr); gap: 10px; }
  .landing-hero h1 { font-size: 51px; }
  .landing-hero-visual { min-height: 380px; }
  .landing-orbit-one { width: 340px; height: 340px; }
  .landing-orbit-two { width: 280px; height: 280px; }
  .landing-float-dues { left: -6px; }
  .landing-float-notice { right: -10px; }
  .landing-section { padding-right: 40px; padding-left: 40px; }
  .landing-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-about { gap: 48px; }
}
@media (max-width: 680px) {
  .landing-header { width: calc(100% - 36px); height: 76px; flex-wrap: wrap; }
  .landing-brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .landing-brand strong { font-size: 21px; }
  .landing-nav { order: 3; width: 100%; justify-content: center; gap: clamp(22px,8vw,40px); padding: 0 0 12px; }
  .landing-nav a { font-size: 10px; }
  .landing-header-actions { gap: 12px; }
  .landing-install-button { padding: 6px 7px; font-size: 8px; }
  .landing-login-link { font-size: 10px; }
  .landing-header-button { min-height: 36px; padding: 0 11px; font-size: 9px; }
  .landing-hero { width: calc(100% - 40px); min-height: auto; grid-template-columns: 1fr; gap: 0; padding: 55px 0 58px; }
  .landing-hero::before { top: 335px; right: -183px; width: 520px; height: 455px; }
  .landing-hero-copy { padding-bottom: 0; }
  .landing-hero h1 { margin: 17px 0 13px; font-size: clamp(42px,12vw,57px); letter-spacing: -2.7px; }
  .landing-hero-copy > p { max-width: 440px; font-size: 12px; }
  .landing-hero-actions { gap: 9px; margin-top: 20px; }
  .landing-primary-button, .landing-outline-button { min-height: 44px; padding: 0 13px; font-size: 9px; }
  .landing-trust { margin-top: 19px; font-size: 9px; }
  .landing-hero-visual { min-height: 335px; margin-top: 13px; }
  .landing-building-art { width: min(100%,380px); }
  .landing-orbit-one { width: 300px; height: 300px; }
  .landing-orbit-two { width: 243px; height: 243px; }
  .landing-float-card { min-width: 164px; padding: 8px 9px; }
  .landing-float-dues { top: 42px; left: -4px; }
  .landing-float-notice { right: -5px; bottom: 40px; }
  .landing-visual-caption { right: 14px; bottom: 1px; font-size: 8px; }
  .landing-scroll-cue { bottom: 12px; }
  .landing-section { padding-right: 22px; padding-left: 22px; }
  .landing-features { padding-top: 68px; padding-bottom: 70px; }
  .landing-section-heading { margin-bottom: 28px; }
  .landing-section-heading h2, .landing-about-copy h2 { font-size: 30px; letter-spacing: -1.2px; }
  .landing-section-heading > p { font-size: 10px; }
  .landing-feature-grid { gap: 10px; }
  .landing-feature-card { min-height: 197px; padding: 17px 14px; }
  .landing-feature-card h3 { font-size: 11px; }
  .landing-feature-card p { font-size: 9px; }
  .feature-number { top: 16px; right: 13px; }
  .landing-about { grid-template-columns: 1fr; gap: 31px; padding-top: 58px; padding-bottom: 62px; }
  .landing-about-visual { min-height: 275px; }
  .about-note { width: 205px; min-height: 200px; }
  .about-note strong { font-size: 19px; }
  .about-stamp { right: 9%; bottom: 4px; width: 77px; height: 77px; font-size: 9px; }
  .landing-about-copy > p { font-size: 10px; }
  .landing-contact { min-height: auto; align-items: flex-start; flex-direction: column; gap: 22px; padding-top: 45px; padding-bottom: 45px; }
  .landing-contact h2 { font-size: 27px; }
  .landing-contact-actions { width: 100%; grid-template-columns: 1fr 1fr; flex: auto; }
  .landing-footer { width: calc(100% - 40px); min-height: 105px; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 0; }
  .landing-footer > span { order: 3; width: 100%; font-size: 8px; }
  .landing-footer > a:last-child { font-size: 8px; }
}
@media (max-width: 380px) {
  .landing-header-actions { gap: 8px; }
  .landing-login-link { font-size: 9px; }
  .landing-header-button { padding: 0 8px; font-size: 8px; }
  .landing-primary-button, .landing-outline-button { padding: 0 10px; font-size: 8px; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-feature-card { min-height: 165px; }
}
.content-editor-notice { display: grid; gap: 5px; padding: 16px 19px; margin-bottom: 16px; border: 1px solid #dce9df; border-radius: 10px; background: #f0f6ee; }
.content-editor-notice strong { color: #3c6956; font: 700 12px Manrope,sans-serif; }
.content-editor-notice span { color: #74867b; font-size: 10px; line-height: 1.7; }
.content-editor-form { display: grid; gap: 15px; }
.content-editor-section { padding: 20px; }
.content-editor-section .panel-heading { margin-bottom: 19px; }
.content-editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.content-editor-grid + .content-editor-grid { margin-top: 14px; }
.content-editor-grid .field { min-width: 0; }
.content-editor-grid .field label, .content-image-editor > div:first-child > strong { color: #536176; font-size: 10px; font-weight: 700; }
.content-editor-grid .field-control { min-height: 39px; font-size: 11px; }
.content-editor-grid textarea.field-control { min-height: 76px; }
.content-editor-grid .field.full { grid-column: 1/-1; }
.content-editor-card { display: grid; align-content: start; gap: 11px; min-width: 0; padding: 15px; border: 1px solid #edf0f4; border-radius: 9px; background: #fcfcfd; }
.content-editor-card h3 { margin: 0 0 2px; color: #425167; font: 700 11px Manrope,sans-serif; }
.content-page-card { grid-template-columns: repeat(2,minmax(0,1fr)); }
.content-page-card h3, .content-page-card .field:last-child { grid-column: 1/-1; }
.content-image-editor { display: grid; grid-template-columns: minmax(0,1fr) 230px; align-items: center; gap: 20px; padding: 16px; margin-top: 18px; border: 1px solid #edf0f4; border-radius: 9px; background: #fcfcfd; }
.content-image-editor > div:first-child > p { margin: 6px 0 13px; color: #8994a3; font-size: 9px; line-height: 1.7; }
.content-image-controls { display: grid; gap: 11px; }
.content-file-label { width: fit-content; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #dfe5ec; border-radius: 7px; background: #fff; color: #4d5c70; font-size: 10px; font-weight: 600; cursor: pointer; }
.content-file-label input { max-width: 190px; color: #818c9b; font-size: 9px; }
.content-remove-image { width: fit-content; display: flex; align-items: center; gap: 7px; color: #8994a3; font-size: 9px; }
.content-image-preview, .content-image-empty { width: 100%; height: 130px; display: grid; place-items: center; border: 1px dashed #dfe5e7; border-radius: 8px; background: #f2f5ef; color: #87948b; font-size: 9px; }
.content-image-preview { object-fit: contain; border-style: solid; }
.content-editor-actions { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #ffffffed; box-shadow: 0 6px 18px #202b3d0a; }
.content-editor-actions > span { color: #8994a3; font-size: 9px; }
.unread-badge, .tab-badge, .chat-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; color: #fff; background: #d9485f; font-size: 9px; font-weight: 700; }
.unread-badge[hidden] { display: none; }
.tab-badge { margin-left: 4px; vertical-align: middle; }
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #edf0f5; }
.chat-toolbar strong, .chat-thread-head strong { color: #354255; font-size: 12px; }
.chat-toolbar p, .chat-thread-head span { margin: 4px 0 0; color: #98a2b0; font-size: 10px; }
.push-note { margin: 0; max-width: 300px; color: #8792a3; font-size: 9px; line-height: 1.5; text-align: right; }
.chat-layout { display: grid; grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr); gap: 16px; min-height: 360px; padding-top: 14px; }
.chat-conversation-list { display: grid; align-content: start; gap: 6px; max-height: 490px; overflow-y: auto; }
.chat-conversation { position: relative; display: grid; gap: 4px; width: 100%; padding: 11px 30px 11px 12px; border: 1px solid #edf0f5; border-radius: 9px; background: #fff; color: #566275; text-align: left; }
.chat-conversation.selected { border-color: #aab5ef; background: #f6f7ff; }
.chat-conversation strong { color: #354255; font-size: 10px; }
.chat-conversation span, .chat-conversation small { overflow: hidden; color: #98a2b0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation .chat-unread { position: absolute; top: 10px; right: 9px; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 330px; }
.chat-thread-head { display: grid; gap: 2px; padding: 2px 0 12px; border-bottom: 1px solid #edf0f5; }
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 9px; max-height: 370px; min-height: 190px; overflow-y: auto; padding: 13px 4px; }
.chat-message { align-self: flex-start; max-width: min(82%, 500px); padding: 9px 11px; border: 1px solid #edf0f5; border-radius: 11px 11px 11px 3px; background: #f8f9fc; }
.chat-message.own { align-self: flex-end; border-color: #dce2ff; border-radius: 11px 11px 3px 11px; background: #f0f2ff; }
.chat-message-sender { display: block; margin-bottom: 4px; color: #788396; font-size: 9px; font-weight: 700; }
.chat-message p { margin: 0; color: #394657; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message time { display: block; margin-top: 5px; color: #9aa4b2; font-size: 8px; text-align: right; }
.chat-empty { display: grid; flex: 1; min-height: 160px; place-items: center; color: #98a2b0; font-size: 10px; text-align: center; }
.chat-compose { display: flex; align-items: flex-end; gap: 9px; padding-top: 11px; border-top: 1px solid #edf0f5; }
.chat-compose textarea { flex: 1; min-height: 42px; max-height: 115px; resize: vertical; padding: 10px 11px; border: 1px solid #e4e8ef; border-radius: 8px; outline: 0; color: #394657; font: inherit; font-size: 11px; }
.chat-compose textarea:focus { border-color: #aab5ef; }
.resident-chat { padding-top: 14px; }
.resident-chat .chat-thread { min-height: 350px; }
@media (max-width: 760px) {
  .content-editor-grid { grid-template-columns: 1fr; }
  .content-editor-grid .field.full { grid-column: auto; }
  .content-page-card { grid-template-columns: 1fr; }
  .content-page-card h3, .content-page-card .field:last-child { grid-column: auto; }
  .content-image-editor { grid-template-columns: 1fr; }
  .content-image-preview, .content-image-empty { max-width: 280px; }
  .content-editor-actions { align-items: stretch; flex-direction: column; }
  .section-tabs { overflow-x: auto; }
  .section-tab { flex: 0 0 auto; }
  .chat-toolbar { align-items: flex-start; flex-direction: column; }
  .push-note { text-align: left; }
  .chat-layout { grid-template-columns: 1fr; }
  .manager-chat .chat-conversation-list { grid-template-columns: 1fr; max-height: 190px; }
  .chat-messages { min-height: 230px; }
  .chat-compose { position: sticky; bottom: 0; padding-bottom: max(7px, env(safe-area-inset-bottom)); background: #fff; }
}

.landing-page { color: #233a39; background: var(--landing-surface, #f6f7f2); }
.landing-brand-mark, .landing-header-button, .landing-primary-button { background-color: var(--landing-primary, #175c52); }
.landing-header-button:hover, .landing-primary-button:hover { background-color: color-mix(in srgb, var(--landing-primary, #175c52) 86%, #000); }
.landing-hero h1 span, .landing-section-heading h2 span, .landing-about-copy h2 span,
.public-page-heading h1 span, .public-page h1 span { color: var(--landing-primary, #175c52); }
.landing-hero::before { background: radial-gradient(ellipse at 55% 46%, color-mix(in srgb, var(--landing-primary, #175c52) 11%, white) 0, color-mix(in srgb, var(--landing-primary, #175c52) 7%, white) 48%, var(--landing-surface, #f6f7f2) 75%, transparent 76%); }
.landing-nav a.active { color: var(--landing-primary, #175c52); }
.landing-text-link { align-self: center; color: var(--landing-primary, #175c52); font-size: 12px; font-weight: 700; text-decoration: none; }
.landing-text-link span { padding-left: 5px; }
.landing-hero { min-height: 610px; }
.public-page { width: min(1120px, calc(100% - 80px)); min-height: 560px; margin: 0 auto; padding: 76px 0 90px; }
.public-page-heading { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.public-page-heading h1, .public-page h1 { margin: 17px 0 15px; color: #1d3838; font: 750 clamp(38px, 5vw, 56px)/1.12 Manrope, sans-serif; letter-spacing: -2.5px; }
.public-page-heading > p { max-width: 650px; margin: 0 auto; color: #75827a; font-size: 14px; line-height: 1.8; }
.public-features .landing-feature-grid { max-width: 1020px; margin: 0 auto; }
.public-features .landing-feature-card { min-height: 230px; border-radius: 17px; box-shadow: 0 12px 35px #233a3908; }
.public-page-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1020px; padding: 25px 30px; margin: 38px auto 0; border: 1px solid #e8ece4; border-radius: 16px; background: #fff; color: #324e46; }
.public-about { padding-top: 35px; }
.public-about .landing-about { padding-top: 30px; padding-bottom: 30px; }
.public-about .landing-about-copy h1 { margin: 16px 0; }
.public-about .landing-about-copy > p { color: #75827a; font-size: 14px; line-height: 1.9; }
.public-about .landing-primary-button { margin-top: 8px; }
.public-contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 70px; }
.contact-page-card { max-width: 690px; padding: 52px; border: 1px solid #e8ece4; border-radius: 24px; background: #fff; box-shadow: 0 22px 70px #233a390b; }
.contact-page-card h1 { margin: 17px 0; font-size: clamp(36px, 4.5vw, 52px); }
.contact-page-card > p { color: #75827a; font-size: 14px; line-height: 1.85; }
.contact-detail-list { display: grid; gap: 10px; margin: 28px 0; }
.contact-detail-card { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 13px 16px; border: 1px solid #e9eee7; border-radius: 12px; color: #263f3a; text-decoration: none; }
.contact-detail-card > span:nth-child(2) { display: grid; flex: 1; gap: 5px; min-width: 0; }
.contact-detail-card > span:last-child { color: var(--landing-primary, #175c52); }
.contact-detail-card small { color: #88948b; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.contact-detail-card strong { overflow-wrap: anywhere; font-size: 13px; }
.contact-detail-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--landing-primary, #175c52) 10%, white); color: var(--landing-primary, #175c52); font-size: 18px; }
.contact-register-note { display: block; margin-top: 16px; color: #88948b; font-size: 10px; line-height: 1.6; }
.contact-decoration { color: color-mix(in srgb, var(--landing-primary, #175c52) 12%, white); font: 800 74px/1 Manrope, sans-serif; letter-spacing: -5px; transform: rotate(-8deg); }
.contact-decoration span { display: block; color: var(--landing-accent, #e27d5f); font-size: 88px; text-align: right; }
.landing-footer { width: min(1200px, calc(100% - 80px)); }

@media (max-width: 900px) {
  .landing-header { width: calc(100% - 40px); }
  .landing-nav { gap: 17px; margin-left: 12px; }
  .landing-nav a { font-size: 10px; }
  .landing-header-actions { gap: 10px; }
  .landing-hero { width: calc(100% - 50px); grid-template-columns: minmax(300px, .95fr) minmax(280px, 1.05fr); gap: 15px; }
  .public-page { width: calc(100% - 48px); }
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .landing-header { width: calc(100% - 32px); height: auto; min-height: 76px; flex-wrap: wrap; gap: 8px; padding: 12px 0 10px; }
  .landing-brand-mark { width: 36px; height: 36px; }
  .landing-brand strong { font-size: 21px; }
  .landing-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; margin: 0; padding-top: 8px; border-top: 1px solid #e9ece5; }
  .landing-nav a { font-size: 10px; }
  .landing-header-actions { margin-left: auto; }
  .landing-install-button { max-width: 105px; font-size: 9px; }
  .landing-header-button { min-height: 38px; padding: 0 13px; }
  .landing-hero { width: calc(100% - 36px); min-height: auto; grid-template-columns: 1fr; gap: 0; padding: 42px 0 55px; }
  .landing-hero::before { top: 360px; right: -180px; width: 500px; height: 390px; }
  .landing-hero h1 { font-size: clamp(42px, 12vw, 58px); letter-spacing: -2.7px; }
  .landing-hero-copy > p { font-size: 13px; }
  .landing-hero-visual { min-height: 350px; margin-top: 15px; }
  .landing-orbit-one { width: 320px; height: 320px; }
  .landing-orbit-two { width: 260px; height: 260px; }
  .landing-float-dues { top: 53px; left: -2px; }
  .landing-float-notice { right: -3px; bottom: 49px; }
  .landing-visual-caption { right: 13px; bottom: 5px; }
  .landing-scroll-cue { bottom: 11px; }
  .public-page { width: calc(100% - 36px); min-height: 0; padding: 50px 0 65px; }
  .public-page-heading { margin-bottom: 30px; }
  .public-page-heading h1, .public-page h1 { font-size: 39px; letter-spacing: -1.8px; }
  .public-page-heading > p { font-size: 13px; }
  .public-features .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-feature-card { min-height: 175px; }
  .public-page-cta { align-items: flex-start; flex-direction: column; padding: 21px; }
  .public-about { padding-top: 25px; }
  .public-about .landing-about { grid-template-columns: 1fr; gap: 36px; }
  .public-about .landing-about-visual { min-height: 270px; }
  .public-contact { grid-template-columns: 1fr; gap: 14px; }
  .contact-page-card { padding: 30px 22px; border-radius: 18px; }
  .contact-decoration { display: none; }
  .landing-footer { width: calc(100% - 36px); flex-wrap: wrap; gap: 13px; padding: 20px 0; }
  .landing-footer > span { order: 3; width: 100%; }
}

.mobile-public-nav { display: none; }
.landing-nav a[aria-current="page"] { color: var(--landing-primary, #175c52); }
@media (max-width: 680px) {
  .landing-page { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .public-contact { grid-template-columns: minmax(0, 1fr); }
  .contact-page-card { min-width: 0; overflow-wrap: anywhere; }
  .contact-detail-card > span { min-width: 0; }
  .landing-header { height: auto; min-height: 76px; flex-wrap: nowrap; }
  .landing-header .landing-nav, .landing-header-button { display: none; }
  .mobile-public-nav {
    position: fixed; inset: auto 0 0; z-index: 10;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 4px;
    padding: 10px max(8px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #e0e6de; background: var(--landing-surface, #f6f7f2); box-shadow: 0 -4px 18px #173b3214;
  }
  .mobile-public-nav a, .mobile-public-nav button {
    display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px;
    padding: 8px 4px; border: 0; border-radius: 8px; color: #435951; background: transparent;
    font: 600 11px/1.4 "DM Sans", sans-serif; text-align: center; text-decoration: none; overflow-wrap: anywhere;
  }
  .mobile-public-nav a[aria-current="page"] { color: var(--landing-primary, #175c52); background: #175c5210; }
  .mobile-public-nav button { color: #fff; background: var(--landing-primary, #175c52); }
  .mobile-public-nav :focus-visible { outline: 2px solid var(--landing-primary, #175c52); outline-offset: 2px; }
}
