/* Keyboard-safe visual viewport. Fixed rail and conversation areas share one height. */
.notification-settings{display:grid;gap:14px}.notification-option{display:flex;gap:10px;align-items:center}.notification-option input{width:18px;height:18px}.message-image{display:block;max-width:min(100%,460px);height:auto;border-radius:10px;margin-top:9px;background:white}.business-preview{max-height:35vh;overflow:auto;white-space:pre-wrap;border:1px solid #dce5f2;padding:12px;border-radius:10px}.business-image{max-width:100%;max-height:35vh;object-fit:contain}.business-target{padding:12px;border:1px solid #bdd0f5;background:#edf3ff;border-radius:10px}.business-body{width:100%;min-height:110px;max-height:25vh}.business-actions{display:flex;gap:8px;margin-top:14px}.business-error{color:#a33643;white-space:pre-wrap;margin-top:10px}
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 html:has(.workspace),body:has(.workspace){height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
 #app:has(.workspace){position:fixed;inset:auto 0 auto 0;top:var(--ara-vv-top,0px);height:var(--ara-vv-height,100dvh);min-height:0;overflow:hidden}
 .workspace{height:100%;min-height:0;max-height:100%}.chat-panel{min-height:0;height:100%;overflow:hidden}.chat-header{flex:0 0 auto}.chat-viewport{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .chat-composer{flex:0 0 auto;min-height:0;padding:8px 10px max(8px,env(safe-area-inset-bottom));}.chat-composer textarea{font-size:16px;max-height:min(100px,22vh)}.composer-help{display:none}.composer-box{min-height:46px;padding:5px 7px}.send-button{width:38px;height:38px}.keyboard-open .chat-header{padding-top:9px;padding-bottom:9px}.keyboard-open .chat-composer{padding-bottom:6px}
 .ara-call-overlay{top:var(--ara-vv-top,0px);height:var(--ara-vv-height,100dvh);bottom:auto}.ara-call-panel{height:100%;min-height:0}.ara-call-grid{flex:none;grid-template-columns:1fr;grid-auto-rows:auto;align-content:start}.ara-call-tile{width:100%;aspect-ratio:16/9;min-height:0;height:auto}.ara-call-tile video{object-fit:contain}.ara-call-grid.has-screens .ara-call-tile{height:auto}.ara-call-grid.has-screens .ara-call-tile.screen{height:auto;aspect-ratio:16/9;min-height:0}.ara-call-header{padding:10px 12px;gap:8px}.ara-call-footer{padding:8px 8px max(8px,env(safe-area-inset-bottom))}.ara-call-footnote{margin-top:5px}.ara-call-control{min-height:50px}.ara-call-panel.with-chat .ara-call-content{min-height:0}.ara-call-panel.with-chat .ara-call-chat{min-height:160px}.ara-call-panel.with-chat .ara-call-body{max-height:34%;}.ara-call-route-note{font-size:10px;line-height:1.6}
}
@media(max-width:1000px) and (orientation:landscape){.ara-call-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;align-content:start;flex:none}.ara-call-tile{aspect-ratio:16/9;min-height:0}.ara-call-tile video{object-fit:contain}.ara-call-header{padding:6px 12px}.ara-call-footer{padding:6px 12px}.ara-call-control{min-height:42px;flex-direction:row}.ara-call-footnote{display:none}}

@media(max-width:760px),(max-width:1000px) and (pointer:coarse){.ara-call-panel.with-chat .ara-call-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}.ara-call-panel.with-chat .ara-call-tile{aspect-ratio:16/9;min-height:0;height:auto}.business-dialog{width:calc(100vw - 20px);max-height:calc(var(--ara-vv-height,100dvh) - 20px);overflow:auto}.keyboard-open .chat-header{height:58px;min-height:58px}}

/* Inline image drafts stay with their room, above the sending controls. */
.composer-image-picker{display:flex;align-self:flex-end;padding:5px 0}.composer-image-picker .icon-btn{width:38px;height:38px;color:var(--teal)}
.composer-attachment{display:flex;align-items:center;gap:10px;padding:9px;margin-bottom:7px;border:1px solid #c5d5ee;border-radius:10px;background:#fff;min-width:0}
.composer-attachment>img{display:block;max-width:110px;max-height:90px;object-fit:contain;border-radius:6px}.composer-attachment-info{display:flex;flex:1;min-width:0;flex-direction:column;font-size:11px;gap:4px}.composer-attachment-info span{color:var(--muted)}.composer-attachment .btn{flex-shrink:0}
.number-room-button{width:100%;margin-bottom:12px;white-space:normal;text-align:left;font-size:12px}.list-placeholder .number-room-button{margin-top:15px}
.notification-settings .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.notification-settings .modal-actions .btn{min-width:0;white-space:normal}
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 .modal{top:calc(var(--ara-vv-top,0px) + 10px);bottom:auto;margin-block:0;max-height:calc(var(--ara-vv-height,100dvh) - 20px)}.modal-content{max-height:calc(var(--ara-vv-height,100dvh) - 100px)}
 .composer-attachment{gap:7px;padding:7px}.composer-attachment>img{max-width:76px;max-height:min(70px,14dvh)}.composer-attachment-info{font-size:10px}.composer-attachment .btn{font-size:11px;padding:6px}
 .ara-call-overlay{padding:0}.ara-call-panel{width:100%;border-radius:0}
 .ara-call-panel.with-chat .ara-call-chat{min-height:0}.ara-call-panel.with-chat .ara-call-body{min-height:0}
 .keyboard-open .ara-call-panel.with-chat .ara-call-body{display:none}.keyboard-open .ara-call-panel.with-chat .ara-call-chat{flex:1;min-width:0}
 .keyboard-open .ara-call-header{padding:5px 10px;flex-wrap:nowrap}.keyboard-open .ara-call-header .ara-call-eyebrow,.keyboard-open .ara-call-header .ara-call-status,.keyboard-open .ara-call-header .ara-call-timer{display:none}
 .keyboard-open .ara-call-controls{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto}.keyboard-open .ara-call-control{flex-shrink:0;min-height:40px;padding:5px 7px}.keyboard-open .ara-call-footer{padding:5px}.keyboard-open .ara-call-footnote{display:none}
}

.notification-setup{margin:0 14px 12px;padding:11px 12px;text-align:left;background:#e9f0ff;color:#244d95;border:1px solid #b7caf0;border-radius:10px;font-size:12px;line-height:1.6}
.notification-checks{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:12px}.notification-checks dt{font-weight:600}.notification-checks dd{margin:0;overflow-wrap:anywhere}.notification-device-help{font-size:12px;line-height:1.8}.notification-device-help summary{cursor:pointer;font-weight:600}.notification-setup-hint{font-size:12px;line-height:1.8}
.message-file{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;padding:10px;border:1px solid #c7d4e7;border-radius:9px;background:#fff;text-decoration:none;color:#244d95}.message-file-label{display:flex;flex-direction:column;gap:3px;min-width:0}.message-file-label strong{overflow-wrap:anywhere;font-size:12px}.message-file-label>span{font-size:10px;color:var(--muted)}.message-bubble>.message-file{margin-top:6px}.composer-attachment>.message-file{flex:1}.composer-attachment:has(.message-file) .composer-attachment-info{display:none}

.person-avatar-button {display:inline-flex;flex:0 0 auto;align-self:flex-start;padding:0;border:0;border-radius:14px;background:transparent;cursor:pointer;color:inherit;}
.person-avatar-button:focus-visible {outline:3px solid #356de9;outline-offset:3px;}
.message-row > .person-avatar-button {margin-top:22px;}
.message-row > .person-avatar-button .avatar {margin-top:0;}
.member-row > .grow {min-width:0;overflow-wrap:anywhere;}
.member-row .badge {display:inline-block;max-width:100%;white-space:normal;margin-top:5px;}
.person-menu-profile {display:flex;align-items:center;gap:14px;padding:8px 0 16px;overflow-wrap:anywhere;}

.attachment-expired {padding:12px;border:1px dashed #bac4d3;border-radius:10px;color:#52647e;background:#f4f6fa;font-size:12px;overflow-wrap:anywhere;}
.attachment-expiry {display:block;font-size:11px;color:#60738e;margin-top:6px;}
.attachment-retention {flex-basis:100%;font-size:11px;color:#52647e;margin:0;line-height:1.5;}
.composer-attachment {flex-wrap:wrap;}
.message-options {width:30px;height:30px;padding:6px;background:transparent;color:#60738e;}
.message-edited {font-size:10px;white-space:nowrap;}
