/* Shared H5 brand layer. Business page structure remains in the portal kits. */
:root {
  --brand: #18c7c5;
  --brand-strong: #087f82;
  --brand-pressed: #0faead;
  --brand-soft: #e6f9f8;
  --accent: #ff8a3d;
  --accent-strong: #c65317;
  --accent-soft: #fff0e6;
  --text: #0b2e3a;
  --secondary: #536970;
  --muted: #7b8f95;
  --surface: #fff;
  --canvas: #f4f6f8;
  --border: #dfe8ea;
  --danger: #d83b4d;
  --success: #0b8c68;
  --surface-border: #dce8ea;
  --surface-shadow: 0 2px 5px rgb(11 46 58 / 2%), 0 8px 24px rgb(11 46 58 / 3%);
  --control-border: #cddfe2;
  --ink: var(--text);
  --blue: var(--text);
  --line: var(--border);
  --tenant-page-top: var(--canvas);
  --tenant-page-bottom: var(--canvas);
  --tenant-ink: var(--text);
  --tenant-secondary: var(--secondary);
  --tenant-muted: var(--muted);
  --tenant-primary: var(--text);
  --tenant-primary-soft: var(--brand-soft);
  --tenant-soft: #f7f8fa;
  --tenant-border: var(--border);
  --tenant-divider: var(--border);
  --tenant-danger: var(--danger);
  --tenant-danger-soft: #fff0f2;
  --tenant-success: var(--success);
  --tenant-shadow: 0 2px 8px #20202004;
  --landlord-page-top: var(--canvas);
  --landlord-page-bottom: var(--canvas);
  --landlord-ink: var(--text);
  --landlord-secondary: var(--secondary);
  --landlord-muted: var(--muted);
  --landlord-primary: var(--text);
  --landlord-primary-soft: var(--brand-soft);
  --landlord-soft: #f7f8fa;
  --landlord-border: var(--border);
  --landlord-divider: var(--border);
  --landlord-danger: var(--danger);
  --landlord-success: var(--success);
  --landlord-purple: #526b9a;
  --landlord-shadow: 0 2px 8px #20202004;
}
.co-tenant-panel, .co-tenant-member { margin: 16px 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.co-tenant-panel h3, .co-tenant-member h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.co-tenant-panel p, .co-tenant-member small, .co-tenant-detail p { color: var(--secondary); line-height: 1.6; }
.co-tenant-panel .check-in-resource-row { gap: 12px; margin: 12px 0; }
.co-tenant-panel .check-in-resource-row span { min-width: 0; overflow-wrap: anywhere; }
.co-tenant-panel .check-in-resource-row small { display: block; color: var(--accent-strong); }
.co-tenant-panel button, .co-tenant-detail button, .co-tenant-detail input[type="tel"] { min-height: 44px; }
.co-tenant-panel button .ui-icon { width: 19px; height: 19px; }
.co-tenant-detail { max-width: 448px; }
.co-tenant-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 16px 0; padding: 14px; border-left: 4px solid var(--brand-strong); background: var(--brand-soft); }
.co-tenant-summary strong { overflow-wrap: anywhere; }
.co-tenant-summary span { color: var(--accent-strong); }
.co-tenant-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.co-tenant-actions button, .co-tenant-member .state-action { width: 100%; }
.co-tenant-permission { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.co-tenant-permission span { min-width: 0; }
.co-tenant-permission input { width: 22px; height: 22px; flex: none; accent-color: var(--brand-strong); }
.co-tenant-member form { margin-top: 12px; }
.co-tenant-member form button { margin-top: 18px; }
.co-tenant-empty { margin: 20px 0 8px; padding: 18px 0; border-top: 1px solid var(--border); text-align: center; color: var(--muted); }
.co-tenant-home-action { display: block; width: max-content; max-width: 100%; margin: 24px auto; }
@media (max-width: 360px) { .co-tenant-actions { grid-template-columns: 1fr; } .co-tenant-panel, .co-tenant-member { padding: 12px; } }
html, body { background: #e9eff1; color: var(--text); }
body { font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #087f8266; outline-offset: 3px; }
button:active:not(:disabled) { filter: brightness(.95); }
button:disabled { cursor: not-allowed; opacity: .48; }
.ui-icon { display: inline-block; width: 24px; height: 24px; min-width: 0; vertical-align: middle; stroke-width: 1.8; flex-shrink: 0; pointer-events: none; }
img.ui-image-unavailable { padding: 18px; background: #f0f2f4; object-fit: contain; opacity: 1; }
.app, .admin-app { width: min(100%, 448px); min-height: 100dvh; margin: 0 auto; border-radius: 0; background: var(--canvas); box-shadow: 0 0 36px #20202009; }
.app-header, .admin-header { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; height: auto; min-height: 66px; padding: calc(9px + env(safe-area-inset-top)) 18px 9px; color: var(--text); background: #fff; border-bottom: 1px solid var(--border); }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; }
.brand-lockup > span { display: grid; gap: 1px; min-width: 0; }
.brand-lockup b { font-size: 18px; line-height: 22px; font-weight: 800; }
.brand-lockup small { color: var(--secondary); font-size: 9px; line-height: 12px; white-space: nowrap; }
.brand-logo-mark { display: block; width: 42px; height: 42px; object-fit: contain; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--text); border-radius: 10px; background: var(--brand); color: var(--text); font-style: normal; }
.brand-mark .ui-icon { width: 24px; height: 24px; stroke-width: 2.2; }
.brand-role { padding: 6px 9px; border: 1px solid #bcefed; border-radius: 7px; background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; font-weight: 700; }
.page, .admin-page, .page-home, .page-profile { min-height: calc(100dvh - 60px); padding: 0 0 calc(90px + env(safe-area-inset-bottom)); }
.bottom-nav, .admin-nav { display: grid; position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 448px); height: auto; min-height: 76px; padding: 8px 12px calc(7px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--border); border-radius: 0; background: #fff; box-shadow: 0 -3px 15px #20202004; backdrop-filter: none; }
.bottom-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nav-item, .admin-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 0; border: 0; background: transparent; color: #767676; font-size: 12px; }
.nav-item .nav-icon, .admin-nav-item > span { display: grid; place-items: center; width: 48px; height: 32px; margin: 0; border-radius: 10px; color: inherit; background: transparent; text-shadow: none; }
.nav-item.active, .admin-nav-item.active { color: var(--text); font-weight: 700; }
.nav-item.active .nav-icon, .admin-nav-item.active > span { background: var(--brand); }
.nav-item .ui-icon, .admin-nav-item .ui-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; }
.nav-item.active .ui-icon, .admin-nav-item.active .ui-icon { stroke-width: 2.3; }
.nav-item > span:last-of-type, .admin-nav-item small { font-size: 11px; line-height: 18px; }
.nav-badge, .admin-badge { top: 4px; right: calc(50% - 23px); width: 8px; height: 8px; border: 2px solid #fff; background: #f04452; }
.landlord-page-header { height: auto; min-height: 75px; padding: 18px 18px 14px; gap: 8px; }
.landlord-page-header h1, .tenant-message-header h1 { font-size: 24px; line-height: 32px; color: var(--text); }
.landlord-page-header p { margin-top: 3px; font-size: 12px; line-height: 18px; }
.landlord-icon-button, .landlord-back, .tenant-message-header button, .profile-settings, .tenant-bell { display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; border-radius: 8px; border: 1px solid #2424240b; background: #fff; color: var(--text); }
.landlord-page-header > .landlord-back { top: 16px; left: 16px; }
.landlord-page-body { padding: 0 16px; }
.tenant-home-hero { height: 196px; background: #f5f6f7; }
.tenant-home-hero > picture > img, .tenant-home-hero > img { opacity: 1; object-position: center 48%; }
.tenant-hero-wash { background: linear-gradient(90deg, #ffffffed 0%, #ffffffad 43%, transparent 74%); }
.tenant-hero-copy { top: 27px; left: 22px; }
.tenant-hero-copy h1 { font-size: 27px; line-height: 38px; color: var(--text); font-family: inherit; }
.tenant-hero-copy h1 span { color: var(--text); text-shadow: none; }
.tenant-hero-copy p { color: #535353; font-size: 13px; }
.tenant-bell { top: 20px; right: 18px; }
.tenant-hero-note { display: none; }
.tenant-home-body { margin-top: -16px; padding: 0 16px; position: relative; }
.tenant-property-card { height: auto; padding: 16px; border-radius: 12px; border: 1px solid #fff; background: #fff; box-shadow: 0 4px 16px #20202006; }
.tenant-property-head { gap: 10px; }
.tenant-property-head > img { width: 62px; height: 62px; border-radius: 8px; }
.tenant-property-head strong { font-size: 15px; line-height: 22px; white-space: normal; }
.tenant-property-head span { font-size: 11px; line-height: 18px; white-space: normal; }
.tenant-property-head > button { color: var(--text); background: #fff; border: 1px solid var(--border); font-size: 11px; min-height: 36px; padding: 6px 8px; border-radius: 8px; }
.tenant-property-head > button .ui-icon { width: 14px; height: 14px; }
.tenant-property-metrics { gap: 6px; margin-top: 16px; }
.tenant-property-metrics > div { min-width: 0; height: auto; min-height: 103px; padding: 10px 6px; border-radius: 8px; background: #f7f8fa; }
.tenant-property-metrics small { font-size: 11px; color: var(--secondary); }
.tenant-property-metrics strong { font-size: 15px; line-height: 20px; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.tenant-property-metrics > div:nth-child(2) strong { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tenant-property-metrics strong.primary { color: var(--text); }
.tenant-property-metrics span { font-size: 11px; }
.tenant-property-metrics button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 32px; padding: 6px 4px; border-radius: 6px; background: var(--brand); color: var(--text); font-size: 11px; box-shadow: none; }
.tenant-property-metrics button .ui-icon { width: 14px; height: 14px; }
.tenant-bill-heading { margin-top: 18px; padding: 12px 0; background: transparent; }
.tenant-bill-heading h2 { font-size: 18px; }
.tenant-bill-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tenant-readonly-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border: 1px solid #9bdcda; border-radius: 6px; background: #e9fbfa; color: var(--brand-strong); font-size: 10px; font-weight: 700; line-height: 16px; }
.tenant-bill-heading button { font-size: 11px; color: var(--secondary); }
.tenant-utility-list { background: transparent; }
.tenant-utility-card, .tenant-utility-card.electricity { height: auto; min-height: 240px; margin-bottom: 12px; padding: 14px; border-radius: 12px; box-shadow: none; border: 1px solid #eeeeee; }
.tenant-utility-head { gap: 8px; }
.tenant-utility-head > strong { font-size: 16px; }
.tenant-utility-head > button { font-size: 11px; min-height: 36px; color: var(--secondary); }
.tenant-utility-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.tenant-utility-card.electricity .tenant-utility-icon { background: #fff3c1; color: #a87500; }
.tenant-utility-card.water .tenant-utility-icon { background: #def6fb; color: #00869d; }
.tenant-reading-grid { background: #f6f7f8; border-radius: 8px; }
.tenant-reading-grid small, .tenant-charge-grid small { color: var(--secondary); font-size: 11px; }
.tenant-overage { height: auto; min-height: 36px; border-radius: 7px; font-size: 12px; background: #fff0f2; color: var(--danger); }
.tenant-overage .ui-icon { width: 18px; height: 18px; }
.tenant-message-header { height: auto; min-height: 114px; padding: 22px 18px 18px; gap: 8px; grid-template-columns: minmax(0, 1fr) repeat(3, 40px); }
.tenant-message-header p { font-size: 12px; color: var(--secondary); }
.tenant-message-header .message-brand-action, .admin-inbox-toolbar .message-clear-unread { border-color: #bde5e3; background: #effafa; color: var(--brand-strong); }
.tenant-message-header .message-brand-action { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; padding: 5px; }
.tenant-message-header .message-brand-action .brand-image-icon, .admin-inbox-toolbar .message-clear-unread .brand-image-icon { margin: auto; }
.tenant-message-header .message-brand-action:not(:disabled):hover .brand-image-icon, .admin-inbox-toolbar .message-clear-unread:not(:disabled):hover .brand-image-icon, .admin-inbox-toolbar .admin-send-records-action:hover .brand-image-icon { transform: translateY(-1px) scale(1.04); }
.tenant-message-header .message-clear-unread:disabled, .admin-inbox-toolbar .message-clear-unread:disabled { border-color: #e4e8e9; background: #f5f6f7; color: #a4adaf; box-shadow: none; cursor: default; opacity: .72; }
.tenant-message-header .message-clear-unread:disabled .brand-image-icon, .admin-inbox-toolbar .message-clear-unread:disabled .brand-image-icon { filter: grayscale(.72); opacity: .55; }
.tenant-message-body { padding: 0 16px; }
.message-tabs { padding: 4px; min-height: 46px; height: auto; border-radius: 10px; background: #eaecee; gap: 4px; }
.message-tabs button { min-height: 38px; border-radius: 7px; font-size: 13px; color: var(--secondary); background: transparent; }
.message-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px #2424240a; }
.message-tabs button.active b { background: var(--brand); color: var(--text); }
.message-tabs b { background: #fff; color: var(--secondary); }
.message-list { gap: 12px; margin-top: 16px; }
.message-card { height: auto; min-height: 102px; border-radius: 12px; padding: 16px 12px; border: 1px solid #eceef0; box-shadow: none; background: #fff; }
.message-card.system-card { height: auto; min-height: 210px; }
.message-icon, .message-row-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text); background: var(--brand-soft); }
.message-icon.water, .message-row-icon.water { background: #def6fb; color: #00869d; }
.message-icon.electricity, .message-row-icon.electricity { background: #fff1bf; color: #ab7300; }
.message-icon.lease, .message-row-icon.lease_expiry { background: #edf0fb; color: #626994; }
.message-icon.rent, .message-row-icon.rent_payment { background: #e4f4e9; color: #27805a; }
.message-copy strong { font-size: 15px; }
.message-copy > small, .admin-message-row small { color: var(--secondary); font-size: 12px; line-height: 19px; }
.message-time { color: var(--muted); font-size: 10px; }
.system-message-items b { color: var(--text); }
.system-message-items small { font-size: 12px; }
.empty-message, .message-footer-art, .landlord-message-empty { min-height: 230px; justify-content: center; gap: 10px; }
.empty-message > span, .message-footer-art > span, .landlord-message-empty > span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: #eceef0; color: #90959c; }
.empty-message .ui-icon, .message-footer-art .ui-icon, .landlord-message-empty .ui-icon { width: 36px; height: 36px; }
.empty-message strong, .message-footer-art strong, .landlord-message-empty strong { font-size: 15px; color: var(--secondary); }
.empty-message small, .message-footer-art small, .landlord-message-empty small { font-size: 12px; color: var(--muted); }
.tenant-profile-hero { height: 206px; background: var(--brand); }
.profile-settings { top: 10px; right: 16px; background: #ffffff6b; }
.profile-identity { top: 54px; left: 22px; right: 20px; gap: 15px; }
.profile-avatar { width: 74px; height: 74px; border: 3px solid #fff; background: #fff8d5; color: #4c431c; box-shadow: none; }
.profile-avatar .ui-icon { width: 35px; height: 35px; }
.profile-identity > .profile-avatar, .admin-profile-card > .admin-avatar { display: grid; place-items: center; padding: 0; margin-top: 0; }
.profile-identity > div { grid-template-columns: minmax(0, auto) auto; }
.profile-identity strong { font-size: 21px; overflow-wrap: anywhere; }
.profile-identity em { background: #ffffff75; color: #494222; }
.profile-identity span { color: #514a29; }
.profile-identity small { color: #256440; }
.profile-quote { bottom: 20px; right: auto; left: 22px; color: #655619; font-size: 12px; }
.profile-body { padding: 0 16px 16px; margin-top: 0; }
.profile-completion { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 12px; margin-top: 12px; border: 1px solid #ebdfaa; border-radius: 10px; background: #fff9e4; text-align: left; color: #826613; }
.profile-completion > span { flex: 1; min-width: 0; }
.profile-completion strong { font-size: 13px; line-height: 20px; }
.profile-completion small { display: block; margin-top: 3px; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.profile-completion.complete { color: #297454; background: #edf8f1; border-color: #d9ebdf; }
.profile-completion > .ui-icon:last-child { width: 16px; height: 16px; }
.tenant-check-in-summary { margin-top: 12px; padding: 15px 16px 14px; border: 1px solid #d9e7e7; border-radius: 8px; background: #fff; }
.tenant-check-in-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tenant-check-in-summary-head > div { min-width: 0; }
.tenant-check-in-summary-head strong { display: block; color: #0b2e3a; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.tenant-check-in-summary-head small { display: block; margin-top: 3px; color: #617980; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.tenant-check-in-summary-head em { flex: none; padding: 3px 8px; border-radius: 4px; background: #eafafa; color: #087f82; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; }
.tenant-check-in-summary-head em.is-completed { background: #eaf8f0; color: #168465; }
.tenant-check-in-summary-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.tenant-check-in-summary-bottom > span { color: #617980; font-size: 12px; line-height: 18px; }
.tenant-check-in-summary-bottom button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; padding: 6px 10px; border: 1px solid #bce9e7; border-radius: 6px; background: #eafafa; color: #087f82; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tenant-check-in-summary-bottom button:active { background: #dcf6f5; }
.tenant-check-in-summary-bottom button:focus-visible { outline: 2px solid #087f82; outline-offset: 2px; }
.tenant-check-in-summary-bottom .ui-icon { width: 14px; height: 14px; }
.tenant-check-in-track { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #e4eeee; }
.tenant-check-in-track > span { display: block; height: 100%; border-radius: inherit; background: #18b5b3; }
.profile-group { margin-top: 12px; padding: 16px 12px; border-radius: 12px; box-shadow: none; }
.profile-body > .profile-group:nth-child(n) { height: auto; min-height: 142px; margin-top: 12px; }
.profile-group-head { grid-template-columns: 24px minmax(0, 1fr); gap: 7px; align-items: center; margin-bottom: 14px; }
.profile-group-mark { display: grid; place-items: center; color: var(--text); }
.profile-group-mark .ui-icon { width: 20px; height: 20px; }
.profile-group-head strong { font-size: 16px; line-height: 24px; }
.profile-group-description { display: none; }
.profile-items { gap: 0; }
.profile-items button { min-width: 0; min-height: 70px; gap: 7px; padding: 0 2px; border: 0; color: #505050; font-size: 12px; }
.profile-item-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto; border-radius: 12px; background: #fff5c2; color: #4e431d; }
.profile-items button:nth-child(2) .profile-item-icon { background: #e6f5f4; color: #29897e; }
.profile-items button:nth-child(3) .profile-item-icon { background: #eef0fa; color: #6675a3; }
.profile-items button:nth-child(4) .profile-item-icon { background: #fff0e8; color: #b37949; }
.tenant-logout { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 10px; background: #fff; color: var(--danger); border: 1px solid #f1dfe2; font-size: 14px; }
.tenant-copyright-guide { display: grid; gap: 7px; margin: 22px 8px 4px; padding: 0 8px 18px; text-align: center; }
.tenant-copyright-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.tenant-copyright-links :is(button,a) { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-height: 28px; padding: 2px 0; border: 0; background: transparent; color: #087f82; font: inherit; font-size: 11px; line-height: 20px; text-decoration: none; overflow-wrap: anywhere; }
.tenant-copyright-links :is(button,a):focus-visible { outline: 2px solid #087f82; outline-offset: 2px; }
.tenant-copyright-links .ui-icon { width: 11px; height: 11px; }
.tenant-copyright-lines { display: grid; gap: 2px; }
.tenant-copyright-lines p { margin: 0; color: #526970; font-size: 10px; line-height: 18px; overflow-wrap: anywhere; }
.dashboard-greeting { min-height: 116px; height: 116px; border-radius: 12px; color: var(--text); background: #fff; border: 1px solid #fff; overflow: hidden; }
.dashboard-greeting h2 { color: var(--text); font-size: 18px; }
.dashboard-greeting p { color: var(--secondary); font-size: 12px; }
.dashboard-kpis { gap: 8px; margin-top: 12px; }
.dashboard-kpis.occupancy, .dashboard-kpis.finance { height: auto; }
.dashboard-greeting span, .dashboard-greeting small { font-size: 11px; line-height: 18px; }
.dashboard-kpi { min-height: 94px; padding: 14px 10px; border-radius: 10px; background: #fff; }
.dashboard-kpi small { font-size: 12px; color: var(--secondary); }
.dashboard-kpi strong { font-size: 19px; line-height: 30px; color: var(--text); overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.dashboard-kpi strong i { font-size: 11px; }
.dashboard-kpi.received strong { color: var(--success); }
.dashboard-kpi.pending strong { color: var(--danger); }
.dashboard-kpis.move-out { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.dashboard-kpis.move-out.has-profile-changes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-kpis.move-out .dashboard-kpi-action { position: relative; min-height: 80px; width: 100%; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dashboard-kpi.profile-changes small { white-space: normal; overflow-wrap: anywhere; }
.dashboard-kpi-action > span { position: absolute; right: 12px; bottom: 17px; color: var(--secondary); }
.dashboard-kpi-action:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.admin-profile-review { display: grid; gap: 12px; }
.admin-profile-review-fields { display: grid; gap: 0; border-top: 1px solid #e2ebec; }
.admin-profile-review-fields p { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; margin: 0; padding: 9px 0; border-bottom: 1px solid #e2ebec; font-size: 13px; line-height: 20px; }
.admin-profile-review-fields span { color: var(--secondary); }
.admin-profile-review-fields strong { overflow-wrap: anywhere; font-weight: 600; }
.admin-profile-review-photos, .identity-profile-modal .identity-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-profile-review-photos > div, .verified-photo { min-width: 0; }
.admin-profile-review-photos button { width: 100%; min-height: 42px; border: 1px solid #b8d7d8; border-radius: 6px; background: #f4fbfb; color: var(--text); font: inherit; font-size: 12px; }
.admin-profile-review-photos button.is-viewed { color: #117b68; border-color: #a0d6c9; }
.admin-profile-review-photos img, .verified-photo img { display: block; width: 100%; height: auto; max-height: 150px; object-fit: contain; margin-top: 6px; }
.admin-profile-review-photos .admin-profile-review-thumbnail, .verified-photo { width: 100%; min-height: 0; margin-top: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; background: #f7f9f9; color: var(--text); font: inherit; text-align: left; cursor: zoom-in; }
.admin-profile-review-photos .admin-profile-review-thumbnail img, .verified-photo img { margin-top: 0; }
.admin-profile-review-photos .admin-profile-review-thumbnail:focus-visible, .verified-photo:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.admin-profile-review-photos .admin-profile-review-thumbnail:hover, .verified-photo:hover { border-color: var(--brand-strong); background: var(--brand-soft); }
.profile-review-confirm, .admin-form label.profile-review-confirm { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 12px; line-height: 20px; white-space: normal; }
.profile-review-confirm > span { min-width: 0; overflow-wrap: anywhere; }
.profile-review-confirm input[type="checkbox"] { box-sizing: border-box; flex: 0 0 18px; width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; padding: 0; border-radius: 4px; accent-color: var(--brand-strong); }
.profile-change-version { min-width: 0; padding: 0; border: 0; }
.profile-change-version h3 { margin: 4px 0 8px; font-size: 14px; }
.profile-review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-review-actions button { min-width: 0; min-height: 44px; }
.admin-modal-card.profile-change-detail { gap: 0; padding-top: 0; }
.profile-change-detail .admin-modal-head { gap: 8px; min-height: 66px; margin: 0 0 18px; padding: 10px 0; background: #fff; }
.profile-change-detail .admin-modal-head strong { flex: 1; min-width: 0; padding: 0; font-size: 19px; }
.profile-change-badge { flex: none; padding: 5px 9px; border: 1px solid #f4d5b8; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 700; white-space: nowrap; }
.profile-change-badge.is-approved { border-color: #b7dfd0; background: #eaf7f0; color: var(--success); }
.profile-change-badge.is-rejected { border-color: #efd2d8; background: #fff0f2; color: var(--danger); }
.profile-change-detail .admin-modal-head button { flex: none; margin-left: 2px; }
.profile-change-reason { min-width: 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: #f4f8f9; }
.profile-change-reason span, .profile-change-photo-label { color: var(--secondary); font-size: 11px; font-weight: 650; }
.profile-change-reason p { margin: 3px 0 0; color: var(--text); font-size: 13px; line-height: 21px; overflow-wrap: anywhere; }
.profile-change-detail .profile-change-version { margin-top: 20px; }
.profile-change-detail .profile-change-version h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; color: var(--text); font-size: 15px; line-height: 24px; }
.profile-change-detail .profile-change-version h3 .ui-icon { width: 18px; height: 18px; color: var(--brand-strong); }
.profile-change-detail .profile-change-version.is-after { padding-top: 18px; border-top: 1px solid var(--border); }
.profile-change-detail .profile-change-version.is-after h3 .ui-icon { color: var(--accent-strong); }
.profile-change-detail .admin-profile-review-fields { border-top-color: var(--border); }
.profile-change-detail .admin-profile-review-fields p { grid-template-columns: minmax(80px, 34%) minmax(0, 1fr); min-height: 41px; gap: 10px; padding: 9px 7px; border-bottom-color: var(--border); font-size: 12px; line-height: 19px; }
.profile-change-detail .admin-profile-review-fields strong { min-width: 0; font-weight: 600; }
.profile-change-detail .admin-profile-review-fields .is-changed { background: #eaf9f7; }
.profile-change-detail .admin-profile-review-fields em { display: inline-block; margin-left: 7px; padding: 1px 5px; border-radius: 4px; background: #c8f0eb; color: var(--brand-strong); font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.profile-change-photo-label { margin: 13px 0 7px; }
.profile-change-detail .admin-profile-review-photos { gap: 8px; }
.profile-change-detail .admin-profile-review-photos button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 6px; border-color: #c7dfe1; background: #f7fbfb; color: var(--brand-strong); font-size: 11px; font-weight: 650; line-height: 17px; }
.profile-change-detail .admin-profile-review-photos button .ui-icon { width: 16px; height: 16px; }
.profile-change-detail .admin-profile-review-photos button.is-viewed { border-color: #8cd3c7; background: var(--brand-soft); }
.profile-change-detail .admin-profile-review-photos button.is-viewed::after { content: '已查看'; color: var(--success); font-size: 10px; white-space: nowrap; }
.profile-change-detail .admin-profile-review-photos img { max-height: 180px; border: 1px solid var(--border); border-radius: 6px; background: #f7f9f9; }
.profile-change-reviewed-note, .profile-change-decision { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.profile-change-reviewed-note strong, .profile-change-decision h3 { display: block; margin: 0 0 9px; font-size: 15px; line-height: 23px; }
.profile-change-reviewed-note p { margin: 0; color: var(--secondary); font-size: 13px; line-height: 21px; overflow-wrap: anywhere; }
.profile-change-decision > label:not(.profile-review-confirm) { display: grid; gap: 7px; color: var(--secondary); font-size: 12px; font-weight: 650; }
.profile-change-decision textarea { width: 100%; min-height: 86px; padding: 10px 11px; border: 1px solid var(--control-border); border-radius: 6px; background: #fbfcfc; color: var(--text); font-size: 13px; line-height: 20px; resize: vertical; }
.profile-change-decision textarea:focus { outline: 2px solid #18c7c55c; outline-offset: 1px; border-color: var(--brand-strong); background: #fff; }
.profile-change-decision .profile-review-confirm { align-items: flex-start; margin-top: 13px; color: var(--text); font-size: 12px; line-height: 19px; }
.profile-change-decision .profile-review-confirm input { margin: 1px 0 0; accent-color: var(--brand-strong); }
.profile-change-decision .profile-form-error { min-height: 0; margin: 5px 0 0; font-size: 12px; line-height: 18px; }
.profile-change-decision .profile-form-error:empty { display: none; }
.profile-change-decision .profile-review-actions { margin-top: 14px; }
.profile-change-decision .profile-review-actions button { border-radius: 7px; font-size: 13px; font-weight: 650; }
.profile-change-decision [data-profile-decision="rejected"] { border-color: #ebcdd2; background: #fff7f8; color: #b53d50; }
.profile-change-detail .profile-change-back { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; border: 0; background: transparent; color: var(--brand-strong); font-size: 12px; }
.profile-change-back .ui-icon { width: 16px; height: 16px; }
@media (max-width: 359px) {
  .profile-change-detail .admin-modal-head strong { font-size: 17px; }
  .profile-change-detail .admin-profile-review-fields p { grid-template-columns: 88px minmax(0, 1fr); }
  .profile-change-detail .admin-profile-review-photos button { flex-wrap: wrap; }
}

/* V1.0.4.5 当期抄表实拍图与租住记录归档，复用现有青绿色 VI。 */
.meter-entry-modal { width: min(100%, 430px); }
.meter-photo-field {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #cfe4e5;
  border-radius: 8px;
  background: #f5fbfb;
}
.meter-photo-field > div { display: grid; gap: 3px; }
.meter-photo-field strong { color: var(--text); font-size: 13px; line-height: 20px; }
.meter-photo-field small { color: var(--secondary); font-size: 11px; line-height: 18px; }
.meter-photo-picker {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--brand-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong) !important;
  font-size: 13px !important;
  font-weight: 700;
  cursor: pointer;
}
.meter-photo-picker .ui-icon { width: 18px; height: 18px; }
.meter-photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.meter-photo-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid #d4e7e8;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
  text-align: left;
}
.meter-photo-preview[hidden] { display: none; }
.meter-photo-preview img { width: 72px; height: 54px; border-radius: 6px; object-fit: cover; background: #edf3f4; }
.meter-photo-preview span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.meter-photo-preview .ui-icon { width: 17px; height: 17px; }

.meter-evidence-picker { display: grid; gap: 9px; min-width: 0; }
.meter-evidence-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meter-evidence-actions .meter-photo-picker { margin: 0; min-width: 0; }
.meter-evidence-note { color: var(--secondary); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.meter-evidence-camera { display: grid; gap: 10px; padding: 10px; border-radius: 8px; background: #eaf4f4; }
.meter-evidence-camera[hidden] { display: none; }
.meter-evidence-camera video { width: 100%; max-height: 340px; border-radius: 6px; background: #17343b; }
.meter-evidence-camera > div { display: flex; flex-wrap: wrap; gap: 8px; }
.meter-evidence-camera small { color: var(--secondary); line-height: 1.6; }
.meter-evidence-picker button:disabled, .meter-evidence-picker label:has(input:disabled) { opacity: .55; cursor: default; }

.tenant-meter-photo-link,
.tenant-bill-photo-action,
.tenancy-meter-photo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #b9dcde;
  border-radius: 8px;
  background: #f4fbfb;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}
.tenant-meter-photo-link { width: 100%; margin-top: 10px; }
.tenant-meter-photo-link .ui-icon,
.tenant-bill-photo-action .ui-icon,
.tenancy-meter-photo-link .ui-icon { width: 17px; height: 17px; }
.tenant-meter-photo-missing,
.tenant-bill-photo-missing,
.tenancy-meter-photo-missing { margin-top: 8px; color: var(--secondary); font-size: 11px; line-height: 18px; }
.tenant-bill-photo-action { width: 100%; margin-top: 12px; }
.tenancy-meter-photo-link { margin-top: 7px; }
.tenant-bill-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.tenant-bill-detail-actions > .tenant-bill-photo-action,
.tenant-bill-detail-actions > .state-action {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding-inline: 10px;
  white-space: normal;
}
.tenant-bill-detail-actions > .tenant-bill-photo-missing,
.tenant-bill-detail-actions > :only-child { grid-column: 1 / -1; }

.tenancy-record-state-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid #d5e7e8;
  border-radius: 8px;
  background: #f1f7f7;
}
.tenancy-record-state-tabs button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 650;
}
.tenancy-record-state-tabs button[aria-selected="true"] { background: #fff; color: var(--brand-strong); box-shadow: 0 2px 8px rgb(11 46 58 / 7%); }
.tenancy-record-state-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #cfe5e6;
  border-radius: 8px;
  background: #f2fbfb;
}
.tenancy-record-state-panel > div:first-child { display: grid; gap: 3px; min-width: 0; }
.tenancy-record-state-panel strong { color: var(--text); font-size: 13px; line-height: 20px; }
.tenancy-record-state-panel small { color: var(--secondary); font-size: 11px; line-height: 18px; }
.tenancy-record-state-panel .modal-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.tenancy-record-state-panel .ui-icon { width: 17px; height: 17px; }
.tenancy-record-state-panel.is-locked { grid-template-columns: 1fr; background: #f7f9f9; }
.tenancy-record-state-panel.is-deleted { border-color: #ecd6d2; background: #fff8f6; }
.tenancy-record-state-actions { display: flex !important; align-items: center; gap: 8px !important; }
.modal-secondary.danger { border-color: #e8b7ae; background: #fff5f3; color: #b94b39; }

@media (max-width: 420px) {
  .tenancy-record-state-panel { grid-template-columns: 1fr; }
  .tenancy-record-state-panel > button { width: 100%; }
  .tenancy-record-state-actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
}
.verified-profile-fields p { margin: 5px 0; font-size: 13px; line-height: 21px; overflow-wrap: anywhere; }
.verified-photo small { display: block; margin-bottom: 6px; color: var(--secondary); font-size: 12px; }
.verified-avatar-edit { display: grid; gap: 5px; margin: 12px 0; font-size: 12px; }
.profile-change-status { color: var(--secondary); font-size: 12px; }
.dashboard-todo, .dashboard-quick, .dashboard-trend { height: auto; min-height: 0; padding: 16px; border-radius: 12px; background: #fff; box-shadow: none; }
.dashboard-todo h2, .dashboard-trend h2 { font-size: 16px; }
.todo-row { min-height: 42px; font-size: 13px; color: var(--text); }
.dashboard-todo .todo-list { height: auto; overflow: visible; }
.dashboard-todo .todo-row { min-height: 40px; padding: 8px 0; font-size: 13px; line-height: 20px; }
.dashboard-todo .todo-row b { font-size: 13px; }
.dashboard-card-head { padding: 0 0 10px; }
.dashboard-card-head span { font-size: 11px; }
.dashboard-kpi.warning strong { color: var(--danger); }
.dashboard-kpi.muted strong { color: var(--text); }
.todo-row .ui-icon { width: 16px; height: 16px; color: #959595; }
.quick-actions { gap: 10px; }
.quick-action { min-height: 82px; color: var(--text); }
.quick-action > span, .admin-service-items span { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: #fff1ae; color: #564615; box-shadow: none; }
.quick-action:nth-child(2) > span, .admin-service-items button:nth-child(2) span { background: #ddf4ee; color: #258369; }
.quick-action:nth-child(3) > span, .admin-service-items button:nth-child(3) span { background: #e9eefb; color: #596f9f; }
.quick-action:nth-child(4) > span, .admin-service-items button:nth-child(4) span { background: #ffebe4; color: #b57552; }
.quick-action small, .admin-service-items small { font-size: 12px; line-height: 20px; color: var(--secondary); white-space: normal; }
.trend-col > span { background: var(--brand); border-radius: 5px 5px 0 0; box-shadow: none; }
.filter-pills { gap: 6px; flex-wrap: wrap; }
.filter-pill { min-height: 38px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--secondary); font-size: 12px; }
.filter-pill.active { border-color: var(--brand); background: var(--brand); color: var(--text); box-shadow: none; }
.property-list { height: auto; min-height: 380px; overflow: visible; padding-bottom: 65px; }
.property-row { height: auto; min-height: 152px; padding: 14px; gap: 12px; border-radius: 12px; background: #fff; }
.property-row > img { width: 76px; height: 103px; border-radius: 8px; }
.property-row strong { font-size: 16px; }
.property-row small { white-space: normal; font-size: 11px; line-height: 19px; color: var(--secondary); }
.property-row > em { right: 12px; top: 14px; font-size: 10px; }
.property-row > span { min-width: 0; padding-top: 27px; }
.property-action { border-color: #d9c057; color: #746019; border-radius: 6px; }
.floating-action { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; z-index: 20; width: 178px; height: 46px; transform: translateX(-50%); border: 1px solid #eac000; border-radius: 12px; background: var(--brand); color: var(--text); font-size: 14px; box-shadow: 0 4px 14px #68570020; }
.floating-action .ui-icon { width: 18px; height: 18px; margin-right: 6px; }
.billing-room-selector, .billing-utility-card, .billing-rent-card, .billing-total-card { height: auto; min-height: 0; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.billing-room-selector { min-height: 74px; padding: 10px 12px; }
.billing-room-selector strong { font-size: 15px; }
.billing-room-selector small { font-size: 12px; color: var(--secondary); }
.billing-month-selector { min-height: 54px; color: var(--text); }
.billing-month-selector button { min-width: 36px; min-height: 36px; background: #fff; border-radius: 8px; }
.billing-utility-card { padding: 14px; margin-bottom: 12px; }
.billing-utility-title { min-height: 34px; }
.billing-utility-title > span { display: grid; place-items: center; background: #fff1bf; color: #a87500; width: 32px; height: 32px; border-radius: 9px; }
.billing-utility-card.water .billing-utility-title > span { background: #def6fb; color: #00869d; }
.billing-utility-title strong { font-size: 16px; }
.billing-utility-grid { gap: 6px; margin-top: 10px; }
.billing-utility-grid > div { padding: 9px 6px; background: #f7f8fa; border-radius: 7px; }
.billing-utility-grid small { font-size: 11px; color: var(--secondary); }
.billing-utility-grid b { font-size: 15px; color: var(--text); }
.billing-utility-grid b i { font-size: 11px; }
.billing-utility-total { flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.billing-utility-total > span { background: #fff1f2; color: var(--danger); }
.billing-utility-total > span { font-size: 11px; line-height: 18px; padding: 6px 8px; }
.billing-utility-title em, .billing-rent-card em { font-size: 11px; line-height: 18px; }
.billing-utility-grid > div { min-height: 58px; }
.billing-utility-grid b { display: block; margin-top: 4px; line-height: 20px; }
.billing-utility-total strong { color: var(--text); }
.billing-rent-card { padding: 14px; }
.billing-rent-card > div:first-child span { display: grid; place-items: center; background: #fff3b8; color: var(--text); }
.billing-rent-card small { font-size: 12px; color: var(--secondary); }
.billing-rent-card b { font-size: 19px; color: var(--text); }
.billing-total-card { padding: 14px 12px; margin-top: 12px; background: #fff5c9; border-color: #efe4b5; }
.billing-total-card strong { font-size: 13px; }
.billing-total-card > b { font-size: 20px; }
.billing-total-card button { color: #72652e; font-size: 11px; }
.billing-kit-actions { margin-top: 12px; gap: 10px; }
.billing-kit-actions { height: auto; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 2px; }
.billing-kit-actions .primary { grid-column: 1 / -1; }
.billing-kit-actions button { min-height: 46px; border: 1px solid #d4d5d7; border-radius: 9px; background: #fff; color: var(--text); font-size: 13px; box-shadow: none; }
.billing-kit-actions button.primary { border-color: var(--brand); background: var(--brand); color: var(--text); box-shadow: none; }
.utility-usage-modal { width: min(100%, 720px); max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); overflow: auto; }
.utility-usage-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.utility-usage-room-field { min-width: 0; margin: 0; padding: 14px; border: 1px solid #b9d8da; border-radius: 8px; background: #f7fbfb; }
.utility-usage-room-field legend { padding: 0 6px; color: var(--text); font-size: 14px; font-weight: 650; }
.utility-usage-room-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.utility-usage-form .utility-usage-room-tools label { min-width: 0; }
.utility-usage-form .utility-usage-room-tools input { width: 100%; min-height: 44px; border-color: #c9dfe1; background: #fff; font-size: 14px; }
.utility-usage-room-tools > div { display: flex; justify-content: flex-end; gap: 6px; }
.utility-usage-room-tools button { min-width: 56px; min-height: 40px; padding: 0 10px; border: 1px solid #9ccfd0; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 650; }
.utility-usage-room-tools button:hover, .utility-usage-room-tools button:focus-visible { border-color: var(--brand); background: #e3f8f7; }
.utility-usage-room-count { margin: 10px 0 8px; color: var(--secondary); font-size: 12px; line-height: 18px; }
.utility-usage-room-list { display: grid; gap: 7px; max-height: 218px; overflow-y: auto; overscroll-behavior: contain; }
.utility-usage-form .utility-usage-room-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 10px; align-items: center; min-height: 58px; padding: 9px 10px; border: 1px solid #d5e5e6; border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; }
.utility-usage-form .utility-usage-room-option:hover { border-color: #9ed4d4; background: #f3fbfa; }
.utility-usage-form .utility-usage-room-option.selected { border-color: var(--brand); background: #ebfafa; box-shadow: inset 3px 0 0 var(--brand); }
.utility-usage-form .utility-usage-room-option input { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: var(--brand-strong); }
.utility-usage-form .utility-usage-room-option span { display: grid; gap: 2px; min-width: 0; }
.utility-usage-form .utility-usage-room-option strong { font-size: 14px; line-height: 20px; }
.utility-usage-form .utility-usage-room-option small { overflow-wrap: anywhere; color: var(--secondary); font-size: 11px; line-height: 17px; }
.utility-usage-form .utility-usage-room-option > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: transparent; }
.utility-usage-form .utility-usage-room-option.selected > b { color: var(--brand-strong); background: #d9f5f4; }
.utility-usage-form .utility-usage-room-option > b .ui-icon { width: 15px; height: 15px; }
.utility-usage-room-empty { padding: 20px 12px; color: var(--secondary); text-align: center; font-size: 12px; }
.utility-usage-form .utility-usage-control-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; color: #405e68; font-size: 14px; font-weight: 650; }
.utility-usage-form .utility-usage-control-row :is(input, select) { width: 100%; min-width: 0; min-height: 50px; padding-inline: 14px; border: 1px solid #b9d8da; border-radius: 8px; background: #fff; color: var(--text); font-size: 16px; line-height: 24px; }
.utility-usage-form .utility-usage-control-row input[type="month"] { appearance: auto; font-variant-numeric: tabular-nums; }
.utility-usage-form .admin-field-note { color: var(--secondary); font-size: 12px; line-height: 19px; }
.utility-usage-form .modal-submit { min-height: 48px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: var(--text); font-size: 15px; font-weight: 700; box-shadow: 0 5px 14px rgb(24 199 197 / 16%); }
.utility-usage-result-scope { margin: 16px 0 0; padding: 10px 12px; border-left: 3px solid var(--brand); background: #f4fbfb; color: var(--secondary); font-size: 12px; line-height: 19px; overflow-wrap: anywhere; }
.utility-usage-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.utility-usage-summary-card { display: grid; gap: 4px; padding: 12px; border: 1px solid #dce9ea; border-radius: 9px; background: #f7fbfb; }
.utility-usage-summary-card.electricity { background: #fffaf0; border-color: #f0e2b6; }
.utility-usage-summary-card small, .utility-usage-summary-card span { color: var(--secondary); font-size: 11px; }
.utility-usage-summary-card strong { color: var(--text); font-size: 22px; line-height: 26px; }
.utility-usage-coverage { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: #f5f7f8; color: var(--secondary); font-size: 12px; line-height: 19px; }
.utility-usage-coverage.complete { background: #edf9f5; color: #277251; }
.utility-usage-coverage.partial { background: #fff8e7; color: #8b6813; }
.utility-usage-table-wrap { overflow-x: auto; border: 1px solid var(--control-border); border-radius: 9px; }
.utility-usage-table-wrap table { width: 100%; border-collapse: collapse; min-width: 360px; }
.utility-usage-table-wrap th, .utility-usage-table-wrap td { padding: 9px 10px; border-bottom: 1px solid #edf0f1; text-align: right; font-size: 12px; white-space: nowrap; }
.utility-usage-table-wrap thead th { background: #f7f9fa; color: var(--secondary); font-weight: 650; }
.utility-usage-table-wrap th:first-child, .utility-usage-table-wrap td:first-child { text-align: left; }
.utility-usage-table-wrap tbody tr:last-child th, .utility-usage-table-wrap tbody tr:last-child td { border-bottom: 0; }
.utility-usage-table-wrap td small { color: var(--secondary); font-size: 10px; }
@media (max-width: 560px) {
  .utility-usage-room-list { max-height: 190px; }
  .utility-usage-summary { grid-template-columns: minmax(0, 1fr); }
}
.admin-message-row { height: auto; min-height: 118px; padding: 16px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.admin-message-row strong { font-size: 15px; color: var(--text); }
.admin-message-row time { color: var(--muted); font-size: 10px; }
.admin-message-row > b { color: #999; }
.landlord-message-body { min-height: 0; padding-bottom: 8px; }
.landlord-message-art {
  min-height: 118px;
  margin: 12px 0 0;
  padding: 18px 12px 16px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #f7fbfd 0%, #e7f4fb 100%);
  opacity: 1;
}
.landlord-message-art > span { width: 52px; height: 52px; }
.landlord-message-art > span .brand-image-icon { width: 52px; height: 52px; }
.admin-profile-card { min-height: 106px; height: auto; padding: 16px; border-radius: 12px; background: #fff1a7; }
.admin-avatar { width: 60px; height: 60px; background: #fff; color: #635729; box-shadow: none; }
.admin-avatar .ui-icon { width: 30px; height: 30px; }
.admin-profile-card strong { color: var(--text); font-size: 18px; }
.admin-profile-card em { background: #ffffffa0; color: #6f5a13; font-size: 10px; }
.admin-profile-card small { margin-top: 5px; color: #665c36; font-size: 12px; }
.admin-profile-card b { margin-top: 6px; color: #25734c; font-size: 11px; }
.admin-profile-banner { background: #383a3d; color: #fff; min-height: 80px; padding: 15px; border: 0; border-radius: 10px; }
.admin-profile-banner strong { font-size: 15px; color: #fff0a1; }
.admin-profile-banner small { font-size: 11px; color: #ececec; }
.admin-profile-banner img { opacity: 1; }
.admin-service-group { height: auto; min-height: 140px; border-radius: 12px; padding: 16px 12px; box-shadow: none; }
.admin-service-head, .admin-service-group.account-group > strong { font-size: 15px; color: var(--text); }
.admin-service-items { margin-top: 14px; gap: 5px; }
.admin-service-items button { min-height: 70px; gap: 8px; }
.admin-service-group.account-group { height: auto; }
.admin-account-items button { min-height: 47px; font-size: 13px; color: var(--text); }
.admin-account-items b { color: var(--secondary); }
.admin-account-items i .ui-icon { width: 16px; height: 16px; }
.state-block, .admin-state { min-height: 250px; padding: 32px 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); }
.state-symbol, .admin-state > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 20px; color: #a48a2b; background: var(--brand-soft); }
.state-symbol .ui-icon, .admin-state > span .ui-icon { width: 30px; height: 30px; }
.state-block strong, .admin-state strong { font-size: 17px; }
.state-block small, .admin-state small { max-width: 290px; margin: 8px auto 0; color: var(--secondary); font-size: 13px; line-height: 21px; }
.home-unbound { margin-top: 0; }
.state-action, .admin-state button, .modal-submit, .tenant-form > button:not(.form-secondary), .login-submit { min-height: 46px; padding: 12px 18px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: var(--text); font-size: 14px; font-weight: 650; box-shadow: none; }
.admin-empty, .admin-empty-inline, .empty-inline { padding: 28px 16px; font-size: 13px; line-height: 22px; color: var(--muted); }
.property-empty { min-height: 300px; display: grid; place-items: center; }
.admin-modal, .message-detail-modal { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); background: #16181e66; backdrop-filter: blur(3px); z-index: 80; }
.admin-modal-card, .message-detail { width: min(100%, 440px); max-height: calc(100dvh - 48px - env(safe-area-inset-bottom)); padding: 22px 20px; border: 1px solid #fff; border-radius: 16px; background: #fff; box-shadow: 0 20px 80px #15151522; color: var(--text); overflow-y: auto; }
.admin-modal-head { align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-color: var(--border); }
.admin-modal-head strong, .message-detail h2 { font-size: 20px; line-height: 28px; color: var(--text); padding-right: 32px; }
.admin-modal-head button, .message-detail-close { display: grid; place-items: center; width: 36px; height: 36px; min-width: 36px; border: 0; border-radius: 8px; background: #f1f2f3; color: var(--secondary); }
.admin-modal-head .ui-icon, .message-detail-close .ui-icon { width: 20px; height: 20px; }
.message-detail-type { color: #8b7209; font-size: 12px; }
.message-detail p, .message-detail time, .message-detail small { color: var(--secondary); font-size: 13px; line-height: 22px; overflow-wrap: anywhere; }
.admin-form, .tenant-form { gap: 16px; }
.admin-form label, .tenant-form label, .login-panel label { font-size: 13px; line-height: 20px; color: #555; gap: 7px; }
.admin-field-note { color: var(--secondary); font-size: 11px; line-height: 17px; }
.admin-form input, .admin-form select, .admin-form textarea, .tenant-form input, .tenant-form select, .tenant-form textarea, .login-panel input { min-height: 46px; border: 1px solid #dedfe2; border-radius: 8px; background: #fafbfc; color: var(--text); padding: 11px 12px; font-size: 16px; outline: 0; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .tenant-form input:focus, .tenant-form select:focus, .tenant-form textarea:focus, .login-panel input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px #18c7c529; }
input[type="checkbox"], input[type="radio"] { accent-color: #8c7300; }
.tenant-form input[type="checkbox"], .tenant-form input[type="radio"] { width: 20px; height: 20px; min-height: 20px; }
.tenant-form .form-secondary, .detail-actions button, .payment-actions button, .flow-actions button { min-height: 42px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; }
.flow-note, .tenant-lookup-result, .lease-summary, .bill-detail-summary { background: #fff9df; color: #716331; border-color: #f0e7c3; border-radius: 8px; font-size: 12px; line-height: 21px; }
.payment-history-row, .message-group-row, .admin-list-row, .billing-room-option { border-color: var(--border); background: #fff; color: var(--text); }
.modal-secondary, .settings-actions button { min-height: 42px; padding: 10px 12px; border-color: var(--border); border-radius: 8px; background: #f7f8fa; color: var(--text); font-size: 13px; }
.admin-data-row, .application-row, .lookup-result, .payment-context { padding: 12px; border-color: var(--border); border-radius: 8px; background: #f7f8fa; }
.admin-data-row strong, .application-row strong, .lookup-result strong { color: var(--text); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.admin-data-row small, .application-row small, .payment-context small { color: var(--secondary); font-size: 11px; line-height: 18px; }
.admin-data-row em { font-size: 11px; }
.lookup-result span { color: var(--secondary); font-size: 12px; border-color: var(--border); gap: 12px; }
.record-summary span, .rent-bill-meta, .monthly-summary { background: #f6f7f8; color: var(--secondary); border-color: var(--border); }
.record-summary span { font-size: 11px; padding: 10px 6px; }
.record-summary b { color: var(--text); font-size: 15px; }
.review-actions button { min-height: 42px; font-size: 13px; border-radius: 8px; }
.review-actions button.primary, .bill-pay-action, .monthly-summary .primary-summary-action { min-height: 44px; background: var(--brand); border-color: var(--brand); color: var(--text); border-radius: 8px; font-size: 14px; }
.admin-choice-list label { min-height: 44px; color: var(--text); border-color: var(--border); font-size: 13px; }
.admin-form-section { padding: 16px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.admin-form-section > strong { color: var(--text); font-size: 15px; }
.property-manage-hint { color: var(--brand-strong) !important; font-weight: 650; }
.lease-room-section { padding-top: 4px; border-top: 0; }
.lease-editor-card { padding-bottom: 28px; }
.lease-editor-context { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-bottom: 12px; padding: 12px; border: 1px solid #dce9eb; border-radius: 10px; background: #f5fbfb; }
.lease-editor-context > img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: #eef3f4; }
.lease-editor-context > div { min-width: 0; }
.lease-editor-context strong, .lease-editor-context small { display: block; overflow-wrap: anywhere; }
.lease-editor-context strong { color: var(--text); font-size: 15px; line-height: 22px; }
.lease-editor-context small { margin-top: 3px; color: var(--secondary); font-size: 11px; line-height: 17px; }
.lease-editor-context > button { min-height: 36px; padding: 8px 10px; border: 1px solid #9bdedc; border-radius: 8px; background: #fff; color: var(--brand-strong); font-size: 11px; white-space: nowrap; }
.lease-rule-note { margin-bottom: 4px; color: #655820; background: #fff9df; border-color: #f0e7c3; }
.lease-change-note { padding-top: 2px; }
.lease-change-note textarea { resize: vertical; }
.lease-history-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.lease-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lease-history-head strong { color: var(--text); font-size: 15px; }
.lease-history-head small { color: var(--secondary); font-size: 11px; }
.lease-history-empty { padding: 18px 12px; border: 1px dashed #cfdcdf; border-radius: 9px; color: var(--secondary); background: #f8fafb; font-size: 12px; line-height: 20px; text-align: center; }

.tenancy-record-modal,
.tenancy-detail-modal { width: min(100%, 440px); }
.tenancy-record-intro { display: grid; gap: 4px; margin: -4px 0 14px; }
.tenancy-record-intro strong { color: var(--text); font-size: 14px; }
.tenancy-record-intro small { color: var(--secondary); font-size: 11px; }
.tenancy-record-filter { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f8fbfb; }
.tenancy-record-filter label { display: grid; gap: 6px; color: var(--secondary); font-size: 12px; }
.tenancy-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tenancy-filter-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: 8px; }
.tenancy-filter-actions button { min-height: 42px; }
.tenancy-record-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.tenancy-record-summary span { display: grid; gap: 3px; padding: 9px 5px; border-radius: 9px; background: #f6f7f8; color: var(--secondary); font-size: 11px; text-align: center; }
.tenancy-record-summary b { color: var(--text); font-size: 15px; }
.tenancy-record-list { display: grid; gap: 8px; }
.tenancy-record-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto 18px; align-items: center; gap: 8px; width: 100%; padding: 12px 9px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); text-align: left; }
.tenancy-record-row > span { min-width: 0; }
.tenancy-record-main strong, .tenancy-record-main small, .tenancy-record-meta b, .tenancy-record-meta small { display: block; overflow-wrap: anywhere; }
.tenancy-record-main strong { font-size: 13px; line-height: 20px; }
.tenancy-record-main small, .tenancy-record-meta small { margin-top: 3px; color: var(--secondary); font-size: 10px; line-height: 16px; }
.tenancy-record-meta b { font-size: 13px; }
.tenancy-record-row em, .tenancy-detail-title > span { padding: 4px 6px; border-radius: 8px; background: #f4f6f8; color: var(--secondary); font-size: 10px; font-style: normal; white-space: nowrap; }
.tenancy-record-row em.is-active, .tenancy-detail-title > span.is-active { background: #e3f8ef; color: #13895f; }
.tenancy-record-row em.is-ended, .tenancy-detail-title > span.is-ended { background: #eef2f4; color: #63727c; }
.tenancy-record-row em.is-cancelled, .tenancy-detail-title > span.is-cancelled { background: #fff0ed; color: #cc5b42; }
.tenancy-record-row > i { display: grid; place-items: center; color: var(--secondary); font-style: normal; }
.tenancy-record-row > i .ui-icon { width: 16px; height: 16px; }
.tenancy-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; margin-top: 12px; }
.tenancy-pagination button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 36px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 11px; white-space: nowrap; }
.tenancy-pagination button:disabled { opacity: .45; }
.tenancy-pagination button .ui-icon { width: 14px; height: 14px; }
.tenancy-pagination span { color: var(--secondary); font-size: 10px; text-align: center; }
.tenancy-record-empty { min-height: 160px; display: grid; place-items: center; }
.tenancy-back-button { display: inline-flex !important; flex: 0 0 auto !important; align-items: center; gap: 8px; width: auto !important; min-width: max-content !important; max-width: none !important; padding: 0 !important; background: transparent !important; color: var(--text) !important; font-size: 16px !important; line-height: 24px !important; white-space: nowrap !important; writing-mode: horizontal-tb !important; overflow: visible !important; }
.tenancy-back-button span { display: inline-block; min-width: max-content; font-size: 20px; line-height: 28px; font-weight: 700; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.tenancy-back-button .ui-icon { width: 19px; height: 19px; }
.tenancy-detail-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; margin-bottom: 14px; }
.tenancy-detail-title strong { color: var(--text); font-size: 20px; line-height: 28px; overflow-wrap: anywhere; }
.tenancy-detail-title small { grid-column: 1 / -1; color: var(--secondary); font-size: 12px; }
.tenancy-detail-section { padding: 16px 0; border-top: 1px solid var(--border); }
.tenancy-detail-section h3 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 11px; color: var(--text); font-size: 15px; }
.tenancy-detail-section h3 small { color: var(--secondary); font-size: 11px; font-weight: 400; }
.tenancy-detail-grid, .tenancy-financial-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tenancy-detail-field { min-width: 0; padding: 9px; border-radius: 8px; background: #f7f8fa; }
.tenancy-detail-field.is-wide { grid-column: 1 / -1; padding: 0; background: transparent; }
.tenancy-detail-field small, .tenancy-detail-field strong { display: block; overflow-wrap: anywhere; }
.tenancy-detail-field small { color: var(--secondary); font-size: 10px; line-height: 15px; }
.tenancy-detail-field strong { margin-top: 3px; color: var(--text); font-size: 12px; line-height: 18px; }
.tenancy-bill-list, .tenancy-payment-list { display: grid; gap: 8px; }
.tenancy-bill-row, .tenancy-payment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.tenancy-bill-row strong, .tenancy-bill-row small, .tenancy-payment-row strong, .tenancy-payment-row small { display: block; overflow-wrap: anywhere; }
.tenancy-bill-row strong, .tenancy-payment-row strong { color: var(--text); font-size: 12px; }
.tenancy-bill-row small, .tenancy-payment-row small { margin-top: 3px; color: var(--secondary); font-size: 10px; line-height: 15px; }
.tenancy-bill-row > b, .tenancy-payment-row > b { color: var(--text); font-size: 12px; text-align: right; white-space: nowrap; }
.tenancy-bill-row > b small, .tenancy-payment-row > b small { font-weight: 400; text-align: right; }
.tenancy-detail-empty { padding: 16px 10px; border: 1px dashed var(--border); border-radius: 8px; color: var(--secondary); font-size: 12px; text-align: center; }
.tenancy-residents-section { padding-bottom: 12px; }
.tenancy-resident-list { display: grid; gap: 8px; }
.tenancy-resident-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px; border: 1px solid #d9e9ea; border-radius: 9px; background: #f8fcfc; }
.tenancy-resident-row > div, .tenancy-resident-row > span { min-width: 0; }
.tenancy-resident-row strong, .tenancy-resident-row small { display: block; overflow-wrap: anywhere; }
.tenancy-resident-row strong { color: var(--text); font-size: 12px; line-height: 18px; }
.tenancy-resident-row small { margin-top: 3px; color: var(--secondary); font-size: 10px; line-height: 15px; }
.tenancy-resident-row > span { text-align: right; }
.tenancy-resident-row > span b { display: inline-block; padding: 3px 6px; border-radius: 999px; background: #e1f8ef; color: #168c67; font-size: 10px; font-weight: 650; white-space: nowrap; }
.tenancy-resident-row > em { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid #e4eff0; color: var(--secondary); font-size: 10px; font-style: normal; line-height: 15px; }
@media (max-width: 380px) {
  .tenancy-record-row { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .tenancy-record-meta { grid-column: 1 / 2; }
  .tenancy-record-row em { grid-column: 2 / 3; grid-row: 1 / 2; }
  .tenancy-record-row > i { grid-column: 3 / 4; grid-row: 1 / 2; }
  .tenancy-resident-row { grid-template-columns: minmax(0, 1fr); }
  .tenancy-resident-row > span { text-align: left; }
}
.lease-history-list { display: grid; gap: 9px; }
.lease-history-item { border: 1px solid #dce7e9; border-radius: 9px; background: #fff; overflow: hidden; }
.lease-history-item summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; cursor: pointer; list-style: none; }
.lease-history-item summary::-webkit-details-marker { display: none; }
.lease-history-item summary > span { min-width: 0; }
.lease-history-item summary strong, .lease-history-item summary small { display: block; }
.lease-history-item summary strong { color: var(--text); font-size: 13px; line-height: 20px; }
.lease-history-item summary small { margin-top: 2px; color: var(--secondary); font-size: 10px; line-height: 16px; overflow-wrap: anywhere; }
.lease-history-item summary > .ui-icon { flex: 0 0 auto; width: 17px; height: 17px; color: var(--brand-strong); transition: transform .18s ease; }
.lease-history-item[open] summary > .ui-icon { transform: rotate(180deg); }
.lease-history-note, .lease-history-created { margin: 0 12px 11px; color: var(--secondary); font-size: 11px; line-height: 18px; }
.lease-history-created { padding: 10px; border-radius: 7px; color: var(--success); background: #edf9f5; }
.lease-history-diff { display: grid; gap: 7px; padding: 0 12px 12px; }
.lease-history-diff > div { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 6px; padding: 9px 10px; border-radius: 7px; background: #f6f8f9; }
.lease-history-diff span { grid-column: 1 / -1; color: var(--secondary); font-size: 10px; }
.lease-history-diff del, .lease-history-diff b { min-width: 0; color: var(--secondary); font-size: 11px; line-height: 17px; overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.lease-history-diff b { color: var(--text); text-decoration: none; text-align: right; }
.lease-history-diff .ui-icon { width: 14px; height: 14px; color: var(--brand-strong); }
.payment-history-row strong, .message-group-row strong { color: var(--text); font-size: 13px; }
.payment-history-row small, .message-group-row small, .message-group-row time { color: var(--secondary); font-size: 11px; }
.payment-history-row b { color: var(--success); font-size: 14px; }
.message-group-row.unread { border-color: #e6cc62; background: #fffbed; }
.tenant-category-message { align-items: stretch; gap: 12px; padding: 12px; }
.tenant-category-message .category-message-copy { min-width: 0; align-self: center; }
.tenant-category-message strong { line-height: 20px; overflow-wrap: anywhere; }
.tenant-category-message small { line-height: 18px; }
.tenant-category-message .category-message-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 0; }
.tenant-category-message time { max-width: 112px; line-height: 18px; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.tenant-category-message .message-read-status { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.tenant-category-message .message-read-status.is-unread { color: #c52a43; background: #ffedf1; }
.tenant-category-message .message-read-status.is-read { color: var(--secondary); background: #edf3f4; }
.tenant-category-message:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.rent-bill-meta small, .monthly-summary small { color: var(--secondary); font-size: 12px; }
.monthly-summary button { color: var(--text); font-size: 12px; }
.form-context { color: var(--secondary) !important; font-size: 12px !important; }
.preference-toggle input { accent-color: #8c7300; }
.required-star { margin-left: 5px; color: #d72d42; font-size: 15px; font-weight: 700; }
.tenant-form label > span > small { display: inline; margin-left: 4px; color: #929292; font-size: 11px; }
.identity-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.identity-upload-tile { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.58; overflow: hidden; border: 1px dashed #c7b764; border-radius: 9px; background: #fffbed; }
.identity-upload-tile:focus-within { outline: 3px solid #b8950050; outline-offset: 2px; }
.identity-upload-tile[aria-busy="true"] { opacity: .55; }
.identity-upload-tile > img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #f0f1f2; }
.identity-upload-empty { display: grid; justify-items: center; gap: 5px; color: #877729; font-size: 12px; }
.identity-upload-empty .ui-icon { width: 28px; height: 28px; }
.tenant-form .identity-upload-tile input[type="file"] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.identity-profile-modal .upload-status, .identity-profile-modal .field-note { margin: 0; color: #818181; font-size: 11px; line-height: 17px; }
.identity-profile-modal .upload-status.error, .profile-form-error { color: var(--danger); }
.identity-profile-modal .profile-form-error { margin: 0; font-size: 12px; line-height: 19px; }
.identity-ocr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px; border-radius: 8px; background: #edf9f8; }
.identity-profile-modal .identity-ocr-status p { flex: 1 1 190px; margin: 0; color: var(--secondary); font-size: 12px; line-height: 19px; }
.identity-profile-modal .identity-ocr-status p.error { color: var(--danger); }
.identity-profile-modal .identity-ocr-status button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 40px; margin: 0; padding: 8px 12px; color: var(--brand-strong); font-size: 12px; }
.identity-ocr-status .ui-icon { width: 18px; height: 18px; }
.tenant-avatar-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tenant-avatar-upload .identity-upload-tile { width: 104px; max-width: 100%; aspect-ratio: 1; border-radius: 8px; }
.tenant-avatar-upload .identity-upload-tile > img { object-fit: cover; }
.tenant-avatar-upload .identity-upload-empty { font-size: 11px; }
.identity-profile-modal .tenant-avatar-field button { width: auto; min-height: 40px; padding: 8px 12px; margin: 0; font-size: 12px; }
.tenant-avatar-preview > img { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 1; object-fit: contain; margin: 16px auto 0; border-radius: 8px; }
.identity-profile-modal .profile-privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--secondary); font-size: 11px; line-height: 18px; }
.profile-privacy-note .ui-icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; color: var(--brand-strong); }
@media (max-width: 380px) { .identity-upload-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) {
  .lease-editor-context { grid-template-columns: 52px minmax(0, 1fr); }
  .lease-editor-context > img { width: 52px; height: 52px; }
  .lease-editor-context > button { grid-column: 2; justify-self: start; }
}
.toast, .admin-toast { color: #fff; background: #252525; border-radius: 8px; font-size: 13px; line-height: 21px; box-shadow: 0 6px 24px #0002; z-index: 100; }
.login-shell { width: min(100%, 448px); display: flex; flex-direction: column; min-height: 100dvh; background: #fff; box-shadow: 0 0 36px #20202009; }
.login-visual { flex: 0 0 215px; min-height: 215px; max-height: 215px; background: var(--brand); }
.login-visual img { width: 42%; height: 170px; position: absolute; right: -12px; bottom: 0; opacity: 1; object-fit: cover; border-radius: 90px 0 0 0; }
.login-visual:after { display: none; }
.login-visual div { left: 26px; bottom: 30px; right: 0; }
.login-visual .brand-mark { display: grid; width: 40px; height: 40px; margin-bottom: 14px; }
.login-visual strong { font-size: 28px; color: var(--text); }
.login-visual span { color: #67581c; font-size: 12px; }
.login-panel { min-height: 0; flex: 1; align-self: stretch; padding: 28px 26px calc(26px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; background: #fff; }
.login-heading small { color: #8c7400; font-size: 10px; letter-spacing: 0; }
.login-heading h1 { font-size: 25px; line-height: 34px; margin-top: 7px; }
.login-heading p { color: var(--secondary); font-size: 12px; line-height: 20px; }
.auth-tabs { min-height: 46px; border-radius: 9px; background: #f0f1f2; padding: 4px; }
.auth-tabs button { font-size: 14px; color: var(--secondary); border-radius: 6px; }
.auth-tabs button.active { color: var(--text); background: var(--brand); box-shadow: none; font-weight: 650; }
.login-panel form { gap: 16px; }
.login-submit { min-height: 48px; }
.login-back { color: var(--secondary); font-size: 13px; }
.login-error { color: var(--danger); font-size: 12px; }
.login-shell[data-auth-mode="register"] .login-visual { flex-basis: 160px; min-height: 160px; }
.login-shell[data-auth-mode="register"] .login-visual img { height: 140px; }
.login-shell[data-auth-mode="register"] .login-visual .brand-mark { display: none; }
@media (max-width: 359px) {
  .landlord-page-body, .tenant-home-body, .tenant-message-body, .profile-body { padding-left: 12px; padding-right: 12px; }
  .tenant-property-card { padding: 12px 10px; }
  .tenant-property-head { grid-template-columns: 50px minmax(0, 1fr); }
  .tenant-property-head > img { width: 50px; height: 50px; }
  .tenant-property-head > button { grid-column: 2; justify-self: start; }
  .tenant-property-metrics strong { font-size: 15px; }
  .tenant-utility-head { gap: 5px; flex-wrap: wrap; }
  .tenant-utility-head > strong { font-size: 15px; }
  .tenant-utility-icon { width: 32px; height: 32px; }
  .profile-identity { left: 16px; gap: 10px; }
  .profile-identity strong { font-size: 18px; }
  .profile-avatar { width: 60px; height: 60px; }
  .profile-items button, .admin-service-items small, .quick-action small { font-size: 11px; }
  .dashboard-kpi strong { font-size: 20px; }
  .dashboard-kpi { padding: 12px 8px; }
  .filter-pill { font-size: 11px; padding: 6px 7px; }
  .message-card { grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 8px; }
  .message-card .message-time { grid-column: 2; grid-row: 2; }
  .message-card .message-arrow { grid-column: 3; grid-row: 1; }
  .message-icon { width: 38px; height: 38px; }
  .login-panel { padding-left: 22px; padding-right: 22px; }
}
@media (max-height: 700px) {
  .login-visual { flex-basis: 165px; min-height: 165px; }
  .login-visual .brand-mark { display: none; }
  .login-visual img { height: 140px; }
  .login-panel { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive layout contract: keep both H5 portals stable across mainstream phones. */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-width: 0; max-width: 100%; overflow-x: hidden; }
body { margin: 0; }
.app, .admin-app { width: min(100%, 448px); min-width: 0; margin: 0 auto; overflow: clip; }
.page, .admin-page { width: 100%; min-width: 0; overflow-x: clip; }
.tenant-home-body, .tenant-message-body, .profile-body, .landlord-page-body { width: 100%; max-width: 448px; margin: 0 auto; padding-left: clamp(14px, 4vw, 20px); padding-right: clamp(14px, 4vw, 20px); }
.tenant-property-card, .tenant-utility-card, .message-card, .profile-group, .dashboard-greeting, .dashboard-kpi-grid, .dashboard-todo, .dashboard-chart, .property-list, .billing-utility-card, .admin-section { min-width: 0; }
.tenant-property-head > div, .message-card > div, .admin-data-row > div, .profile-group-head > div { min-width: 0; }
.tenant-property-head strong, .message-card strong, .admin-data-row strong, .profile-group strong { overflow-wrap: anywhere; }
.bottom-nav, .admin-nav { width: min(100%, 448px); padding-left: clamp(8px, 3vw, 16px); padding-right: clamp(8px, 3vw, 16px); }
.nav-item, .admin-nav-item { min-width: 0; overflow: hidden; }
.nav-item > span:last-of-type, .admin-nav-item > span:last-of-type { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-modal, .message-detail-modal { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.admin-modal-card, .message-detail { width: min(100%, 440px); min-width: 0; }

@media (max-width: 359px) {
  .app, .admin-app { width: 100%; }
  .app-header, .admin-header { padding-left: 14px; padding-right: 14px; }
  .tenant-home-body, .tenant-message-body, .profile-body, .landlord-page-body { padding-left: 12px; padding-right: 12px; }
  .bottom-nav, .admin-nav { min-height: 72px; }
  .nav-item, .admin-nav-item { font-size: 11px; }
  .nav-item .ui-icon, .admin-nav-item .ui-icon { width: 20px; height: 20px; }
}

@media (min-width: 449px) {
  .app, .admin-app { box-shadow: 0 0 0 1px #e8e8e8; }
}

/* WO爱家 VI brand application, frozen from the 2026-09-09 identity board. */
.brand-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.brand-icon-primary { color: var(--brand-strong); background: var(--brand-soft); }
.brand-icon-accent { color: var(--accent-strong); background: var(--accent-soft); }

.bottom-nav, .admin-nav { border-top-color: #dbe7e9; box-shadow: 0 -8px 28px #0b2e3a0a; }
.nav-item, .admin-nav-item { color: #71858b; }
.nav-item .nav-icon, .admin-nav-item > span { transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.nav-item.active, .admin-nav-item.active { color: var(--brand-strong); }
.nav-item.active .nav-icon, .admin-nav-item.active > span { color: var(--brand-strong); background: var(--brand-soft); transform: translateY(-1px); }
.nav-badge, .admin-badge { background: var(--accent); }

.landlord-icon-button, .landlord-back, .tenant-message-header button, .profile-settings, .tenant-bell { border-color: #dce9eb; color: var(--brand-strong); background: #fff; box-shadow: 0 4px 14px #0b2e3a0b; }
.tenant-home-hero { background: #edfafa; }
.tenant-hero-copy h1 span { color: var(--brand-strong); }
.tenant-hero-copy h1 span .ui-icon { width: 29px; height: 29px; stroke-width: 2.2; }
.tenant-hero-copy p { color: #36555e; }
.tenant-hero-wash { background: linear-gradient(90deg, #fffffff2 0%, #ffffffc4 46%, #ffffff1a 82%); }
.tenant-property-card, .tenant-utility-card, .message-card, .profile-group, .dashboard-greeting, .dashboard-kpi, .dashboard-todo, .dashboard-quick, .dashboard-chart, .property-row, .billing-utility-card, .billing-rent-card, .admin-service-group { border-color: #e1eaec; box-shadow: 0 8px 26px #0b2e3a08; }

.tenant-property-head > button, .tenant-utility-head > button, .tenant-bill-heading button { color: var(--brand-strong); }
.tenant-property-metrics > div, .tenant-reading-grid, .tenant-charge-grid, .billing-utility-grid > div, .record-summary span, .rent-bill-meta, .monthly-summary { background: #f4f8f9; }
.tenant-property-metrics button, .state-action, .admin-state button, .modal-submit, .tenant-form > button:not(.form-secondary), .login-submit, .review-actions button.primary, .bill-pay-action, .monthly-summary .primary-summary-action, .billing-kit-actions button.primary, .floating-action { border-color: var(--brand); background: var(--brand); color: var(--text); }
.tenant-property-metrics button:hover, .state-action:hover, .modal-submit:hover, .login-submit:hover, .floating-action:hover { background: var(--brand-pressed); border-color: var(--brand-pressed); }
.tenant-property-metrics em .ui-icon, .profile-identity small .ui-icon, .admin-profile-card small .ui-icon, .admin-profile-card b .ui-icon { width: 13px; height: 13px; }

.tenant-utility-card.electricity .tenant-utility-icon, .billing-utility-title > span { color: var(--accent-strong); background: var(--accent-soft); }
.tenant-utility-card.water .tenant-utility-icon, .billing-utility-card.water .billing-utility-title > span { color: #078295; background: #e3f8fb; }
.tenant-overage, .billing-utility-total > span { color: var(--accent-strong); background: var(--accent-soft); }
.danger-text, .dashboard-kpi.warning strong, .dashboard-kpi.pending strong { color: var(--accent-strong) !important; }

.message-tabs { background: #e8eff1; }
.message-tabs button.active { color: var(--brand-strong); box-shadow: 0 4px 12px #0b2e3a0c; }
.message-tabs button.active b { color: var(--text); background: var(--brand); }
.message-icon, .message-row-icon { color: var(--brand-strong); background: var(--brand-soft); }
.message-icon.water, .message-row-icon.water { color: #078295; background: #e3f8fb; }
.message-icon.electricity, .message-row-icon.electricity { color: var(--accent-strong); background: var(--accent-soft); }
.message-icon.lease, .message-row-icon.lease_expiry { color: #526b9a; background: #eef1fb; }
.message-icon.rent, .message-row-icon.rent_payment { color: #9d5b0e; background: #fff4df; }
.message-card.unread, .admin-message-row.unread, .message-group-row.unread { border-color: #a9e4e2; background: #f2fcfb; }
.empty-message > span, .message-footer-art > span, .landlord-message-empty > span { color: var(--brand-strong); background: var(--brand-soft); }

.tenant-profile-hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: auto;
  min-height: 206px;
  padding: 54px 22px 20px;
  background: var(--brand-soft);
  border-bottom: 1px solid #dcebea;
  isolation: isolate;
}
.tenant-profile-bg {
  display: block;
  object-position: center 54%;
  opacity: .92;
  pointer-events: none;
}
.tenant-profile-bg.ui-image-unavailable { display: none; }
.tenant-profile-wash {
  display: block;
  background: linear-gradient(90deg, #f2fbfaf2 0%, #f4faf9df 34%, #f3f9f89e 62%, #f3f9f81a 100%), linear-gradient(0deg, #f5faf8c2, #ffffff00 46%);
  pointer-events: none;
}
.tenant-profile-hero .profile-identity { position: relative; inset: auto; margin: 0; min-width: 0; align-items: center; }
.tenant-profile-hero .profile-avatar { flex: 0 0 74px; background: #ffffffeb; box-shadow: 0 4px 16px #0b2e3a0a; }
.tenant-profile-hero .profile-identity > div { min-width: 0; flex: 1; grid-template-columns: minmax(0, 1fr); }
.tenant-profile-hero .profile-identity em { justify-self: start; }
.tenant-profile-hero .profile-quote { position: relative; inset: auto; margin: 0; line-height: 20px; }
.tenant-profile-hero .profile-settings { background: #fffffff2; }

.tenant-bill-overview {
  margin-top: 16px;
  padding: 18px 16px 14px;
  border: 1px solid #dce9eb;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}
.bill-overview-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; }
.bill-overview-head h2 { margin: 0; font-size: 17px; line-height: 24px; }
.bill-overview-head button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; padding: 4px 0 4px 8px; background: transparent; color: var(--brand-strong); font-size: 13px; }
.bill-overview-head .ui-icon { width: 16px; height: 16px; }
.bill-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid #edf3f3; padding: 4px 0 8px; }
.bill-overview-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; min-height: 52px; padding: 10px 0; border-bottom: 1px solid #edf3f3; }
.bill-overview-item:last-child { border-bottom: 0; }
.bill-overview-label { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--secondary); font-size: 14px; line-height: 22px; }
.bill-overview-label > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.bill-overview-label .brand-image-icon { width: 28px; height: 28px; flex: 0 0 28px; }
.bill-overview-item strong { flex-shrink: 0; max-width: 52%; margin: 0; text-align: right; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bill-overview-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -16px; padding: 16px; background: var(--brand-soft); border-block: 1px solid #d8eeee; }
.bill-overview-total > span { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.bill-overview-total > strong { min-width: 0; color: var(--brand-strong); text-align: right; font-size: 23px; line-height: 30px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bill-not-generated { font-size: 12px; font-weight: 500; color: var(--muted); }
.bill-overview-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--secondary); }
.bill-overview-footer b { color: var(--text); font-variant-numeric: tabular-nums; }
.bill-overview-payment-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: #f3faf9; color: #38636b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.bill-overview-status { display: inline-flex; align-items: center; gap: 4px; color: #ac471e; }
.bill-overview-status.settled { color: var(--success); }
.bill-overview-status .ui-icon { width: 14px; height: 14px; }
.bill-overview-grid.large-amounts .bill-overview-item strong { font-size: 14px; }
@media (max-width: 359px) {
  .tenant-profile-hero { padding-right: 16px; padding-left: 16px; }
  .tenant-profile-hero .profile-identity { gap: 10px; }
}
.profile-avatar, .admin-avatar { color: var(--brand-strong); background: #fff; }
.profile-identity em { color: var(--brand-strong); background: #ffffffc7; }
.profile-identity span { color: #2d5059; }
.profile-identity small { display: inline-flex; align-items: center; gap: 4px; color: var(--success); }
.profile-quote { color: #37626b; }
.profile-completion { color: var(--accent-strong); background: var(--accent-soft); border-color: #ffd9bd; }
.profile-completion.complete { color: var(--success); background: #eaf8f3; border-color: #caeadf; }
.profile-group-mark { color: var(--brand-strong); }
.profile-item-icon, .quick-action > span, .admin-service-items span { color: var(--brand-strong); background: var(--brand-soft); }
.profile-items button:nth-child(2) .profile-item-icon, .quick-action:nth-child(2) > span, .admin-service-items button:nth-child(2) span { color: var(--accent-strong); background: var(--accent-soft); }
.profile-items button:nth-child(3) .profile-item-icon, .quick-action:nth-child(3) > span, .admin-service-items button:nth-child(3) span { color: #526b9a; background: #eef1fb; }
.profile-items button:nth-child(4) .profile-item-icon, .quick-action:nth-child(4) > span, .admin-service-items button:nth-child(4) span { color: #148061; background: #e9f8f2; }

.dashboard-greeting { background: #fff; }
.dashboard-greeting strong, .dashboard-kpi strong { color: var(--text); }
.dashboard-kpi.received strong, .dashboard-kpi.success strong { color: var(--success); }
.dashboard-card-head > span { display: inline-flex; align-items: center; gap: 3px; }
.dashboard-card-head > span .ui-icon, .billing-room-selector > b .ui-icon { width: 15px; height: 15px; }
.trend-col > span { background: var(--brand); }
.todo-dot { background: var(--brand); }
.todo-dot.warning, .todo-dot.high { background: var(--accent); }
.dashboard-todo .todo-row { width: 100%; grid-template-columns: 8px minmax(0, 1fr) auto 16px; column-gap: 7px; overflow: hidden; }
.dashboard-todo .todo-row > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.dashboard-todo .todo-row > span:last-child { display: grid; place-items: center; width: 16px; overflow: hidden; }
.dashboard-todo .todo-row > span:last-child .ui-icon { width: 15px; height: 15px; }
.filter-pill.active { color: var(--text); background: var(--brand); border-color: var(--brand); }
.filter-pills { scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.property-action { color: var(--brand-strong); border-color: #88d9d6; background: var(--brand-soft); }
.floating-action { box-shadow: 0 10px 30px #18c7c533; }
.billing-room-selector img.ui-image-unavailable { padding: 9px; }
.billing-utility-card > button { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; color: var(--brand-strong); }
.billing-utility-card > button .ui-icon { width: 16px; height: 16px; }
.billing-total-card { color: var(--text); background: #eafafa; border-color: #c6ecea; }
.billing-total-card button { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-strong); }
.billing-total-card button .ui-icon { width: 15px; height: 15px; }

.admin-profile-card { background: #e9faf9; border: 1px solid #c9eeec; }
.admin-profile-card em { color: var(--accent-strong); background: var(--accent-soft); }
.admin-profile-card small { display: flex; align-items: center; gap: 5px; color: var(--secondary); }
.admin-profile-card b { display: flex; align-items: center; gap: 5px; color: var(--success); }
.admin-profile-banner { background: var(--text); }
.admin-profile-banner strong { color: #8ce5e2; }
.admin-profile-banner small { color: #dbe9eb; }

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .tenant-form input:focus, .tenant-form select:focus, .tenant-form textarea:focus, .login-panel input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #18c7c529; }
input[type="checkbox"], input[type="radio"], .preference-toggle input { accent-color: var(--brand-strong); }
.flow-note, .tenant-lookup-result, .lease-summary, .bill-detail-summary { color: #476168; background: #f0f8f8; border-color: #d4eaea; }
.identity-upload-tile { border-color: #72cecb; background: #f2fbfb; }
.identity-upload-tile:focus-within { outline-color: #18c7c566; }
.identity-upload-empty { color: var(--brand-strong); }
.toast, .admin-toast { background: var(--text); }

.login-visual { background: var(--brand-soft); }
.login-visual .login-scene { width: 46%; height: 100%; right: 0; bottom: 0; border-radius: 100px 0 0 0; opacity: .92; }
.login-visual div { display: grid; justify-items: start; max-width: 68%; }
.login-brand-logo { position: static !important; display: block; width: 190px !important; height: 190px !important; margin: -66px 0 -62px -10px; border-radius: 0 !important; object-fit: contain !important; object-position: center; }
.login-visual strong { display: none; }
.login-visual span { max-width: 185px; color: #31565f; font-size: 11px; line-height: 17px; }
.login-heading small { color: var(--brand-strong); }
.auth-tabs { background: #e8eff1; }
.auth-tabs button.active { color: var(--text); background: var(--brand); }

@media (max-width: 359px) {
  .brand-lockup small { display: none; }
  .brand-logo-mark { width: 38px; height: 38px; }
  .brand-role { padding: 5px 7px; }
}

/* High-resolution WO爱家 functional icon system. Source sheets stay at native resolution and are clipped without resampling. */
.brand-image-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  line-height: 0;
  vertical-align: middle;
}
.brand-image-clip {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}
.brand-image-clip > img {
  position: absolute;
  display: block;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
}
.brand-image-clip > picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
}
.brand-image-clip > picture > img {
  position: absolute;
  display: block;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
}

.nav-item .nav-icon, .admin-nav-item > span {
  width: 50px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 11px;
}
.nav-item .brand-image-icon, .admin-nav-item .brand-image-icon {
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}
.nav-item:not(.active) .brand-image-icon, .admin-nav-item:not(.active) .brand-image-icon {
  filter: grayscale(.82) saturate(.42);
  opacity: .56;
}
.nav-item.active .nav-icon, .admin-nav-item.active > span {
  border-color: #bdecea;
  background: #ecfbfa;
  transform: none;
}
.nav-item.active .brand-image-icon, .admin-nav-item.active .brand-image-icon {
  filter: none;
  opacity: 1;
  transform: translateY(-1px) scale(1.04);
}
.admin-nav-item .brand-image-icon { transform-origin: center; }
.nav-item > span:last-of-type, .admin-nav-item small { line-height: 16px; }
.nav-badge, .admin-badge { top: 2px; right: calc(50% - 25px); }

.admin-nav-item .admin-unread-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d92d45;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.admin-inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-inbox-toolbar strong { font-size: 14px; color: var(--text); }
.admin-inbox-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-inbox-toolbar button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid #bde5e3; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; }
.admin-inbox-toolbar .message-clear-unread { justify-content: center; width: 40px; min-width: 40px; padding: 8px; }
.admin-inbox-toolbar .admin-send-records-action { min-width: 108px; justify-content: center; }
.admin-inbox-toolbar .admin-send-records-action .brand-image-icon { flex: 0 0 auto; margin: 0; }
.admin-inbox-toolbar .ui-icon { width: 16px; height: 16px; }
.admin-data-list button.admin-message-detail-row { width: 100%; text-align: left; cursor: pointer; grid-template-columns: minmax(0, 1fr) auto; }
.admin-data-list button.admin-message-detail-row strong, .admin-data-list button.admin-message-detail-row small { overflow-wrap: anywhere; }
.admin-data-list button.admin-message-detail-row em { white-space: nowrap; }

.nav-item .nav-icon { position: relative; overflow: visible; }
.nav-item .nav-unread-count {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d92d45;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* 未读气泡使用独立行高，避免继承消息标题行高后数字向下偏移。 */
.message-copy strong i,
.admin-message-row strong i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 1px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.nav-item .nav-unread-count,
.admin-nav-item .admin-unread-count {
  padding-top: 0;
  padding-bottom: 1px;
  text-align: center;
}
.message-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.message-tabs b { flex: 0 0 auto; width: auto; min-width: 22px; padding: 0 5px; }

.tenant-hero-copy h1 > span { display: inline-grid; vertical-align: -7px; }
.tenant-bell .brand-image-icon, .profile-settings .brand-image-icon, .landlord-icon-button .brand-image-icon { margin: auto; }
.tenant-utility-icon, .billing-utility-title > span, .billing-rent-card > div:first-child span {
  overflow: hidden;
  background: transparent !important;
}
.message-icon, .message-row-icon, .profile-item-icon, .quick-action > span, .admin-service-items span {
  overflow: hidden;
  background: transparent !important;
}
.message-icon, .message-row-icon { border-radius: 12px; }
.profile-item-icon, .quick-action > span, .admin-service-items span { width: 46px; height: 46px; }
.profile-group-mark { width: 28px; height: 28px; overflow: hidden; }
.profile-avatar .brand-image-icon, .admin-avatar .brand-image-icon { margin: auto; }
.state-symbol:has(.brand-image-icon),
.empty-message > span:has(.brand-image-icon),
.message-footer-art > span:has(.brand-image-icon),
.landlord-message-empty > span:has(.brand-image-icon),
.landlord-message-art > span:has(.brand-image-icon) {
  overflow: hidden;
  background: transparent;
}
.tenant-logout > span { display: inline-grid; place-items: center; width: 30px; height: 30px; overflow: hidden; }
.admin-account-items button > span { display: grid; place-items: center; width: 34px; min-width: 34px; height: 34px; overflow: hidden; }
.account-settings-icon .brand-image-icon, .receipt-list-icon .brand-image-icon { margin: auto; }

@media (max-width: 359px) {
  .nav-item .nav-icon, .admin-nav-item > span { width: 44px; height: 35px; }
  .nav-item .brand-image-icon, .admin-nav-item .brand-image-icon { transform: scale(.94); }
  .nav-item.active .brand-image-icon, .admin-nav-item.active .brand-image-icon { transform: translateY(-1px) scale(.98); }
  .profile-item-icon, .quick-action > span, .admin-service-items span { width: 42px; height: 42px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-chart {
  height: auto;
  min-height: 196px;
  padding: 16px 16px 14px;
  overflow: hidden;
}
.dashboard-chart .dashboard-card-head {
  min-height: 38px;
  gap: 12px;
  padding: 0 0 14px;
}
.dashboard-chart .dashboard-card-head h2 {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
}
.trend-range-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 104px;
  height: 36px;
  border: 1px solid #cfe5e7;
  border-radius: 9px;
  background: #f4f9f9;
  color: var(--text);
}
.trend-range-control select {
  width: 100%;
  height: 100%;
  padding: 0 30px 0 12px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.trend-range-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #18c7c524;
}
.trend-range-control > .ui-icon {
  position: absolute;
  right: 9px;
  width: 15px;
  height: 15px;
  color: var(--brand-strong);
  pointer-events: none;
}
.trend-chart-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.trend-chart-scroll::-webkit-scrollbar { display: none; }
.trend-scroll-hint { margin: 8px 0 0; color: var(--secondary); font-size: 11px; line-height: 18px; }
.dashboard-chart .trend-chart {
  width: 100%;
  min-width: calc(var(--trend-count) * var(--trend-column-width, 44px) + 12px);
  height: 158px;
  margin: 0;
  padding: 28px 6px 0;
  border-radius: 10px;
  background: #f8fbfb;
}
.dashboard-chart .trend-col {
  flex: 1 0 var(--trend-column-width, 38px);
  min-width: var(--trend-column-width, 38px);
}
.dashboard-chart .trend-col span {
  position: relative;
  width: 18px;
  max-height: 94px;
  background: linear-gradient(180deg, #4bd5d2, #18a9aa);
}
.dashboard-chart .trend-amount {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dashboard-chart .trend-col small {
  color: var(--secondary);
  font-size: 9px;
  line-height: 14px;
  white-space: nowrap;
}

.admin-service-items button {
  min-height: 88px;
  gap: 7px;
}
.admin-service-items button > span {
  display: grid;
  place-items: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
}
.admin-service-items button > span > .admin-profile-brand-icon {
  flex: none;
  margin: auto;
}
.admin-service-items small {
  min-height: 20px;
  overflow: visible;
  font-size: 12px;
  line-height: 20px;
  text-overflow: clip;
  white-space: nowrap;
}
.admin-service-group.account-group {
  min-height: 154px;
  padding: 12px 12px 8px;
}
.admin-service-group.account-group > strong {
  display: block;
  min-height: 28px;
  font-size: 15px;
  line-height: 24px;
}
.admin-account-items button {
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 10px;
  min-height: 56px;
  padding: 7px 4px;
}
.admin-account-items button > span {
  width: 40px;
  min-width: 40px;
  height: 40px;
  justify-self: center;
}
.admin-account-items b {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.admin-account-items i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
}
.admin-account-items i .ui-icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 359px) {
  .dashboard-chart { padding-inline: 13px; }
  .trend-range-control { min-width: 96px; }
  .admin-service-items button > span { width: 52px; min-width: 52px; height: 52px; }
  .admin-service-items small { font-size: 11px; }
}

/* Landlord billing page: compact controls and collision-free bill cards. */
.billing-kit-body,
.billing-state-body {
  padding-top: 16px;
}
.billing-room-selector {
  margin-bottom: 12px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}
.billing-room-selector > span { min-width: 0; }
.billing-room-pick {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #80d6d3;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.billing-room-modal .billing-room-filter { gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.billing-room-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.billing-room-filter label, .billing-room-filter input { min-width: 0; }
.billing-room-filter-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.billing-room-filter-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 0; font-size: 14px; }
.billing-room-filter-actions .ui-icon { width: 18px; height: 18px; }
.billing-room-result-count { margin: 14px 0 10px; color: var(--secondary); font-size: 12px; }
.billing-room-results .billing-room-option { min-width: 0; border-radius: 8px; }
.billing-room-results .billing-room-option > span { min-width: 0; overflow-wrap: anywhere; }
.billing-room-results .billing-room-option strong { font-size: 14px; }
.billing-room-results .billing-room-option small { font-size: 12px; line-height: 18px; color: var(--secondary); }
.billing-room-results .billing-room-option > b { font-size: 12px; color: var(--brand-strong); }
.billing-room-results .billing-room-option.active { border-color: #80d6d3; background: var(--brand-soft); }
.billing-room-pick:focus-visible, .billing-room-option:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
@media (max-width: 360px) {
  .billing-room-selector { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px; padding-inline: 10px; }
  .billing-room-selector img { width: 40px; }
  .billing-room-pick { padding-inline: 8px; font-size: 12px; }
}
.billing-month-selector {
  display: grid;
  grid-template-columns: 40px minmax(142px, 174px) 40px;
  gap: 4px;
  width: min(100%, 262px);
  min-height: 52px;
  margin: 0 auto 14px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.billing-month-selector > button {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f3f7f7;
  color: var(--text);
}
.billing-month-selector > button:last-child {
  justify-self: auto;
  border-radius: 9px;
  background: #f3f7f7;
}
.billing-month-selector > button .ui-icon {
  width: 20px;
  height: 20px;
}
.billing-month-selector > .billing-month-current {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid #d9ebec;
  background: var(--brand-soft);
  color: var(--text);
}
.billing-month-current strong {
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
}
.billing-month-current .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--brand-strong);
}

.billing-utility-card {
  padding: 16px;
  margin-bottom: 14px;
}
.billing-utility-card + .billing-utility-card {
  margin-top: 0;
}
.billing-utility-title {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 40px;
}
.billing-utility-title > span:first-child {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.billing-utility-title strong {
  min-width: 0;
  font-size: 18px;
  line-height: 25px;
}
.billing-utility-title > .billing-utility-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: auto;
  height: 36px;
  overflow: visible;
  border-radius: 0;
  background: transparent !important;
}
.billing-utility-title-actions em {
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.billing-detail-button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d9e9ea;
  border-radius: 9px;
  background: #fff;
  color: var(--brand-strong);
}
.billing-detail-button .ui-icon {
  width: 17px;
  height: 17px;
}
.billing-utility-card > .billing-meter-detail-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 36px;
  margin-top: 12px;
  padding: 8px 12px;
  overflow: visible;
  border: 1px solid #d9e9ea;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.billing-utility-grid {
  gap: 8px;
  margin-top: 14px;
}
.billing-utility-grid > div {
  min-height: 62px;
  padding: 9px 5px;
}
.billing-utility-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 56px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid #ffdac6;
  border-radius: 9px;
  background: var(--accent-soft);
}
.billing-utility-total > span {
  min-width: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.billing-utility-total > strong {
  display: grid;
  justify-items: end;
  flex: 0 0 auto;
  overflow: visible;
  color: var(--text);
  line-height: normal;
  text-overflow: clip;
  white-space: nowrap;
}
.billing-utility-total > strong small {
  color: var(--secondary);
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
}
.billing-utility-total > strong b {
  margin-top: 1px;
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
}

.billing-rent-card {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  min-height: 106px;
  margin-top: 0;
  padding: 16px;
}
.billing-rent-card > .billing-rent-identity {
  display: grid;
  grid-column: 1 / 4;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.billing-rent-card > .billing-rent-identity > .billing-rent-icon {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 9px;
  background: transparent;
}
.billing-rent-card > .billing-rent-identity > strong {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: 18px;
  line-height: 25px;
  white-space: nowrap;
}
.billing-rent-status {
  display: flex;
  align-items: center;
  grid-column: 4 / 6;
  justify-content: flex-end;
  min-width: 0;
}
.billing-rent-status em {
  display: inline-flex;
  grid-column: auto;
  width: auto;
  margin-top: 0;
  padding: 4px 8px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 11px;
  line-height: 17px;
  white-space: nowrap;
}
.billing-rent-detail-placeholder { grid-column: 6; grid-row: 1; width: 30px; height: 34px; }
.billing-rent-metric {
  min-width: 0;
  grid-column: span 3;
  grid-row: 2;
  padding: 10px 6px;
  background: #f4f8f9;
  border-radius: 8px;
  text-align: center;
}
.billing-rent-metric small,
.billing-rent-metric b {
  display: block;
}
.billing-rent-metric small {
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.billing-rent-metric b {
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 24px;
}
.billing-rent-card > .billing-rent-detail {
  grid-column: 6;
  grid-row: 1;
  justify-self: end;
  position: static;
  display: grid;
  place-items: center;
  align-self: center;
  width: 30px;
  height: 34px;
  padding: 0;
  border: 1px solid #d9e9ea;
  border-radius: 9px;
  background: #fff;
  color: var(--brand-strong);
}
.billing-rent-detail .ui-icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 379px) {
  .billing-kit-body, .billing-state-body { padding-top: 12px; }
  .billing-utility-card { padding: 13px; }
  .billing-utility-title { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .billing-utility-title > span:first-child { width: 36px; height: 36px; }
  .billing-utility-title strong { font-size: 16px; }
  .billing-utility-title-actions { gap: 4px; }
  .billing-utility-title-actions em { padding-inline: 8px; font-size: 11px; }
  .billing-detail-button { flex-basis: 30px; width: 30px; height: 30px; }
  .billing-utility-total { gap: 8px; padding-inline: 10px; }
  .billing-utility-total > span { font-size: 12px; }
  .billing-rent-card { gap: 8px; padding: 13px; }
  .billing-rent-card > .billing-rent-identity { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .billing-rent-card > .billing-rent-identity > .billing-rent-icon { width: 36px; min-width: 36px; height: 36px; }
  .billing-rent-card > .billing-rent-identity > strong { font-size: 16px; }
  .billing-rent-metric b { font-size: 15px; }
}

/* The property list begins directly below the shared brand header. */
.properties-body,
.properties-state-body {
  padding-top: 16px;
}

.properties-body .floating-action {
  margin: 0;
}

.property-image-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.property-image-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.property-image-heading strong {
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
}
.property-image-heading small,
.property-image-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
}
.property-image-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px dashed #72cecb;
  border-radius: 10px;
  background: #f2fbfb;
  color: var(--brand-strong);
}
.property-image-tile:focus-visible {
  outline: 3px solid #18c7c566;
  outline-offset: 2px;
}
.property-image-tile[aria-busy="true"] {
  opacity: .55;
  pointer-events: none;
}
.property-image-tile > span {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px;
}
.property-image-tile > span .ui-icon {
  width: 32px;
  height: 32px;
}
.property-image-tile > span b {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}
.property-image-tile > span small {
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
}
.property-image-tile > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef2f3;
}
.admin-form .property-image-input {
  display: none;
}
.property-image-actions {
  display: flex;
  gap: 10px;
}
.property-image-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #9ededd;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 13px;
  line-height: 20px;
}
.property-image-actions button:first-child {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--text);
}
.property-image-actions button:disabled {
  opacity: .55;
}
.property-image-actions button[hidden] {
  display: none;
}
.property-image-actions .ui-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.property-image-status {
  min-height: 17px;
}
.property-image-status.error {
  color: var(--danger);
}
.property-room-photo-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.room-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.room-photo-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cfe5e6;
  border-radius: 9px;
  background: #f4fbfb;
}
.room-photo-preview {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.room-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.room-photo-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #0b2e3acc;
  color: #fff;
}
.room-photo-delete .ui-icon { width: 16px; height: 16px; }
.room-photo-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  border: 1px dashed #bcdfe0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.room-photo-preview:focus-visible,
.room-photo-delete:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.admin-image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #0b2e3acc;
  backdrop-filter: blur(4px);
}
.admin-image-preview-card {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
  max-height: calc(100dvh - 36px);
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px #0005;
}
.admin-image-preview-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}
.admin-image-preview-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-image-preview-card button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f2f3;
  color: var(--secondary);
}
.admin-image-preview-card button .ui-icon {
  width: 20px;
  height: 20px;
}
.admin-image-preview-card img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 116px);
  border-radius: 8px;
  object-fit: contain;
  background: #eef2f3;
}

@media (max-width: 360px) {
  .property-image-heading {
    display: grid;
    gap: 2px;
  }
  .property-image-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
.shared-fee-card {
  padding: 16px; margin: 0 0 14px; background: #fff; border: 1px solid #e1eaec;
  border-radius: 12px; color: var(--text, #0b2e3a); min-width: 0;
  box-shadow: 0 8px 26px #0b2e3a08;
}
.shared-fee-card header { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.billing-rent-card + .shared-fee-card { margin-top: 14px; }
.shared-fee-card h3 { margin: 0; font-size: 16px; line-height: 24px; min-width: 0; overflow-wrap: anywhere; }
.shared-fee-card small { display: block; color: #536d77; font-size: 12px; line-height: 20px; }
.shared-fee-actions { display: flex; align-items: center; gap: 7px; }
.shared-fee-status { display: inline-flex; padding: 5px 9px; border-radius: 20px; background: #f0f4f5; color: #536d77; font-size: 12px; line-height: 18px; white-space: nowrap; font-style: normal; }
.shared-fee-status.pending { background: var(--accent-soft); color: var(--accent-strong); }
.shared-fee-status.paid { background: #e4f7ee; color: #078c68; }
.shared-fee-status.overdue { background: #fff0f2; color: var(--danger); }
.shared-fee-icon { width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; }
.shared-fee-card header > .shared-fee-icon { width: 40px; height: 40px; }
.shared-fee-icon .ui-icon { width: 26px; height: 26px; }
.shared-fee-icon.brand-standalone-icon { background: transparent; border-radius: 0; }
.shared-fee-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 8px; background: #f4f8f9; padding: 12px 0; text-align: center; }
.shared-fee-metrics > div { min-width: 0; padding: 0 8px; }
.shared-fee-metrics > div + div { border-left: 1px solid #dce8ea; }
.shared-fee-metrics strong { display: block; font-size: 20px; line-height: 30px; overflow-wrap: anywhere; }
.shared-fee-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; line-height: 20px; }
.shared-fee-note .ui-icon { width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 379px) {
  .shared-fee-card { padding: 13px; }
  .shared-fee-card header { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .shared-fee-card header > .shared-fee-icon { width: 36px; height: 36px; }
  .shared-fee-actions { gap: 4px; }
  .shared-fee-status { padding: 4px 6px; font-size: 11px; }
}
.shared-fee-rule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; }
.admin-form .shared-fee-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.admin-form .shared-fee-toggle input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #00868d; }
.shared-fee-rule input:disabled { background: #edf1f2; color: #71838a; }
.shared-fee-rule-note { display: block; font-size: 12px; line-height: 20px; color: #536d77; }
.fixed-bill-details > button, .fixed-bill-details > div { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; color: #0b2e3a; border: 0; border-bottom: 1px solid #dce8ea; padding: 14px 0; text-align: left; }
.fixed-bill-details > * > span { flex: 1; min-width: 0; }
.fixed-bill-details small { display: block; color: #536d77; margin-top: 4px; }
.billing-detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 10px; font-size: 14px; color: #536d77; }
.billing-detail-summary strong { color: #007a81; font-size: 20px; white-space: nowrap; }
.admin-modal-card .billing-collect-all { width: 100%; margin-top: 8px; }
.billing-detail-hint { display: block; padding-top: 10px; color: #617983; line-height: 1.6; }
.billing-collect-all.is-complete { background: #edf5f4; color: #24716f; border-color: #b8d8d4; }
.billing-payment-records { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dce8ea; }
.billing-payment-records-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.billing-payment-records-head strong { color: #0b2e3a; font-size: 15px; }
.billing-payment-records-head small, .billing-payment-records-empty { color: #71878d; font-size: 12px; }
.billing-payment-record-list { display: grid; gap: 8px; }
.billing-payment-record { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f7fbfb; }
.billing-payment-record span, .billing-payment-record b { min-width: 0; }
.billing-payment-record span { display: grid; gap: 3px; }
.billing-payment-record strong { color: #174651; font-size: 13px; }
.billing-payment-record small { display: block; color: #6b8188; font-size: 11px; font-weight: 400; line-height: 1.45; }
.billing-payment-record b { color: #087d7b; font-size: 14px; text-align: right; white-space: nowrap; }
.billing-collect-room { margin: 0 0 14px; color: #405e68; font-size: 14px; }
.billing-collect-items { border-block: 1px solid #dce8ea; }
.billing-collect-items > div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; color: #405e68; font-size: 14px; }
.billing-collect-items > div + div { border-top: 1px solid #edf2f3; }
.billing-collect-items strong { color: #0b2e3a; white-space: nowrap; }
.billing-collect-form { margin-top: 16px; }
.tenant-utility-card.is-pending .tenant-utility-head { grid-template-columns: 40px minmax(0, 1fr) auto; }
.tenant-utility-card.is-pending .tenant-utility-head em.pending { color: #486a76; background: #eaf4f5; }
.tenant-utility-card.is-pending .tenant-charge-grid strong { color: #486a76; }
.tenant-utility-pending-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; color: #536d77; font-size: 11px; line-height: 1.5; }
.tenant-utility-pending-note .ui-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.bill-overview-label .shared-fee-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 6px; }
.bill-overview-label .shared-fee-icon .ui-icon { width: 20px; height: 20px; }
@media (max-width: 420px) {
  .shared-fee-metrics strong { font-size: 18px; }
}

/* VI finish: presentation only; retain portal layouts and icon geometry. */
.app-header, .admin-header { border-bottom-color: var(--surface-border); }
.brand-role { background: #effafa; border-color: #c5e9e8; }
.app-header .brand-lockup, .admin-header .brand-lockup { min-width: 0; }
.header-actions { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 5px; }
.receipt-scan-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 42px; padding: 3px 4px; border: 0; background: transparent; color: #0b2e3a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.receipt-scan-trigger img { display: block; width: 29px; height: 29px; object-fit: contain; }
.receipt-scan-trigger:focus-visible { border-radius: 6px; }
.tenant-property-card, .tenant-utility-card, .tenant-utility-card.electricity,
.tenant-bill-overview, .message-card, .property-row, .billing-room-selector,
.billing-utility-card, .billing-rent-card, .shared-fee-card, .dashboard-kpi,
.dashboard-todo, .dashboard-quick, .dashboard-chart, .admin-message-row {
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
}
.profile-group, .admin-service-group {
  border: 1px solid var(--surface-border);
  box-shadow: 0 2px 8px rgb(11 46 58 / 2%);
}
.profile-group-head, .admin-service-head { color: var(--text); }
.profile-items button, .admin-service-items small, .quick-action small { color: var(--secondary); font-weight: 500; }
.admin-account-items button { padding-block: 14px; }
.dashboard-card-head h2, .tenant-bill-heading h2, .bill-overview-head h2,
.tenant-utility-head h3, .shared-fee-card h3 { color: var(--text); font-weight: 700; }
.dashboard-kpi { padding-block: 16px; }
.dashboard-kpi small { line-height: 20px; }
.dashboard-kpi strong { margin-top: 4px; }
.dashboard-kpi strong, .tenant-property-metrics strong, .tenant-reading-grid strong,
.tenant-charge-grid strong, .billing-utility-grid b, .billing-rent-card b,
.billing-total-card > b, .shared-fee-metrics strong { font-variant-numeric: tabular-nums; }
.tenant-property-metrics > div, .tenant-reading-grid, .tenant-charge-grid,
.billing-utility-grid > div, .shared-fee-metrics { background: #f3f8f8; }
.tenant-property-metrics > .tenant-monthly-due {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tenant-monthly-due small,
.tenant-monthly-due strong {
  width: 100%;
  text-align: center;
}
.tenant-monthly-due small {
  font-weight: 650;
}
.tenant-monthly-due strong {
  font-weight: 750;
}
.tenant-monthly-due.is-unpaid small,
.tenant-monthly-due.is-unpaid strong.primary {
  color: var(--danger);
}
.tenant-monthly-due.is-paid small,
.tenant-monthly-due.is-paid strong.primary {
  color: var(--text);
}
.tenant-overage { line-height: 21px; }
.billing-total-card { border-color: #bfe8e6; background: #eaf9f8; }
.billing-total-card > b { color: var(--brand-strong); }
.billing-total-card button { color: var(--brand-strong); }
.dashboard-todo {
  padding: 18px 16px 14px;
  border: 1px solid #d7e9eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f9fcfc 100%);
  box-shadow: 0 12px 30px rgb(11 46 58 / 7%);
}
.dashboard-todo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 14px;
  border-bottom: 1px solid #e8f0f1;
}
.dashboard-todo-head > div { min-width: 0; }
.dashboard-todo-head h2 { margin: 0; font-size: 19px; line-height: 27px; letter-spacing: 0; }
.dashboard-todo-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 17px; }
.dashboard-todo-total { display: inline-flex; align-items: baseline; gap: 2px; flex: 0 0 auto; padding: 6px 10px; border: 1px solid #bde8e5; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
.dashboard-todo-total b { font-size: 17px; line-height: 20px; font-variant-numeric: tabular-nums; }
.dashboard-todo-total i { font-size: 10px; font-style: normal; font-weight: 650; }
.dashboard-todo .todo-list { display: grid; gap: 8px; padding-top: 14px; }
.dashboard-todo .todo-row {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 20px;
  align-items: center;
  min-height: 58px;
  padding: 10px 10px 10px 14px;
  column-gap: 10px;
  border: 1px solid #e1eeee;
  border-radius: 12px;
  background: rgb(255 255 255 / 82%);
  color: var(--text);
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.dashboard-todo .todo-row::before { content: ''; position: absolute; inset: 9px auto 9px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.dashboard-todo .todo-row-danger::before { background: #ff4961; }
.dashboard-todo .todo-row-warning::before { background: var(--accent); }
.dashboard-todo .todo-row:hover, .dashboard-todo .todo-row:focus-visible { border-color: #8bd8d5; background: #f2fbfa; box-shadow: 0 6px 16px rgb(11 46 58 / 7%); transform: translateY(-1px); }
.dashboard-todo .todo-row:active { transform: translateY(0); }
.todo-status { display: grid; place-items: center; width: 12px; height: 12px; }
.todo-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px #e5f8f7; }
.todo-dot.danger { background: #ff4961; box-shadow: 0 0 0 4px #fff0f2; }
.todo-dot.warning { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.todo-label { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; line-height: 21px; }
.todo-count { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 8px; border-radius: 8px; background: #f0f7f7; color: var(--brand-strong); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.todo-row-danger .todo-count { background: #fff1f3; color: #c53b4c; }
.todo-row-warning .todo-count { background: var(--accent-soft); color: var(--accent-strong); }
.todo-arrow { display: grid; place-items: center; width: 20px; height: 20px; color: #789196; }
.todo-arrow .ui-icon { width: 17px; height: 17px; stroke-width: 2; }
@media (max-width: 359px) {
  .dashboard-todo { padding-inline: 12px; }
  .dashboard-todo .todo-row { grid-template-columns: 12px minmax(0, 1fr) auto 18px; column-gap: 8px; padding-inline: 11px 8px; }
  .todo-label { font-size: 13px; }
  .todo-count { min-width: 28px; padding-inline: 6px; }
}
.message-tabs { border: 1px solid #e0ebed; background: #eaf1f2; }
.message-tabs button.active { color: var(--brand-strong); box-shadow: 0 2px 6px rgb(11 46 58 / 6%); }
.message-copy strong, .admin-message-row strong { line-height: 24px; color: var(--text); }
.message-copy > small, .admin-message-row small { line-height: 21px; }
.admin-message-row { grid-template-columns: 45px minmax(0, 1fr) auto 24px; }
.admin-message-row > span:nth-child(2) { min-width: 0; }
.admin-message-row > b { display: grid; place-items: center; width: 24px; }
.message-card.unread, .admin-message-row.unread { border-color: #a9dfdd; background: #f3fcfb; }
.landlord-message-art { background: #eaf7f6; }
.filter-pill { border-color: var(--control-border); }
.filter-pill.active { background: var(--brand-soft); color: var(--brand-strong); border-color: #80d6d3; font-weight: 650; }
.trend-range-control { border-color: var(--control-border); border-radius: 8px; background: #f3f9f9; }
.trend-range-control select, .billing-month-current { color: var(--brand-strong); }
.billing-kit-actions button { border-color: var(--control-border); }
.state-action, .admin-state button, .billing-kit-actions button.primary, .floating-action {
  box-shadow: 0 3px 8px rgb(24 199 197 / 12%);
  font-weight: 650;
}
.bottom-nav, .admin-nav { border-top-color: #dbe8e9; box-shadow: 0 -4px 20px rgb(11 46 58 / 4%); }
.toast, .admin-toast { background: var(--text); box-shadow: 0 6px 20px rgb(11 46 58 / 16%); }
@media (hover: hover) {
.profile-items button:hover, .admin-service-items button:hover, .quick-action:hover { background: #f2faf9; border-radius: 8px; }
.profile-items button.is-access-restricted { color: var(--tenant-secondary); opacity: .68; }
.profile-items button.is-access-restricted .profile-item-icon { filter: grayscale(.85); opacity: .7; }
.profile-items button.is-access-restricted:hover { background: #f7fbfa; }
  .filter-pill:not(.active):hover { border-color: #9dd9d7; background: #f5fbfb; }
}

/* 租住记录 VI 优化：降低弹窗密度，统一移动端控件层级与品牌色。 */
.tenancy-record-modal {
  width: min(100%, 448px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
  padding: 20px 18px 18px;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgb(11 46 58 / 16%);
}
.tenancy-record-modal .admin-modal-head {
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.tenancy-record-modal .admin-modal-head strong {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 0;
}
.tenancy-record-modal .admin-modal-head button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid #cfe5e6;
  border-radius: 8px;
  background: #f2fbfb;
  color: var(--brand-strong);
}
.tenancy-record-modal .admin-modal-head button .ui-icon {
  width: 19px;
  height: 19px;
}
.tenancy-record-intro { margin: -2px 0 12px; }
.tenancy-record-intro strong { font-size: 13px; line-height: 20px; }
.tenancy-record-intro small { font-size: 11px; line-height: 17px; }
.tenancy-record-filter {
  gap: 9px;
  margin-bottom: 12px;
  padding: 12px;
  border-color: #d7e8e9;
  border-radius: 8px;
  background: #fbfdfd;
}
.tenancy-record-filter label {
  gap: 5px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.tenancy-record-filter input {
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 9px 11px;
  border: 1px solid #c8dfe1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  line-height: 22px;
}
.tenancy-record-filter input::placeholder { color: #8aa0a5; opacity: 1; }
.tenancy-record-filter input:focus {
  border-color: #55c9c7;
  outline: 3px solid rgb(24 199 197 / 14%);
}
.tenancy-record-filter input[type="date"] {
  color-scheme: light;
  accent-color: var(--brand-strong);
}
.tenancy-record-filter input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 4px;
  opacity: .62;
  cursor: pointer;
}
.tenancy-filter-actions { gap: 8px; }
.tenancy-filter-actions button {
  min-height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  box-shadow: none;
}
.tenancy-filter-actions button[type="submit"] {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--text);
}
.tenancy-filter-actions button[type="button"] {
  border: 1px solid #cfe1e3;
  background: #fff;
  color: var(--secondary);
}
.tenancy-record-summary { gap: 6px; margin-bottom: 10px; }
.tenancy-record-summary span {
  padding: 8px 5px;
  border-radius: 8px;
  background: #f3f8f8;
  font-size: 10px;
  line-height: 16px;
}
.tenancy-record-summary b { font-size: 15px; line-height: 20px; }
.tenancy-record-row { border-radius: 8px; box-shadow: 0 2px 8px rgb(11 46 58 / 3%); }
.tenancy-pagination button { background: #fbfdfd; }

/* 租住登记导出：选择控件、备案提示与结果栏保持同一排版层级。 */
.tenancy-record-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(116px, 1.35fr);
  align-items: stretch;
}
.tenancy-record-summary span { min-width: 0; }
.tenancy-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tenancy-export-button .ui-icon { width: 15px; height: 15px; flex: none; }
.tenancy-export-button:disabled { border-color: #d9e7e8; background: #edf4f4; color: #93a7aa; cursor: not-allowed; }
.tenancy-record-selection-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -3px 0 9px;
  color: var(--secondary);
  font-size: 10px;
  line-height: 16px;
}
.tenancy-record-selection-note label,
.tenancy-record-checkbox { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tenancy-record-selection-note label { flex: none; color: var(--text); font-weight: 650; }
.tenancy-record-selection-note small { min-width: 0; text-align: right; }
.tenancy-record-selection-note input,
.tenancy-record-checkbox input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.tenancy-record-selection-note label > span::before,
.tenancy-record-checkbox > span::before {
  display: inline-grid;
  place-items: center;
  inline-size: 18px;
  block-size: 18px;
  border: 1px solid #b8d4d7;
  border-radius: 5px;
  background: #fff;
  color: #fff;
  content: '';
  font-size: 13px;
  font-weight: 800;
}
.tenancy-record-selection-note input:checked + span::before,
.tenancy-record-checkbox input:checked + span::before {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  content: '✓';
}
.tenancy-record-selection-note input:focus-visible + span::before,
.tenancy-record-checkbox input:focus-visible + span::before { outline: 3px solid rgb(24 199 197 / 20%); outline-offset: 2px; }
.tenancy-record-select-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; align-items: stretch; }
.tenancy-record-checkbox { justify-content: center; padding: 0 1px; }
.tenancy-record-row { min-width: 0; }
@media (max-width: 380px) {
  .tenancy-record-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tenancy-export-button { grid-column: 1 / -1; }
  .tenancy-record-selection-note { align-items: flex-start; flex-direction: column; }
  .tenancy-record-selection-note small { text-align: left; }
}

/* 入住验视：照片是事实凭证，统一使用稳定的网格和可预览按钮，避免 H5 横向溢出。 */
.inspection-detail,
.move-in-inspection-modal { max-width: min(100%, 680px); }
.inspection-note,
.inspection-audit-note,
.inspection-upload-note { color: var(--secondary); font-size: 12px; line-height: 20px; }
.inspection-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.inspection-photo {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f5fbfb;
}
.inspection-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tenant-inspection-inventory { margin: 22px 0 18px; }
.tenant-inventory-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.tenant-inventory-section-head h3 { margin: 0; color: var(--text); font-size: 16px; line-height: 24px; }
.tenant-inventory-section-head > span { color: var(--secondary); font-size: 12px; line-height: 18px; }
.tenant-inventory-list { min-width: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tenant-inventory-entry { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--border); }
.tenant-inventory-entry:last-child { border-bottom: 0; }
.tenant-inventory-index { padding-top: 2px; color: #00868d; font-size: 12px; line-height: 20px; font-weight: 700; }
.tenant-inventory-content { min-width: 0; }
.tenant-inventory-main, .tenant-inventory-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; min-width: 0; }
.tenant-inventory-main strong { min-width: 0; color: var(--text); font-size: 15px; line-height: 23px; overflow-wrap: anywhere; }
.tenant-inventory-main > span { flex: none; color: #007e82; font-size: 13px; line-height: 20px; }
.tenant-inventory-meta { align-items: flex-start; flex-wrap: wrap; margin-top: 3px; color: var(--secondary); font-size: 12px; line-height: 19px; }
.tenant-inventory-meta > span { min-width: 0; overflow-wrap: anywhere; }
.tenant-inventory-meta > span:last-child { margin-left: auto; text-align: right; }
.tenant-inventory-meta b { color: var(--text); font-size: 13px; font-weight: 650; white-space: nowrap; }
.inspection-empty { grid-column: 1 / -1; padding: 32px 12px; border: 1px dashed #bcdfe0; border-radius: 12px; color: var(--secondary); text-align: center; }
.inspection-confirmed { margin: 14px 0 0; padding: 11px 13px; border: 1px solid #bfe8d9; border-radius: 10px; background: #effbf6; color: #148061; font-size: 12px; line-height: 20px; }
.inspection-confirmed.contract-status-line.is-terminated { border-color: #ffd5bd; background: #fff5ef; color: #c65317; }
.inspection-context { position: relative; display: grid; gap: 4px; margin: 12px 0; padding: 13px; border: 1px solid #cfe8e8; border-radius: 12px; background: #f1fbfb; }
.inspection-context strong { font-size: 16px; line-height: 24px; }
.inspection-context small { color: var(--secondary); font-size: 12px; line-height: 18px; }
.inspection-context em { position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: 999px; background: #fff1dc; color: #c85a1e; font-size: 11px; font-style: normal; }
.inspection-context em.is-bound { background: #e4f8ef; color: #128060; }
.inspection-operation-feedback { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; margin: 12px 0; padding: 12px 13px; border: 1px solid #bfe8d9; border-radius: 10px; background: #effbf6; color: #126e57; }
.inspection-operation-feedback::before { content: "✓"; grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #19a77e; color: #fff; font-size: 17px; font-weight: 700; }
.inspection-operation-feedback strong { font-size: 13px; line-height: 20px; }
.inspection-operation-feedback span { min-width: 0; color: #3f6f63; font-size: 12px; line-height: 19px; overflow-wrap: anywhere; }
.admin-inspection-photo-grid { margin-top: 12px; }
.inspection-upload-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 46px; margin-top: 10px; padding: 10px 14px; border: 1px dashed #63caca; border-radius: 11px; background: #f1fbfb; color: var(--brand-strong); font-size: 13px; cursor: pointer; text-align: center; }
.inspection-photo-actions { display: grid; gap: 8px; margin-top: 10px; }
.inspection-photo-actions .inspection-upload-button { margin-top: 0; }
.inspection-room-photo-import { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.inspection-room-photo-import .ui-icon { width: 17px; height: 17px; }
.inspection-publish-footer { display: grid; gap: 8px; margin-top: 14px; }
.inspection-publish-footer .modal-submit { width: 100%; margin-top: 0; }
.inspection-upload-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.inspection-upload-button:focus-within { outline: 2px solid #00868d; outline-offset: 3px; }
.inspection-upload-note { display: block; margin-top: 7px; }
.inspection-audit-note { display: block; margin-top: 12px; text-align: center; }

/* 已完成入住的照片档案，入口与办理流程分离。 */
.inspection-history-modal { width: min(100%, 448px); max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); padding: 20px 18px; border-radius: 12px; }
.inspection-history-modal .admin-modal-head { padding-bottom: 12px; margin-bottom: 14px; }
.inspection-history-modal .admin-modal-head > strong { font-size: 21px; line-height: 29px; }
.inspection-history-modal .admin-modal-head button { width: 38px; height: 38px; min-width: 38px; border: 1px solid #cfe5e6; background: #f2fbfb; color: var(--brand-strong); }
.inspection-history-intro { display: grid; gap: 3px; margin-bottom: 14px; padding-left: 11px; border-left: 3px solid var(--brand); }
.inspection-history-intro strong { font-size: 15px; line-height: 22px; color: var(--text); }
.inspection-history-intro small { font-size: 12px; line-height: 19px; color: var(--secondary); overflow-wrap: anywhere; }
.inspection-history-filter { display: grid; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid #d7e8e9; border-radius: 8px; background: #f8fbfb; }
.inspection-history-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 8px; background: #eaf3f3; }
.inspection-history-segment button { min-height: 38px; border: 0; border-radius: 6px; background: transparent; color: var(--secondary); font-size: 13px; font-weight: 650; }
.inspection-history-segment button.is-active { background: #fff; color: #007e82; box-shadow: 0 1px 4px rgb(11 46 58 / 10%); }
.inspection-history-filter label { display: grid; gap: 5px; color: var(--secondary); font-size: 12px; font-weight: 650; }
.inspection-history-filter input { width: 100%; min-width: 0; height: 42px; padding: 9px 11px; border: 1px solid #c8dfe1; border-radius: 8px; background: #fff; color: var(--text); font-size: 14px; }
.inspection-history-filter input:focus { border-color: var(--brand); outline: 3px solid rgb(24 199 197 / 14%); }
.inspection-history-filter input[type="month"] { color-scheme: light; accent-color: var(--brand-strong); }
.inspection-history-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 2px; }
.inspection-history-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 42px; padding: 8px 12px; border-radius: 8px; }
.inspection-history-actions .modal-secondary { background: #fff; border: 1px solid #c8dfe1; }
.inspection-history-count { margin-bottom: 7px; color: var(--secondary); font-size: 12px; }
.inspection-history-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 10px; width: 100%; min-height: 82px; margin-bottom: 8px; padding: 10px 11px; border: 1px solid #d7e8e9; border-radius: 8px; background: #fff; color: var(--text); text-align: left; }
.inspection-history-row:focus-visible, .inspection-history-segment button:focus-visible { outline: 3px solid rgb(24 199 197 / 35%); outline-offset: 2px; }
.inspection-history-row > .ui-icon { width: 18px; color: var(--brand-strong); }
.inspection-history-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #eafafa; color: #007e82; }
.inspection-history-row-text { display: grid; gap: 2px; min-width: 0; }
.inspection-history-row-text strong { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.inspection-history-row-text small { color: var(--secondary); font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.inspection-history-pages { margin-top: 12px; }
.inspection-history-empty { padding: 28px 10px; color: var(--secondary); }
.inspection-history-modal .admin-state { display: grid; justify-items: center; gap: 8px; min-height: 155px; text-align: center; }
.inspection-history-modal .admin-state button { margin-top: 6px; }
.admin-modal-card.inspection-history-detail .admin-modal-head .inspection-history-back { display: flex; flex: 0 1 auto; align-items: center; gap: 3px; width: auto; min-width: 0; max-width: calc(100% - 52px); padding: 0 8px 0 0; border: 0; background: transparent; }
.inspection-history-back strong { padding: 0; color: var(--text); font-size: 18px; white-space: nowrap; }

/* 人工/自助入住分流。所有卡片与控件复用 VI 色板，并为长文本保留换行空间。 */
.check-in-mode-options { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.check-in-mode-options legend { margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 700; }
.check-in-mode-options label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: flex-start; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.check-in-mode-options label:has(input:checked) { border-color: var(--brand-strong); background: var(--brand-soft); box-shadow: 0 0 0 2px rgb(24 199 197 / 12%); }
.check-in-mode-options input { width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--brand-strong); }
.check-in-mode-options span, .check-in-mode-options strong, .check-in-mode-options small { display: block; min-width: 0; overflow-wrap: anywhere; }
.check-in-mode-options strong { color: var(--text); font-size: 15px; line-height: 22px; }
.check-in-mode-options small { margin-top: 3px; color: var(--secondary); font-size: 12px; line-height: 19px; }
.check-in-mode-summary, .tenant-move-in-mode { display: grid; gap: 6px; min-width: 0; margin: 14px 0; padding: 13px 14px; border: 1px solid var(--border); border-left: 4px solid var(--brand-strong); border-radius: 8px; background: #f8fbfb; }
.check-in-mode-summary.is-self-service, .tenant-move-in-mode.is-self-service { background: var(--brand-soft); border-color: #bfe9e7; }
.check-in-mode-summary header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.check-in-mode-summary strong, .tenant-move-in-mode strong { color: var(--text); font-size: 15px; line-height: 22px; }
.check-in-mode-summary em { max-width: 100%; color: var(--brand-strong); font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: right; overflow-wrap: anywhere; }
.check-in-mode-summary p, .tenant-move-in-mode p, .tenant-move-in-mode small { margin: 0; color: var(--secondary); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.tenant-move-in-mode small { display: block; color: var(--accent-strong); }
.self-service-route { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px; border: 1px solid #cfe7e7; border-radius: 8px; background: #f5fbfb; }
.self-service-route span { min-width: 0; }
.self-service-route b, .self-service-route small { display: block; overflow-wrap: anywhere; }
.self-service-route b { color: var(--text); font-size: 13px; line-height: 20px; }
.self-service-route small { margin-top: 2px; color: var(--secondary); font-size: 11px; line-height: 17px; }
.self-service-route > i { display: grid; place-items: center; color: var(--brand-strong); }
.self-service-route .ui-icon { width: 18px; height: 18px; }
.self-service-access-option { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.self-service-access-option + .self-service-access-option { margin-top: 8px; }
.self-service-access-option > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); }
.self-service-access-option b, .self-service-access-option small { display: block; min-width: 0; overflow-wrap: anywhere; }
.self-service-access-option b { color: var(--text); font-size: 13px; line-height: 20px; }
.self-service-access-option small { color: var(--secondary); font-size: 11px; line-height: 18px; }
.self-service-access-option.is-disabled { opacity: .58; background: #f4f5f6; }
.self-service-prepare-modal .admin-signature-card canvas { display: block; width: 100%; max-width: 100%; aspect-ratio: 3 / 1; touch-action: none; }
@media (max-width: 360px) {
  .self-service-route { grid-template-columns: 1fr; }
  .self-service-route > i { transform: rotate(90deg); }
  .check-in-mode-summary header { display: grid; }
  .check-in-mode-summary em { text-align: left; }
}
.inspection-history-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; padding: 12px; border-radius: 8px; background: #f2f8f8; }
.inspection-history-facts div { display: grid; min-width: 0; gap: 4px; }
.inspection-history-facts small { color: var(--secondary); font-size: 11px; }
.inspection-history-facts strong { color: var(--text); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.inspection-history-photos { margin-top: 18px; }
.inspection-history-photos h3 { margin: 0 0 10px; font-size: 15px; line-height: 22px; }
.inspection-history-photos h3 span { color: var(--secondary); font-size: 12px; font-weight: 400; }
.inspection-history-detail .admin-inventory-section { margin-top: 20px; }
.inspection-history-bottom-back { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 20px; background: #f2fbfb; color: #007e82; }
@media (max-width: 380px) { .inspection-history-modal { padding-inline: 14px; } .inspection-history-facts { gap: 6px; padding: 10px; } }

@media (max-width: 380px) {
  .inspection-photo-grid { gap: 7px; }
  .inspection-context strong { font-size: 14px; }
  .profile-items.cols-5 button, .admin-service-items.cols-5 button { font-size: 10px; }
}

@media (max-width: 380px) {
  .tenancy-record-modal { padding-inline: 14px; }
  .tenancy-record-filter { padding: 10px; }
  .tenancy-record-modal .admin-modal-head strong { font-size: 20px; }
}

/* 退租闭环：状态、结算和变更记录在同一张 H5 弹窗内完成，避免操作结果脱离当前申请。 */
.profile-items.cols-6,
.admin-service-items.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.property-moveout-hint { display: block; margin-top: 5px; color: #c85a1e; font-size: 11px; line-height: 18px; }
.move-out-request-row { cursor: pointer; }
.move-out-request-row em.is-pending { background: #fff1dc; color: #c85a1e; }
.move-out-policy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; margin: 12px 0; padding: 14px; border: 1px solid #cfe8e8; border-radius: 8px; background: #f5fbfb; }
.move-out-policy-card > div { min-width: 0; }
.move-out-policy-card strong, .move-out-policy-card small { display: block; overflow-wrap: anywhere; }
.move-out-policy-card strong { color: var(--text); font-size: 14px; line-height: 22px; }
.move-out-policy-card small { margin-top: 3px; color: var(--secondary); font-size: 11px; line-height: 18px; }
.move-out-policy-switch { display: grid; grid-template-columns: 42px; justify-items: center; gap: 4px; cursor: pointer; }
.move-out-policy-switch input { position: absolute; opacity: 0; pointer-events: none; }
.move-out-policy-switch span { position: relative; width: 42px; height: 24px; border: 1px solid #aabfc3; border-radius: 20px; background: #d3dfe1; transition: background .16s ease, border-color .16s ease; }
.move-out-policy-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0b2e3a26; transition: transform .16s ease; }
.move-out-policy-switch input:checked + span { border-color: var(--brand-strong); background: var(--brand-strong); }
.move-out-policy-switch input:checked + span::after { transform: translateX(18px); }
.move-out-policy-switch input:focus-visible + span { outline: 3px solid #9ce2e2; outline-offset: 2px; }
.move-out-policy-switch input:disabled + span { opacity: .55; cursor: not-allowed; }
.move-out-policy-switch em { color: var(--secondary); font-size: 10px; line-height: 16px; font-style: normal; white-space: nowrap; }
.move-out-policy-readonly { grid-column: 1 / -1; margin: 0 !important; }
.move-out-request-modal { width: min(100%, 520px); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); overflow: auto; }
.move-out-context { position: relative; display: grid; gap: 4px; margin: 12px 0; padding: 14px; border: 1px solid #cfe8e8; border-radius: 12px; background: #f1fbfb; }
.move-out-context strong { display: block; color: var(--text); font-size: 17px; line-height: 24px; }
.move-out-context small, .move-out-context > span { color: var(--secondary); font-size: 12px; line-height: 20px; }
.move-out-context em { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 999px; background: #fff1dc; color: #c85a1e; font-size: 11px; font-style: normal; }
.move-out-context em.is-bound { background: #e4f8ef; color: #128060; }
.move-out-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.move-out-summary > div { min-width: 0; padding: 10px; border-radius: 9px; background: #f3f8f8; }
.move-out-summary small, .move-out-summary strong { display: block; overflow-wrap: anywhere; }
.move-out-summary small { color: var(--secondary); font-size: 11px; line-height: 18px; }
.move-out-summary strong { margin-top: 3px; color: var(--text); font-size: 14px; line-height: 20px; }
.move-out-note, .move-out-readonly { display: grid; gap: 4px; margin: 12px 0; padding: 11px 12px; border-radius: 9px; background: #f8fbfb; color: var(--secondary); font-size: 12px; line-height: 20px; }
.move-out-note strong { color: var(--text); font-size: 12px; }
.move-out-rent-gate { display: grid; gap: 4px; margin: 12px 0; padding: 12px; border: 1px solid #bfe2d2; border-radius: 8px; background: #f2fbf6; }
.move-out-rent-gate strong { color: #11755a; font-size: 13px; line-height: 20px; }
.move-out-rent-gate span, .move-out-rent-gate small { color: var(--secondary); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.move-out-rent-gate.is-warning { border-color: #f2d5a9; background: #fff9ef; }
.move-out-rent-gate.is-warning strong { color: #a9521d; }
.move-out-rent-gate.is-blocked { border-color: #efc7ce; background: #fff6f7; }
.move-out-rent-gate.is-blocked strong { color: #b5394b; }
.move-out-action-form { margin-top: 14px; }
.move-out-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.move-out-actions button, .move-out-footer-actions button { min-width: 0; }
.admin-check-row { display: flex !important; flex-direction: row; align-items: center; gap: 10px !important; color: var(--text) !important; font-size: 12px !important; line-height: 20px !important; }
.admin-check-row input[type="checkbox"] { box-sizing: border-box; flex: 0 0 18px; width: 18px !important; min-width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--brand-strong); }
.move-out-footer-actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
.move-out-history { margin-top: 16px; padding-top: 14px; border-top: 1px solid #dce8ea; }
.move-out-history h3 { margin: 0 0 8px; color: var(--text); font-size: 15px; line-height: 22px; }
.move-out-history > div { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid #edf3f3; }
.move-out-history strong { color: var(--text); font-size: 12px; line-height: 18px; }
.move-out-history small { color: var(--secondary); font-size: 11px; line-height: 18px; }
.move-out-history span { margin-top: 2px; color: var(--secondary); font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .profile-items.cols-6, .admin-service-items.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move-out-request-modal { padding-inline: 14px; }
  .move-out-context em { position: static; width: max-content; margin-top: 5px; }
  .move-out-actions { grid-template-columns: minmax(0, 1fr); }
  .move-out-summary strong { font-size: 13px; }
  .move-out-policy-card { grid-template-columns: minmax(0, 1fr); }
  .move-out-policy-switch { grid-template-columns: 42px auto; justify-self: start; align-items: center; }
}

/* 租客首页退租入口与 Wi-Fi 卡片保持相同的信息层级，按钮和说明在窄屏下独立换行。 */
.tenant-move-out-entry {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce9eb;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 26px #0b2e3a08;
}
.tenant-move-out-entry header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.move-out-art { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 8px; background: #e5f8f8; }
.move-out-art .brand-image-icon { width: 40px; height: 40px; }
.tenant-move-out-entry header > div { min-width: 0; }
.tenant-move-out-entry h2 { margin: 0; font-size: 17px; line-height: 24px; }
.move-out-caption { display: block; min-width: 0; margin-top: 2px; color: var(--secondary); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.move-out-hint { display: flex; align-items: flex-start; gap: 7px; min-width: 0; margin: 0; color: var(--secondary); font-size: 12px; line-height: 20px; }
.move-out-hint .ui-icon { flex: 0 0 16px; width: 16px; height: 20px; }
.move-out-hint > span { min-width: 0; overflow-wrap: anywhere; }
.move-out-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; margin: 0; padding: 10px 12px; border: 1px solid #c9eeee; border-radius: 8px; background: #effafa; color: #007d83; font: inherit; font-size: 13px; line-height: 20px; text-align: left; }
.move-out-action span { min-width: 0; overflow-wrap: anywhere; }
.move-out-action b { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; }
.move-out-action .ui-icon { width: 18px; height: 18px; }
.tenant-move-out-entry.is-completed { border-color: #c4e6d7; background: #fbfefc; }
.tenant-move-out-entry.is-completed .move-out-art { background: #e4f8ef; }
.tenant-move-out-entry.is-rejected, .tenant-move-out-entry.is-cancelled { border-color: #f1d6dc; }
@media (max-width: 380px) {
  .tenant-move-out-entry { gap: 10px; padding: 14px; }
  .move-out-art { flex-basis: 44px; width: 44px; height: 44px; }
  .move-out-art .brand-image-icon { width: 36px; height: 36px; }
  .move-out-action { font-size: 12px; }
}

/* 租住记录页面 VI 细化：信息先分层，再承载筛选、选择和历史记录操作。 */
.tenancy-record-modal {
  background: #fbfdfd;
  border: 1px solid #d3e6e7;
}
.tenancy-record-modal .admin-modal-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.tenancy-record-eyebrow {
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 16px;
}
.tenancy-record-modal .admin-modal-head strong {
  color: var(--text);
  font-size: 24px;
}
.tenancy-record-intro {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--brand);
  border-radius: 0 9px 9px 0;
  background: #eefafa;
}
.tenancy-record-intro strong {
  color: var(--text);
  font-size: 13px;
  line-height: 19px;
}
.tenancy-record-intro small {
  color: var(--secondary);
  font-size: 11px;
  line-height: 17px;
}
.tenancy-record-filter {
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #cfe5e6;
  border-radius: 11px;
  background: #f3fbfb;
  box-shadow: 0 5px 18px rgb(11 46 58 / 4%);
}
.tenancy-filter-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 1px;
}
.tenancy-filter-heading strong {
  color: var(--text);
  font-size: 13px;
  line-height: 19px;
}
.tenancy-filter-heading small {
  color: var(--secondary);
  font-size: 10px;
  line-height: 16px;
}
.tenancy-record-summary {
  gap: 8px;
  margin-bottom: 9px;
}
.tenancy-record-summary span {
  min-height: 51px;
  padding: 8px 6px;
  border: 1px solid #deeded;
  border-radius: 9px;
  background: #f5fbfb;
}
.tenancy-record-summary span b {
  color: var(--brand-strong);
}
.tenancy-export-button {
  min-height: 51px;
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 5px 12px rgb(0 126 130 / 13%);
}
.tenancy-export-button:disabled {
  box-shadow: none;
}
.tenancy-record-selection-note {
  align-items: flex-start;
  margin: 0 0 11px;
  padding: 9px 11px;
  border: 1px solid #d7e9e9;
  border-radius: 9px;
  background: #f8fcfc;
}
.tenancy-record-selection-note small {
  max-width: 72%;
  color: var(--secondary);
}
.tenancy-record-select-row {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
}
.tenancy-record-checkbox {
  align-items: flex-start;
  padding-top: 15px;
}
.tenancy-record-checkbox > span::before {
  inline-size: 20px;
  block-size: 20px;
  border-radius: 6px;
}
.tenancy-record-row {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .98fr) auto 18px;
  min-height: 94px;
  padding: 14px 12px;
  border-color: #d6e7e8;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(11 46 58 / 4%);
}
.tenancy-record-row:hover,
.tenancy-record-row:focus-visible {
  border-color: #8ed6d4;
  background: #faffff;
}
.tenancy-record-main,
.tenancy-record-meta {
  gap: 4px;
}
.tenancy-record-main strong {
  font-size: 16px;
  line-height: 22px;
}
.tenancy-record-main small,
.tenancy-record-meta small {
  font-size: 11px;
  line-height: 17px;
}
.tenancy-record-meta b {
  color: var(--brand-strong);
  font-size: 14px;
}
.tenancy-pagination {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #e0eeee;
}
@media (max-width: 380px) {
  .tenancy-record-selection-note small { max-width: none; }
  .tenancy-record-row { min-height: 0; padding: 12px 10px; }
}

/* 租住记录导出操作栏：统计、选择和导出分层，避免按钮文字继承统计卡样式。 */
.tenancy-record-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 9px;
}
.tenancy-record-summary > span {
  min-width: 0;
}
.tenancy-record-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tenancy-page-selection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #d7e8e9;
  border-radius: 8px;
  background: #f7fbfb;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  cursor: pointer;
}
.tenancy-page-selection input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.tenancy-page-selection > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}
.tenancy-page-selection > span::before {
  display: inline-grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 20px;
  border: 1px solid #b8d4d7;
  border-radius: 6px;
  background: #fff;
  color: #fff;
  content: '';
  font-size: 13px;
  font-weight: 800;
}
.tenancy-page-selection input:checked + span::before {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  content: '✓';
}
.tenancy-page-selection input:focus-visible + span::before {
  outline: 3px solid rgb(24 199 197 / 20%);
  outline-offset: 2px;
}
.tenancy-page-selection input:disabled + span {
  color: #93a7aa;
  cursor: not-allowed;
}
.tenancy-export-button {
  width: auto;
  min-width: 132px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.tenancy-export-button > span {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.tenancy-record-selection-note {
  display: block;
  margin: 0 0 11px;
  padding: 8px 11px;
  border: 1px solid #d7e9e9;
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--secondary);
  font-size: 10px;
  line-height: 16px;
}
.tenancy-record-selection-note small {
  display: block;
  max-width: none;
  text-align: left;
}
@media (max-width: 380px) {
  .tenancy-record-tools {
    grid-template-columns: 1fr;
  }
  .tenancy-export-button {
    width: 100%;
  }
}

/* About WO爱家: one shared VI surface for tenant and landlord portals. */
.about-woaijia-panel {
  width: min(100%, 420px);
  padding: 0;
  border-top: 3px solid var(--brand);
  outline: 0;
  overflow: hidden auto;
}
.about-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.about-panel-head > div { min-width: 0; }
.about-panel-head > div > small {
  display: block;
  margin: 0 0 2px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 650;
  line-height: 17px;
}
.about-panel-head h2 {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
  overflow-wrap: anywhere;
}
.about-panel-head .message-detail-close {
  position: static;
  grid-column: 3;
  width: 38px;
  height: 38px;
  min-width: 38px;
}
.about-back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid #dbe8ea;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
}
.about-back[hidden] { visibility: hidden; }
.about-back .ui-icon,
.about-panel-head .message-detail-close .ui-icon { width: 20px; height: 20px; }
.about-panel-body {
  min-height: 360px;
  padding: 4px 20px 22px;
  background: #fff;
}
.about-panel-body > .state-block { margin: 16px 0 0; }
.about-brand-summary {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 126px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--border);
}
.about-brand-summary > span { display: grid; place-items: center; }
.about-brand-summary > div { min-width: 0; }
.about-brand-summary strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 30px;
}
.about-brand-summary small {
  display: block;
  margin: 4px 0 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 19px;
}
.about-menu { display: grid; }
.about-menu button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 82px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-align: left;
}
.about-menu button:hover { background: #f7fbfb; }
.about-menu button > span:nth-child(2) { min-width: 0; }
.about-menu button strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}
.about-menu button small {
  display: block;
  margin: 3px 0 0;
  color: var(--secondary);
  font-size: 11px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.about-menu button > .ui-icon { width: 18px; height: 18px; color: var(--secondary); }
.about-menu-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.about-menu-symbol.is-accent { background: var(--accent-soft); color: var(--accent-strong); }
.about-menu-symbol .ui-icon { width: 22px; height: 22px; }
.about-recording-note {
  margin: 14px 0 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 18px !important;
  text-align: center;
}
.about-current-version {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
}
.about-current-version span { color: var(--secondary); font-size: 12px; }
.about-current-version strong { color: var(--brand-strong); font-size: 22px; line-height: 30px; }
.about-release-list { display: grid; }
.about-release-item {
  position: relative;
  padding: 18px 0 18px 20px;
  border-bottom: 1px solid var(--border);
}
.about-release-item::before {
  position: absolute;
  top: 26px;
  bottom: 18px;
  left: 4px;
  width: 2px;
  background: #c9e9e8;
  content: '';
}
.about-release-item::after {
  position: absolute;
  top: 24px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 0 0 1px #91d8d6;
  content: '';
}
.about-release-item header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.about-release-item header span { color: var(--brand-strong); font-size: 14px; font-weight: 750; }
.about-release-item header em {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
}
.about-release-item h3 { margin: 6px 0 0; color: var(--text); font-size: 15px; line-height: 22px; }
.about-release-item .about-release-date { margin: 6px 0 0; color: var(--secondary); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.about-release-item ul { display: grid; gap: 7px; margin: 12px 0 0; padding: 0 0 0 18px; }
.about-release-item li { color: var(--secondary); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.about-release-item li.about-classified-change { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 8px; list-style: none; margin-left: -18px; }
.about-change-tag { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 22px; border-radius: 4px; font-size: 11px; line-height: 18px; font-weight: 650; letter-spacing: 0; }
.about-change-tag.is-added { background: #def5ed; color: #087556; }
.about-change-tag.is-changed { background: #fff0df; color: #974611; }
.about-change-tag.is-optimized { background: #e3f2fc; color: #176085; }
.about-change-tag.is-fixed { background: #ffe8eb; color: #a82943; }
.about-feature-intro {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
}
.about-feature-intro strong { display: block; color: var(--text); font-size: 17px; line-height: 24px; }
.about-feature-intro small { display: block; margin: 4px 0 0; color: var(--secondary); font-size: 11px; line-height: 18px; }
.about-feature-list { display: grid; }
.about-feature-list section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.about-feature-list section > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 750;
}
.about-feature-list section:nth-child(even) > span { background: var(--accent-soft); color: var(--accent-strong); }
.about-feature-list section > div { min-width: 0; }
.about-feature-list h3 { margin: 0; color: var(--text); font-size: 14px; line-height: 21px; }
.about-feature-list p { margin: 4px 0 0; color: var(--secondary); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }

@media (max-width: 359px) {
  .about-panel-head { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; padding: 12px; }
  .about-panel-body { padding-right: 14px; padding-left: 14px; }
  .about-brand-summary { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .about-menu button { grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 10px; }
  .about-menu-symbol { width: 42px; height: 42px; }
}

.check-in-access-fields { min-width: 0; margin: 0; }
.check-in-access-fields legend { padding: 0 8px 0 0; color: var(--text); font-size: 15px; font-weight: 700; }
.admin-form .check-in-access-fields > label { display: flex; align-items: center; min-height: 40px; cursor: pointer; }
.admin-form .check-in-access-fields input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0 4px 0 0; padding: 0; accent-color: var(--brand); }
.admin-form .check-in-access-fields input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.admin-form .check-in-access-fields > label:has(input:disabled) { color: #666; cursor: default; }
.check-in-access-fields [data-arrival-window]:not([hidden]) { display: grid; gap: 10px; }

/* Brand panels for tenant services and landlord device access. */
.tenant-service-detail { position: relative; }
.tenant-service-detail .message-detail-close { top: 12px; right: 12px; z-index: 1; min-height: 36px; }
.tenant-service-heading { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 36px 14px 12px; margin-bottom: 16px; border: 1px solid #b8e7e4; border-radius: 14px; background: linear-gradient(120deg, #e7f8f7, #f9fcfc); }
.tenant-service-art, .admin-access-art { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #b8e7e4; border-radius: 13px; background: #e7f8f7; }
.tenant-service-kicker { color: #00757c; font-size: 11px; font-weight: 700; }
.tenant-service-detail .tenant-service-heading h2 { padding: 0; margin: 3px 0; font-size: 19px; line-height: 1.35; }
.tenant-service-detail .tenant-service-heading p { margin: 0; color: #49656f; font-size: 12px; line-height: 1.55; }
.tenant-authorization-policy { padding: 12px; border: 1px solid #d9e7e9; border-radius: 12px; background: #f7fbfc; }
.tenant-authorization-policy h3, .tenant-service-section-title, .admin-smart-lock-section h3 { margin: 0 0 9px; font-size: 15px; color: var(--text); }
.tenant-authorization-policy dl { display: grid; gap: 8px; margin: 0; }
.tenant-authorization-policy dl div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; }
.tenant-authorization-policy dt { font-size: 12px; font-weight: 700; color: #00757c; }
.tenant-authorization-policy dd { margin: 0; color: #49656f; font-size: 12px; line-height: 1.55; }
.tenant-authorization-policy + .tenant-service-section-title { margin-top: 16px; }
.tenant-authorization-record header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.tenant-authorization-record header h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tenant-authorization-status, .admin-smart-lock-toolbar > span { padding: 4px 8px; border-radius: 20px; background: #eef3f5; color: #405e68; font-size: 12px; font-weight: 700; }
.tenant-authorization-status[data-state="pending"] { background: #fff1da; color: #80500e; }
.tenant-authorization-status[data-state="accepted"], .admin-smart-lock-toolbar > span { background: #e4f6f5; color: #007079; }
.tenant-authorization-record button[data-authorization-action="revoke"] { margin-top: 8px; }
.tenant-service-detail .form-secondary, .admin-smart-lock-panel .form-secondary { min-height: 40px; padding: 8px 12px; border: 1px solid #b8d8da; border-radius: 8px; background: #f3faf9; color: #006a71; font: inherit; font-size: 13px; font-weight: 650; }
.tenant-service-detail .form-secondary:disabled, .admin-smart-lock-panel .form-secondary:disabled { opacity: .55; }
.tenant-service-detail .service-toggle input:disabled { opacity: .55; cursor: default; }
.admin-service-group.admin-access-group { min-height: 0; }
.admin-access-entry { display: grid; grid-template-columns: 62px minmax(0, 1fr) 18px; gap: 12px; align-items: center; width: 100%; padding: 10px; margin-top: 6px; border: 1px solid #d9e7e9; border-radius: 12px; background: #f8fcfc; color: var(--text); text-align: left; cursor: pointer; }
.admin-access-entry:hover { border-color: #9edbd8; background: #eef9f8; }
.admin-access-entry b, .admin-access-entry small, .admin-smart-lock-heading small { display: block; }
.admin-access-entry b { font-size: 15px; }
.admin-access-entry small, .admin-smart-lock-heading small { margin-top: 4px; color: #49656f; font-size: 12px; line-height: 1.45; }
.admin-access-entry > .ui-icon { width: 18px; color: #00757c; }
.admin-smart-lock-heading { display: grid; grid-template-columns: 62px minmax(0, 1fr) 36px; align-items: center; gap: 12px; margin-bottom: 14px; }
.admin-smart-lock-heading strong { padding: 0; }
.admin-smart-lock-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.admin-smart-lock-panel [data-lock-error]:empty { display: none; }
.admin-smart-lock-panel [data-lock-error] { color: #a82842; }
.admin-smart-lock-section { display: grid; gap: 8px; padding: 12px; margin-top: 14px; border: 1px solid #d9e7e9; border-radius: 12px; background: #f8fcfc; }
.admin-smart-lock-section h3, .admin-smart-lock-section p { margin: 0; }
.admin-smart-lock-section .admin-form-section { padding: 10px 0 0; }
.admin-smart-lock-section form[data-lock-bind] { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.admin-smart-lock-section form[data-lock-bind] label { display: grid; gap: 4px; flex: 1 1 100%; min-width: 0; font-size: 13px; }
.admin-smart-lock-section form[data-lock-bind] select { min-height: 42px; min-width: 0; padding: 5px 8px; border: 1px solid #b8d8da; border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
