.rental-inbox-workspace{grid-template-columns:minmax(260px,310px) minmax(300px,1fr) 240px;align-items:start}.rental-inbox-workspace:not(.has-thread){grid-template-columns:minmax(260px,340px) 1fr}.rental-inbox-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px}.rental-inbox-stages button{display:flex;justify-content:space-between;gap:4px;padding:9px 10px;font-size:12px;border-radius:10px;background:white;color:#163c46;border:1px solid #d9e5e3}.rental-inbox-stages button[aria-pressed=true]{background:#143f43;color:white;border-color:#143f43}.rental-inbox-stages span{font-size:11px;opacity:.7}.rental-inbox-filters{display:grid;gap:8px;padding:0 12px 12px}.rental-inbox-filters input,.rental-inbox-filters select{width:100%;min-width:0;padding:10px;border:1px solid #d9e5e3;border-radius:9px;background:white;font:inherit}.rental-inbox-filters button{font-size:12px;justify-self:start;padding:6px 9px}.rental-inbox-filters button[aria-pressed=true]{background:#d7f4e9}.inbox-stage-label{display:inline-block;width:fit-content;font-size:11px;padding:3px 7px;border-radius:7px;background:#edf1f4;color:#364e62;margin:4px 0}.inbox-stage-label.prospect{background:#e8eefb;color:#3d5080}.inbox-stage-label.applicant{background:#f8eed8;color:#7c5f19}.inbox-stage-label.tenant{background:#e0f4ec;color:#22664e}.inbox-snippet{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.rental-inbox-context{padding:18px;overflow-wrap:anywhere}.rental-inbox-context h2{font-size:17px;margin:12px 0 4px}.rental-inbox-context dt{font-size:11px;color:#6b7e83;margin-top:12px}.rental-inbox-context dd{margin:3px 0 0;font-size:13px}.inbox-context-actions{display:grid;gap:12px;border-top:1px solid #e2ebe8;padding-top:18px;margin-top:20px}.inbox-context-actions a{font-size:13px;color:#176450}.inbox-empty{padding:18px}.rental-inquiry-panel .inbox-history{flex:1;min-height:150px;overflow-y:auto;padding:15px}.inbox-original{padding:12px;background:#f4f7f6;border-radius:9px;margin-bottom:16px;font-size:13px}.inbox-original p{white-space:pre-wrap}.rental-inbox-widget{position:fixed;right:24px;bottom:94px;z-index:71;border-radius:24px!important;background:#153f43!important;color:white!important;border:1px solid #355e60!important;box-shadow:0 5px 22px #0c35332b;padding:13px 17px!important;display:flex;gap:9px;align-items:center;font-size:13px!important}.rental-inbox-widget [data-inbox-total]:not(:empty){background:#a5e4cb;color:#143f43;border-radius:20px;padding:2px 6px}.rental-inbox-drawer{position:fixed;right:24px;bottom:148px;z-index:72;width:390px;max-width:calc(100vw - 24px);height:min(700px,calc(100dvh - 175px));background:#fff;border:1px solid #cfdfda;border-radius:17px;box-shadow:0 18px 70px #0a303d33;display:flex;flex-direction:column;overflow:hidden;color:#183d44}.rental-inbox-drawer>header{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;background:#153f43;color:white}.rental-inbox-drawer h2{font-size:17px;margin:0}.rental-inbox-drawer>header button{color:white;border:0;background:transparent;font-size:25px}.rental-inbox-drawer>footer{padding:11px 17px;border-top:1px solid #e4ede9;font-size:12px}.rental-inbox-drawer a{color:#176450}.rental-inbox-drawer [data-inbox-widget-body]{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}.rental-inbox-drawer .inbox-widget-rows{overflow-y:auto;min-height:0;flex:1}.rental-inbox-drawer .communication-person-row{width:100%;text-align:left;border:0;border-bottom:1px solid #edf2ef;border-radius:0;background:white;cursor:pointer}.rental-inbox-drawer .communication-person-row:hover{background:#f2f8f5}.inbox-widget-person{display:grid;gap:5px;padding:12px 16px;border-bottom:1px solid #e2ebe8}.inbox-widget-person button{justify-self:start;font-size:11px;border:0;background:none;padding:0;margin-bottom:8px}.inbox-widget-person small{font-size:12px;color:#647b7e}.inbox-widget-history{overflow-y:auto;flex:1;min-height:70px;padding:12px}.inbox-widget-history .portal-message{font-size:13px;max-width:95%}.inbox-widget-history time{font-size:10px}#inbox-widget-compose{display:grid;gap:7px;padding:12px;border-top:1px solid #e2ebe8}#inbox-widget-compose label{font-size:11px}#inbox-widget-compose select{margin-left:8px;max-width:240px;padding:5px;font:inherit}#inbox-widget-compose textarea{width:100%;font:inherit;border:1px solid #ccdcd5;border-radius:8px;padding:9px;resize:vertical}#inbox-widget-compose button{justify-self:end}#inbox-widget-compose [role=alert]{font-size:12px;margin:0}#inbox-widget-compose a{font-size:11px}
@media(max-width:1250px){.rental-inbox-workspace{grid-template-columns:minmax(260px,310px) minmax(280px,1fr)}.rental-inbox-context{grid-column:2}.rental-inbox-workspace .communication-panel{max-height:74vh}}
@media(max-width:850px){.rental-inbox-workspace,.rental-inbox-workspace:not(.has-thread){grid-template-columns:minmax(0,1fr)}.rental-inbox-context{grid-column:1}.rental-inbox-widget{right:12px;bottom:88px}.rental-inbox-drawer{right:12px;bottom:145px;height:calc(100dvh - 175px)}.rental-inbox-workspace .communication-panel{max-height:72vh}.rental-inbox-directory .communication-contacts{max-height:55vh}}

.inbox-create-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.rental-inbox-directory .communication-toolbar{flex-wrap:wrap}.inbox-create-actions button{padding:7px 9px;font-size:12px}.inbox-notice-row{width:100%;text-align:left;border:0;border-bottom:1px solid #e5ece8;border-radius:0;background:white;cursor:pointer}.inbox-stage-label.notice{background:#fff1d7;color:#795517}

[data-wa-summary][data-connected="true"]{display:inline-flex;align-items:center;gap:6px;color:#176450;font-weight:600}[data-wa-summary][data-connected="true"]::before{content:"";width:7px;height:7px;border-radius:50%;background:#21845c}

.inbox-tenant-tabs{display:flex;gap:8px;padding:14px 18px;border-bottom:1px solid #dce7e2;flex-wrap:wrap}.inbox-tenant-tabs a,.inbox-tenant-tabs button{padding:10px 14px;border:1px solid #cdded6;border-radius:10px;text-decoration:none;background:white;color:#173b34;font-weight:650}.inbox-tenant-tabs [aria-current="page"],.inbox-tenant-tabs [aria-pressed="true"]{background:#d9f4e8;border-color:#78b99c}.inbox-tenant-items{padding:16px;overflow:auto}.inbox-repair-card{padding:16px;border:1px solid #dce7e2;border-radius:12px;margin-bottom:12px;background:#fff}.inbox-repair-card h3{font-size:16px;margin:0 0 8px}.inbox-repair-card p{font-size:13px;color:#526b62}.inbox-repair-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.inbox-repair-actions a{font-size:13px}.repair-cost-summary{padding:18px;border:1px solid #dce7e2;border-radius:12px;margin:18px 0;background:#f4fbf7}.repair-cost-summary h2{font-size:18px}.repair-cost-summary strong{font-size:24px}.repair-cost-context{padding:16px;background:#f4fbf7;border-radius:12px;margin-bottom:16px}.repair-cost-context p{margin:5px 0}.repair-cost-optional{margin-top:16px}.repair-cost-optional summary{cursor:pointer;margin-bottom:12px}

.inbox-widget-repair{padding:0 16px;font-size:13px;line-height:1.5}

.inbox-current-stage{padding:0 18px 10px}

/* People first: compact stage selection and one conversation column. */
.rental-inbox-workspace,.rental-inbox-workspace.has-thread{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}
.rental-inbox-stages{grid-template-columns:repeat(3,minmax(0,1fr))}.rental-inbox-stages button{justify-content:center;padding:11px 5px;font-size:12px}.rental-inbox-stages button span{display:none}
.rental-inbox-filters{grid-template-columns:1fr}.rental-inbox-filters select,.rental-inbox-filters [data-inbox-unread]{display:none}
.rental-inbox-directory .communication-toolbar h2{font-size:17px}.inbox-create-actions button{font-size:12px;background:transparent}
.rental-inquiry-panel .communication-chat-header .actions{margin-top:12px}.rental-inbox-workspace .communication-panel{height:650px;max-height:82dvh}.rental-inbox-workspace .communication-live{display:none}
[data-inbox-building-notice]{white-space:nowrap;align-self:center;font-size:13px}
@media(max-width:850px){.rental-inbox-workspace,.rental-inbox-workspace.has-thread{grid-template-columns:minmax(0,1fr)}.rental-inbox-workspace .communication-panel{height:72dvh;max-height:none}}

.wa-business-line{display:flex;flex-direction:column;gap:3px;margin-right:auto;min-width:0}.wa-business-line[hidden]{display:none}.wa-business-line strong{font-size:14px;overflow-wrap:anywhere}.wa-business-line span{font-size:12px;color:#526b60;font-variant-numeric:tabular-nums}
@media(max-width:600px){.wa-business-line{flex-basis:100%;order:-1}.notification-settings-toolbar:has(.wa-business-line){align-items:center}}

/* Give the conversation the full column, with optional tools outside its reading area. */
.rental-inbox-workspace{align-items:stretch}
.rental-inbox-workspace>.communication-directory,.rental-inbox-workspace>.communication-panel{height:var(--inbox-height,max(650px,75dvh));max-height:none;box-sizing:border-box}
.rental-inbox-workspace>.communication-directory{display:flex;flex-direction:column;min-height:0}
.rental-inbox-directory .communication-contacts{height:auto;max-height:none;min-height:0;flex:1;overflow:auto}
.rental-inbox-workspace .communication-chat-header:has([data-wa-details-open]){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 12px;padding:14px 18px}
.communication-chat-header [data-wa-details-open]{font-size:12px;padding:7px 10px;white-space:nowrap;align-self:start}
.communication-chat-header:has([data-wa-details-open])>.communication-mobile-back,.communication-chat-header:has([data-wa-details-open])>.communication-context{grid-column:1/-1}
.rental-inbox-workspace .inbox-current-stage{padding-bottom:2px}
.rental-inbox-workspace .inbox-tenant-tabs{padding:10px 16px;gap:6px;flex-shrink:0}
.rental-inbox-workspace .inbox-tenant-tabs a{padding:8px 11px;font-size:13px}
.rental-inbox-workspace .communication-panel>.communication-typing:empty,.rental-inbox-workspace .communication-error:empty{display:none}
.rental-inbox-workspace .communication-panel>.communication-compose{padding:10px 16px}
.rental-inbox-workspace [data-wa-channel]{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:12px}
.rental-inbox-workspace [data-wa-channel] select{flex:1;min-width:0;width:auto;margin:0;padding:7px 10px;font-size:12px}
.rental-inbox-workspace .communication-send-row textarea{min-height:56px;margin:0}
.rental-inbox-workspace .communication-compose .note{margin:6px 0 0}
@media(max-width:850px){
 .rental-inbox-workspace>.communication-directory,.rental-inbox-workspace>.communication-panel{height:max(580px,78dvh)}
 .rental-inbox-workspace.has-thread>.communication-directory{display:none}
 .rental-inbox-workspace .communication-chat-header:has([data-wa-details-open]){padding:12px;gap:8px}
 .communication-chat-header:has([data-wa-details-open]) .initials{display:none}
 .rental-inbox-workspace .inbox-tenant-tabs{padding:8px 10px;gap:5px}
 .rental-inbox-workspace .inbox-tenant-tabs a{font-size:12px;padding:8px}
}

/* One create control for the inbox, accessible from a conversation on any screen. */
.inbox-create-menu{position:relative;align-self:center;margin-left:auto;z-index:12;flex:0 0 auto}
.inbox-create-menu>summary{display:grid;place-items:center;list-style:none;width:42px;height:42px;border:1px solid #c4d9d1;border-radius:50%;background:#128c5e;color:white;font-size:29px;line-height:1;cursor:pointer}
.inbox-create-menu>summary::-webkit-details-marker{display:none}
.inbox-create-menu>summary:focus-visible{outline:3px solid #80b9a6;outline-offset:3px}
.inbox-create-options{position:absolute;right:0;top:calc(100% + 8px);width:210px;max-width:calc(100vw - 40px);padding:6px;background:white;border:1px solid #d5e3dd;border-radius:12px;box-shadow:0 8px 26px #14392d26;display:grid;gap:3px}
.inbox-create-options button{width:100%;text-align:left;padding:12px;border:0;background:white;color:#183e35;border-radius:8px;font-size:14px;white-space:nowrap}
.inbox-create-options button:hover,.inbox-create-options button:focus-visible{background:#edf7f2}

/* Familiar chat-list rhythm: identity, latest message, then property context. */
.rental-inbox-workspace,.rental-inbox-workspace.has-thread,.rental-inbox-workspace:not(.has-thread){grid-template-columns:minmax(330px,380px) minmax(0,1fr)}
.page-heading:has([data-inbox-create]) h1{font-family:Inter,system-ui,sans-serif;font-weight:750;letter-spacing:-.035em;font-size:30px}
.rental-inbox-directory .communication-toolbar{margin:0 18px 12px;padding:0}
.rental-inbox-directory .communication-toolbar h2{font-family:Inter,system-ui,sans-serif;font-size:25px;font-weight:750;letter-spacing:-.03em}
.rental-inbox-filters{padding:0 14px 0;gap:0}
.inbox-search-wrap{position:relative;min-width:0}
.inbox-search-wrap>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#788580;display:flex;pointer-events:none}
.rental-inbox-filters .inbox-search-wrap input{margin:0;padding:12px 12px 12px 40px;border:0;border-radius:22px;background:#f1f3f2;font-size:13px;line-height:1.4}
.rental-inbox-stages{display:flex;gap:6px;overflow-x:auto;flex-shrink:0;padding:13px 14px 16px;scrollbar-width:thin}
.rental-inbox-stages button{flex:0 0 auto;border-radius:22px;padding:8px 12px;background:#fff;border:1px solid #dce3df;font-size:12px;color:#58645f;min-height:36px}
.rental-inbox-stages button[aria-pressed=true]{background:#ddf7e5;color:#176345;border-color:#a9d9ba;font-weight:700}
.rental-inbox-directory .inbox-chat-row{padding:15px 14px;gap:12px;border-bottom:1px solid #eef0ee;align-items:flex-start;background:white}
.rental-inbox-directory .inbox-chat-row.selected{background:#eef7f1}
.rental-inbox-directory .inbox-chat-row:hover{background:#f5f8f6}
.rental-inbox-directory .inbox-avatar{width:49px;height:49px;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:700;background:#dcece5;color:#245a43;flex:0 0 49px}
.rental-inbox-directory .inbox-avatar.applicant{background:#f6edda;color:#806321}
.rental-inbox-directory .inbox-avatar.prospect{background:#e5edfa;color:#405b82}
.inbox-row-heading{display:flex;gap:8px;align-items:baseline;justify-content:space-between}
.inbox-row-heading strong{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-row-heading time{flex-shrink:0;color:#6e7c74;font-size:10px;white-space:nowrap}
.inbox-row-contact{display:flex;align-items:center;gap:6px;min-width:0;color:#68786e;font-size:11px;margin:2px 0 4px;flex-wrap:wrap}
.inbox-row-contact .inbox-stage-label{font-size:10px;margin:0;padding:2px 5px}
.inbox-row-preview{display:flex;gap:8px;align-items:center}
.rental-inbox-directory .inbox-snippet{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;max-width:none;min-width:0;flex:1;color:#596a60;font-size:13px;line-height:1.4}
.inbox-row-preview .communication-badge{flex-shrink:0;display:grid;place-items:center;min-width:19px;height:19px;padding:2px 5px;background:#18a267;color:white;font-size:11px;border-radius:20px}
.rental-inbox-directory .inbox-row-property{margin-top:5px;font-size:10px;color:#7c8a81}
.inbox-chat-row.is-unread .inbox-row-heading time{color:#168558;font-weight:650}
.inbox-chat-row.is-unread .inbox-snippet{color:#344c3f;font-weight:550}
@media(max-width:1000px) and (min-width:851px){.rental-inbox-workspace,.rental-inbox-workspace.has-thread,.rental-inbox-workspace:not(.has-thread){grid-template-columns:minmax(290px,320px) minmax(0,1fr)}.rental-inbox-stages button{padding:8px 9px}}
@media(max-width:850px){.rental-inbox-workspace,.rental-inbox-workspace.has-thread,.rental-inbox-workspace:not(.has-thread){grid-template-columns:minmax(0,1fr)}.rental-inbox-directory .communication-toolbar h2{font-size:28px}.rental-inbox-directory .inbox-chat-row{padding:16px 14px}.inbox-row-heading strong{font-size:16px}.rental-inbox-directory .inbox-snippet{font-size:14px}}

/* Familiar chat bubbles and compact conversation controls. */
.rental-inbox-workspace .communication-chat-header{background:#f7f8f5;flex-shrink:0}
.rental-inbox-workspace .communication-chat-header h2{font-family:Inter,system-ui,sans-serif;font-weight:700}
.rental-inbox-workspace .communication-chat-header .initials{border-radius:50%;width:44px;height:44px;flex:0 0 44px;background:#dcece5;color:#245a43}
[data-inbox-phone]{display:block;font-size:12px;color:#617569;margin-top:3px}
.rental-inbox-workspace .communication-chat-header .inbox-current-stage{padding:0;grid-column:1/-1}
.rental-inbox-workspace .communication-chat-header .inbox-stage-label{margin:0}
.rental-inbox-workspace [data-communication-history],.rental-inbox-workspace .inbox-history{background:#f2eee7;background-image:radial-gradient(#d8d4cb70 .8px,transparent .8px);background-size:18px 18px}
.rental-inbox-workspace .inbox-history{display:flex;flex-direction:column;gap:12px}
.rental-inbox-workspace .portal-message{max-width:82%;border:1px solid #e1e4dd;background:white;border-radius:2px 14px 14px 14px;box-shadow:0 1px 2px #172b1610;padding:11px 13px;font-size:14px;line-height:1.45}
.rental-inbox-workspace .portal-message.mine{background:#dcf8c6;border-color:#d5ebc6;border-radius:14px 2px 14px 14px}
.rental-inbox-workspace .portal-message.system{background:#fff5dc;border-radius:10px;align-self:center;max-width:92%;box-shadow:none}
.rental-inbox-workspace .portal-message header{gap:12px;flex-wrap:wrap}
.rental-inbox-workspace .portal-message header strong{font-size:12px;color:#36734f}
.rental-inbox-workspace .portal-message time{font-size:10px;color:#6c796d}
.rental-inbox-workspace .portal-message p{margin-top:5px}
.rental-inbox-workspace .communication-receipt{text-align:right;font-size:10px;margin-top:6px}
.rental-inbox-workspace .communication-compose{background:#f7f8f5}
.rental-inbox-workspace .communication-send-row{align-items:flex-end;gap:9px}
.rental-inbox-workspace .communication-send-row textarea{border-radius:22px;min-height:46px;font-size:14px;padding:11px 15px;flex:1;min-width:0;resize:vertical}
.rental-inbox-workspace .communication-send-row>.primary{height:44px;border-radius:22px;background:#128c5e;border-color:#128c5e;color:white;padding:0 18px}
/* Keep tenant sections visible in the gray identity header. */
.rental-inbox-workspace .inbox-tenant-tabs{display:flex;grid-column:1/-1;flex:0 0 auto;gap:6px;flex-wrap:nowrap;margin:8px 0 0;padding:0;border:0;background:transparent;overflow-x:auto}
.rental-inbox-workspace .inbox-tenant-tabs a,.rental-inbox-workspace .inbox-tenant-tabs button{display:inline-flex;align-items:center;flex:0 0 auto;min-height:36px;border-radius:22px;padding:8px 12px;background:#fff;border:1px solid #dce3df;font-size:12px;font-weight:500;color:#58645f;text-decoration:none;white-space:nowrap}
.rental-inbox-workspace .inbox-tenant-tabs [aria-current=page],.rental-inbox-workspace .inbox-tenant-tabs [aria-pressed=true]{background:#ddf7e5;color:#176345;border-color:#a9d9ba;font-weight:700}
.rental-inbox-workspace .inbox-tenant-tabs a:hover{background:#edf7f2}
.rental-inbox-workspace .inbox-tenant-tabs a:focus-visible{outline:2px solid #78b99c;outline-offset:2px}
.rental-inbox-workspace>.communication-panel>.inbox-widget-person{background:#f7f8f5;flex-shrink:0}
.rental-inbox-workspace .inbox-tenant-items{flex:1;min-height:0}
@media(max-width:850px){.rental-inbox-workspace .portal-message{max-width:90%;font-size:14px}.rental-inbox-workspace .portal-message header{display:flex}.rental-inbox-workspace .portal-message time{margin:0}.rental-inbox-workspace .communication-chat-header:has([data-wa-details-open]) .initials{display:grid}.rental-inbox-workspace .communication-send-row>.primary{padding:0 14px}.rental-inbox-workspace .communication-chat-header:has([data-wa-details-open]){grid-template-columns:minmax(0,1fr) auto}.rental-inbox-workspace .communication-chat-header .person{gap:9px}.rental-inbox-workspace .communication-chat-header h2{font-size:17px}}

.rental-inbox-workspace .communication-chat-header [data-wa-details-open]{grid-column:2;grid-row:1;width:auto;justify-self:end}
.rental-inbox-workspace .communication-chat-header .person{grid-column:1;grid-row:1;min-width:0}
.rental-inbox-workspace .communication-chat-header .person>div{min-width:0}
.rental-inbox-workspace .communication-chat-header .person .inbox-current-stage{display:inline-block;margin:4px 0 0}
.rental-inbox-workspace .communication-chat-header .communication-mobile-back{grid-row:auto}
.rental-inbox-workspace .communication-receipt{display:block}
@media(max-width:850px){.rental-inbox-workspace .communication-chat-header:has(.communication-mobile-back) .communication-mobile-back{grid-row:1;margin-bottom:0}.rental-inbox-workspace .communication-chat-header:has(.communication-mobile-back) .person,.rental-inbox-workspace .communication-chat-header:has(.communication-mobile-back) [data-wa-details-open]{grid-row:2}}
/* Keep the page chrome compact, particularly above the mobile conversation. */
.page-heading:has([data-inbox-create]){display:flex;align-items:center;gap:14px;margin:12px 0 20px}
.page-heading:has([data-inbox-create])>div:first-child{flex:1;min-width:0}
.page-heading:has([data-inbox-create]) .eyebrow,.page-heading:has([data-inbox-create]) .communication-live{display:none}
.page-heading:has([data-inbox-create]) h1{margin-bottom:7px}
@media(max-width:600px){
 .page-heading:has([data-inbox-create]){flex-direction:row;flex-wrap:nowrap;margin:12px 0 16px}
 .page-heading:has([data-inbox-create]) h1{font-size:24px;margin:0}
 .page-heading:has([data-inbox-create]) p{display:none}
 #content:has(.rental-inbox-workspace)>.notification-settings-toolbar{display:flex;gap:6px;margin-bottom:10px;align-items:center}
 #content:has(.rental-inbox-workspace) .wa-business-line{order:-1;flex:1 1 100%;gap:1px}
 #content:has(.rental-inbox-workspace)>.notification-settings-toolbar button,#content:has(.rental-inbox-workspace)>.notification-settings-toolbar a.button{padding:6px 9px;font-size:11px}
}

/* Keep the reply box within the available phone viewport. */
@media(max-width:850px){.rental-inbox-workspace>.communication-panel{height:var(--inbox-height,78dvh);min-height:340px}}

.rental-inbox-workspace .communication-chat-header>.inbox-tenant-tabs{grid-row:3}
.rental-inbox-workspace .inbox-widget-person h2{margin:0;font:700 19px/1.3 Inter,system-ui,sans-serif}
.rental-inbox-workspace .inbox-widget-person p{margin:2px 0;color:#627165;font-size:13px}

.rental-inbox-workspace .communication-chat-header .communication-context{grid-column:1/-1;grid-row:4;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:4px 0 0;padding:9px 10px;font-size:12px}
.rental-inbox-workspace [data-inbox-repair-cost]{margin-left:auto}
.rental-inbox-workspace [data-inbox-repair-cost] button{width:auto;padding:7px 11px;white-space:nowrap;font-size:12px}

/* Unread activity stays visible even when another stage is selected. */
.rental-inbox-stages button.has-unread{border-color:#39a76b;color:#145c3a;font-weight:700;background:#f0fbf4}
.rental-inbox-stages button.has-unread[aria-pressed=true]{background:#ddf7e5}
.rental-inbox-stages button .inbox-stage-unread{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:12px;background:#16894d;color:#fff;font-size:10px;font-weight:750;opacity:1;padding:0 4px}
.rental-inbox-stages button .inbox-stage-unread[hidden]{display:none}

/* Phone workspace: one compact navigation row, company selector, and a scrollable chat. */
@media(max-width:720px){
 body:has(#shell:not([hidden]) .rental-inbox-workspace){overflow:hidden}
 #shell:has(.rental-inbox-workspace){position:fixed;inset:auto 0 auto;top:var(--chat-viewport-top,0);height:var(--chat-viewport-height,100dvh);display:flex;flex-direction:column;overflow:hidden}
 #shell .sidebar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;padding:10px 12px;border-bottom:1px solid var(--border);flex:none}
 #shell .sidebar .brand{grid-column:1;grid-row:1;gap:7px;margin:0}
 #shell .sidebar .brand .rentaid-mark{width:30px;height:30px}
 #shell .sidebar .brand .ra-brand-name{font-size:23px}
 #shell .sidebar .brand-sub{display:none}
 #shell .mobile-nav-control{grid-column:2;grid-row:1;margin:0;font-size:0;gap:0}
 #shell .mobile-nav-control select{font-size:14px;min-height:38px;padding:6px 10px}
 #shell .company-area{grid-column:1/-1;grid-row:2;margin:0;padding:0}
 #shell #company-control{display:block;margin:0;font-size:0}
 #shell #company-control select{width:100%;max-width:none;font-size:14px;min-height:36px;padding:7px 10px;margin:0}
 #shell .topbar{display:none}
 #shell .topbar:has(#pending-team:not([hidden])){display:flex;height:auto;min-height:40px}
 #shell:has(.rental-inbox-workspace) .main-wrap{display:flex;flex:1;flex-direction:column;min-height:0;margin:0}
 #shell:has(.rental-inbox-workspace) main{display:flex;flex:1;flex-direction:column;min-height:0;padding:0 8px max(6px,env(safe-area-inset-bottom));overflow:hidden}
 #shell:has(.rental-inbox-workspace) .main-wrap>footer{display:none}
 #shell:has(.rental-inbox-workspace) #content{display:flex;flex:1;flex-direction:column;min-height:0}
 #shell:has(.rental-inbox-workspace) #notice:not([hidden]){flex:none;margin:5px 0;padding:7px 10px;font-size:12px;max-height:80px;overflow:auto}
 #shell:has(.rental-inbox-workspace) .page-heading{flex:none;margin:6px 3px;min-height:36px}
 #shell:has(.rental-inbox-workspace) .page-heading h1{font-size:21px}
 #shell:has(.rental-inbox-workspace) .inbox-create-menu>summary{width:36px;height:36px}
 #shell:has(.rental-inbox-workspace.has-thread) .page-heading{display:none}
 #shell:has(.rental-inbox-workspace) #content>.notification-settings-toolbar{flex:none;flex-wrap:nowrap;gap:8px;margin:6px 2px;min-width:0}
 #shell:has(.rental-inbox-workspace) .wa-business-line{order:0;flex:1;min-width:0}
 #shell:has(.rental-inbox-workspace) .wa-business-line strong{display:none}
 #shell:has(.rental-inbox-workspace) .wa-business-line span{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
 #shell:has(.rental-inbox-workspace) [data-wa-open]{max-width:140px;text-align:left}
 #shell .rental-inbox-workspace{flex:1;min-height:0;overflow:hidden;border-radius:10px}
 #shell .rental-inbox-workspace>.communication-directory,#shell .rental-inbox-workspace>.communication-panel{height:100%;min-height:0;max-height:none;overflow:hidden}
 #shell .rental-inbox-workspace .communication-chat-header{padding:9px 11px;gap:5px 8px}
 #shell .rental-inbox-workspace .communication-chat-header .initials{display:none}
 #shell .rental-inbox-workspace .communication-chat-header h2{font-size:17px;line-height:1.25}
 #shell .rental-inbox-workspace .communication-mobile-back{font-size:12px;padding:0;margin:0 0 4px}
 #shell .rental-inbox-workspace .inbox-tenant-tabs{margin-top:5px;gap:5px}
 #shell .rental-inbox-workspace .inbox-tenant-tabs a{min-height:32px;padding:6px 9px;font-size:12px}
 #shell .rental-inbox-workspace [data-communication-history],#shell .rental-inbox-workspace .inbox-history{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:12px}
 #shell .rental-inbox-workspace .portal-message{flex-shrink:0;font-size:15px;line-height:1.5}
 #shell .rental-inbox-workspace .communication-compose{flex:none;margin:0;padding:8px 10px}
 #shell .rental-inbox-workspace .communication-send-row textarea{font-size:16px;min-height:44px;max-height:110px;resize:none;padding:10px 13px}
 #shell .rental-inbox-workspace .communication-compose [role=alert]:empty{display:none}
 #shell .rental-inbox-workspace .inbox-tenant-items{min-height:0;overflow:auto}
}
@media(max-width:720px){
 #shell .rental-inbox-workspace .communication-chat-header .person>div{display:flex;flex-wrap:wrap;gap:2px 6px;align-items:center}
 #shell .rental-inbox-workspace .communication-chat-header h2,#shell .rental-inbox-workspace .communication-chat-header .person p{flex-basis:100%}
 #shell .rental-inbox-workspace .communication-chat-header .person p{margin:2px 0;font-size:11px;line-height:1.3}
 #shell .rental-inbox-workspace [data-inbox-phone]{margin:0;font-size:11px}
 #shell .rental-inbox-workspace .person .inbox-current-stage{margin:0}
 #shell .rental-inbox-workspace [data-communication-history]{padding:0;overflow:hidden}
 #shell .rental-inbox-workspace .communication-messages{padding:12px;margin:0;overscroll-behavior-y:contain}
 #shell .rental-inbox-workspace .communication-send-row textarea{height:44px}
 #shell .rental-inbox-workspace .communication-chat-header .actions{margin-top:5px}
 #shell .rental-inbox-workspace .communication-chat-header .actions button,#shell .rental-inbox-workspace .communication-chat-header .actions a{padding:7px 10px;font-size:12px}
 #shell[data-chat-compact]:has(.rental-inbox-workspace) .company-area,#shell[data-chat-compact]:has(.rental-inbox-workspace) #content>.notification-settings-toolbar{display:none}
}

/* Keep the floating assistant away from chat reading and reply controls. */
body:has(.rental-inbox-workspace)>.ra-agent-launch{display:none}
