@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --font-sans: "Outfit", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: #0f8a78;
  --brand-hover: #0b7163;
  --brand-deep: #11584d;
  --brand-soft: #e8f7f3;
  --brand-softer: #f3fbf9;
  --accent: #14b8a6;
  --canvas: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --surface-3: #eef3f1;
  --text: #17211e;
  --text-strong: #0e1714;
  --muted: #66756f;
  --muted-2: #8a9691;
  --border: #dce6e2;
  --border-strong: #cbd9d4;
  --sidebar: #173e34;
  --sidebar-hover: #225247;
  --sidebar-active: #0f8a78;
  --sidebar-text: #e8f1ee;
  --sidebar-muted: #a8beb7;
  --success: #15825b;
  --success-soft: #e8f7ef;
  --warning: #b55a10;
  --warning-soft: #fff4e5;
  --danger: #b42318;
  --danger-soft: #fdebea;
  --info: #286b62;
  --info-soft: #eaf5f3;
  --shadow-sm: 0 1px 2px rgba(16, 38, 31, .04);
  --shadow-md: 0 8px 28px rgba(16, 38, 31, .07);
  --shadow-lg: 0 20px 50px rgba(16, 38, 31, .13);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 86px;
  --topbar-height: 76px;
}

html.dark {
  color-scheme: dark;
  --canvas: #0d1725;
  --surface: #111c2d;
  --surface-2: #152235;
  --surface-3: #1b2a3f;
  --text: #e6edf5;
  --text-strong: #ffffff;
  --muted: #aab7c8;
  --muted-2: #7e8da1;
  --border: #26364b;
  --border-strong: #34465f;
  --brand-soft: #123d39;
  --brand-softer: #102d2b;
  --success-soft: #123a2d;
  --warning-soft: #422b16;
  --danger-soft: #421f24;
  --info-soft: #183a3d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .2);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); transition: grid-template-columns .2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 40; height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 18px 14px 14px; background: var(--sidebar); color: var(--sidebar-text); border-right: 1px solid rgba(255,255,255,.07); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; min-height: 54px; gap: 8px; margin-bottom: 12px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #18b6a4, #0f8a78); color: white; text-decoration: none; font-weight: 800; font-size: 16px; box-shadow: 0 8px 20px rgba(5, 30, 25, .2); }
.brand-mark.large { width: 58px; height: 58px; border-radius: 16px; font-size: 20px; }
.brand-copy { min-width: 0; display: grid; text-decoration: none; line-height: 1.25; }
.brand-copy strong { font-size: 16px; color: #fff; white-space: nowrap; }
.brand-copy small { color: var(--sidebar-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tagline { margin-top: 2px; font-style: italic; }
.sidebar-collapse { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.055); color: #dbe9e4; cursor: pointer; }
.sidebar-collapse:hover { background: rgba(255,255,255,.1); }
.nav-list { overflow-y: auto; overflow-x: hidden; padding: 2px 0 18px; scrollbar-width: thin; }
.nav-heading { margin: 18px 10px 7px; color: #78968c; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800; white-space: nowrap; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 9px 11px; margin: 2px 0; border-radius: 10px; color: #cbdcd6; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s, transform .15s; }
.nav-item:hover { color: #fff; background: var(--sidebar-hover); }
.nav-item.active { color: #fff; background: var(--sidebar-active); box-shadow: 0 7px 18px rgba(7, 78, 68, .24); }
.nav-icon { flex: none; width: 22px; text-align: center; color: inherit; font-size: 17px; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sidebar-panels { display: grid; gap: 8px; margin-top: auto; }
.sidebar-panel { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.045); text-decoration: none; }
.sidebar-panel:hover { background: rgba(255,255,255,.085); }
.panel-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(20,184,166,.16); color: #7ee7da; font-weight: 800; }
.emergency-sidebar-card .panel-icon { background: rgba(248,113,113,.13); color: #fca5a5; }
.panel-copy { min-width: 0; display: grid; line-height: 1.25; }
.panel-copy small { color: #77978c; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.panel-copy strong { color: #fff; font-size: 12px; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-copy em { color: #a9bdb6; font-size: 10px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-bottom { padding-top: 9px; }
.sidebar-credit { display: block; padding: 8px 10px 0; color: #87a299; font-size: 10px; }
.developer-credit { text-decoration: none; }
.developer-credit-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; }
.developer-contact-link { color: inherit; font-weight: 700; text-decoration: none; }
.developer-contact-link:hover, .developer-contact-link:focus { text-decoration: underline; }
.developer-heart { color: #ef5964; }
.sidebar-collapsed .brand-copy, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-heading, .sidebar-collapsed .sidebar-panels, .sidebar-collapsed .sidebar-credit { display: none; }
.sidebar-collapsed .sidebar { padding-inline: 12px; }
.sidebar-collapsed .sidebar-header { justify-content: center; flex-wrap: wrap; }
.sidebar-collapsed .nav-item { justify-content: center; padding-inline: 8px; }
.sidebar-collapsed .nav-icon { width: 24px; }

.main-area { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.topbar-left { min-width: 0; gap: 12px; }
.topbar-actions { margin-left: auto; gap: 9px; }
.menu-button { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.page-identity { min-width: 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 2px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.page-identity h1 { margin: 0; color: var(--text-strong); font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; position: relative; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.icon-button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-softer); }
.notification-button > span { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 999px; background: #dc3545; color: white; font-size: 10px; font-weight: 800; }
.profile-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 7px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.user-chip:hover { background: var(--surface-2); }
.avatar { flex: none; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; }
.user-copy { min-width: 0; display: grid; text-align: left; line-height: 1.25; }
.user-copy strong { color: var(--text-strong); font-size: 13px; white-space: nowrap; }
.user-copy small { color: var(--muted); font-size: 11px; }
.chevron { color: var(--muted); }
.profile-dropdown { position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; width: 225px; padding: 7px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); }
.profile-dropdown a, .profile-dropdown button { width: 100%; display: block; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.profile-dropdown a:hover, .profile-dropdown button:hover { background: var(--surface-2); }
.page-content { width: 100%; max-width: 1760px; padding: 26px 28px 42px; }
.mobile-backdrop { display: none; }

/* Reusable content */
.welcome-row, .page-toolbar, .page-header, .dashboard-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.welcome-row h2, .page-toolbar h2, .page-header h2, .dashboard-welcome h2 { margin: 0 0 4px; color: var(--text-strong); font-size: 24px; letter-spacing: -.025em; }
.welcome-row p, .page-toolbar p, .page-header p, .dashboard-welcome p { margin: 0; color: var(--muted); }
.eyebrow, .card-eyebrow { margin: 0 0 5px !important; color: var(--brand) !important; text-transform: uppercase; letter-spacing: .1em; font-size: 11px !important; font-weight: 800; }
.panel, .card, .table-card, .form-card, .notice-card, .quick-card, .guidance-card, .history-card, .property-access-card, .rating-summary-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card { overflow: hidden; }
.card-header, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.card-header h3, .panel-heading h3 { margin: 0; color: var(--text-strong); font-size: 17px; }
.card-header p, .panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.card-link, .text-link, .table-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.card-link:hover, .text-link:hover, .table-link:hover { text-decoration: underline; }
.content-grid, .dashboard-grid, .tailadmin-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 18px; }
.span-2 { grid-column: span 2; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card { min-width: 0; display: flex; align-items: flex-start; gap: 13px; position: relative; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.metric-copy { min-width: 0; }
.metric-card p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; color: var(--text-strong); font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.metric-card small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 11px; }
.metric-trend { position: absolute; top: 15px; right: 15px; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.metric-trend.positive { color: var(--success); background: var(--success-soft); }
.metric-trend.warning { color: var(--warning); background: var(--warning-soft); }
.metric-trend.neutral { color: var(--info); background: var(--info-soft); }

.segmented { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.segmented a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px; border-radius: 7px; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.segmented a:hover { background: var(--surface-2); color: var(--text-strong); }
.segmented a.active { background: var(--brand); color: #fff; }
.button-row, .filter-row, .form-actions, .emergency-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button, .button-secondary, .link-button, .small-button, .danger-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: var(--shadow-sm); }
.button:hover, .link-button:hover { background: var(--brand-hover); }
.button.secondary, .button-secondary, .small-button { border-color: var(--border); background: var(--surface); color: var(--text); }
.button.secondary:hover, .button-secondary:hover, .small-button:hover { border-color: var(--brand); background: var(--brand-softer); color: var(--brand-deep); }
.button.full { width: 100%; }
.danger-button { background: var(--danger); }
.danger-button:hover { filter: brightness(.92); }
.button:disabled, button:disabled, .button.disabled { opacity: .55; cursor: not-allowed; }

/* Forms */
.model-form, .stack-form { padding: 20px; }
.form-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 18px; align-items: start; }
.form-grid { display: grid; gap: 17px; }
.form-grid.two-column { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field-group, .form-group, .report-filter-bar label, .filter-bar label { min-width: 0; display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }
.field-group.span-full { grid-column: 1 / -1; }
.required { color: var(--danger); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea, .form-control { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: 9px; outline: none; background: var(--surface); color: var(--text); box-shadow: inset 0 1px 1px rgba(16,38,31,.025); }
textarea { min-height: 116px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); opacity: 1; }
input:focus, select:focus, textarea:focus, .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-3); color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); }
select { appearance: auto; }
.help-text { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.field-error, .error-text { color: var(--danger); font-size: 12px; font-weight: 600; }
.form-actions { justify-content: flex-end; margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--border); }
.form-section-title { margin: 22px 0 12px; color: var(--text-strong); font-size: 16px; }
.guidance-list { padding: 14px 20px; }
.guidance-list > div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.guidance-list > div:last-child { border-bottom: 0; }
.guidance-list strong { color: var(--text-strong); }
.guidance-list p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.report-filter-bar, .filter-bar, .property-filters, .professional-filters, .emergency-filters { display: grid; grid-template-columns: minmax(220px,2fr) minmax(180px,1fr) auto auto; align-items: end; gap: 12px; margin-bottom: 18px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.search-box { min-width: 250px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); }
.search-box input { min-height: 44px !important; border: 0 !important; padding-inline: 0 !important; box-shadow: none !important; }

/* Tables and lists */
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; color: var(--text); font-size: 13px; }
th { padding: 12px 15px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .055em; font-size: 10px; font-weight: 800; white-space: nowrap; }
td { padding: 14px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: var(--brand-softer); }
tbody tr:last-child td { border-bottom: 0; }
td.numeric, th.numeric { text-align: right; }
.table-subtext { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.badge, .status-badge, .count-pill, .channel-pill { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 11px; line-height: 1; font-weight: 800; white-space: nowrap; }
.badge.active, .badge.paid, .badge.posted, .badge.allocated, .badge.matched, .status-badge.active, .status-badge.paid, .success { background: var(--success-soft); color: var(--success); }
.badge.draft, .badge.imported, .badge.part_paid, .badge.part_allocated, .warning { background: var(--warning-soft); color: var(--warning); }
.badge.void, .badge.reversed, .badge.suspended, .danger { background: var(--danger-soft); color: var(--danger); }
.pagination { display: flex; justify-content: center; gap: 7px; padding: 18px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-decoration: none; }
.pagination .active { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty-state { padding: 38px 20px; display: grid; place-items: center; gap: 6px; color: var(--muted); text-align: center; }
.empty-state.compact { padding: 25px 16px; }
.empty-state strong, .empty-state h3 { margin: 0; color: var(--text-strong); }
.empty-state p { margin: 0; }
.empty-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.quick-actions { display: grid; padding: 7px 14px 14px; }
.quick-actions a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 12px 7px; border-bottom: 1px solid var(--border); text-decoration: none; }
.quick-actions a:last-child { border-bottom: 0; }
.quick-actions a:hover { background: var(--surface-2); }
.quick-actions a > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions small { margin-top: 2px; color: var(--muted); font-size: 11px; }

/* Messages */
.message-stack { display: grid; gap: 9px; margin-bottom: 16px; }
.flash-message, .alert, .notice, .registration-notice, .directory-notice, .emergency-notice, .humour-disclaimer, .payment-banner { padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--info-soft); color: var(--text); }
.flash-message.success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 25%, var(--border)); }
.flash-message.error, .alert { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, var(--border)); color: var(--danger); }
.flash-message.warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 25%, var(--border)); }
.payment-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; background: var(--warning-soft); }
.payment-banner.is-overdue { background: var(--danger-soft); }

/* Public home */
.public-home-body { min-height: 100vh; background: #eef4f1; }
.public-home-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(420px,.82fr); }
.public-home-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(34px,5vw,72px); background: linear-gradient(145deg, #123e34 0%, #1a6657 58%, #0d8775 100%); color: #fff; }
.public-home-glow { position: absolute; border-radius: 50%; background: rgba(110,231,215,.11); filter: blur(2px); }
.public-home-glow-one { width: 430px; height: 430px; top: -180px; right: -150px; }
.public-home-glow-two { width: 300px; height: 300px; bottom: -140px; left: -90px; }
.public-home-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.public-home-brand strong, .public-home-brand small { display: block; }
.public-home-brand strong { font-size: 19px; }
.public-home-brand small { color: #b7d7ce; font-style: italic; }
.public-home-copy { position: relative; z-index: 1; max-width: 760px; margin: auto 0; padding: 60px 0; }
.public-home-kicker { margin: 0 0 14px; color: #a9e5db; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 800; }
.public-home-copy h1 { max-width: 720px; margin: 0; font-size: clamp(42px,5.3vw,74px); line-height: 1.02; letter-spacing: -.052em; }
.public-home-lead { max-width: 650px; margin: 25px 0 0; color: #d2e9e3; font-size: 18px; line-height: 1.65; }
.public-home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.public-primary-button, .public-secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border-radius: 10px; text-decoration: none; font-weight: 750; }
.public-primary-button { background: #fff; color: #135b4e; }
.public-primary-button:hover { background: #e9f7f3; }
.public-secondary-button { border: 1px solid rgba(255,255,255,.27); color: #fff; background: rgba(255,255,255,.07); }
.public-secondary-button:hover { background: rgba(255,255,255,.13); }
.public-home-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 42px; }
.public-home-features article { display: grid; grid-template-columns: 31px 1fr; gap: 9px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.17); }
.public-home-features article > span { color: #8ce0d3; font-size: 11px; font-weight: 800; }
.public-home-features strong, .public-home-features small { display: block; }
.public-home-features strong { font-size: 13px; }
.public-home-features small { margin-top: 3px; color: #b9d5cd; font-size: 11px; }
.public-home-footer { position: relative; z-index: 1; color: #aacbc2; font-size: 12px; }
.public-home-login-panel { display: grid; place-items: center; padding: 38px; background: var(--surface); }
.public-home-login-card { width: min(440px,100%); }
.public-login-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 850; }
.public-home-login-card h2 { margin: 8px 0 4px; color: var(--text-strong); font-size: 32px; letter-spacing: -.035em; }
.public-home-login-card > p { color: var(--muted); }
.public-login-button { margin-top: 22px; }
.public-registration-notice { margin-top: 16px; background: var(--brand-softer); border-color: color-mix(in srgb, var(--brand) 20%, var(--border)); }
.public-registration-notice p { margin: 5px 0 0; color: var(--muted); }
.public-security-note { display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: center; margin-top: 18px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.public-security-note > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-weight: 800; }
.public-security-note p { margin: 0; }
.public-security-note strong, .public-security-note small { display: block; }
.public-security-note small { color: var(--muted); }
.public-admin-link { display: inline-block; margin-top: 17px; color: var(--brand); font-weight: 700; text-decoration: none; }

/* Authentication */
.auth-body { min-height: 100vh; background: var(--canvas); }
.auth-shell, .tailadmin-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(420px,.85fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px,8vw,115px); background: linear-gradient(145deg, #123e34, #0f7868); color: #fff; }
.auth-brand-inner { position: relative; z-index: 1; max-width: 660px; }
.auth-community { margin: 22px 0 0; font-weight: 800; }
.auth-tagline { margin: 3px 0 30px; color: #a7e4d9; font-style: italic; }
.auth-brand h1 { max-width: 700px; margin: 0; font-size: clamp(42px,5vw,72px); line-height: 1.02; letter-spacing: -.05em; }
.auth-copy { max-width: 590px; color: #d1e8e2; font-size: 17px; line-height: 1.65; }
.auth-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; margin-top: 30px; color: #d3eee8; font-size: 14px; }
.auth-orb { position: absolute; border-radius: 50%; background: rgba(94,234,212,.1); }
.auth-orb-one { width: 420px; height: 420px; right: -160px; top: -160px; }
.auth-orb-two { width: 270px; height: 270px; left: -90px; bottom: -90px; }
.auth-card-wrap { display: grid; place-items: center; padding: 38px; background: var(--surface); }
.auth-card { width: min(430px,100%); }
.auth-heading h2, .auth-card h2 { margin: 7px 0 4px; color: var(--text-strong); font-size: 29px; letter-spacing: -.035em; }
.auth-heading p, .auth-card p { color: var(--muted); }
.form-stack { display: grid; gap: 16px; margin-top: 22px; }
.form-stack label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-submit { min-height: 48px; }
.auth-footer { margin-top: 22px; color: var(--muted); text-align: center; font-size: 12px; }
.auth-link { color: var(--brand); font-weight: 700; }

/* Map */
.map-page { min-width: 0; }
.map-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 17px 18px; }
.map-toolbar h2 { margin: 0 0 4px; color: var(--text-strong); font-size: 22px; }
.map-toolbar p { margin: 0; color: var(--muted); }
.map-controls { display: grid; grid-template-columns: minmax(135px,180px) auto 42px 42px auto; align-items: center; gap: 8px; flex: none; }
.map-controls input { min-height: 42px !important; }
.masterplan-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 16px; align-items: start; }
.masterplan-card { position: relative; min-width: 0; overflow: hidden; }
.map-scroll { width: 100%; height: min(72vh,820px); overflow: auto; background: #e8edeb; overscroll-behavior: contain; cursor: grab; touch-action: pan-x pan-y; user-select: none; }
.map-scroll.is-dragging { cursor: grabbing; }
.map-scroll.is-dragging .plot-hotspot { pointer-events: none; }
.dark .map-scroll { background: #172335; }
.map-stage { position: relative; }
.masterplan-svg { display: block; }
.plot-hotspot { fill: rgba(15,138,120,.03); stroke: rgba(15,138,120,.42); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .12s, stroke .12s; }
.plot-hotspot:hover, .plot-hotspot:focus { fill: rgba(20,184,166,.28); stroke: #0f8a78; outline: none; }
.plot-hotspot.selected { fill: rgba(245,158,11,.34); stroke: #d97706; stroke-width: 3; }
.plot-hotspot.approximate { stroke-dasharray: 5 4; }
.map-tooltip { position: fixed; z-index: 100; width: 190px; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); pointer-events: none; }
.map-tooltip strong { color: var(--text-strong); }
.map-tooltip span, .map-tooltip small { color: var(--muted); }
.map-source-note { margin: 0; padding: 10px 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.plot-detail-panel { min-height: 230px; position: sticky; top: calc(var(--topbar-height) + 16px); overflow: hidden; }
.plot-detail-header { padding: 18px; border-bottom: 1px solid var(--border); }
.plot-detail-panel .definition-list, .plot-detail-panel .detail-list { padding: 14px 18px; }


.compact-list { display: grid; gap: 10px; margin: 10px 0 22px; padding-left: 20px; }
.compact-list li { color: var(--text); line-height: 1.4; }
.compact-list li strong { color: var(--text-strong); }
.compact-list li .relationship-role { display: inline-block; margin-left: 8px; color: var(--muted); font-weight: 500; }

/* Emergency contacts and directories */
.public-contact-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); }
.public-contact-bar a { color: var(--brand); font-weight: 700; text-decoration: none; }
.emergency-notice { display: grid; gap: 3px; margin-bottom: 16px; background: var(--warning-soft); }
.emergency-notice span { color: var(--muted); }
.emergency-groups { display: grid; gap: 16px; }
.emergency-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.emergency-contact-card { min-width: 0; padding: 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.emergency-contact-card:nth-child(2n) { border-right: 0; }
.emergency-contact-card.priority { box-shadow: inset 3px 0 0 var(--brand); }
.emergency-contact-heading { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: start; gap: 11px; }
.emergency-contact-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.emergency-contact-heading h4 { margin: 1px 0 1px; color: var(--text-strong); font-size: 16px; }
.emergency-contact-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.contact-availability, .contact-location, .contact-instructions { margin: 13px 0 0; color: var(--text); }
.contact-instructions { color: var(--muted); }
.emergency-actions { margin-top: 15px; }
.professional-grid, .property-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.professional-card, .relationship-card { padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.professional-card-top, .relationship-main, .review-heading { display: flex; align-items: flex-start; gap: 11px; }
.professional-avatar, .relationship-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }

/* Property detail: relationship and billing-account layout */
.property-heading { margin-bottom: 18px; }
.property-heading .heading-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.property-heading .heading-line h2 { margin: 0; }
.relationship-list { display: grid; gap: 14px; padding: 0 18px 18px; }
.relationship-card { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.relationship-card .relationship-avatar { flex: none; }
.relationship-card .relationship-main { min-width: 0; display: block; }
.relationship-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.relationship-title strong { margin-right: 2px; color: var(--text-strong); font-size: 16px; }
.relationship-main > p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.contact-details { min-width: 0; display: grid; gap: 6px; margin-top: 12px; }
.contact-details > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.contact-details form { margin: 0; }
.relationship-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 250px; }
.relationship-actions form { margin: 0; }
.relationship-actions .small-button { white-space: nowrap; }
.property-account-summary { min-width: 0; align-self: start; overflow: hidden; }
.property-account-summary .definition-list { padding: 4px 18px 16px; }
.property-account-summary .definition-list > div { grid-template-columns: minmax(145px, .85fr) minmax(0, 1.15fr); }
.property-account-summary .definition-list dd { min-width: 0; overflow-wrap: anywhere; }
.category-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.category-tags span { padding: 4px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 11px; }

/* Detail utilities */
.definition-list, .detail-list { display: grid; gap: 0; margin: 0; }
.definition-list > div, .detail-list > div { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(0,1.3fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.definition-list > div:last-child, .detail-list > div:last-child { border-bottom: 0; }
.definition-list dt, .detail-list dt { color: var(--muted); }
.definition-list dd, .detail-list dd { margin: 0; color: var(--text-strong); font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.account-summary, .recon-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.account-summary > div, .recon-summary > div { padding: 16px 18px; border-right: 1px solid var(--border); }
.account-summary > div:last-child, .recon-summary > div:last-child { border-right: 0; }
.account-summary span, .recon-summary span { display: block; color: var(--muted); font-size: 12px; }
.account-summary strong, .recon-summary strong { display: block; margin-top: 3px; color: var(--text-strong); font-size: 22px; }
.report-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.report-card { min-width: 0; display: flex; gap: 13px; padding: 19px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.report-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.report-card > span { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.report-card h3 { margin: 0 0 5px; color: var(--text-strong); }
.report-card p { margin: 0; color: var(--muted); font-size: 13px; }
.progress-block { padding: 20px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; }
.progress { height: 8px; margin: 11px 0; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.progress span { display: block; height: 100%; background: var(--brand); }

/* Daily laugh */
.daily-laugh-heading h2 { margin-bottom: 6px; font-size: 30px; line-height: 1.2; }
.daily-laugh-heading p { margin: 0; font-size: 17px; line-height: 1.35; }
.season-grid { display: grid; gap: 18px; }
.humour-season { overflow: hidden; }
.humour-season-header h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.humour-season-header p { margin: 4px 0 0; font-size: 15px; line-height: 1.2; }
.episode-list { display: block; margin: 0; padding: 0; list-style: none; }
.episode-list-item { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.episode-list-item:first-child { border-top: 0; }
.episode-row { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) 24px; align-items: center; column-gap: 14px; padding: 16px 20px; color: var(--text-strong); text-decoration: none; line-height: 1.2; }
.episode-row:hover, .episode-row:focus-visible { background: var(--brand-softer); }
.episode-code { color: var(--brand); font-size: 15px; line-height: 1.2; font-weight: 800; white-space: nowrap; }
.episode-title { min-width: 0; overflow: hidden; color: var(--text-strong); font-size: 18px; line-height: 1.2; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.episode-arrow { justify-self: end; color: var(--muted); font-size: 20px; line-height: 1; }
.episode-row:hover .episode-arrow, .episode-row:focus-visible .episode-arrow { color: var(--brand); transform: translateX(2px); }
.humour-article { overflow: hidden; }
.humour-article-body { padding: 22px; max-width: 820px; font-size: 18px; line-height: 1.45; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .professional-grid, .property-card-grid, .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .masterplan-layout { grid-template-columns: 1fr; }
  .plot-detail-panel { position: static; }
  .map-toolbar { align-items: flex-start; flex-direction: column; }
  .map-controls { width: 100%; grid-template-columns: minmax(140px,1fr) auto 42px 42px auto; }
}

@media (max-width: 900px) {
  .app-shell, .app-shell.sidebar-collapsed { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-width); transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-collapse { display: none; }
  .mobile-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(5,15,12,.58); }
  .menu-button { display: grid; }
  .topbar { padding-inline: 18px; }
  .page-content { padding: 22px 18px 36px; }
  .form-layout, .content-grid, .dashboard-grid, .tailadmin-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .auth-shell, .tailadmin-auth, .public-home-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card-wrap { min-height: 100vh; }
  .public-home-hero { min-height: 680px; }
  .public-home-login-panel { padding-block: 60px; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .topbar { height: 68px; padding-inline: 13px; }
  .page-content { padding: 16px 12px 30px; }
  .page-identity h1 { font-size: 18px; }
  .breadcrumb { display: none; }
  .user-copy, .chevron { display: none; }
  .metric-grid, .professional-grid, .property-card-grid, .report-grid, .emergency-contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .emergency-contact-card { border-right: 0; }
  .form-grid.two-column { grid-template-columns: 1fr; }
  .report-filter-bar, .filter-bar, .property-filters, .professional-filters, .emergency-filters { grid-template-columns: 1fr; }
  .welcome-row, .page-toolbar, .page-header, .dashboard-welcome { align-items: flex-start; flex-direction: column; }
  .button-row { width: 100%; }
  .button-row .button { flex: 1; }
  .map-controls { grid-template-columns: minmax(0,1fr) auto auto; }
  .map-controls .icon-button { display: none; }
  .map-scroll { height: 62vh; }
  .public-home-hero { min-height: 620px; padding: 28px 22px; }
  .public-home-copy { padding: 44px 0; }
  .public-home-copy h1 { font-size: 43px; }
  .public-home-features { grid-template-columns: 1fr; }
  .public-home-login-panel, .auth-card-wrap { padding: 28px 20px; }
  .account-summary, .recon-summary { grid-template-columns: 1fr; }
  .account-summary > div, .recon-summary > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .account-summary > div:last-child, .recon-summary > div:last-child { border-bottom: 0; }
  .relationship-card { grid-template-columns: 44px minmax(0, 1fr); }
  .relationship-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; padding-left: 58px; }
  .property-account-summary .definition-list > div { grid-template-columns: 1fr; gap: 4px; }
  .table-wrap table { min-width: 720px; }
  .episode-row { grid-template-columns: 64px minmax(0, 1fr) 20px; padding: 14px 16px; column-gap: 10px; }
  .episode-code { font-size: 14px; }
  .episode-title { font-size: 17px; }
}
[hidden] { display: none !important; }

/* Search and pagination controls */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.filter-bar .form-control {
  min-width: 10rem;
  width: auto;
  flex: 1 1 11rem;
}
.filter-bar input[name="q"] {
  min-width: 18rem;
  flex-basis: 22rem;
}
.billing-search-bar {
  margin-bottom: 1rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 760px) {
  .filter-bar,
  .filter-bar .form-control,
  .filter-bar input[name="q"] {
    width: 100%;
    min-width: 0;
  }
}

/* Filter controls: use the standard dark-green action colour without affecting pagination or unrelated secondary buttons. */
.filter-bar > button.small-button,
.filter-bar > a.small-button.button-secondary,
.property-filters > button[type="submit"],
.property-filters > a.text-link,
.filter-row > button[type="submit"],
.report-filter-bar > button[type="submit"] {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-bar > button.small-button:hover,
.filter-bar > a.small-button.button-secondary:hover,
.property-filters > button[type="submit"]:hover,
.property-filters > a.text-link:hover,
.filter-row > button[type="submit"]:hover,
.report-filter-bar > button[type="submit"]:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  color: #fff;
}

.property-filters > a.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--brand-deep);
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* Portal property cards: prominent property icon and full-card interaction. */
.property-card-grid .property-access-card {
  position: relative;
  min-width: 0;
  min-height: 230px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.property-card-grid .property-access-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%);
  box-shadow: 0 14px 30px rgba(4, 46, 36, .16);
}
.property-card-grid .property-access-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 3px;
  border-color: var(--brand);
}
.property-card-house {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 16%, transparent);
}
.property-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.property-card-content .property-number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.property-card-content h3 {
  margin: 12px 0 6px;
  color: var(--text-strong);
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.property-card-content p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
}
.property-card-content small {
  color: var(--text);
  font-weight: 650;
}
.property-card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand);
  font-weight: 800;
}
.property-card-action span {
  font-size: 24px;
  line-height: .8;
  transition: transform .16s ease;
}
.property-access-card:hover .property-card-action span,
.property-access-card:focus-visible .property-card-action span {
  transform: translateX(4px);
}
@media (max-width: 720px) {
  .property-card-grid .property-access-card { min-height: 190px; padding: 18px; }
  .property-card-house { width: 76px; height: 76px; border-radius: 18px; font-size: 62px; }
}


/* My statement property selector. Reuses the large portal property-card language. */
.statement-card-grid { margin-top: 18px; }
.statement-property-card { min-height: 420px !important; }
.statement-card-heading { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.statement-card-balance { width: 100%; margin: 15px 0 11px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.statement-card-balance span { display: block; color: var(--muted); font-size: 12px; }
.statement-card-balance strong { display: block; margin-top: 3px; color: var(--text-strong); font-size: 23px; line-height: 1.2; }
.statement-card-details { width: 100%; display: grid; gap: 8px; margin: 0; }
.statement-card-details > div { display: grid; grid-template-columns: minmax(105px,.85fr) minmax(0,1.4fr); gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.statement-card-details dt { color: var(--muted); font-size: 12px; }
.statement-card-details dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.statement-empty-state { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .statement-property-card { min-height: 380px !important; }
  .statement-card-details > div { grid-template-columns: 1fr; gap: 3px; }
  .statement-card-details dd { text-align: left; }
}
