/* Resident PWA presentation. Keep legacy behaviour hooks and semantic status colours. */
body.resident-app {
    --resident-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --resident-body-size: 14px;
    --resident-caption-size: 12px;
    --resident-bg: #f4f6fb;
    --resident-surface: #fff;
    --resident-text: #202a3a;
    --resident-muted: #5c687a;
    --resident-border: #dce2ec;
    --resident-primary: var(--resident-site-primary, #163b85);
    --resident-accent: var(--resident-primary);
    --resident-tint: rgba(var(--resident-site-rgb, 22, 59, 133), .08);
    --resident-danger: #b42943;
    --resident-success: #327343;
    --resident-header: 52px;
    --resident-footer: 56px;
    font-size: var(--resident-body-size);
    font-weight: 400;
    line-height: 1.5 !important;
    color: var(--resident-text) !important;
    background: var(--resident-bg);
}
body.resident-app.theme-dark {
    color-scheme: dark;
    --resident-bg: #141923;
    --resident-surface: #202734;
    --resident-text: #edf2fa;
    --resident-muted: #b6c1d2;
    --resident-border: #3d495b;
    --resident-accent: var(--resident-site-light, #a6c2ff);
    --resident-tint: rgba(var(--resident-site-rgb, 22, 59, 133), .28);
    --resident-danger: #ffafbe;
    --resident-success: #a5d7ad;
}
.resident-app #page {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--resident-bg) !important;
}
.resident-app #app.page-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--resident-header) + env(safe-area-inset-top, 0px) + 12px) 12px calc(var(--resident-footer) + env(safe-area-inset-bottom, 0px) + 12px) !important;
    overflow: visible;
    transition: none;
}
.shell-hidden .resident-app #app.page-content { max-width: none; padding: 0 !important; }
.resident-app .header {
    height: calc(var(--resident-header) + env(safe-area-inset-top, 0px)) !important;
    background: var(--resident-surface);
    border-bottom: 1px solid var(--resident-border);
    box-shadow: none;
}
.resident-app .header .header-icon, .resident-app .header .header-title {
    height: var(--resident-header);
    margin-top: env(safe-area-inset-top, 0px) !important;
    color: var(--resident-text);
}
.resident-app .header .header-icon { width: 44px; line-height: var(--resident-header); font-size: 16px; }
.resident-app .header .header-title {
    left: 88px; right: 88px; width: auto; min-width: 0; max-width: none;
    transform: none; font-size: 13px; font-weight: 600; line-height: 1.25;
}
.resident-app .header-support-enabled .header-title { right: 132px; }
.resident-app .header-icon-2 { left: 44px; }
.resident-app .header-icon-3 { right: 44px; }
.resident-app .header-icon-5 { right: 88px; }
.resident-app #footer-bar {
    height: calc(var(--resident-footer) + env(safe-area-inset-bottom, 0px));
    min-height: 0; padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--resident-surface); border-top: 1px solid var(--resident-border); box-shadow: none;
}
.resident-app #footer-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 12px; color: var(--resident-accent); }
.resident-app #footer-bar a i { font-size: 20px; height: 25px; line-height: 25px; margin-top: 0; }
.resident-app #footer-bar a span { font-size: 12px; line-height: 18px; margin-top: 0; opacity: 1; font-family: inherit !important; }
.resident-app :is(input, select, textarea, button, a, summary) { scroll-margin-block: 80px; }
.resident-app :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--resident-accent) !important; outline-offset: 2px;
}
.resident-app :is(h1, h2, h3, h4, h5, h6) {
    color: var(--resident-text); line-height: 1.3; letter-spacing: -.2px; overflow-wrap: anywhere; font-weight: 600 !important;
}
body.resident-app, .resident-app :is(h1, h2, h3, h4, h5, h6, input, select, textarea, button, a, label, legend, strong, em, small) {
    font-family: var(--resident-font) !important;
}
.resident-app #app h1 { font-size: 22px !important; }
.resident-app #app h2 { font-size: 18px !important; }
.resident-app #app :is(h3, h4) { font-size: 16px !important; }
.resident-app #app :is(h5, h6) { font-size: 14px !important; }
.resident-app #app :is(strong, b) { font-weight: 600; }
/* Map legacy text utilities to the same scale without changing icon sizes. */
.resident-app #app :is(.font-10, .font-11, .font-12):not(i, input, select, textarea, button, .btn, h1, h2, h3, h4, h5, h6) { font-size: var(--resident-caption-size) !important; }
.resident-app #app :is(.font-13, .font-14, .font-15):not(i, input, select, textarea, button, .btn, h1, h2, h3, h4, h5, h6) { font-size: var(--resident-body-size) !important; }
.resident-app #app :is(.font-700, .font-800, .font-900):not(i) { font-weight: 600 !important; }
.resident-app #app :is(.btn, .tab-controls a) > span:not(.badge) { font: inherit !important; color: inherit !important; }
.resident-app #app :is(h1, h2, h3, h4, h5)[class*="color-"]:not(.color-white) { color: var(--resident-text) !important; }
.resident-app #app p { font-size: var(--resident-body-size); font-weight: 400; line-height: 1.5; margin-bottom: 12px; color: var(--resident-muted); overflow-wrap: anywhere; }
.resident-app #app .card-style {
    margin: 0 0 12px; border: 1px solid var(--resident-border); border-radius: 14px;
    box-shadow: 0 2px 6px rgb(20 35 60 / 3%);
}
.resident-app #app .card-style:not([class*="bg-"]) { background-color: var(--resident-surface); }
.resident-app .bg-theme { background-color: var(--resident-surface) !important; }
.resident-app #app .content { margin: 12px; }
.resident-app #app > .content { margin: 0 0 12px; }
.resident-app #app .content > .content { margin: 12px 0; }
.resident-app #app .content .card-style { margin-left: 0; margin-right: 0; box-shadow: none; }
.resident-app #app > .card-style:last-child { margin-bottom: 0; }
.resident-app #app .divider { margin-top: 12px !important; margin-bottom: 12px !important; background-color: var(--resident-border); }
.resident-app #app :is(.mt-n2, .mt-n3) { margin-top: 0 !important; }
.resident-app #app :is(.mb-n2, .mb-n3) { margin-bottom: 0 !important; }
.resident-app #app .row { --bs-gutter-x: 16px; }
.resident-app #app .d-flex > div { min-width: 0; }
.resident-app #app :is(.opacity-30, .opacity-50) { opacity: 1 !important; color: var(--resident-muted); }
.resident-app #app .btn {
    min-height: 44px; padding: 11px 14px; border-radius: 9px !important;
    font-size: 14px !important; font-weight: 600 !important; line-height: 20px;
    text-transform: capitalize !important; box-shadow: none !important; white-space: normal;
}
.resident-app #app .btn:is(.mt-4, .mt-3) { margin-top: 12px !important; }
.resident-app #app .btn.mb-3 { margin-bottom: 12px !important; }
.resident-app :is(.btn.bg-blue-dark, .btn.bg-green-dark, .btn.bg-highlight, .bg-highlight-dark) {
    background: var(--resident-primary) !important; color: #fff !important;
}
.resident-app #app .btn.bg-red-dark { background: var(--resident-surface) !important; color: var(--resident-danger) !important; border: 1px solid var(--resident-border); }
.resident-app #app #contact-picker { color: var(--resident-accent) !important; }
.resident-app .btn:disabled { opacity: .6; }
.resident-app .tab-controls { display: flex; border: 1px solid var(--resident-border); border-radius: 9px !important; box-shadow: none; }
.resident-app .tab-controls a { flex: 1; min-height: 44px; line-height: 1.3 !important; display: grid; place-items: center; padding: 10px 6px; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.resident-app .tab-controls a:not(.bg-highlight):not(.bg-highlight-dark) { background: var(--resident-surface); color: var(--resident-text); }
.resident-app .tab-controls :is(.bg-highlight, .bg-highlight-dark) { background: var(--resident-primary) !important; color: #fff !important; }
.resident-app #app .color-highlight { color: var(--resident-accent) !important; }
.resident-app #app .pagination .page-link { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 9px !important; box-shadow: none !important; }
.resident-app #app .pagination .active .page-link { background: var(--resident-primary) !important; color: #fff !important; }
.resident-app #app .input-style { margin-top: 12px; margin-bottom: 16px !important; }
.resident-app #app .input-style :is(input, select) {
    height: 46px; min-height: 46px; width: 100%; min-width: 0;
    line-height: 1.4; font-size: 16px !important; color: var(--resident-text);
    background-color: var(--resident-surface) !important; border-color: var(--resident-border) !important;
    box-shadow: none;
}
.resident-app #app .input-style textarea {
    height: auto; min-height: 100px; font-size: 16px; line-height: 1.5 !important;
    background: var(--resident-surface); color: var(--resident-text); border-color: var(--resident-border) !important;
}
.resident-app #app .input-style input::placeholder { font-size: 16px !important; color: var(--resident-muted) !important; opacity: 1; }
.resident-app #app .input-style label {
    color: var(--resident-muted) !important; background: var(--resident-surface) !important;
    font-size: var(--resident-caption-size) !important; font-weight: 400; line-height: 20px;
    box-shadow: none;
}
.resident-app .input-style em { opacity: 1; color: var(--resident-muted); font-size: 10px; }
.resident-app .input-style :is(.valid, .invalid) { pointer-events: none; }
/* The legacy Android date workaround offsets the field independently of its picker. */
.resident-app .device-is-android #app .input-style input[type="date"] { height: 46px !important; line-height: 1.4 !important; padding-top: 0 !important; transform: none !important; margin-bottom: 0 !important; }
.resident-app .device-is-android #app .input-style input[type="date"] ~ label.color-highlight { margin-top: 0 !important; }
.resident-app #app .booking-date-picker { top: 1px !important; right: 2px; height: 44px; width: 44px; display: grid; place-items: center; color: var(--resident-accent); }
.resident-app #app .booking-date-picker i { position: static !important; transform: none !important; line-height: 1 !important; height: auto !important; margin: 0 !important; padding: 0 !important; opacity: 1; }
.resident-app #app .booking-date-input { padding: 0 50px 0 12px !important; }
.resident-app #app .input-style select { padding: 0 40px 0 12px !important; border-radius: 9px !important; font-weight: 400; }
.resident-app #app .resident-filter { margin: 18px 0 16px !important; }
.resident-app #app .resident-filter label { margin: 0 !important; font-size: 12px; font-weight: 400; text-transform: capitalize; padding: 0 6px; }
.resident-app #app .resident-filter select { border: 1px solid var(--resident-border) !important; }
.resident-app .validation-message { color: var(--resident-danger); font-size: 13px; }
.resident-app .quick-help-pill { min-height: 44px; padding: 10px 12px; font-size: var(--resident-caption-size); font-weight: 600; background: var(--resident-tint); color: var(--resident-accent) !important; box-shadow: none; }
.resident-app #app .alert { padding: 10px 12px; border-radius: 9px; font-size: var(--resident-body-size); line-height: 1.5; box-shadow: none !important; }
.resident-app #app .booking-info-alert { text-align: left !important; }
.resident-app #app .booking-info-alert.bg-orange-dark { color: #744900 !important; background: #fff5df !important; border: 1px solid #eed6a8; }
.resident-app.theme-dark #app .booking-info-alert.bg-orange-dark { color: #ffda93 !important; background: #3a3022 !important; border-color: #6d5736; }
.resident-app .resident-disclosure { border: 1px solid var(--resident-border); border-radius: 10px; margin-top: 12px; padding: 0 12px; text-align: left; background: var(--resident-surface); }
.resident-app .resident-disclosure > summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 0; color: var(--resident-accent); cursor: pointer; font-size: var(--resident-body-size); font-weight: 600; text-transform: capitalize; list-style: none; }
.resident-app .resident-disclosure > summary::-webkit-details-marker { display: none; }
.resident-app .resident-disclosure:not(.resident-booking-guide) > summary::after { content: '+'; margin-left: auto; font-size: 20px; font-weight: 400; }
.resident-app .resident-disclosure[open]:not(.resident-booking-guide) > summary::after { content: '−'; }
.resident-app .resident-disclosure-body { padding: 0 0 12px; }
.resident-app #app .resident-disclosure-body p { margin: 0; font-size: var(--resident-body-size); }
.resident-app .resident-booking-guide { background: var(--resident-tint); }
.resident-app .resident-booking-guide > summary::after { content: none; }
.resident-app .resident-disclosure-chevron { margin-left: auto; font-size: 12px; }
.resident-app .resident-disclosure[open] .resident-disclosure-chevron { transform: rotate(180deg); }
.resident-app #app .resident-disclosure :is(.booking-info-highlight, .booking-message-highlight) { color: var(--resident-text) !important; font-weight: 600; }
.resident-app .resident-visitors-toolbar.mb-3 { margin-bottom: 8px !important; }
.resident-app #app .resident-visitors .clearfix.mb-3 { margin-bottom: 4px !important; }
.resident-app #app .resident-visitors .input-style { margin-bottom: 12px !important; }
.resident-app #app .resident-visitors .btn.mb-3 { margin-bottom: 0 !important; }
.resident-app .resident-visitors .resident-disclosure { margin-top: 12px; }
.resident-app .resident-notification-prompt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; margin: 0 0 12px; border: 1px solid var(--resident-border); border-radius: 14px; background: var(--resident-surface); }
.resident-prompt-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--resident-tint); color: var(--resident-accent) !important; }
.resident-prompt-content { flex: 1; min-width: 0; }
.resident-app #app .resident-prompt-content h2 { font-size: 16px !important; margin: 0 0 4px; }
.resident-app #app .resident-prompt-content p { margin: 0; }
.resident-app #app .resident-secondary-action { margin-top: 10px; border: 1px solid var(--resident-border); background: var(--resident-tint); color: var(--resident-accent) !important; }
.resident-attachments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.resident-file-action { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px; color: var(--resident-accent); background: var(--resident-surface); border: 1px solid var(--resident-border); border-radius: 9px; font-weight: 600; text-transform: capitalize; }
.resident-file-action input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.resident-file-action:focus-within { outline: 2px solid var(--resident-accent); outline-offset: 2px; }
.resident-app .menu { background: var(--resident-surface); max-height: calc(100dvh - 24px); }
.resident-app .menu:not(.menu-active) { display: none !important; }
.resident-app .menu-title h1 { padding-top: 12px; padding-right: 44px; }
.resident-app .menu-title .close-menu { width: 44px; height: 44px; line-height: 44px; top: 0; right: 0; color: var(--resident-muted); }
.resident-app .menu-title { margin: 0; }
.resident-app .menu-title:has(> .close-menu:only-child) { min-height: 0; }
.resident-app .menu-title:has(> .close-menu:only-child) + h1 { padding-right: 44px; }
.resident-app .guide-step { padding: 10px 0; }
.resident-app .guide-step-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; background: var(--resident-tint) !important; color: var(--resident-accent) !important; }
.resident-app .guide-step-text span { line-height: 1.5; }
.resident-app .guide-step-text strong { color: var(--resident-text) !important; font-size: var(--resident-body-size); font-weight: 600; line-height: 1.5; }
.resident-app .resident-rating { border: 0; margin: 0 0 18px; padding: 0; }
.resident-app .resident-rating legend { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.resident-rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.resident-rating-options > div { position: relative; }
.resident-rating-options input { position: absolute; opacity: 0; width: 100%; height: 100%; }
.resident-rating-options label { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--resident-border); border-radius: 9px; color: var(--resident-text); background: var(--resident-surface); cursor: pointer; }
.resident-rating-options input:checked + label { background: var(--resident-primary); border-color: var(--resident-primary); color: #fff; }
.resident-rating-options input:focus-visible + label { outline: 2px solid var(--resident-accent); outline-offset: 2px; }
.resident-rating-options i { color: #bf870b; font-size: 12px; }
.resident-rating-options input:checked + label i { color: #fff; }

/* Home and site selection use the same readable, compact identity card. */
.resident-app #app .resident-site-card {
    display: flex; flex-direction: row; align-items: center; gap: 14px;
    width: 100%; padding: 16px; text-align: left; color: var(--resident-text);
}
.resident-site-card img { width: 96px; height: 72px; flex: 0 0 96px; object-fit: contain; border-radius: 8px; background: #fff; }
.resident-site-copy { flex: 1; min-width: 0; }
.resident-site-name { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 4px; overflow-wrap: anywhere; }
.resident-site-address { display: block; color: var(--resident-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.resident-app #app .resident-site-card h1 { font-size: 18px !important; margin-bottom: 4px; }
.resident-app #app .resident-site-card p { margin: 0; font-size: 13px; }
.resident-app #app .resident-home-identity { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 16px; border-top: 3px solid var(--resident-primary) !important; }
.resident-app .resident-home-identity img { display: block; width: 100%; max-width: 320px; height: 128px; object-fit: contain; }
.resident-app #app .resident-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.resident-features > a { flex: 0 0 calc((100% - 20px) / 3); width: auto; min-width: 0; padding: 0; }
.resident-features > a:only-child { flex-basis: 60%; max-width: 240px; }
.resident-features:has(> a:nth-child(2):last-child) > a { flex-basis: calc((100% - 10px) / 2); }
.resident-app #app .home-feature-card { height: 104px !important; margin: 0; }
.resident-app .home-feature-card .card-center { position: static; transform: none; padding: 8px; height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.resident-app .home-feature-card i { color: var(--resident-accent) !important; font-size: 24px; margin: 0; }
.resident-app #app .home-feature-label { font-size: var(--resident-body-size) !important; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.resident-app .home-feature-card .badge { margin: 5px !important; }

/* News and Info Hub share the app's colours, heading scale and spacing. */
.resident-app :is(.resident-news, .info-hub) {
    --news-text: var(--resident-text); --hub-text: var(--resident-text);
    --news-muted: var(--resident-muted); --hub-muted: var(--resident-muted);
    --news-accent: var(--resident-accent); --hub-accent: var(--resident-accent);
    --news-tint: var(--resident-tint); --hub-tint: var(--resident-tint);
    --news-border: var(--resident-border); --hub-border: var(--resident-border);
    --news-surface: var(--resident-surface); --hub-surface: var(--resident-surface);
    padding: 0; max-width: none;
}
.resident-app #app :is(.news-card, .info-hub-heading, .info-hub-contact, .info-hub-document, .info-hub-state) { padding: 14px; }
.resident-app #app :is(.news-header, .info-hub-heading) { background: transparent !important; border: 0; box-shadow: none; padding: 4px 0 12px; }
.resident-app :is(.news-heading-row, .info-hub-heading-row) { gap: 10px; align-items: center; }
.resident-app :is(.news-icon, .info-hub-icon, .info-hub-icon-large) { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.resident-app :is(.news-intro, .info-hub-intro) { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.resident-app #app :is(.news-state, .info-hub-state) { padding: 20px 16px; }
.resident-app :is(.news-state > .news-icon, .info-hub-state > .info-hub-icon) { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; margin-bottom: 10px; }
.resident-app #app :is(.news-state, .info-hub-state) h2 { font-size: 18px; }
.resident-app :is(.resident-news, .info-hub) p { line-height: 1.5; }
.resident-app .news-filter { margin: 12px 0; }
.resident-app .resident-news .news-section-title { margin: 16px 0 10px; }
.resident-app .resident-news .news-open { margin-top: 10px; }
.resident-app :is(.news-open, .info-hub-document-open) { text-transform: capitalize; }
.resident-app #app .news-notifications { margin-top: 12px; }
.resident-app .info-hub-sections { gap: 12px; }
.resident-app .info-hub-section-heading { margin: 0 0 10px; }
.resident-app .info-hub-contact-actions { margin-top: 8px; }
.resident-app .info-hub-document-icon { color: var(--resident-accent); background: var(--resident-tint); }
.resident-app .notification-card-heading h3 { font-size: 15px !important; }
.resident-app .notification-card-heading + .row p { font-size: 14px !important; margin-top: 4px !important; }
.resident-app .notification-type-badge { white-space: normal; }
.resident-app .notification-card-hint { font-size: 12px; margin-top: 6px; }
.resident-app #app .resident-notification .badge { font-size: 11px !important; font-weight: 600; line-height: 1.3; padding: 4px 8px; border-radius: 999px; background: var(--resident-tint) !important; color: var(--resident-accent) !important; text-transform: capitalize; }
.resident-app #app .notification-card-date { font-size: 12px !important; }
.resident-app .resident-message-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin: 0; font-size: 13px; }
.resident-message-meta dt { color: var(--resident-muted); font-weight: 400; }
.resident-message-meta dd { margin: 0; overflow-wrap: anywhere; }
.resident-message-body { overflow-wrap: anywhere; }
.resident-message-body :is(img, video, iframe) { max-width: 100%; }
.resident-message-body img { height: auto; }
.resident-message-body table { display: block; max-width: 100%; overflow-x: auto; }
.resident-app .resident-poll-option { min-height: 48px; padding: 12px; border-radius: 10px; border-color: var(--resident-border); background: var(--resident-surface); color: var(--resident-text); box-shadow: none; }
.resident-app .resident-poll-option.is-selected { border-color: var(--resident-accent); background: var(--resident-tint); }
.resident-app .resident-poll-option-header { flex-wrap: wrap; gap: 6px 12px; }
.resident-app .resident-poll-option-text { font-size: var(--resident-body-size); font-weight: 600; }
.resident-app .resident-poll-option-result { min-width: 0; font-size: var(--resident-caption-size); font-weight: 400; white-space: normal; color: var(--resident-accent) !important; }
.resident-app .resident-poll textarea { font-size: 16px !important; color: var(--resident-text) !important; background: var(--resident-surface) !important; border-color: var(--resident-border); border-radius: 9px; }

/* Compact booking details keep the QR code and both actions within easy reach. */
.resident-booking-heading { padding-right: 36px; }
.resident-app #app .resident-booking-heading p { margin: 4px 0; }
.resident-app .resident-booking-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.resident-booking-facts div { min-width: 0; }
.resident-booking-facts dt { font-size: 12px; font-weight: 400; color: var(--resident-muted); }
.resident-booking-facts dd { font-size: 14px; font-weight: 600; margin: 2px 0 0; overflow-wrap: anywhere; }
.resident-booking-facts a { color: var(--resident-accent); text-transform: capitalize; }
.resident-app #app .resident-booking .qr-image { display: block; width: 196px; max-width: 100%; height: auto; padding: 8px; border: 1px solid var(--resident-border); box-shadow: none; background: #fff !important; margin: 12px auto !important; }
.resident-booking-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.resident-app #app .resident-booking-actions .btn { margin: 0 !important; }
.resident-app #app .resident-share-status { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--resident-muted); }
.resident-share-fallback { margin-top: 12px; padding: 12px; border: 1px solid var(--resident-border); border-radius: 9px; background: var(--resident-tint); }
.resident-share-fallback label { display: block; margin-bottom: 6px; color: var(--resident-text); font-size: 13px; font-weight: 600; }
.resident-share-fallback input { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--resident-border); border-radius: 6px; color: var(--resident-text); background: var(--resident-surface); font-size: 16px; }
.resident-app #app .resident-share-fallback .btn { width: 100%; margin: 10px 0 0 !important; }
.resident-share-status[hidden], .resident-share-fallback[hidden] { display: none !important; }
.resident-app #app .resident-visitors #tab-2 > .resident-section-heading { margin-top: 16px; }
.resident-app .resident-visitors #tab-2 .card-style { border: 1px solid var(--resident-border) !important; box-shadow: none !important; }
.resident-app .resident-visitors #tab-2 .card-style > .content { margin: 12px; }
.resident-app .resident-visitors #tab-2 .card-style h3 { font-size: 16px; margin-bottom: 4px; }
.resident-app .resident-visitors #tab-2 .card-style h5 { font-size: 13px; font-weight: 400 !important; color: var(--resident-muted) !important; margin-bottom: 12px; }
.resident-app .resident-visitors #tab-2 .card-style .d-flex > .align-self-center > i { font-size: 18px !important; margin-right: 8px !important; color: var(--resident-accent) !important; }
.resident-app .resident-visitors #tab-2 .card-style strong { font-size: 13px !important; font-weight: 500; }
.resident-app .resident-visitors #tab-2 .card-style .btn { margin-top: 10px; }
.resident-app .resident-profile-facts { margin: 12px 0; }
.resident-profile-facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
.resident-profile-facts dt { color: var(--resident-muted); font-weight: 400; font-size: 13px; }
.resident-profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.resident-app .resident-status-list { margin: 0; }
.resident-status-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--resident-border); }
.resident-status-list dt { font-weight: 400; color: var(--resident-muted); }
.resident-status-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.resident-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.resident-app #app .resident-profile-actions .btn { margin: 0; }
.resident-app #app .resident-copy-diagnostics { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Amenity availability follows the selected estate colour and keeps week controls visible. */
.resident-app #app :is(.resident-amenity-calendar, .resident-amenity-slots) { border: 1px solid var(--resident-border); border-radius: 10px; box-shadow: none !important; overflow: hidden; }
.resident-amenity-calendar .cal-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; background: var(--resident-primary); }
.resident-app #app .resident-amenity-calendar .cal-title { grid-column: 2; grid-row: 1; margin: 0; padding: 10px 0; min-height: 44px; display: grid; place-items: center; font-size: 14px !important; background: transparent !important; color: #fff !important; }
.resident-amenity-calendar .cal-header > a { grid-row: 1; display: grid; place-items: center; height: 44px; color: #fff !important; }
.resident-calendar-previous { grid-column: 1; }
.resident-calendar-next { grid-column: 3; }
.resident-app #app .resident-amenity-calendar .cal-days { background: var(--resident-tint) !important; opacity: 1; }
.resident-app #app .resident-amenity-calendar .cal-days a { color: var(--resident-text); font-size: 12px; font-weight: 600; }
.resident-app #app .resident-amenity-calendar .cal-selected i { color: var(--resident-primary) !important; }
.resident-app #app .resident-amenity-details .table { color: var(--resident-text); border-color: var(--resident-border); font-size: 14px; box-shadow: none !important; }
.resident-app #app .resident-amenity-details .table thead tr { background: var(--resident-tint) !important; }
.resident-app #app .resident-amenity-details .table :is(th, td) { color: var(--resident-text) !important; }
.resident-app #app .resident-amenity-slots .cal-schedule.bg-highlight-dark :is(strong, span, em) { color: #fff !important; opacity: 1; }
.resident-app #app .resident-amenity-slots .cal-schedule.bg-highlight-dark .btn { border: 1px solid rgb(255 255 255 / 70%); }

/* Shared summaries and action rows for amenities, maintenance and visitor bookings. */
.resident-app #app .resident-section-heading { margin: 4px 0 10px; }
.resident-app #app .resident-section-heading :is(h1, h2) { margin: 0 0 4px; font-size: 18px !important; }
.resident-app #app .resident-section-heading p { margin: 0; font-size: 12px; color: var(--resident-muted); }
.resident-app #app .resident-list-card { border: 1px solid var(--resident-border) !important; text-decoration: none; color: var(--resident-text); }
.resident-app #app .resident-list-card:hover { border-color: var(--resident-accent) !important; }
.resident-app #app .resident-item-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.resident-app #app .resident-item-heading h3 { margin: 0; font-size: 15px !important; text-transform: none; }
.resident-app #app .resident-item-subtitle { font-size: 12px; color: var(--resident-muted); margin: 4px 0 0; }
.resident-app #app .resident-item-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 0; color: var(--resident-text); }
.resident-item-facts > div { min-width: 0; }
.resident-item-facts .resident-fact-wide { grid-column: 1 / -1; }
.resident-app #app .resident-amenity-details .resident-fact-wide { display: flex; align-items: baseline; gap: 8px; }
.resident-item-facts dt { font-size: 12px; font-weight: 400; color: var(--resident-muted); margin-bottom: 2px; }
.resident-item-facts dd { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.resident-app .resident-status-pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--resident-tint); color: var(--resident-accent); font-size: 12px; font-weight: 600; line-height: 1.5; }
.resident-app .resident-item-heading > .resident-status-pill { flex-shrink: 0; }
.resident-app #app .resident-card-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--resident-border); font-size: 13px; font-weight: 600; color: var(--resident-accent); }
.resident-app #app .resident-amenities > .resident-section-heading:not(:first-child) { margin-top: 20px; }
.resident-app #app .resident-amenity-details .resident-item-facts { margin-bottom: 12px; }
.resident-app #app .resident-amenity-details .accordion { border-top: 1px solid var(--resident-border); }
.resident-app #app .resident-amenity-details .accordion-btn { color: var(--resident-text); }
.resident-app #app .resident-amenity-booking .resident-amenity-calendar { margin: 0 0 20px; width: 100%; max-width: none; }
.resident-app #app .resident-amenity-calendar .cal-dates a { min-height: 44px; line-height: 44px; }
.resident-app #app .resident-amenity-booking .input-style { margin-bottom: 16px; }
.resident-app #app .resident-time-slot { display: flex; align-items: center; gap: 8px; border: 1px solid var(--resident-border); border-radius: 9px; margin-top: 8px; padding: 4px 8px 4px 0; }
.resident-app #app .resident-time-slot.is-selected { border-color: var(--resident-accent); background: var(--resident-tint); }
.resident-app #app .resident-slot-choice { flex: 1; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 4px 12px; background: transparent; color: var(--resident-text); border: 0; border-radius: 6px; text-align: left; }
.resident-slot-time { font-size: 14px; font-weight: 600; }
.resident-slot-cost { font-size: 12px; color: var(--resident-muted); }
.resident-app #app .resident-slot-book { margin: 0; min-width: 64px; box-shadow: none; }
.resident-app #app .resident-empty-note { font-size: 14px; margin: 12px 0 0; color: var(--resident-muted); }
.resident-app #app .resident-page-toolbar h1 { margin: 0; font-size: 20px !important; }
.resident-count-pill { min-width: 26px; padding: 2px 7px; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--resident-accent); background: var(--resident-tint); }
.resident-app #app .resident-maintenance .resident-request-filters { margin: 0 0 20px; }
.resident-app #app .resident-request-filters .tab-controls { background: var(--resident-bg); }
.resident-app #app .resident-request-filters .tab-controls a:is(.bg-highlight, .bg-highlight-dark) { background: var(--resident-tint) !important; color: var(--resident-accent) !important; box-shadow: inset 0 -2px var(--resident-accent); }
.resident-app #app .resident-search-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 16px; }
.resident-app #app .resident-search-row .input-style { flex: 1; min-width: 0; margin: 0 !important; }
.resident-app #app .resident-filter-action { min-height: 46px; padding: 8px 14px; margin: 0; border: 1px solid var(--resident-border); background: var(--resident-tint); color: var(--resident-accent); box-shadow: none; }
.resident-app #app .resident-request-form > h2 { margin: 0 0 6px; }
.resident-app #app .resident-request-form > p { font-size: 13px; margin: 0 0 16px; }
.resident-app #app .resident-request-form .input-style { margin-bottom: 16px; }
.resident-app #app .resident-request-form textarea { min-height: 82px; height: auto !important; resize: vertical; padding: 12px !important; }
.resident-app #app .resident-visit-link { display: block; padding: 12px; text-decoration: none; color: var(--resident-text); }
.resident-app #app .resident-visit-link h3 { font-size: 15px !important; text-transform: none; margin: 0; }
.resident-app #app .resident-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; margin: 0 12px; border-top: 1px solid var(--resident-border); }
.resident-app #app .resident-card-actions :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 0; border: 0; border-radius: 6px; background: transparent; font-size: 13px; line-height: 1.4; font-weight: 600; text-decoration: none; color: var(--resident-accent); }
.resident-app #app .resident-card-actions .resident-cancel-action { color: var(--resident-danger); }
.resident-app #app .resident-card-actions :is(a, button):hover { text-decoration: underline; }
.resident-app #app .resident-card-actions button:disabled { opacity: .6; cursor: wait; text-decoration: none; }
.resident-app #app .resident-booking-notice { margin: 12px 0 14px; padding: 12px; border: 1px solid var(--resident-border); border-left: 3px solid var(--resident-accent); border-radius: 9px; background: var(--resident-tint); color: var(--resident-text); }
.resident-app #app .resident-booking-notice strong { display: block; font-size: 14px; line-height: 1.4; color: var(--resident-accent); }
.resident-app #app .resident-booking-notice p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.resident-app #app .resident-booking-notice.is-error { border-left-color: var(--resident-danger); }
.resident-app #app .resident-booking-notice.is-error strong { color: var(--resident-danger); }

/* Account and public routes use the same mobile scale without app navigation. */
.resident-app .auth-shell { display: flex; align-items: flex-start; justify-content: center; background: var(--resident-bg); overflow: visible; padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.resident-app .auth-shell-brand { margin-bottom: 14px; }
.resident-app .auth-shell-logo-wrap { height: 54px; display: grid; place-items: center; }
.resident-app .auth-shell-logo { width: 144px; margin: auto; }
.resident-app #app .auth-card { background: var(--resident-surface) !important; }
.resident-app #app .auth-card h1 { padding-top: 0 !important; margin-bottom: 10px !important; }
.resident-app #app .auth-card .auth-section-title { font-size: 16px !important; }
.resident-app #app .auth-card .input-style input { border: 1px solid var(--resident-border) !important; border-radius: 9px; padding-left: 38px; padding-right: 44px; }
.resident-app #app .auth-card .input-style > label { opacity: 1 !important; top: 0; left: 12px; transform: translateY(-50%); padding: 0 6px; margin: 0 !important; z-index: 2; pointer-events: none; }
.resident-app .auth-card .input-style > i:first-child, .resident-app .auth-card .password-leading-icon { left: 12px; color: var(--resident-muted); }
.resident-app .auth-card input:-webkit-autofill { -webkit-text-fill-color: var(--resident-text); box-shadow: 0 0 0 1000px var(--resident-tint) inset !important; caret-color: var(--resident-text); }
.resident-app #app .auth-card > .content { padding: 20px !important; margin: 0 !important; }
.resident-app .auth-card .content .content { padding: 12px !important; }
.resident-app .auth-card .auth-login-subtitle { margin-bottom: 20px; }
.resident-app .auth-card .input-style { margin-top: 10px; }
.resident-app .auth-card .input-style input { min-height: 48px; height: 48px; font-size: 16px !important; }
.resident-app .auth-password-toggle { height: 48px; }
.resident-app .password-toggle { width: 44px; height: 44px; right: 0; color: var(--resident-muted); }
.resident-app .auth-card .password-rules-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; }
.resident-app .password-rule-row { display: flex; align-items: center; gap: 8px; color: var(--resident-muted); margin: 0; font-size: var(--resident-caption-size); line-height: 1.5; }
.resident-app .password-rule-row i { flex: 0 0 12px; font-size: 12px; text-align: center; }
.resident-app .password-rule-row .password-rule-pending { color: var(--resident-muted); font-size: 6px; }
.resident-app .password-rule-row .password-rule-met { color: var(--resident-success); }
.resident-app .auth-card .password-requirements { background: var(--resident-tint) !important; padding: 12px; margin-bottom: 18px; border: 0 !important; border-radius: 10px; }
.resident-app #app .auth-card .password-requirements > p { font-size: var(--resident-caption-size); font-weight: 600; margin-bottom: 8px; text-transform: capitalize; }
.resident-app .auth-card .auth-sign-in { color: #fff !important; }
.resident-app .auth-sign-in-progress .ingress-startup-spinner { border-color: rgb(255 255 255 / 30%); border-top-color: #fff; }
.resident-app .auth-card :is(.mb-4, .mt-4) { margin-top: 12px !important; margin-bottom: 12px !important; }
.resident-app .auth-card .input-style > em { display: none; }
.resident-app .auth-card .auth-feedback { padding: 12px; margin-bottom: 16px; }
.resident-app .auth-card .auth-field-error { margin: -8px 0 12px; }
.resident-app .visitor-booking-shell { min-height: 100vh; min-height: 100dvh; background: var(--resident-bg); padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); align-items: flex-start; }
.resident-app #app .visitor-booking-card { width: 100%; max-width: 480px; margin: 0; }
.resident-app .visitor-booking-content { padding: 0; }
.resident-app .visitor-booking-content .fa-house { font-size: 30px; padding: 0 !important; }
.resident-app .visitor-booking-content .qr-image { width: 196px; max-width: 100%; height: auto; padding: 8px; background: #fff !important; box-shadow: none; }
.resident-app .resident-public-booking { padding: 16px; }
.resident-public-heading { text-align: left; }
.resident-app #app .resident-public-brand { display: block; width: 128px; height: 40px; object-fit: contain; object-position: left center; margin: 0 0 12px; }
.resident-app.theme-dark #app .resident-public-brand { filter: brightness(0) invert(1); }
.resident-app #app .resident-public-heading h1 { font-size: 20px !important; margin: 0 0 8px; }
.resident-app #app .resident-public-heading h2 { font-size: 18px; margin: 0 0 2px; text-transform: none; }
.resident-app .resident-public-heading > p:last-child { margin-bottom: 0; }
.resident-app .resident-public-booking .resident-booking-facts { border-top: 1px solid var(--resident-border); padding: 12px 0 0; margin: 12px 0; gap: 10px 8px; }
.resident-public-facts .resident-public-site { grid-column: span 2; }
.resident-public-facts dd { font-variant-numeric: tabular-nums; }
.resident-public-site dd > span { display: block; }
.resident-public-facts a.resident-public-map { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 2px 0 -8px; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 600; }
.resident-public-pass { padding: 10px; border: 1px solid var(--resident-border); border-radius: 10px; background: var(--resident-tint); text-align: center; }
.resident-public-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.resident-public-code > span { color: var(--resident-muted); font-size: 12px; font-weight: 600; }
.resident-app #app .resident-public-code > strong { color: var(--resident-accent); font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.resident-app .visitor-booking-content .resident-public-qr { display: block; width: 184px; height: auto; margin: 8px auto 0; padding: 8px; border: 1px solid var(--resident-border); border-radius: 6px; background: #fff !important; }
.resident-public-instructions { color: var(--resident-muted); text-align: left; margin: 12px 0; overflow-wrap: anywhere; }
.resident-app #app .resident-public-instructions p { font-size: 13px; line-height: 1.5; margin: 0; }
.resident-public-instructions b { color: var(--resident-text); }
.resident-public-footer { border-top: 1px solid var(--resident-border); padding-top: 10px; color: var(--resident-muted); text-align: center; font-size: 12px; }
@media (max-width: 359px) {
    .resident-app .resident-public-booking { padding: 16px; }
    .resident-public-facts dd { font-size: 13px; }
}
.resident-public-loader { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; background: var(--resident-bg); }
.resident-public-loader img { width: 176px; height: 64px; object-fit: contain; }
.resident-app.theme-dark .resident-public-loader img { filter: brightness(0) invert(1); }
.resident-app .resident-public-loader p { margin: 0; font-size: 14px; }
.resident-app .resident-public-loader .ingress-startup-spinner { margin: 0; }
.resident-app .route-status-shell { min-height: 0; padding: 12px 0; }
.resident-app #app .page-content { padding-bottom: 0; }
.resident-app :is(#page-android, #page-ios) .content-boxed { background: var(--resident-surface) !important; margin: 0; padding: 4px; border: 1px solid var(--resident-border); box-shadow: none !important; }
.resident-app :is(#page-android, #page-ios) .color-white { color: var(--resident-text) !important; }
.resident-app :is(#page-android, #page-ios) ol { text-align: left; line-height: 1.6 !important; padding-left: 24px; }
/* One update dialog for every resident route; colours follow the selected site. */
.resident-app #app dialog.pwa-update-card { position: fixed; inset: 0; width: calc(100% - 32px); max-width: 400px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid var(--resident-border); border-radius: 16px; background: var(--resident-surface); color: var(--resident-text); font-family: var(--resident-font); box-shadow: 0 16px 48px rgb(0 0 0 / 20%); }
.pwa-update-card::backdrop { background: rgb(10 15 30 / 58%); }
.pwa-update-brand { display: block; width: 128px; height: 40px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.theme-dark .pwa-update-brand { filter: brightness(0) invert(1); }
.resident-app #app .pwa-update-eyebrow { color: var(--resident-accent); font-size: 12px; font-weight: 600; line-height: 1.5; margin: 0 0 4px; }
.resident-app #app .pwa-update-card h2 { color: var(--resident-text); font-size: 24px; font-weight: 650; line-height: 1.25; margin: 0 0 12px; }
.resident-app #app .pwa-update-summary { color: var(--resident-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.resident-app #app .pwa-update-notes { margin-top: 16px; padding: 12px; background: var(--resident-tint); border: 1px solid var(--resident-border); border-radius: 9px; font-size: 14px; color: var(--resident-text); }
.pwa-update-notes summary { cursor: pointer; color: var(--resident-accent); font-weight: 600; }
.resident-app #app .pwa-update-notes h3 { font-size: 16px; line-height: 1.4; margin: 12px 0 6px; }
.resident-app #app .pwa-update-notes p { margin: 6px 0; }
.pwa-update-notes :is(ul, ol) { padding-left: 20px; margin: 8px 0; }
.pwa-update-notes img { max-width: 100%; height: auto; }
.resident-app #app .pwa-update-hint { margin: 16px 0 0; color: var(--resident-muted); font-size: 12px; line-height: 1.5; }
.resident-app #app .pwa-update-error { margin: 16px 0 0; color: var(--resident-danger); font-size: 14px; line-height: 1.5; }
.resident-app #app .pwa-update-progress { margin: 16px 0 0; color: var(--resident-accent); font-size: 14px; }
.pwa-update-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
.pwa-update-actions button { min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid var(--resident-border); border-radius: 9px; font: 600 14px/1.4 var(--resident-font); cursor: pointer; }
.pwa-update-secondary { color: var(--resident-text); background: var(--resident-surface); }
.pwa-update-actions .pwa-update-primary { background: var(--resident-primary); color: #fff; border-color: var(--resident-primary); }
.pwa-update-actions button:focus-visible { outline: 2px solid var(--resident-accent); outline-offset: 3px; }
.pwa-update-actions button:disabled { opacity: .65; cursor: wait; }
.resident-app .app-busy-card { color: var(--resident-text); background: var(--resident-surface); box-shadow: none; }
/* Shared feature headings and states stay visible while page data is fetched. */
.resident-app #app .resident-page-heading { padding: 10px 12px; }
.resident-page-heading-row { display: flex; align-items: center; gap: 10px; }
.resident-page-heading-row > div { flex: 1; min-width: 0; }
.resident-app #app .resident-page-heading h1 { margin: 0; font-size: 18px !important; line-height: 1.3; }
.resident-app #app .resident-page-intro { margin: 3px 0 0; font-size: 13px; line-height: 1.4; }
.resident-state-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; color: var(--resident-accent); background: var(--resident-tint); font-size: 20px; }
.resident-page-heading .resident-state-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
.resident-app #app .resident-state-icon > i, .resident-app .guide-step-icon > i { color: inherit !important; }
.resident-app #footer-bar a :is(i, span) { color: inherit !important; }
.resident-app #app .resident-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; padding: 28px 20px; text-align: center; }
.resident-app #app .resident-state h2 { margin: 0; font-size: 18px !important; }
.resident-app #app .resident-state p { margin: 0; max-width: 42ch; }
.resident-app #app .resident-state-compact { min-height: 172px; padding: 24px 12px; border-radius: 12px; background: var(--resident-tint); margin: 12px 0; }
.resident-app #app .resident-state .btn { margin: 4px 0 0; }
.resident-state-spinner { width: 22px; height: 22px; border: 2px solid var(--resident-border); border-top-color: var(--resident-accent); border-radius: 50%; animation: ingress-startup-spin .85s linear infinite; }
.resident-app .resident-detail-header { position: relative; padding-right: 40px; margin-bottom: 16px; }
.resident-app #app .resident-detail-header ~ .resident-item-facts { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--resident-border); }
.resident-app #app .resident-install-guide ol { padding-left: 24px; line-height: 1.6; margin-bottom: 20px; }
.resident-app #app .resident-install-guide li + li { margin-top: 12px; }
.resident-app #app .resident-detail-header h1 { font-size: 20px !important; margin: 0 0 12px; }
.resident-app #app .resident-detail-header h2 { margin: 0 0 4px; }
.resident-app #app .resident-detail-header p { margin: 0; }
.resident-detail-close { position: absolute; right: -8px; top: -8px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--resident-muted); }
.resident-app .resident-attachment-preview { display: block; max-width: 100%; width: auto; height: auto; max-height: 240px; object-fit: contain; border: 1px solid var(--resident-border); border-radius: 10px; margin: 0 auto 16px; }
.resident-app .resident-poll-icon { color: var(--resident-accent) !important; background: var(--resident-tint) !important; }
.resident-app #app :is(.resident-amenity-details, .resident-amenity-booking) .table { --bs-table-bg: var(--resident-surface); --bs-table-color: var(--resident-text); --bs-table-border-color: var(--resident-border); font-size: 14px; }
.resident-app #app .resident-amenity-details thead :is(tr, th) { background: var(--resident-tint) !important; color: var(--resident-text) !important; }
@media (max-width: 359px) {
    .resident-app #app.page-content { padding-left: 8px !important; padding-right: 8px !important; }
    .resident-app #app .resident-features { gap: 8px; }
    .resident-app #app .auth-card > .content { padding: 16px !important; }
    .resident-app .auth-card .password-rules-compact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .resident-app *, .resident-app *::before, .resident-app *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.resident-app #app .resident-pin-card .resident-pin-code {
    font-size: clamp(24px, 7vw, 32px); font-variant-numeric: tabular-nums; letter-spacing: .16em;
    padding: 16px 8px; text-align: center; color: var(--resident-text);
    border: 1px solid var(--resident-border); border-radius: 10px; background: var(--resident-tint);
}
.resident-app #app .resident-pin-card button { min-height: 44px; width: 100%; }
.resident-app #app .resident-pin-card .resident-pin-status { margin-top: 16px; font-weight: 600; }
