/* Tenant and landlord app interface; deliberately scoped away from agent operations. */
.resident-shell{--r-ink:#15314b;--r-muted:#4d6578;--r-blue:#2374b9;display:flex;flex-direction:column;position:relative;max-width:1180px;margin:auto;padding:0 0 0 190px;min-height:100dvh;color:var(--r-ink);font-size:16px;background:#f4f8fc}.resident-shell p{font-size:16px;line-height:1.65;color:var(--r-muted)}.resident-shell small{font-size:13px;color:var(--r-muted)}.r-header{padding:20px 28px;background:#fff;border-bottom:1px solid #dae6ef;flex-shrink:0}.r-title-row{display:flex;align-items:center;gap:12px}.r-title{flex:1;min-width:0}.r-title strong{display:block;font-size:22px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}.r-title>span{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:#526b7d}.r-icon{position:relative;display:inline-flex;justify-content:center;align-items:center;min-width:46px;width:46px;min-height:46px;border:0;border-radius:14px;background:#eaf3fa;color:#1f5e8d;font-size:24px;cursor:pointer;flex-shrink:0}.r-icon .unread-count{position:absolute;right:-3px;top:-4px;font-size:12px;min-width:21px;height:21px}.r-main{padding:28px;flex:1;min-width:0}.r-heading{margin-bottom:23px}.r-heading h1{font-size:29px;letter-spacing:-.8px;line-height:1.22;margin:0 0 12px}.r-heading p{margin:0;max-width:650px}.resident-shell h2{font-size:21px;letter-spacing:-.3px;line-height:1.35;margin:24px 0 14px}.resident-shell h3{font-size:18px;line-height:1.4;margin:12px 0}.resident-shell .button{min-height:48px;padding:12px 17px;font-size:15px;font-weight:650;line-height:1.45;white-space:normal;text-align:center;justify-content:center;gap:8px}.resident-shell .button svg{flex-shrink:0}.r-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 28px}.r-primary-actions .button{width:100%}.r-quick-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.r-card{padding:21px;background:white;border:1px solid #dbe7ef;border-radius:18px;margin:16px 0;box-shadow:0 3px 14px #15314b04;min-width:0}.r-card h2:first-child,.r-card h3:first-child{margin-top:0}.r-card p:last-child{margin-bottom:0}.r-card .button{margin:8px 7px 0 0}.r-list{background:#fff;border:1px solid #dbe7ef;border-radius:18px;overflow:hidden;margin:15px 0 24px}.r-section-title{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:24px}.r-section-title h2{margin:0}.r-section-title>a{font-size:14px;min-height:44px;display:flex;align-items:center;white-space:nowrap}.r-case-row{display:block;padding:20px;color:#183b57;border-bottom:1px solid #e1ebf3;min-width:0}.r-case-row:last-child{border:0}.r-case-row h3{font-size:18px;line-height:1.4;margin:12px 0 5px;overflow-wrap:anywhere}.r-case-row p{font-size:14px;margin:3px 0 9px}.r-case-row small{font-size:13px;color:#426985}.r-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#516e84}.resident-shell .tag{font-size:12px;line-height:1.5;white-space:normal;max-width:100%}.resident-shell .tag.blue{background:#e8f2fa;color:#205f90}.r-filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.r-filter-tabs a{padding:10px 17px;min-height:44px;border:1px solid #cbddea;border-radius:10px;background:white;color:#3e5c74;font-size:14px}.r-filter-tabs a[aria-current]{color:white;background:#17354f;border-color:#17354f}.r-search{display:flex;gap:9px;align-items:center;margin:17px 0}.resident-shell input:not([type=checkbox]):not([type=radio]),.resident-shell textarea,.resident-shell select{font-size:16px;min-height:48px;border:1px solid #becfdd;border-radius:11px;color:#17354f;background:white;padding:12px;max-width:100%}.r-search input{flex:1;width:100%;min-width:0}.r-property-switch{display:flex;align-items:end;gap:10px;margin-top:14px}.r-property-switch label{flex:1;font-size:13px;min-width:0}.r-property-switch select{display:block;width:100%;margin-top:6px}.r-property-switch .button{margin:0}.r-property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.r-home-card{margin:0;color:#173c5a}.r-home-card h2{margin:14px 0 6px}.r-home-icon{width:50px;height:50px;border-radius:14px;background:#e9f3fb;color:#2879b7;display:flex;align-items:center;justify-content:center}.r-home-card strong{display:block;margin-top:18px;font-size:14px}.r-person{display:flex;gap:18px;justify-content:space-between;border-bottom:1px solid #e3edf4;padding:14px 0;font-size:15px}.r-person span{color:#506b80}.r-person strong{text-align:right;overflow-wrap:anywhere}.resident-shell .r-task>summary{font-size:16px;font-weight:650;cursor:pointer;padding:10px 0;min-height:44px;color:#244d6d}.r-facts div{display:flex;justify-content:space-between;gap:15px;padding:10px 0}.r-facts dt{color:#526c80}.r-facts dd{margin:0;font-weight:600}.r-document-row{padding:20px;border-bottom:1px solid #dfe9f1}.r-document-row:last-child{border-bottom:0}.r-document-row h2{margin:0 0 12px;font-size:19px}.r-document-row .document-due{font-size:14px;margin:12px 0}.r-document-row .button{margin:8px 12px 0 0}.r-text-link{font-size:15px;display:inline-flex;align-items:center;min-height:46px;margin:8px 0 0;padding:8px}.r-inline-action{margin:18px 0}.r-inline-action .button{min-width:170px}.r-viewer-actions{display:flex;gap:12px;margin-bottom:18px}.r-file-viewer{width:100%;height:72dvh;border:1px solid #ccdde8;border-radius:12px;background:white}.r-file-image{display:block;max-width:100%;height:auto;margin:auto}.r-menu-row{display:flex;justify-content:space-between;align-items:center;min-height:62px;padding:17px 20px;color:#214863;border-bottom:1px solid #dfe9f1;font-size:16px}.r-menu-row:last-child{border:0}.r-bottom-nav{position:fixed;top:24px;left:max(14px,calc((100vw - 1180px)/2));width:174px;display:flex;flex-direction:column;background:white;border:1px solid #d7e4ee;padding:12px;border-radius:17px;z-index:40;gap:5px}.r-bottom-nav a{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px;color:#4c657a;border-radius:11px;font-size:14px;line-height:1.4}.r-bottom-nav a[aria-current]{background:#e7f2fb;color:#175f98;font-weight:750}.r-bottom-nav a svg{flex-shrink:0}.resident-shell .tl-form label{font-size:14px;font-weight:600;color:#29495f;margin-bottom:17px}.resident-shell .tl-form label small{font-size:13px;font-weight:400}.resident-shell .tl-form textarea{width:100%;line-height:1.6}.resident-shell .tl-form input:not([type=checkbox]):not([type=radio]),.resident-shell .tl-form select{width:100%;margin-top:8px}.resident-shell .tl-form .check-label{display:flex;align-items:center;gap:9px;min-height:44px}.resident-shell .tl-form .check-label input{width:20px;height:20px}.resident-shell .field-help,.resident-shell .r-hint{font-size:14px;line-height:1.65;color:#4e687d}.r-selected-property{background:#eef5fb;padding:12px 14px;border-radius:10px;font-size:15px}.r-content-form{max-width:780px}.r-input-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 20px}.r-input-options .button{width:100%;margin:0;display:flex;font-size:14px;min-height:56px}.resident-shell .tl-form .r-file-button{position:relative;overflow:hidden;margin:0;font-size:14px}.resident-shell .tl-form .r-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}.r-file-button:focus-within{outline:3px solid #1766a1;outline-offset:3px}.resident-shell .attachment-preview{display:flex;flex-wrap:wrap;gap:10px;font-size:13px}.resident-shell .attachment-preview img,.resident-shell .attachment-preview video{max-width:200px;max-height:170px}.resident-shell .attachment-preview audio{max-width:100%;width:100%}.resident-shell .attachment-preview button{min-width:44px;min-height:44px}.r-extra-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.r-extra-preview:empty{display:none}.r-extra-file{padding:10px;background:#edf4fa;border-radius:11px;min-width:0}.r-extra-file img{width:100%;height:90px;object-fit:cover;border-radius:7px}.r-extra-file span{display:block;font-size:12px;overflow-wrap:anywhere;margin:8px 0}.r-extra-file button{min-width:44px;min-height:44px;font-size:13px;background:white;border:1px solid #bcd0e0;border-radius:7px;color:#245373}.r-steps{display:flex;gap:8px;margin-bottom:20px}.r-steps span{flex:1;padding:10px 6px;border-radius:9px;text-align:center;background:#e5eef6;color:#42627a;font-size:13px}.r-steps span[aria-current]{background:#1e6fae;color:white;font-weight:650}.r-report-controls{display:flex;gap:12px;justify-content:end;position:sticky;bottom:12px;padding:12px;background:#f4f8fcf2;border-radius:12px;z-index:4}.r-report-review{padding:14px;background:#edf4fa;border-radius:10px;line-height:1.7;margin:18px 0}.r-report-review strong{display:block}.r-dialog{border:0;border-radius:20px;padding:0;width:min(620px,calc(100% - 28px));max-height:88dvh;overflow:auto;color:#17334d;background:#f4f8fc;box-shadow:0 20px 80px #13324f40}.r-dialog:not([open]){display:none}.r-dialog::backdrop{background:#122d4766}.r-dialog-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;background:white;padding:14px 18px;border-bottom:1px solid #dce7f0}.r-dialog-head h2{font-size:20px;margin:0}.r-dialog .case-sidebar{padding:18px;display:block}.r-dialog .side-card{margin-bottom:16px}.r-dialog .tl-form label{font-size:14px}.resident-shell .empty-state{padding:28px 20px}.resident-shell .empty-state p{font-size:15px}.resident-shell .narrow-panel{max-width:700px}.resident-shell .success-notice,.resident-shell .notice-warning{font-size:15px}.resident-shell .help-grid{grid-template-columns:1fr}.resident-shell .help-card-body p{font-size:16px}.resident-shell .help-card-body small{font-size:13px}.resident-shell .help-intro p{font-size:15px}
/* A conversation is a complete viewport, with a flexible thread and visible composer. */
.resident-shell.r-chat{height:var(--r-height,100dvh);min-height:0;overflow:hidden}.r-chat .r-header{padding-top:12px;padding-bottom:12px}.r-chat .r-title strong{font-size:18px;max-height:50px;overflow:hidden}.r-main.r-case{display:flex;flex-direction:column;padding:0;min-height:0;overflow:hidden}.r-case>.back-link,.r-case>.case-heading{display:none}.r-case .case-layout{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}.r-case .conversation-panel{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;border:0;border-radius:0}.r-case .conversation-header{padding:9px 16px;border-radius:0}.r-case .conversation-header .avatar{display:none}.r-case .conversation-header .private-label{font-size:12px}.r-case .conversation-header small{font-size:12px}.r-case .conversation-header strong{font-size:13px}.r-case .conversation-thread{height:auto!important;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:18px;background:#f5f9fc}.resident-shell .message-bubble{font-size:16px;line-height:1.6;border:1px solid #dce8f1}.resident-shell .message-bubble p{font-size:16px;color:inherit}.resident-shell .message-body{max-width:90%;min-width:0}.resident-shell .message-meta strong,.resident-shell .message-meta time{font-size:12px}.resident-shell .message-bubble small,.resident-shell .translation-label{font-size:12px}.r-case .composer{flex-shrink:0;padding:10px 16px max(12px,env(safe-area-inset-bottom));background:white}.r-case .composer textarea{min-height:48px;height:60px;max-height:120px;font-size:16px;resize:vertical;margin-bottom:8px}.r-case .composer-audience{font-size:12px;margin-bottom:6px;line-height:1.45}.r-case .composer-hint{font-size:12px;line-height:1.45;margin-top:8px;max-height:37px;overflow:auto}.r-case .composer-tools{gap:8px;flex-wrap:wrap}.r-case .composer-tools .icon-button{min-width:44px;min-height:44px}.r-case .system-event{font-size:12px;line-height:1.7}.r-case .thread-appointment{margin-left:0;max-width:100%;font-size:15px}.r-case .thread-appointment p{font-size:15px}.r-case .new-message-banner{flex-shrink:0;font-size:13px}.resident-shell.r-viewer{height:100dvh;min-height:0}.r-viewer .r-main{min-height:0;display:flex;flex-direction:column;overflow:auto}.r-viewer .r-file-viewer{min-height:280px;flex:1;height:auto}.resident-shell .pagination{font-size:14px;display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin:25px 0}.resident-shell .pagination a{min-height:44px;display:flex;align-items:center}.r-app-brand{font-size:13px;color:#486981}
@media(max-width:760px){.resident-shell{padding-left:0;padding-bottom:calc(89px + env(safe-area-inset-bottom));min-height:100dvh;width:100%}.r-header{padding:16px 18px}.r-title strong{font-size:21px}.r-main{padding:22px 18px}.r-heading h1{font-size:27px}.r-primary-actions{grid-template-columns:1fr;gap:10px}.r-primary-actions .button{font-size:16px;min-height:51px}.r-bottom-nav{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;border:0;border-top:1px solid #cfdfe9;border-radius:0;padding:7px 4px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;box-shadow:0 -4px 18px #15314b06}.r-bottom-nav a{display:flex;flex-direction:column;justify-content:start;gap:5px;min-height:61px;padding:8px 2px 3px;font-size:12px;line-height:1.35;text-align:center;min-width:0;overflow-wrap:anywhere}.r-bottom-nav span{max-width:100%}.r-bottom-nav a[aria-current]{border-radius:11px}.r-property-grid{grid-template-columns:1fr}.r-card{padding:18px}.r-quick-links{display:grid;grid-template-columns:1fr 1fr;gap:9px}.r-quick-links .button{margin:0;font-size:14px}.r-quick-links .button:last-child{grid-column:1/3}.r-filter-tabs a{flex:1;text-align:center}.r-chat .r-bottom-nav,.r-viewer .r-bottom-nav{display:none}.resident-shell.r-chat,.resident-shell.r-viewer{padding-bottom:0}.resident-shell.r-chat{position:fixed;inset:auto 0 auto;top:var(--r-top,0px);height:var(--r-height,100dvh)}.r-case .conversation-header{flex-wrap:wrap;gap:6px}.r-case .message-body{max-width:91%}.r-case .message-avatar{width:24px;height:24px;font-size:12px}.r-case .message-bubble{padding:12px 13px}.r-case .conversation-thread{padding:14px}.r-case .composer{padding-left:12px;padding-right:12px}.r-case .composer-tools .button{padding:10px 16px}.r-dialog{margin:auto auto 0;width:100%;max-width:100%;max-height:90dvh;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}.r-input-options{gap:9px}.r-input-options .button{font-size:13px;line-height:1.45;padding:11px 8px;min-height:66px;flex-direction:column}.r-extra-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.r-report-controls{bottom:0;margin:0 -8px}.r-report-controls .button{flex:1}.r-menu-row{font-size:16px}.r-section-title h2{font-size:20px}.resident-shell .page-heading h1{font-size:27px}.resident-shell .page-heading p{font-size:16px}.resident-shell .help-bottom{display:block}.resident-shell .help-bottom .button{margin-top:15px}.r-property-switch .button{font-size:14px;padding:12px}.r-case .composer .attachment-preview:not(:empty){max-height:130px;overflow:auto}.r-viewer .r-main{padding:16px}.r-viewer .r-heading h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){.resident-shell *{scroll-behavior:auto!important;transition:none!important}}
.resident-shell [hidden]{display:none!important}.r-chat-attachments{margin:0 0 8px;font-size:14px}.r-chat-attachments>summary{cursor:pointer;min-height:36px;padding:7px 0;color:#235d87}.r-chat-attachments[open]{max-height:35dvh;overflow:auto;padding:0 4px 10px}.r-chat-attachments .r-input-options{margin:8px 0}.r-chat-attachments .r-hint{display:none}.r-chat-attachments .r-extra-preview{margin:7px 0}.r-chat-attachments .r-extra-file img{height:65px}.r-chat-attachments .attachment-preview{max-height:100px;overflow:auto}
@media(max-width:760px){.r-bottom-nav{padding-left:2px;padding-right:2px;gap:1px}.r-bottom-nav a{padding-left:0;padding-right:0;overflow-wrap:normal;letter-spacing:-.15px}.r-bottom-nav span{white-space:nowrap}.r-bottom-nav a[aria-current]{font-weight:650}}
@media(max-width:760px){.r-report-controls{bottom:calc(82px + env(safe-area-inset-bottom))}.resident-shell:not(.r-chat) .toast{bottom:calc(90px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:none}}
/* Language names and the English recovery control remain readable in every locale. */
.r-language-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:8px}.r-language-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:14px;color:#235c86}.r-language-reset{margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.r-language-reset .form-error{flex-basis:100%;margin:0}.resident-shell .r-language-reset .button{min-height:44px;padding:8px 15px;font-size:14px}.r-chat .r-language-tools{margin-top:0}.r-language-tools a:focus-visible,.r-language-tools button:focus-visible{outline:3px solid #2374b9;outline-offset:3px}
/* A full website workspace on larger screens; phone navigation stays compact. */
.r-desktop-nav{display:none}.r-home-focus:empty{display:none}
@media(min-width:761px){
 .resident-shell{max-width:none;margin:0;padding-left:244px;background:#f3f7fb;min-height:100dvh}.resident-shell>.r-bottom-nav{display:none}.r-desktop-nav{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:244px;padding:30px 20px 20px;background:#fff;border-right:1px solid #dae5ef;z-index:40;overflow:auto}.r-desktop-nav .brand{margin:0 0 35px;font-size:23px;gap:9px}.r-desktop-nav .brand-symbol{width:37px;height:37px}.r-desktop-nav .brand small{display:none}.r-desktop-nav>nav{display:flex;flex-direction:column;gap:7px}.r-desktop-nav>nav>a{display:flex;align-items:center;gap:12px;min-height:50px;padding:12px;border-radius:11px;color:#4a647b;font-size:15px}.r-desktop-nav>nav>a[aria-current]{background:#e8f3fb;color:#195f96;font-weight:700}.r-desktop-nav>nav>a:hover{background:#f0f6fb}.r-desktop-nav svg{flex-shrink:0}.r-desktop-account{display:flex;flex-direction:column;gap:9px;margin-top:auto;padding:28px 12px 6px;border-top:1px solid #e0eaf2;font-size:14px}.r-desktop-account strong{overflow-wrap:anywhere}.r-desktop-account>span{font-size:13px;color:#526a7d}.r-desktop-account>a{display:flex;align-items:center;min-height:44px;color:#246fa7}.r-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 28px;padding:24px 38px;background:#fff}.r-title-row{grid-column:1;grid-row:1}.r-title strong{font-size:25px}.r-language-tools{grid-column:2;grid-row:1;margin:0}.r-property-switch{grid-column:1/-1;grid-row:2;max-width:570px;margin-top:8px;width:100%}.r-main{padding:34px 38px 50px;width:100%;max-width:1500px;align-self:center}.r-heading h1{font-size:34px}.r-heading{margin-bottom:24px}.r-primary-actions{display:flex;gap:12px;margin:22px 0 30px}.r-primary-actions .button{width:auto;min-width:190px}.r-quick-links{margin:22px 0 30px}.r-home-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:0 28px;align-items:start}.r-home-focus{grid-column:1}.r-home-appointments{grid-column:2;grid-row:1/span 3;min-width:0}.r-home-repairs{grid-column:1;min-width:0}.r-home-grid h2:first-child{margin-top:0}.r-home-grid .r-section-title{margin-top:0}.r-home-focus .r-card:first-child,.r-home-appointments>.r-card:first-child{margin-top:0}.r-home-repairs .r-case-row{padding:20px 23px}.r-home-repairs .r-list{margin-bottom:0}.r-home-appointments .r-card{box-shadow:0 5px 22px #173e5d05}.r-view-documents>.r-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:none;border:0;border-radius:0;overflow:visible}.r-view-documents .r-document-row{background:#fff;border:1px solid #dbe7ef;border-radius:16px;margin:0 16px 16px 0}.r-view-documents .r-document-row:last-child{border:1px solid #dbe7ef}.r-view-property>.r-primary-actions{display:flex;flex-wrap:wrap}.r-view-report>.r-content-form,.r-view-compose>.r-card,.r-view-document-edit>.r-card{width:100%;max-width:900px}.r-view-report,.r-view-compose,.r-view-document-edit{max-width:1050px}.r-case .conversation-panel{border-left:1px solid #dce7ef;border-right:1px solid #dce7ef}.r-main.r-case{max-width:1500px;width:100%;align-self:center}.r-desktop-nav a:focus-visible{outline:3px solid #2374b9;outline-offset:2px}
}
@media(min-width:761px) and (max-width:1080px){.resident-shell{padding-left:204px}.r-desktop-nav{width:204px;padding:24px 14px}.r-desktop-nav .brand{font-size:20px}.r-main{padding:28px 24px}.r-header{padding:22px 24px}.r-home-grid{grid-template-columns:minmax(0,1.15fr) minmax(240px,1fr);gap:0 18px}}
@media(min-width:761px){.r-home-focus .r-card{padding:18px 21px}.r-home-focus .r-card h3{font-size:18px;margin:9px 0}.r-home-focus .r-card p{font-size:14px;line-height:1.55;margin:6px 0}.r-home-focus .r-card .button{min-height:42px;padding:9px 13px;font-size:14px;margin:9px 0 0}.r-home-appointments .r-card p{font-size:15px;margin:10px 0}.r-home-appointments .r-card h3{font-size:18px}}
/* The visible text field is the typing control; media actions sit alongside it. */
.r-input-options{grid-template-columns:repeat(3,minmax(0,1fr))}.r-voice-upload{margin:2px 0 15px;border-top:1px solid #e0eaf2;padding-top:8px}.r-voice-upload>summary{cursor:pointer;font-size:14px;min-height:44px;padding:11px 0;color:#285d82}.r-voice-upload>label{display:block;margin-top:8px}.r-chat-attachments .r-voice-upload{margin-bottom:7px}.r-chat-attachments .r-voice-upload>summary{font-size:13px}.r-voice-upload>summary:focus-visible{outline:3px solid #2374b9;outline-offset:2px}
.composer-choice-hint{font-size:13px;line-height:1.5;margin:0 0 8px;color:#49667d}.resident-shell .composer-choice-hint{font-size:13px;color:#49667d}
