/* Chat presents one task at a time, with occasional tools in dismissible trays. */
[data-mls-rooms] > button[hidden] + [data-chat-room-history],
[data-mls-rooms] > button[hidden] + [data-missed-shortcut] + [data-chat-room-history] { display: none; }
[data-chat-room-history] { margin: 0 10px 8px 3.5rem; }
[data-chat-room-history] > summary { width: fit-content; padding: 6px 0; font-size: .85rem; cursor: pointer; }
[data-chat-room-history] > button { display: block; width: 100%; padding: 10px; text-align: start; }
html body [data-mls] { min-width:0; }
html body [data-mls][data-chat-ready] > .q-qps-hero { display:none; }
html body [data-mls] > .q-qps-hero { padding:18px 20px; border-radius:20px; gap:14px; }
html body [data-mls] > .q-qps-hero .q-qps-emblem { width:46px; height:46px; border-radius:15px; }
html body [data-mls] > .q-qps-hero h1 { font-size:23px; line-height:1.25; }
html body [data-mls] > .q-qps-hero p { font-size:13px; line-height:1.6; }
html body [data-mls] [data-mls-feedback] { font-size:12px; padding:10px 14px; margin:10px 0; }
html body [data-mls] :is([data-chat-quiet], [data-mls-feedback]:empty) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); border:0; }
html body [data-mls] .q-private-layout { margin-top:0; grid-template-columns:minmax(260px,.85fr) minmax(0,1.7fr); gap:14px; }
html body [data-mls] .q-private-layout > .q-panel { padding:18px; border-radius:22px; }
html body [data-mls] .q-chat-list-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:12px; }
html body [data-mls] .q-chat-list-heading h4 { font-size:21px; margin:0; }
html body [data-mls] .q-chat-primary-actions { display:flex; align-items:center; gap:4px; flex:none; }
html body [data-mls] .q-chat-primary-actions > .q-icon-btn,html body [data-mls] .q-chat-menu > summary.q-icon-btn,html body [data-mls] .q-chat-mobile-back { width:42px; height:42px; min-width:42px; border-color:transparent; background:transparent; border-radius:50%; box-shadow:none; padding:10px; }
html body [data-mls] .q-chat-primary-actions > button.q-chat-new { background:var(--q-gold); color:var(--q-navy); }
html body [data-mls] .q-chat-menu { position:relative; }
html body [data-mls] .q-chat-menu > summary { list-style:none; cursor:pointer; }
html body [data-mls] .q-chat-menu > summary::-webkit-details-marker { display:none; }
html body [data-mls] .q-chat-menu:not([open]) > .q-chat-menu-tray { display:none; }
html body [data-mls] .q-chat-menu-tray { position:absolute; right:0; top:calc(100% + 6px); z-index:70; width:min(300px,calc(100vw - 48px)); max-height:min(65dvh,540px); overflow-y:auto; padding:8px; border:1px solid var(--q-border); background:var(--q-surface); color:var(--q-text); border-radius:18px; box-shadow:0 16px 45px #07132c26; }
html body [data-mls] .q-chat-menu-row,html body [data-mls] .q-chat-menu-tray .q-chips > button { display:flex; align-items:center; justify-content:flex-start; gap:12px; width:100%; min-height:44px; border:0; border-radius:10px; padding:10px 12px; margin:0; background:transparent; color:var(--q-text); font:500 13px/1.5 var(--q-font,system-ui); text-align:left; text-decoration:none; cursor:pointer; box-shadow:none; white-space:normal; }
html body [data-mls] .q-chat-menu-row[hidden] { display:none; }
html body [data-mls] .q-chat-menu-row svg { flex:none; width:19px; height:19px; color:var(--q-gold); }
html body [data-mls] .q-chat-menu-row:hover { background:var(--q-surface-2); }
html body [data-mls] .q-chat-menu :is(summary,button,a):focus-visible,html body [data-mls] .q-chat-text-action:focus-visible { outline:2px solid var(--q-gold); outline-offset:-2px; }
html body [data-mls] .q-chat-inbox-search { display:flex; gap:9px; align-items:center; padding:10px 13px; border-radius:24px; background:var(--q-bg); border:1px solid var(--q-border); margin-bottom:12px; }
html body [data-mls] .q-chat-inbox-search > svg { width:18px; height:18px; color:var(--q-muted); flex:none; }
html body [data-mls] .q-chat-inbox-search input { font:400 13px/1.5 var(--q-font,system-ui); color:var(--q-text); border:0; background:transparent; width:100%; min-width:0; padding:0; outline:none; box-shadow:none; }
html body [data-mls] .q-chat-inbox-search:focus-within { outline:2px solid var(--q-gold); outline-offset:2px; }
html body [data-mls] .q-chat-listbar { border:0; padding:0; margin:0 0 12px; }
html body [data-mls] [data-chat-list-choices] { flex-wrap:wrap; overflow:visible; gap:6px; }
html body [data-mls] [data-chat-list-choices] button { min-height:34px; padding:6px 14px; border-radius:20px; font-size:12px; box-shadow:none; }
html body [data-mls] [data-mls-rooms] { min-height:150px; }
html body [data-mls] [data-mls-rooms] > p { padding:28px 12px; text-align:center; font-size:13px; line-height:1.8; }
html body [data-mls] [data-mls-rooms] > button { width:100%; padding:15px 14px; border-radius:14px; font-size:14px; text-align:left; margin:4px 0; }
html body [data-mls] [data-mls-rooms] > button[aria-current=true] { background:var(--q-surface-2); border-color:var(--q-gold); }
html body [data-mls] [data-mls-rooms] > button[hidden] { display:none; }
html body [data-mls] .q-chat-room-header { display:flex; align-items:center; gap:10px; padding-bottom:14px; margin-bottom:8px; border-bottom:1px solid var(--q-border); }
html body [data-mls] .q-chat-room-name { flex:1; min-width:0; }
html body [data-mls] .q-chat-room-name h4 { margin:0; font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-room-name p { font-size:10px; margin:4px 0 0; }
html body [data-mls] .q-chat-room-state { margin:8px 12px; font-size:11px; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-menu-tray .q-conversation-privacy { padding:12px; display:grid; gap:10px; border:0; border-top:1px solid var(--q-border); border-radius:0; font-size:11px; box-shadow:none; }
html body [data-mls] .q-chat-menu-tray .q-conversation-privacy[hidden] { display:none; }
html body [data-mls] .q-chat-idle { display:flex; min-height:300px; align-items:center; justify-content:center; flex-direction:column; gap:10px; text-align:center; color:var(--q-muted); }
html body [data-mls] .q-chat-idle > span > svg { width:46px; height:46px; color:var(--q-gold); }
html body [data-mls] .q-chat-idle h3 { font-size:20px; color:var(--q-text); margin:0; }
html body [data-mls] .q-chat-idle p { font-size:13px; margin:0; }
html body [data-mls][data-chat-has-room] .q-chat-idle,html body [data-mls]:not([data-chat-has-room]) .q-chat-room-header,html body [data-mls]:not([data-chat-has-room]) [data-mls-messages] { display:none; }
html body [data-mls] .q-chat-mobile-back { display:none; }
html body [data-mls] [data-mls-compose] { gap:8px; margin-top:12px; }
html body [data-mls] .q-chat-compose-row { display:flex; align-items:flex-end; gap:8px; }
html body [data-mls] .q-chat-compose-capsule { display:flex; align-items:flex-end; flex:1; min-width:0; gap:1px; padding:3px; border:1px solid var(--q-border); border-radius:25px; background:var(--q-bg); }
html body [data-mls] .q-chat-compose-capsule > textarea { flex:1; width:100%; min-width:0; min-height:40px; max-height:120px; border:0; border-radius:0; background:transparent; box-shadow:none; outline:none; resize:none; padding:10px 6px; font:400 14px/1.45 var(--q-font,system-ui); }
html body [data-mls] .q-chat-compose-capsule > .q-icon-btn { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; min-width:40px; padding:10px; border:0; border-radius:50%; box-shadow:none; background:transparent; margin:0; cursor:pointer; }
html body [data-mls] .q-chat-compose-capsule .q-icon-btn svg { width:20px; height:20px; }
html body [data-mls] .q-chat-compose-capsule:focus-within { border-color:var(--q-chat-send-ink); }
html body [data-mls] :is(.q-chat-compose-capsule, .q-chat-compose-capsule .q-icon-btn) > [hidden],
html body [data-mls] .q-chat-voice-draft[hidden] { display:none; }
html body [data-mls] [data-chat-voice-toggle] { touch-action:none; user-select:none; -webkit-touch-callout:none; }
html body [data-mls] [data-chat-voice-toggle] span { line-height:0; }
html body [data-mls] .q-chat-compose-row { display:flex; align-items:flex-end; gap:6px; }
html body [data-mls] .q-chat-compose-capsule { flex:1; min-width:0; }
html body [data-mls] .q-chat-compose-primary { flex:none; }
html body [data-mls] .q-chat-compose-primary > button { display:grid; place-items:center; width:46px; height:46px; padding:0; border-radius:50%; background:#dfedff; color:#102e54; border:1px solid #a9c2df; }
html body [data-mls] .q-chat-compose-primary > button[aria-pressed=true] { background:#ffdde1; color:#852334; }
html body [data-mls] .q-chat-compose-primary > [hidden], html body [data-mls] [data-missed-message][hidden] { display:none; }
html body [data-mls] button.q-call-record-menu {
    display:grid; place-items:center; min-width:44px; min-height:44px; padding:0;
    color:var(--q-muted); background:transparent; border:0; border-radius:50%; font-size:20px; cursor:pointer;
}
html body [data-mls] .q-call-record-menu svg { width:20px; height:20px; }
html body [data-mls] dialog.q-chat-removal {
    position:fixed; inset:0; margin:auto; box-sizing:border-box;
    width:min(410px,calc(100% - 32px)); max-width:100%; height:fit-content;
    max-height:min(90dvh,var(--q-chat-visible-height,90dvh)); overflow:auto; overscroll-behavior:contain;
    padding:24px; border:1px solid var(--q-border); border-radius:22px;
    background:var(--q-surface); color:var(--q-text); box-shadow:0 18px 65px #07132c38;
}
html body [data-mls] .q-chat-removal::backdrop { background:rgb(6 18 38 / .5); }
html body [data-mls] .q-chat-removal h2 { margin:0 0 18px; color:inherit; font-size:21px; line-height:1.25; letter-spacing:-.025em; }
html body [data-mls] .q-chat-removal h2:focus { outline:none; }
html body [data-mls] .q-chat-removal fieldset { margin:0; padding:0; border:0; min-width:0; }
html body [data-mls] .q-chat-removal label {
    display:grid; grid-template-columns:36px minmax(0,1fr) 20px; gap:12px; align-items:center;
    min-height:64px; box-sizing:border-box; padding:10px 12px; margin:0; cursor:pointer;
    border:1px solid transparent; border-radius:13px; color:var(--q-text); text-align:start;
}
html body [data-mls] .q-chat-removal label + label { margin-top:4px; }
html body [data-mls] .q-chat-removal label:has(input:checked) {
    background:color-mix(in srgb,var(--q-text) 5%,var(--q-surface));
    border-color:color-mix(in srgb,var(--q-text) 27%,var(--q-surface));
}
html body [data-mls] .q-chat-removal .q-removal-icon {
    display:grid; place-items:center; width:36px; height:36px; border-radius:50%;
    color:#18395f; background:#e2eeff;
}
html body [data-mls] .q-removal-icon svg { width:19px; height:19px; }
html body [data-mls] .q-chat-removal label strong, html body [data-mls] .q-chat-removal label small { display:block; }
html body [data-mls] .q-chat-removal strong { font-size:15px; line-height:1.35; }
html body [data-mls] .q-chat-removal small { color:var(--q-muted); font-size:13px; font-weight:400; line-height:1.4; margin-top:2px; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-removal input[type=radio] {
    appearance:auto; width:18px; height:18px; min-height:0; padding:0; margin:0; accent-color:var(--q-text);
}
html body [data-mls] .q-chat-removal[data-single-scope] label { grid-template-columns:36px minmax(0,1fr); background:transparent; border:0; padding:0; cursor:default; }
html body [data-mls] .q-chat-removal [hidden] { display:none; }
html body [data-mls] .q-chat-removal footer { position:static; display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0 0; padding:0; border:0; background:transparent; }
html body [data-mls] .q-chat-removal footer button {
    width:100%; min-height:46px; padding:9px 12px; border:1px solid var(--q-border); border-radius:12px;
    background:transparent; color:var(--q-text); font:inherit; font-weight:650; cursor:pointer;
}
html body [data-mls] .q-chat-removal footer [data-removal-confirm] { background:#ab3044; border-color:#ab3044; color:#fff; }
html body [data-mls] .q-chat-removal :is(button,input):focus-visible { outline:2px solid var(--q-text); outline-offset:2px; }
@media (max-width:600px) {
    html body [data-mls] dialog.q-chat-removal {
        inset:auto 0 0; margin:0; width:100%; max-width:none; padding:12px 20px max(18px,env(safe-area-inset-bottom));
        border-bottom:0; border-radius:24px 24px 0 0;
    }
    html body [data-mls] .q-chat-removal::before {
        content:""; display:block; width:34px; height:4px; margin:0 auto 17px;
        background:var(--q-border); border-radius:4px;
    }
}
html body [data-mls] .q-chat-attach > button { display:grid; place-items:center; width:42px; height:42px; }
html[data-theme][data-theme] body :is(.q-chat-compose-capsule .q-chat-attach > .q-icon-btn, [data-ai-compose] .q-ai-compose-tools > [data-ai-attach]) {
    background:transparent; border:0; border-radius:0; box-shadow:none;
}
html[data-theme][data-theme] body :is(.q-chat-compose-capsule .q-chat-attach > .q-icon-btn, [data-ai-compose] .q-ai-compose-tools > [data-ai-attach]):focus-visible {
    outline:2px solid currentColor; outline-offset:-2px;
}
html body [data-mls] [data-chat-attachments] { max-height:75dvh; overflow:auto; }
html body [data-mls] .q-chat-attachment-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(88px,1fr)); gap:8px; }
html body [data-mls] .q-chat-attachment-grid button { display:grid; justify-items:center; align-content:center; gap:7px; min-height:72px; padding:8px; background:var(--q-surface-2); border:1px solid var(--q-border); border-radius:14px; color:var(--q-text); font:inherit; cursor:pointer; }
html body [data-mls] .q-chat-attachment-grid svg { color:var(--q-chat-send-ink); }
html body [data-mls] svg.q-call-indicator { color:light-dark(#136844,#79d6a9); }
html body [data-mls] svg.q-call-indicator[data-call-direction=outgoing] { color:light-dark(#245c98,#9ac8ff); }
html body [data-mls] svg.q-call-indicator:is([data-call-outcome=missed],[data-call-outcome=unanswered],[data-call-outcome=declined]) { color:light-dark(#ad3444,#ffa6ad); }
html body [data-mls] svg.q-call-indicator[data-call-outcome=dropped] { color:light-dark(#8d5507,#ffd078); }
html body [data-mls] svg.q-call-indicator[data-call-outcome=cancelled] { color:var(--q-muted); }
.q-call-indicator[data-call-direction=incoming] .q-call-arrow { transform:rotate(180deg); transform-origin:19.5px 8.5px; }
.q-call-indicator :is(.q-call-cross,.q-call-break) { display:none; }
.q-call-indicator:is([data-call-outcome=missed],[data-call-outcome=unanswered],[data-call-outcome=dropped],[data-call-outcome=declined],[data-call-outcome=cancelled]) .q-call-cross,
.q-call-indicator[data-call-outcome=dropped] .q-call-break { display:inline; }
[data-phone-call-preview] .q-call-indicator { width:16px; height:16px; vertical-align:text-bottom; margin-inline-end:4px; }
html body [data-mls] [data-chat-voice-status] { flex:1; align-self:center; padding:5px; color:var(--q-muted); font-size:13px; font-variant-numeric:tabular-nums; }
html body [data-mls] .q-chat-voice-draft { display:flex; align-items:center; gap:6px; padding:4px 8px; border-radius:18px; background:var(--q-chat-received); }
html body [data-mls] .q-chat-voice-draft audio { flex:1; width:100%; min-width:0; height:38px; }
html body [data-mls] .q-chat-voice-draft button { flex-shrink:0; }
html body [data-mls] .q-chat-compose-notes { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
html body [data-mls] .q-chat-compose-notes span { font-size:11px; max-width:100%; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-text-action { border:0; background:none; padding:0; color:var(--q-gold); font:inherit; text-decoration:underline; cursor:pointer; }
html body [data-mls] .q-chat-message-menu { align-self:flex-end; }
html body [data-mls] .q-chat-message-more { font-size:20px; line-height:1; padding:4px 10px; color:var(--q-muted); }
html body [data-mls] .q-chat-message-menu .q-chat-menu-tray { position:static; width:220px; margin:5px 0; box-shadow:none; background:var(--q-bg); }
html body [data-mls] .q-chat-menu-tray .q-chips { display:grid; gap:2px; }
html body [data-mls] .q-chat-menu-tray > details { padding:12px; font-size:11px; }
html body [data-mls] .q-chat-protection-note { padding:12px 16px; font-size:11px; border-color:transparent; background:transparent; box-shadow:none; margin-top:14px; }
@media(max-width:900px) { html body [data-mls] .q-private-layout { grid-template-columns:minmax(230px,.9fr) minmax(0,1.4fr); } }
@media(max-width:760px) {
    html body [data-mls] .q-private-layout { display:block; }
    html body [data-mls] .q-private-layout > .q-panel { padding:16px; border-radius:20px; }
    html body [data-mls] .q-chat-mobile-back { display:grid; }
    html body [data-mls]:not([data-chat-has-room]) .q-private-conversation,html body [data-mls][data-chat-list-view] .q-private-conversation { display:none; }
    html body [data-mls][data-chat-has-room]:not([data-chat-list-view]) [data-chat-list-inbox] { display:none; }
    html body [data-mls] .q-chat-list-heading { margin-bottom:12px; }
    html body [data-mls] .q-chat-room-header { gap:6px; }
    html body [data-mls] .q-chat-room-name h4 { font-size:15px; }
    html body [data-mls] .q-chat-primary-actions { gap:0; }
}

/* Keep theme-wide field and icon treatments out of the compact chat chrome. */
html[data-theme][data-theme] body[data-workspace] [data-mls] :is(.q-chat-inbox-search input,.q-chat-compose-capsule > textarea) {
    border:0; background:transparent; outline:none; box-shadow:none; border-radius:0;
}
html[data-theme][data-theme] body[data-workspace] [data-mls] :is(.q-chat-primary-actions > .q-icon-btn,.q-chat-menu > summary.q-icon-btn,.q-chat-mobile-back,.q-chat-compose-capsule > .q-icon-btn) {
    border:0; box-shadow:none; background:transparent;
}
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-compose-capsule > .q-chat-send {
    background:var(--q-chat-send-fill); color:var(--q-chat-send-ink); border:0;
}
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-compose-capsule > [hidden] { display:none; }
html body [data-mls] [data-mls-rooms] > button { display:flex; align-items:center; gap:12px; border:0; box-shadow:none; background:transparent; }
html body [data-mls] [data-mls-rooms] > button[hidden] { display:none; }
html body [data-mls] .q-chat-contact-avatar { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:50%; background:var(--q-surface-3); color:var(--q-gold-2); font-size:13px; font-weight:600; }
html body [data-mls] .q-chat-contact-avatar { position:relative; overflow:hidden; }
html body [data-mls] .q-chat-contact-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
html body [data-mls] .q-chat-thread-avatar { border:1px solid var(--q-gold); }
html body [data-mls] [data-chat-thread-handle][hidden] { display:none; }
html body [data-mls] .q-chat-contact-name { min-width:0; overflow-wrap:anywhere; }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-protection-note { border:0; box-shadow:none; background:transparent; }
html body [data-mls] .q-chat-menu-tray .q-chat-protection-note { padding:10px 12px; margin:0; }
html body [data-mls] .q-chat-menu-tray .q-chat-protection-note summary { font-size:12px; cursor:pointer; }
html body [data-mls] .q-chat-menu-tray .q-chat-protection-note p { font-size:11px; line-height:1.7; }
@media(max-width:760px) {
    html body [data-mls][data-chat-has-room]:not([data-chat-list-view]) .q-private-conversation { display:flex; flex-direction:column; min-height:calc(100dvh - 190px); }
    html body [data-mls][data-chat-has-room] .q-private-messages { flex:1; min-height:150px; max-height:calc(100dvh - 350px); }
    html body [data-mls] [data-mls-compose] { margin-top:auto; padding-top:12px; }
    html body:has([data-mls][data-chat-has-room]:not([data-chat-list-view])) .q-ai-float { display:none; }
}
/* One page title; search and the tools tray share a single compact row. */
html body [data-mls] .q-chat-list-heading { gap:8px; margin-bottom:14px; }
html body [data-mls] .q-chat-list-heading .q-chat-inbox-search { flex:1; min-width:0; margin:0; }
html body [data-mls] .q-chat-list-heading .q-chat-primary-actions { gap:6px; }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-menu > summary.q-icon-btn {
    width:44px; height:44px; min-width:44px; border:1px solid var(--q-border); border-radius:13px;
    background:var(--q-surface-2); color:var(--q-text); padding:10px; box-shadow:none;
}
html body [data-mls] .q-chat-tray-icon { width:23px; height:23px; flex:none; }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-menu[open] > summary.q-icon-btn { border-color:var(--q-gold); color:var(--q-gold); }
html body [data-mls] .q-chat-message-more { display:grid; place-items:center; width:36px; height:36px; padding:8px; border-radius:10px; }
html body [data-mls] .q-chat-message-more svg { width:20px; height:20px; }
html body [data-mls] .q-chat-new-label { display:none; }
html[data-theme][data-theme] body[data-workspace] [data-mls] [data-chat-list-inbox] { border:0; box-shadow:none; background:transparent; }
html[data-theme][data-theme] body[data-workspace] [data-mls] [data-mls-rooms] > button { border:0; box-shadow:none; background:transparent; padding:14px 10px; margin:0; }
html[data-theme][data-theme] body[data-workspace] [data-mls] [data-mls-rooms] > button[aria-current=true] { background:var(--q-surface-2); }
@media(max-width:760px) {
    html body [data-mls] .q-private-layout > [data-chat-list-inbox] { padding:0 0 76px; }
    html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-primary-actions > button.q-chat-new {
        position:fixed; right:22px; bottom:calc(98px + env(safe-area-inset-bottom)); z-index:55;
        display:flex; align-items:center; justify-content:center; gap:9px; width:auto; min-width:56px; height:56px;
        padding:14px 18px; border-radius:19px; background:#0b1b35; color:#ffe2a0; border:1px solid #d4a843;
        box-shadow:0 6px 18px #07132c26;
    }
    html body [data-mls] .q-chat-new > svg { width:23px; height:23px; }
    html body [data-mls] .q-chat-new-label { display:inline; font:600 12px/1.3 var(--q-font,system-ui); white-space:nowrap; }
    html body:has([data-mls][data-chat-ready]:not([data-chat-has-room]),[data-mls][data-chat-list-view]) .q-ai-float { bottom:calc(166px + env(safe-area-inset-bottom)); }
}
/* Search expands only while it is being used. */
html body [data-mls] .q-chat-list-heading { justify-content:flex-end; }
html body [data-mls] .q-chat-search-control { flex:0 0 auto; min-width:0; }
html body [data-mls][data-chat-searching] .q-chat-search-control { flex:1; }
html body [data-mls] .q-chat-inbox-search[hidden],html body [data-mls] [data-chat-search-open][hidden] { display:none; }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-search-control > button.q-icon-btn { width:44px; height:44px; min-width:44px; padding:11px; border:0; border-radius:13px; background:var(--q-surface-2); color:var(--q-text); box-shadow:none; }
html body [data-mls] .q-chat-search-control .q-chat-inbox-search { min-height:44px; padding:5px 8px 5px 12px; gap:6px; }
html body [data-mls] .q-chat-inbox-search > button.q-icon-btn { flex:0 0 30px; width:30px; height:30px; min-width:30px; border:0; padding:6px; border-radius:50%; background:transparent; box-shadow:none; }
html body [data-mls] .q-chat-inbox-search > button.q-icon-btn svg { width:18px; height:18px; }
/* Chat workspace: one calm surface, with contextual tools and compact controls. */
html body:has([data-mls]) {
    --q-chat-canvas:var(--q-surface);
    --q-chat-received:var(--q-surface-2);
    --q-chat-sent:var(--q-surface-3);
    --q-chat-message-line:var(--q-border);
    --q-chat-send-fill:var(--q-ui-action,#304157);
    --q-chat-send-ink:var(--q-ui-action-ink,#edf4fc);
}
html[data-theme=light] body:has([data-mls]) {
    --q-chat-canvas:var(--q-chat-tone,#f2f7f8);
    --q-chat-received:#fcfdfd;
    --q-chat-sent:color-mix(in srgb,var(--q-ui-action,#e2ebf5) 85%,#a8bbce);
    --q-chat-message-line:color-mix(in srgb,var(--q-ui-selection-edge,#7487a0) 32%,white);
    --q-chat-send-fill:var(--q-ui-action,#e2ebf5);
    --q-chat-send-ink:var(--q-ui-action-ink,#304c6b);
}
html body [data-mls] { background:var(--q-surface); border-radius:20px; padding:14px; min-height:calc(100dvh - 190px); }

/* Use the original Adinkra cloth on the Chat canvas and sheets. */
html body :is([data-mls], .q-chat-conversation, [data-mls] .q-private-conversation) { position:relative; }
html body :is([data-mls], .q-chat-conversation, [data-mls] :is(.q-private-conversation, .q-chat-contact-sheet, .q-chat-status-editor, .q-chat-list-editor, .q-chat-connect-sheet)) { isolation:isolate; }
html body :is([data-mls], .q-chat-conversation, [data-mls] :is(.q-private-conversation, .q-chat-contact-sheet, .q-chat-status-editor, .q-chat-list-editor, .q-chat-connect-sheet))::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    border-radius:inherit;
    pointer-events:none;
    background-color:#e9c166;
    opacity:.125;
    mask:url('../adinkra-pattern.svg') 14px 8px / 320px 240px repeat;
}
html[data-theme=light] body :is([data-mls], .q-chat-conversation, [data-mls] :is(.q-private-conversation, .q-chat-contact-sheet, .q-chat-status-editor, .q-chat-list-editor, .q-chat-connect-sheet))::before {
    background-color:#07132c;
    opacity:.075;
}
@media(forced-colors:active), (prefers-contrast:more) {
    html body :is([data-mls], .q-chat-conversation, [data-mls] :is(.q-private-conversation, .q-chat-contact-sheet, .q-chat-status-editor, .q-chat-list-editor, .q-chat-connect-sheet))::before { display:none; }
}

html body [data-mls] .q-chat-sections { display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--q-border); margin:0 0 16px; padding:0 0 12px; }
html body [data-mls] .q-chat-sections > :is(button,a) { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 14px; border:0; border-radius:22px; background:transparent; color:var(--q-muted); font:600 12px/1.4 var(--q-font,system-ui); text-decoration:none; cursor:pointer; }
html body [data-mls] .q-chat-sections svg { width:18px; height:18px; }
html body [data-mls] .q-chat-connect-note { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:12px; background:var(--q-surface-2); color:var(--q-muted); font-size:11px; margin:0 0 14px; }
html body [data-mls] .q-chat-connect-note[hidden] { display:none; }
html body [data-mls] .q-chat-connect-note button { border:0; border-radius:10px; background:var(--q-navy); color:#ffe2a0; padding:8px 12px; font:600 11px var(--q-font,system-ui); cursor:pointer; }
html body [data-mls] .q-chat-connect-sheet { position:fixed; padding:25px 18px; border-radius:24px; width:min(440px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; }
html body [data-mls] .q-chat-connect-close { float:right; }
html body [data-mls][data-chat-contact-view] > :is([data-chat-shell],.q-chat-sections,[data-chat-connection],[data-mls-feedback]) { display:none; }
html body [data-mls][data-chat-contact-view] [data-chat-continue-without-history] { display:none; }
html body [data-mls] .q-chat-contact-entry:not([hidden]) { display:flex; flex-direction:column; min-height:min(55dvh,420px); gap:20px; }
html body [data-mls] .q-chat-contact-entry header { display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid var(--q-border); }
html body [data-mls] .q-chat-contact-entry header div { min-width:0; }
html body [data-mls] .q-chat-contact-entry h2 { margin:0; font-size:1.1rem; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-contact-entry small,html body [data-mls] .q-chat-entry-buttons p { color:var(--q-muted); }
html body [data-mls] .q-chat-entry-buttons { display:grid; justify-items:center; gap:10px; width:min(100%,32ch); margin:auto; text-align:center; }
html body [data-mls] .q-chat-entry-buttons p { margin:0; }
html body [data-mls] .q-chat-entry-buttons button { min-height:44px; }

html body [data-mls] .q-contact-safety[open] {
    display:flex; flex-direction:column; gap:0; padding:0; width:min(440px,calc(100% - 24px));
    max-height:calc(100dvh - 24px); margin:auto; overflow:hidden; border-radius:24px;
    color:var(--q-text); background:var(--q-surface); box-shadow:0 16px 64px #07162a30;
}
.q-contact-safety .q-review-head { display:flex; align-items:center; gap:10px; padding:16px 18px 10px; flex:none; }
.q-review-head h2 { flex:1; margin:0; font-size:1.16rem; letter-spacing:-.025em; }
.q-review-head h2:focus { outline:0; }
.q-review-shield { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#e9eff7; color:#223e60; }
.q-review-shield svg { width:20px; height:20px; }
html body [data-mls] .q-review-head button { width:44px; height:44px; border:0; background:transparent; box-shadow:none; color:var(--q-muted); }
.q-review-body { overflow-y:auto; overscroll-behavior:contain; min-height:0; padding:0 20px; }
.q-review-body .q-contact-people { margin:0; gap:10px; }
.q-review-body .q-contact-person { display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; column-gap:12px; row-gap:4px; padding:14px; border:0; border-radius:18px; }
.q-review-avatar { grid-row:1 / 3; display:grid; place-items:center; width:48px; height:48px; border-radius:50%; color:#e7cb8a; background:#172e4a; font-size:16px; font-weight:700; letter-spacing:.035em; }
.q-review-identity { min-width:0; display:grid; overflow-wrap:anywhere; }
.q-review-identity strong { font-size:1rem; line-height:1.3; }
.q-review-body .q-review-age { grid-column:2; color:var(--q-muted); font-size:.75rem; line-height:1.35; }
.q-review-body .q-contact-caution { grid-column:1 / -1; margin-top:8px; padding-inline-start:10px; border-inline-start:3px solid var(--q-gold); color:var(--q-text); font-size:.84rem; line-height:1.45; }
.q-review-body .q-chips { grid-column:1 / -1; gap:10px; margin:4px 0 -6px; }
html body [data-mls] .q-review-body .q-contact-person .q-chip { min-height:44px; padding:0 6px; border:0; box-shadow:none; background:transparent; color:var(--q-muted); gap:5px; }
.q-review-tips { margin-top:6px; color:var(--q-text); }
.q-review-tips summary { display:flex; align-items:center; gap:9px; min-height:44px; cursor:pointer; list-style:none; font-size:.88rem; font-weight:600; }
.q-review-tips summary::-webkit-details-marker { display:none; }
.q-review-tips summary svg { width:17px; height:17px; color:var(--q-muted); }
.q-review-tips summary svg:last-child { margin-inline-start:auto; transform:rotate(90deg); }
.q-review-tips[open] summary svg:last-child { transform:rotate(-90deg); }
.q-review-tips p { margin:0 0 9px 26px; font-size:.84rem; line-height:1.5; color:var(--q-muted); }
.q-contact-safety .q-review-footer { flex:none; padding:6px 20px max(16px,env(safe-area-inset-bottom)); }
.q-review-footer [data-contact-feedback]:empty { display:none; }
html body [data-mls] .q-review-footer .q-contact-continue { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:48px; margin:0; border:1px solid #425a78; border-radius:14px; background:#193452; color:white; font-weight:650; }
html body [data-mls] .q-review-footer .q-contact-continue:disabled { opacity:.55; }
html body [data-mls] .q-contact-safety:has([data-contact-report-form]:not([hidden])) :is(.q-contact-continue,.q-review-tips) { display:none; }
@media(max-width:600px) {
    html body [data-mls] .q-contact-safety[open] { width:100%; max-width:100%; margin:auto 0 0; border-radius:24px 24px 0 0; }
}
@media(prefers-reduced-motion:no-preference) {
    .q-review-tips summary svg:last-child { transition:transform .16s ease; }
}
html body [data-mls] .q-chat-connect-sheet .q-device-brand { display:none; }
html body [data-mls] .q-chat-connect-sheet .q-device-gate { margin:0; border:0; box-shadow:none; }
html body [data-mls] [data-chat-history-choice]:not([hidden]) { display:grid; gap:8px; width:100%; }
html body [data-mls] [data-chat-selected-contact]:not([hidden]) { color:var(--q-text); font-weight:650; }
html body [data-mls] [data-chat-history-choice]:has([data-chat-start-fresh]:not([hidden])) ~ .q-device-actions [data-device-primary] { background:transparent; color:var(--q-text); box-shadow:none; }
html body [data-mls] [data-chat-start-fresh][hidden] + #chat-fresh-description { display:none; }
html body [data-mls] [data-mls-feedback] { margin:0 0 12px; }
html body [data-mls] .q-chat-contact-detail { display:grid; flex:1; min-width:0; gap:4px; }
html body [data-mls] .q-chat-contact-detail > .q-chat-contact-name { font-weight:600; font-size:14px; }
html body [data-mls] .q-chat-contact-detail > small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--q-muted); font-size:12px; line-height:1.5; }
html body [data-mls] .q-chat-row-time { align-self:flex-start; color:var(--q-muted); font-size:10px; margin-top:5px; }
html body [data-mls] .q-chat-row-meta { display:grid; place-items:end; gap:4px; }
html body [data-mls] .q-chat-unread-count { display:inline-grid; place-items:center; min-width:19px; min-height:19px; padding-inline:4px; border-radius:20px; background:var(--q-navy,#0b1931); color:#fff5da; font-size:10px; font-weight:700; line-height:1; }
html body [data-mls] .q-chat-unread-count[hidden] { display:none; }
html body [data-mls] [data-chat-pane="messages"] { position:relative; }
html body [data-mls] [data-chat-message-count] { position:absolute; inset-block-start:1px; inset-inline-end:0; pointer-events:none; }
html body [data-mls] .q-chat-selection { display:flex; gap:7px; align-items:center; background:var(--q-surface-2); padding:6px; border-radius:14px; margin:10px 0; }
html body [data-mls] .q-chat-selection[hidden] { display:none; }
html body [data-mls] .q-chat-selection strong { flex:1; font-size:12px; }
html body [data-mls] [data-chat-picked] { outline:2px solid var(--q-gold); outline-offset:-2px; }
html body [data-mls][data-chat-selecting] [data-chat-room]::before { content:''; flex:none; width:18px; height:18px; border:1px solid var(--q-muted); border-radius:50%; }
html body [data-mls][data-chat-selecting] [data-chat-picked]::before { content:'✓'; display:grid; place-items:center; background:var(--q-navy); color:#ffe2a0; font-size:11px; }
html body [data-mls] [data-chat-locked=true] .q-chat-contact-avatar { color:var(--q-gold); border:1px solid var(--q-gold); }
html body [data-mls] .q-chat-new-label { display:none; }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-primary-actions > button.q-chat-new { width:52px; min-width:52px; height:52px; padding:13px; border-radius:18px; box-shadow:0 4px 14px #07132c24; }
html body [data-mls] .q-chat-new:active { transform:scale(.94); }
html body [data-mls] .q-chat-new:focus-visible { outline:3px solid var(--q-gold); outline-offset:3px; }
html body [data-mls] .q-chat-status-pane [data-status-index] > header { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:20px; }
html body [data-mls] .q-chat-status-pane h2 { font-size:20px; margin:0; }
html body [data-mls] .q-chat-status-pane header p { font-size:12px; color:var(--q-muted); margin:5px 0 0; }
html body [data-mls] .q-chat-status-card { border-bottom:1px solid var(--q-border); }
html body [data-mls] .q-chat-status-person { display:grid; grid-template-columns:42px minmax(0,1fr) auto 20px; align-items:center; gap:10px; width:100%; text-align:start; border:0; background:transparent; color:var(--q-text); padding:10px 4px; cursor:pointer; }
html body [data-mls] .q-chat-status-person strong { font-size:13px; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-status-person time { font-size:11px; color:var(--q-muted); }
html body [data-mls] .q-chat-status-mark { position:relative; display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--q-gold); border-radius:50%; color:var(--q-gold); background:var(--q-surface-2); }
html body [data-mls] .q-chat-status-mark img { position:absolute; inset:2px; width:calc(100% - 4px); height:calc(100% - 4px); object-fit:cover; border-radius:50%; }
html body [data-mls] .q-chat-status-mark img:not([src]) { display:none; }
html body [data-mls] .q-chat-status-badge { position:absolute; right:-5px; bottom:-3px; display:grid; place-items:center; width:21px; height:21px; background:var(--q-navy); color:#ffde8e; border-radius:50%; border:1px solid #e5bd62; }
html body [data-mls] .q-chat-status-badge svg { width:13px; height:13px; }
html body [data-mls] .q-chat-status-person svg { width:20px; height:20px; }
html body [data-mls] .q-chat-status-viewer { max-width:580px; margin-inline:auto; color:var(--q-text); }
html body [data-mls] .q-chat-status-pane [hidden] { display:none!important; }
html body [data-mls] .q-chat-status-viewer > :is(header,footer) { display:flex; align-items:center; gap:8px; }
html body [data-mls] .q-chat-status-identity { flex:1; min-width:0; margin-inline-start:4px; }
html body [data-mls] .q-chat-status-identity span { display:block; font-size:10px; color:var(--q-muted); }
html body [data-mls] .q-chat-status-viewer header h3 { margin:0; font-size:14px; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-status-viewer .q-chat-status-position { margin:8px 0; color:var(--q-muted); font-size:11px; }
html body [data-mls] .q-chat-status-progress { display:flex; flex-wrap:wrap; gap:4px; padding-block:8px; }
html body [data-mls] .q-chat-status-progress span { flex:1 0 8px; height:3px; border-radius:5px; background:linear-gradient(90deg,var(--q-gold) var(--moment-progress,0%),var(--q-border) var(--moment-progress,0%)); }
html body [data-mls] .q-chat-status-stage { display:grid; grid-template-columns:minmax(0,1fr) 42px; gap:7px; align-items:center; }
html body [data-mls] .q-chat-status-story { border-radius:16px; background:var(--q-surface-2); overflow:hidden; touch-action:pan-y; user-select:none; -webkit-touch-callout:none; }
html body [data-mls] .q-chat-status-story :is(img,video) { display:block; width:100%; max-height:50dvh; object-fit:contain; background:#0b1730; }
html body [data-mls] .q-chat-status-rail { display:grid; gap:8px; color:var(--q-text); }
html body [data-mls] .q-chat-status-rail button { display:grid; place-items:center; align-content:center; gap:2px; min-height:44px; padding:4px; border:0; background:none; color:inherit; cursor:pointer; }
html body [data-mls] .q-chat-status-rail button:disabled { cursor:default; }
html body [data-mls] .q-chat-status-rail svg { width:20px; height:20px; }
html body [data-mls] .q-chat-status-rail span { font-size:10px; font-variant-numeric:tabular-nums; }
html body [data-mls] .q-chat-status-rail .is-reacted { color:#d73d65; }
html body [data-mls] .q-chat-status-rail .is-reacted svg { fill:currentColor; }
html body [data-mls] .q-chat-status-reactions { display:flex; justify-content:center; flex-wrap:wrap; gap:4px; margin:8px 0 0; }
html body [data-mls] .q-chat-status-reactions button { border:0; min-width:44px; min-height:44px; color:var(--q-text); background:transparent; font-size:20px; cursor:pointer; }
html body [data-mls] .q-chat-status-reactions button[aria-pressed=true] { background:var(--q-surface-2); border-radius:12px; box-shadow:inset 0 0 0 1px var(--q-gold); }
html body [data-mls] [data-status-views-list] p { padding-block:7px; border-bottom:1px solid var(--q-border); font-size:12px; }
html body [data-mls] [data-status-views-list] small { margin-inline-start:8px; color:var(--q-muted); }
html body [data-mls] .q-chat-status-story p { margin:0; padding:10px 14px; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-status-viewer > [role=status]:empty { display:none; }
html body [data-mls] .q-chat-status-viewer footer { justify-content:space-between; }
html body [data-mls] .q-chat-status-viewer :is(header,footer) button { display:grid; place-items:center; width:44px; height:44px; padding:8px; border:0; background:none; color:var(--q-text); cursor:pointer; }
html body [data-mls] .q-chat-status-viewer :is(header,footer) button:disabled { opacity:.45; cursor:default; }
html body [data-mls] .q-chat-status-viewer :is(header,footer) svg { display:block; width:20px; height:20px; }
html body [data-mls] .q-chat-status-viewer [data-status-previous] svg { transform:rotate(180deg); }
html body [data-mls] .q-chat-status-viewer [aria-expanded=true] { color:var(--q-gold); }
html body [data-mls] .q-chat-status-comments { border-top:1px solid var(--q-border); padding:10px 4px; }
html body [data-mls] .q-chat-status-comments h4 { margin:0; font-size:13px; }
html body [data-mls] .q-chat-status-comments article { padding:8px 0; border-bottom:1px solid var(--q-border); font-size:12px; }
html body [data-mls] .q-chat-status-comments p { white-space:pre-wrap; overflow-wrap:anywhere; margin:4px 0; }
html body [data-mls] .q-chat-empty-copy { padding:40px 0; font-size:13px; color:var(--q-muted); text-align:center; }
html body [data-mls] .q-chat-status-editor { width:min(480px,calc(100vw - 24px)); padding:22px; max-height:90dvh; overflow:auto; border-radius:22px; }
html body [data-mls] .q-chat-status-editor > header { display:flex; justify-content:space-between; align-items:center; }
html body [data-mls] .q-chat-status-editor h2 { font-size:20px; margin:0; }
html body [data-mls] .q-chat-status-editor form { display:grid; gap:15px; }
html body [data-mls] .q-chat-status-editor label { display:grid; gap:7px; font-size:12px; }
html body [data-mls] .q-chat-status-editor :is(input,textarea,select) { max-width:100%; min-width:0; border:1px solid var(--q-border); background:var(--q-bg); color:var(--q-text); padding:12px; font:400 13px var(--q-font,system-ui); border-radius:12px; }
html body [data-mls] .q-chat-status-editor p { color:var(--q-muted); font-size:11px; line-height:1.6; }
html body [data-mls] .q-chat-status-upload { background:var(--q-surface-2); border-radius:15px; padding:16px; }
html body [data-mls] .q-chat-list-editor { width:min(460px,calc(100vw - 20px)); padding:22px; max-height:85dvh; border-radius:22px; }
html body [data-mls] .q-chat-list-editor .q-sheet-head { padding:0 0 15px; }
html body [data-mls] .q-chat-list-editor h4 { font-size:19px; line-height:1.3; margin:0; }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-list-editor .q-form input:not([type=checkbox]) { min-height:42px; padding:11px 12px; font-size:13px; border-radius:11px; box-shadow:none; outline-offset:2px; }
html body [data-mls] .q-chat-list-editor .q-form > label { font-size:12px; gap:7px; }
html body [data-mls] .q-chat-list-editor .q-chat-list-suggestions { gap:6px; }
html body [data-mls] .q-chat-list-editor .q-chat-list-suggestions button { padding:6px 10px; font-size:11px; min-height:30px; }
html body [data-mls] .q-chat-list-editor .q-chat-list-room-picker { border:0; border-top:1px solid var(--q-border); padding:14px 0 0; margin:4px 0; border-radius:0; max-height:180px; overflow:auto; }
html body [data-mls] .q-chat-list-editor .q-chat-list-room-picker legend { font-size:12px; padding:0 8px 0 0; }
html body [data-mls] .q-chat-list-editor p { font-size:11px; line-height:1.6; margin:5px 0; }
html body [data-mls] .q-chat-list-editor .q-chat-list-personal { border:0; border-radius:0; padding:0; box-shadow:none; }
html body [data-mls] .q-chat-list-editor .q-chat-list-personal summary { font-size:12px; padding:10px 0; }
html body [data-mls] .q-chat-list-editor [data-list-actions] { border:0; margin:14px 0 0; padding:0; }
html body [data-mls] .q-chat-list-editor [data-list-actions] .q-btn { min-height:42px; font-size:13px; padding:10px 18px; border-radius:13px; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float { display:flex; width:44px; height:44px; min-width:44px; min-height:44px; border-radius:15px; padding:7px; touch-action:none; user-select:none; box-shadow:0 3px 12px #07132c26; cursor:grab; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float :is(.q-ai-mark,svg) { width:29px; height:29px; min-width:0; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-mark-badge { font-size:7px; padding:1px 2px; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-float-label { display:none; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float:active { cursor:grabbing; }
@media(max-width:760px) {
    html body [data-mls] { padding:8px 0 0; border-radius:0; }
    html body [data-mls] .q-chat-sections { gap:5px; padding-bottom:10px; margin-bottom:12px; }
    html body [data-mls] .q-chat-sections > :is(button,a) { flex:1; padding:8px 6px; }
    html body [data-mls] .q-chat-list-editor { margin:auto auto 10px; padding:20px; width:calc(100vw - 20px); }
    html body [data-mls] .q-chat-list-heading { margin-bottom:10px; }
}
html body [data-mls] .q-chat-calls-pane h2 { font-size:20px; margin:10px 0 20px; }
html body [data-mls] .q-chat-call-row { display:flex; gap:12px; align-items:center; padding:15px 0; border-bottom:1px solid var(--q-border); }
html body [data-mls] .q-chat-call-row>span { width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:var(--q-surface-2); color:var(--q-gold); }
html body [data-mls] .q-chat-call-row>div { flex:1; min-width:0; }
html body [data-mls] [data-phone-open-room] { display:flex; flex:1; min-width:0; align-items:center; gap:9px; padding:0; min-height:44px; border:0; background:transparent; color:inherit; font:inherit; text-align:start; cursor:pointer; }
html body [data-mls] .q-phone-contact-detail { display:grid; min-width:0; gap:2px; overflow-wrap:anywhere; }
html body [data-mls] [data-phone-call-preview] { font-size:12px; color:var(--q-muted); }
html body [data-mls] [data-phone-missed] [data-phone-call-preview] { color:var(--q-red); }
html body [data-mls] .q-phone-contact-detail :empty { display:none; }
html body [data-mls] .q-chat-call-row strong { font-size:13px; }
html body [data-mls] .q-chat-call-row p,html body [data-mls] .q-chat-call-row time { font-size:10px; color:var(--q-muted); }
html body [data-mls] .q-chat-call-row .q-chat-call-return { color:#087845; border-color:#4a9a73; background:#e5f7ed; }
html body [data-mls] .q-chat-call-row .q-chat-call-return:hover { color:#075b36; background:#d1f0df; }
html body [data-mls] [data-mls-rooms]:has(> [data-missed-shortcut]) {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
}
html body [data-mls] [data-mls-rooms]:has(> [data-missed-shortcut]) > * { grid-column:1 / -1; }
html body [data-mls]:not([data-chat-selecting]) [data-mls-rooms] > [data-row-missed-call] { grid-column:1; }
html body [data-mls] [data-mls-rooms] > [data-missed-shortcut] { grid-column:2; margin-inline-end:6px; }
html body [data-mls] [data-mls-rooms] > button[hidden] + [data-missed-shortcut],
html body [data-mls][data-chat-selecting] [data-missed-shortcut] { display:none; }
html body [data-mls] [data-missed-preview] {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
    color:#96334a;
    font-size:.75rem;
    line-height:1.3;
}
html body [data-mls] [data-missed-preview] > svg { flex:none; width:14px; height:14px; }
html[data-theme=dark] body [data-mls] [data-missed-preview] { color:#ff9eac; }
html body [data-mls] .q-chat-missed-message {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    align-self:center;
    gap:9px;
    width:fit-content;
    max-width:100%;
    margin:2px 0;
    padding:5px 7px 5px 10px;
    border:1px solid var(--q-border);
    border-radius:15px;
    background:var(--q-surface);
    color:var(--q-text);
    font-size:.8rem;
}
html body [data-mls] .q-chat-missed-message time { display:block; margin-block-start:3px; color:var(--q-muted); font-size:.6875rem; }
html body [data-mls] .q-chat-missed-mark { display:grid; place-items:center; color:#a93651; }
html[data-theme=dark] body [data-mls] .q-chat-missed-mark { color:#ff9eac; }
html body [data-mls] .q-chat-missed-mark svg { width:20px; height:20px; }
html body [data-mls] button.q-chat-missed-callback {
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid transparent;
    border-radius:12px;
    background:transparent;
    color:#087845;
    cursor:pointer;
}
html body [data-mls] button.q-chat-missed-callback:is(:hover,:focus-visible) { border-color:currentColor; }
html[data-theme=dark] body [data-mls] button.q-chat-missed-callback { color:#8adeac; }
html body [data-mls] button.q-chat-missed-callback svg { width:20px; height:20px; }
html body [data-mls] .q-chat-missed-feedback { margin:5px 8px; color:var(--q-text); font-size:.8125rem; }
html body [data-mls] .q-chat-call-row .q-chat-call-spam { color:var(--q-muted); }
html body [data-mls] .q-chat-call-row[data-chat-missed] > span,
html body [data-mls] .q-chat-call-row[data-chat-missed] p { color:var(--q-red); }
html body [data-mls] [data-chat-missed-count]:not([hidden]) { background:var(--q-red); color:white; border-color:var(--q-surface); }
html body [data-mls] .q-chat-contact-sheet { max-width:450px; }
html body [data-mls] .q-chat-contact-sheet .q-sheet-head { align-items:center; gap:10px; margin-bottom:16px; }
html body [data-mls] .q-chat-contact-sheet .q-sheet-head h2 { flex:1; min-width:0; font-size:clamp(18px,5vw,23px); line-height:1.25; margin:0; }
html body [data-mls] .q-chat-contact-sheet :is(.q-form,.q-btn,.q-chip,.q-icon-btn,.q-qps-consent)[hidden] { display:none!important; }
html body [data-mls] .q-chat-handle-matches { margin:0; padding:0; list-style:none; }
html body [data-mls] .q-chat-handle-matches:empty,
html body [data-mls] [data-contact-lookup-feedback]:empty { display:none; }
html body [data-mls] .q-chat-handle-matches li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px; }
html body [data-mls] .q-chat-handle-match { display:flex; align-items:center; gap:12px; min-width:0; min-height:56px; padding:8px; border:0; border-radius:12px; background:transparent; color:var(--q-text); font:inherit; text-align:start; text-decoration:none; cursor:pointer; }
html body [data-mls] .q-chat-handle-match:is(:hover,:focus-visible) { background:var(--q-surface-2); }
html body [data-mls] .q-chat-handle-match > svg { flex:none; width:20px; height:20px; color:var(--q-gold-2); }
html body [data-mls] .q-chat-contact-profile { width:44px; height:44px; }
html body [data-mls] .q-chat-handle-matches .q-chat-contact-avatar { position:relative; overflow:hidden; }
html body [data-mls] .q-chat-handle-matches img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
html body [data-mls] .q-chat-contact-sheet .q-form { gap:12px; margin:0; }
html body [data-mls] .q-chat-contact-sheet [role="status"]:empty, html body [data-mls] .q-chat-contact-sheet [data-phone-result]:empty { display:none; }
html body [data-mls] .q-chat-contact-sheet [data-phone-verify-self], html body [data-mls] .q-chat-contact-sheet [data-phone-discovery-setting] { margin-top:12px; }
html body [data-mls] .q-chat-contact-sheet [data-phone-feedback] { margin:12px 0; }
@media (max-width:600px) { html body [data-mls] .q-chat-contact-sheet { max-width:none; } }
@media (max-width:420px) { html body [data-mls] .q-chat-call-row { gap:6px; } }
html body[data-workspace] main[data-screen-name="app.chat"] { background:var(--q-surface); }
html body [data-mls] [data-mls-new] { padding-block:8px 16px; }
html body [data-mls] [data-mls-new] .q-sheet-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
html body [data-mls] [data-mls-new] h2 { flex:1; font-size:17px; line-height:1.3; margin:0; }
html body [data-mls] [data-mls-new] :is(.q-form,.q-icon-btn)[hidden],
html body [data-mls] [data-mls-new]:not([hidden]) ~ :is([data-mls-rooms],[data-chat-empty-inbox],[data-chat-empty-filtered]) { display:none!important; }
html body [data-mls] [data-mls-new] .q-form { gap:8px; margin:0; }
html body [data-mls] [data-mls-new] .q-form input[type="search"] { min-height:44px; border-radius:14px; }
html body [data-mls] [data-mls-new] [data-mls-contacts] { border:0; padding:10px 0; margin:0; max-height:260px; overflow:auto; }
html body [data-mls] [data-mls-new] [data-mls-contacts] legend { font-size:12px; color:var(--q-muted); }
html body [data-mls] [data-mls-new] .q-qps-consent { border:0; display:flex; align-items:center; gap:10px; min-height:46px; font-size:14px; }
html body [data-mls] .q-chat-group-options { font-size:12px; border-top:1px solid var(--q-border); padding:12px 0; }
html body [data-mls] .q-chat-group-options summary { cursor:pointer; color:var(--q-muted); }
html body [data-mls] .q-chat-group-options label { margin-top:12px; }
html body [data-mls] [data-mls-new] .q-sub { font-size:11px; line-height:1.6; }
@media(max-width:760px) { html body[data-workspace] main[data-screen-name="app.chat"] { padding:12px 14px 110px; } }

/* Icon navigation keeps the conversation area in focus. */
html body [data-mls] .q-chat-sections { gap:12px; padding-bottom:8px; margin-bottom:8px; }
html body [data-mls] .q-chat-sections > button { flex:0 0 48px; width:48px; height:44px; padding:7px; border-radius:16px; transition:background .15s ease,color .15s ease,transform .15s ease; }
html body [data-mls] .q-chat-sections > button > svg { flex:none; width:27px; height:27px; }
html body [data-mls] .q-chat-sections > button:active { transform:scale(.94); }
html body [data-mls] .q-chat-sections > button:focus-visible { outline:2px solid var(--q-gold); outline-offset:3px; }

html body[data-workspace][data-workspace] .q-ai-float.q-ai-float { display:grid; place-items:center; padding:0; overflow:hidden; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float > .q-ai-mark { display:grid; place-items:center; flex:0 0 auto; width:32px; height:32px; min-width:0; max-width:32px; margin:0; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-mark > .q-ai-mark-logo { display:block; width:28px; height:28px; max-width:100%; object-fit:contain; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-mark > svg { display:none; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-mark > small { right:0; bottom:0; padding:1px 2px; font-size:6px; line-height:1; border-radius:3px; }
html body[data-workspace][data-workspace] .q-ai-float.q-ai-float::before { inset:0; border-radius:inherit; }
@media(max-width:760px) { html body[data-workspace][data-workspace]:has([data-mls]) .q-ai-float.q-ai-float { left:22px; right:auto; bottom:calc(102px + env(safe-area-inset-bottom)); } }
/* Keep navigation, filters and tools together; search belongs to the page header. */
html body [data-mls] .q-chat-section-utilities { position:relative; display:flex; gap:4px; margin-left:auto; align-items:center; }
html body [data-mls] .q-chat-section-utilities [data-chat-filter] { position:static; }
html body [data-mls] .q-chat-section-utilities summary.q-icon-btn { width:42px; height:44px; padding:10px; border-radius:14px; }
html body [data-mls] .q-chat-sections { gap:6px; }
html body [data-mls] .q-chat-section-utilities summary.q-icon-btn > svg { width:23px; height:23px; }
html body [data-mls] .q-chat-sections > button[aria-pressed=true],
html body [data-mls] [data-chat-filter][data-active=true] > summary {
    background:var(--q-ui-selection);
    color:var(--q-ui-selection-ink);
    border:1px solid var(--q-ui-selection-edge);
}
html body [data-mls] {
    --q-contact-fill: #d7e8f8;
    --q-contact-ink: #163457;
    --q-contact-edge: rgb(22 52 87 / 28%);
}
html[data-theme=light] body [data-mls] { --q-contact-fill: #e8f2fc; }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-primary-actions > button.q-chat-new {
    background:var(--q-contact-fill);
    color:var(--q-contact-ink);
    border:1px solid var(--q-contact-edge);
}
html body [data-mls] [data-chat-list-choices] { display:grid; gap:4px; padding-bottom:10px; margin-bottom:8px; border-bottom:1px solid var(--q-border); }
html body [data-mls] [data-chat-list-choices] > button { text-align:left; padding:12px 14px; border:0; border-radius:12px; background:transparent; color:var(--q-text); font:500 13px/1.4 var(--q-font,system-ui); cursor:pointer; }
html body [data-mls] [data-chat-list-choices] > button[aria-pressed=true] { background:var(--q-surface-2); color:var(--q-gold); }
html body[data-workspace]:has([data-mls]) .q-topbar .q-chat-header-search { display:grid!important; place-items:center; width:40px; height:40px; min-width:40px; padding:9px; border:0; box-shadow:none; border-radius:14px; background:transparent; color:var(--q-text); }
html body[data-workspace]:has([data-mls]) .q-topbar .q-chat-header-search svg { width:22px; height:22px; }
html body[data-workspace]:has([data-mls]) .q-topbar .q-chat-header-search[hidden] { display:none!important; }
html body[data-workspace]:has([data-mls]) .q-command-trigger { display:none; }
html body [data-mls]:not([data-chat-searching]) .q-chat-list-heading { margin:0; height:0; }
html body [data-mls] .q-chat-new { position:relative; }
html body [data-mls] .q-chat-primary-actions > button.q-chat-new > svg { width:27px; height:27px; }
html body [data-mls][data-chat-show-status] .q-chat-new { display:none!important; }
html body [data-mls] .q-chat-empty-state { margin:28px auto; display:grid; justify-items:center; gap:8px; text-align:center; padding:8px 16px; }
html body [data-mls] .q-chat-empty-state img { display:block; width:min(210px,65vw); height:auto; max-width:100%; }
html body [data-mls] .q-chat-empty-state figcaption { font:500 14px/1.5 var(--q-font,system-ui); color:var(--q-muted); }
html body [data-mls] .q-chat-empty-state figcaption { font-family:var(--q-font,Arial),sans-serif; }
html body [data-mls] [data-chat-empty-inbox][hidden],html body [data-mls] [data-chat-empty-filtered][hidden] { display:none; }
html body [data-mls] .q-chat-idle > .q-chat-empty-state { display:grid; }

html body [data-mls] .q-chat-empty-start {
    display: block;
    margin: 0 auto 18px;
    padding: 0;
    color: var(--q-text);
    background: transparent;
    border: 0;
    cursor: pointer;
}
html body [data-mls] .q-chat-empty-start img { display: block; width: min(190px, 100%); height: auto; margin: 0 auto 8px; }
html body [data-mls] .q-chat-empty-start:focus-visible { outline: 2px solid var(--q-gold); outline-offset: 6px; border-radius: 16px; }
html body [data-mls] .q-chat-contact-picker .q-chat-new-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 13px;
    background: var(--q-surface);
    border: 1px solid var(--q-border);
    border-radius: 999px;
}
html body [data-mls] .q-chat-new-search svg { width: 18px; height: 18px; flex: none; color: var(--q-muted); }
html[data-theme][data-theme] body[data-workspace] [data-mls] .q-chat-new-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}
html body [data-mls] .q-chat-new-search:focus-within { outline: 2px solid var(--q-gold); outline-offset: 2px; }
html body [data-mls] .q-chat-contact-actions {
    display: grid;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--q-border);
}
html body [data-mls]:has([data-mls-new]:not([hidden])) :is(.q-chat-new,.q-chat-filter,.q-chat-primary-actions > details) { display: none!important; }
html body [data-mls] .q-chat-contact-actions button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 6px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--q-text);
    text-align: start;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
html body [data-mls] .q-chat-contact-actions button:is(:hover,:focus-visible) { background: var(--q-surface-2); }
html body [data-mls] .q-chat-contact-actions button > svg {
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 50%;
    border: 1px solid var(--q-contact-edge);
    background: var(--q-contact-fill);
    color: var(--q-contact-ink);
}
html body [data-mls] .q-chat-contact-actions small { display: block; font-size: 12px; font-weight: 400; color: var(--q-muted); }
html body [data-mls] .q-chat-contacts-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-inline: 8px 0; }
html body [data-mls] .q-chat-contacts-heading h3 { margin: 0; font-size: 14px; color: var(--q-text); }
html body [data-mls] [data-contact-filter-toggle] { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; box-shadow: none; background: transparent; color: var(--q-text); cursor: pointer; }
html body [data-mls] [data-contact-filter-toggle] svg { width: 19px; height: 19px; }
html body [data-mls] [data-contact-filter-toggle]:focus-visible { outline: 2px solid var(--q-gold); outline-offset: -2px; }
html body [data-mls] [data-contact-directory] .q-chat-handle-match { width: 100%; }
html body [data-mls] [data-contact-directory] .q-chat-contact-avatar { position: relative; overflow: hidden; }
html body [data-mls] [data-contact-directory] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html body [data-mls] [data-contact-empty] { margin: 0 8px; }
html body [data-mls] :is([data-contact-directory],[data-contact-open-feedback]):empty,
html body [data-mls] .q-chat-contact-actions button[hidden],
html body [data-mls] [data-contact-directory] button[hidden],
html body [data-mls] :is([data-contact-filter],[data-contact-filter-toggle],[data-contact-empty],[data-contact-no-match],[data-phone-invite-sms])[hidden] { display: none!important; }

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    html body [data-mls] .q-chat-contact-picker:not([hidden]) {
        position: fixed;
        inset-inline: 0;
        top: var(--q-chat-visible-top, 0px);
        z-index: 60;
        box-sizing: border-box;
        height: var(--q-chat-visible-height, 100dvh);
        overflow-y: auto;
        overscroll-behavior: contain;
        scroll-padding-block: 12px;
        padding: max(12px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));
        background: var(--q-surface);
    }
    html body:has(main [data-mls-new]:not([hidden])) :is(.q-topbar,.q-bottomnav,.q-ai-float) { visibility: hidden; }
    html body [data-mls] dialog.q-sheet[open] {
        box-sizing: border-box;
        position: fixed;
        top: auto;
        bottom: max(0px,calc(100% - var(--q-chat-visible-top,0px) - var(--q-chat-visible-height,100dvh)));
        margin: 0 auto;
        max-height: var(--q-chat-visible-height,100dvh);
        overflow-y: auto;
        overscroll-behavior: contain;
        scroll-padding-block: 12px;
    }
    html body [data-mls] :is(.q-chat-contact-picker,dialog.q-sheet) :is(input[type=search],input[type=tel],input[type=text],input:not([type]),textarea,select) { font-size: 16px; }
}
html body[data-workspace]:has(main[data-screen-name="app.calls.show"]) :is(.q-rail, .q-topbar, .q-bottomnav, .q-ai-float) { display:none; }
html body[data-workspace] main.q-content[data-screen-name="app.calls.show"] > :not(.q-talk-call) { display:none; }
html body[data-workspace] main.q-content[data-screen-name="app.calls.show"] { width:100%; max-width:none; padding:0; }
html body .q-talk-call {
    position:fixed;
    inset:0;
    z-index:110;
    width:100%;
    margin:0;
    overflow:auto;
    overscroll-behavior:contain;
}
html body .q-talk-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height:100dvh;
    padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
    background: radial-gradient(ellipse at 50% 34%, #1b3358, #0a172d 76%);
    color: #f7f9ff;
}
html body .q-talk-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: url("../adinkra-pattern.svg") center / 300px auto repeat;
    opacity: .11;
    pointer-events: none;
}
html body .q-talk-top { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; }
html body .q-talk-brand { display:inline-flex; justify-content:center; align-items:center; gap:7px; color:#ffdc8c; font-weight:700; }
html body .q-talk-brand svg { width:22px; height:22px; }
html body .q-talk-back { display: inline-flex; min-height: 44px; gap: 6px; align-items: center; color: #ffdc8c; font-size: .875rem; }
html body .q-talk-back svg { width: 20px; height: 20px; }
html body .q-talk-options { position:relative; z-index:2; justify-self:end; }
html body .q-talk-options > summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; list-style: none; background: #ffffff10; border: 1px solid #ffffff45; color: #ffdc8c; }
html body .q-talk-options > summary::-webkit-details-marker { display: none; }
html body .q-talk-option-panel {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    width: min(290px, calc(100vw - 64px));
    max-height: 55svh;
    overflow: auto;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--q-border);
    background: var(--q-surface);
    color: var(--q-text);
    box-shadow: 0 12px 32px #0004;
}
html body .q-talk-option-panel h3 { margin: 0; font-size: .95rem; }
html body .q-talk-option-panel .q-call-person > button { width: 40px; height: 40px; padding: 8px; }
html body .q-talk-option-panel .q-call-person > span { overflow-wrap: anywhere; }
html body .q-talk-option-panel .q-call-invite form { margin-top: 10px; }
html body .q-talk-safety { margin: 12px 0; font-size: .85rem; }
html body .q-talk-safety summary { cursor: pointer; }
html body .q-talk-identity { display:grid; justify-items:center; gap:10px; margin:auto 0; padding:24px 0; text-align:center; }
html body .q-talk-person-mark {
    display: grid;
    place-items: center;
    position:relative;
    width:min(46vw, 31dvh, 236px);
    min-width:76px;
    aspect-ratio:1;
    overflow:hidden;
    border-radius:clamp(18px,5vw,38px);
    border:2px solid #dcba73;
    box-shadow:0 0 0 6px #ead09519, 0 20px 56px #03091375;
    background: #0b1b35;
    color: #ffdc8c;
    font-size:clamp(28px, 8vw, 58px);
    font-weight: 650;
}
html body .q-talk-person-mark svg { width: 45%; height: 45%; }
html body .q-talk-person-mark img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
html body .q-talk-person-mark [data-call-initials]:empty,
html body .q-talk-person-mark:has([data-call-initials]:not(:empty)) > svg { display:none; }
html body .q-talk-identity h1 { margin:8px 0 0; color:inherit; font-size:clamp(25px,5vw,46px); line-height:1.12; overflow-wrap:anywhere; }
html body .q-talk-presence { margin: 0; color: #d6e3f7; font-size: .875rem; }
html body .q-talk-identity .q-call-clock { padding: 0; border: 0; color: #ffdc8c; font-size: .85rem; }
html body .q-talk-call .q-call-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); width: min(100%, 620px); align-self: center; gap: 10px; }
html body .q-talk-call .q-call-tiles:has(> .q-call-tile:only-child) { width: min(100%, 380px); }
html body .q-talk-call .q-call-tile { min-height: 90px; max-height: 260px; aspect-ratio: 16/9; border-radius: 15px; background: #0b1b35; border-color: #ffffff3a; }
html body .q-talk-call .q-call-self:has(.q-camera-idle),
html body .q-talk-call .q-call-tile:has(video:not(.q-camera-idle)) .q-call-avatar { display: none; }
html body .q-talk-call .q-call-avatar { color: #ffdc8c; font-size: 1.3rem; font-weight: 650; }
html body .q-talk-call .q-call-tile > span { color: #fff; }
html body .q-talk-call .q-call-tiles:not(:has(video:not(.q-camera-idle), [data-peer] button:not([hidden]))) {
    position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
}
html body .q-talk-call:has([data-peer] video:not(.q-camera-idle)) .q-talk-identity { margin:0; padding:10px 0; }
html body .q-talk-call:has([data-peer] video:not(.q-camera-idle)) .q-talk-person-mark { display:none; }
html body .q-talk-call .q-call-tiles:has([data-peer] video:not(.q-camera-idle)) {
    position:relative;
    min-height:0;
    flex:1;
    width:min(100%, 1020px);
    align-content:center;
}
html body .q-talk-call .q-call-tile[data-peer]:has(video:not(.q-camera-idle)) { max-height:min(60dvh,560px); }
html body .q-talk-call .q-call-tiles:has(> .q-call-self + [data-peer]:last-child video:not(.q-camera-idle)) {
    grid-template-columns:1fr;
}
html body .q-talk-call .q-call-tiles:has(> .q-call-self + [data-peer]:last-child video:not(.q-camera-idle)) .q-call-self {
    position:absolute; z-index:1; inset-block-end:10px; inset-inline-end:10px; width:clamp(76px,22vw,154px); min-height:0;
}
html body .q-talk-call .q-talk-feedback { min-height: 1.4em; margin: 8px 0 0; color: #fce5b9; font-size: .82rem; text-align: center; }
html body .q-talk-feedback:empty { visibility: hidden; }
html body .q-talk-call .q-call-controls { gap:clamp(6px,1.4vw,14px); margin:12px auto 0; flex-wrap:wrap; justify-content:center; }
html body .q-talk-call:not(.q-call-joined) .q-call-controls > :is([data-mute],[data-camera],[data-speaker]) { display:none; }
html body .q-talk-call .q-call-controls .q-call-control {
    width: 52px;
    min-width: 0;
    height: 52px;
    padding: 5px;
    border: 1px solid #ffffff42;
    border-radius: 16px;
    background: #ffffff13;
    color: #f7f9ff;
    cursor: pointer;
}
html body .q-talk-call .q-call-controls .q-call-control > svg { width: 20px; height: 20px; }
html body .q-talk-call .q-call-controls .q-call-control > span { font-size: 10px; line-height: 1; }
html body .q-talk-call .q-call-controls [data-join] { width: auto; min-width: 72px; padding-inline: 10px; }
html body .q-talk-call .q-call-controls .q-talk-join-primary { background:#176343; border-color:#72b598; color:#fff; }
html body .q-talk-call .q-call-controls [aria-pressed="true"] { background: #ffffff31; border-color: #f1c87780; }
html body .q-talk-call .q-call-controls .q-call-end { background: #a92c42; border-color: #df7c8b; color: #fff; }
html body .q-talk-call .q-call-controls [aria-pressed="true"]::after,
html body .q-talk-call .q-call-controls [data-camera][aria-pressed="false"]:not(:disabled)::after { top: 18px; width: 21px; left: calc(50% - 10px); }
html body .q-talk-call .q-call-controls :is([data-camera], [data-share-screen])[aria-pressed="true"]::after { content: none; }
html body .q-talk-call [hidden] { display: none !important; }
html body .q-talk-call[data-call-phase]:not([data-call-phase=""],[data-call-phase="ended"]) .q-talk-presence::before {
    content:"";
    display:inline-block;
    vertical-align:.13em;
    width:7px;
    height:7px;
    margin-inline-end:8px;
    border-radius:50%;
    background:#e6bd66;
}
@media(prefers-reduced-motion:no-preference) {
    html body .q-talk-call[data-call-phase="dialing"] .q-talk-person-mark,
    html body .q-talk-call[data-call-phase="connecting"] .q-talk-person-mark { animation:qash-call-search 2.2s ease-in-out infinite; }
    html body .q-talk-call[data-call-phase="ringing"] .q-talk-person-mark,
    html body .q-incoming-call[open] .q-talk-person-mark { animation:qash-call-pulse 2s ease-out infinite; }
    @keyframes qash-call-search {
        50% { box-shadow:0 0 0 8px #ead09530, 0 20px 56px #03091375; }
    }
    @keyframes qash-call-pulse {
        0% { box-shadow:0 0 0 0 #f3ce8466, 0 0 0 0 #f3ce843e, 0 20px 56px #03091375; }
        58%,100% { box-shadow:0 0 0 12px #f3ce8400, 0 0 0 22px #f3ce8400, 0 20px 56px #03091375; }
    }
}
html body .q-talk-sound { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding-inline:12px; border:1px solid #e4c78670; border-radius:13px; background:#ffffff12; color:#ffdc8c; font:inherit; cursor:pointer; }
html body .q-talk-sound svg { width:18px; height:18px; }

html body [data-call-direct] .q-talk-stage {
    --talk-ink: #f4f7ff;
    --talk-line: #8da8d338;
    --talk-gold: #f2ce85;
    padding-inline: max(18px, env(safe-area-inset-left), env(safe-area-inset-right));
    background:
        radial-gradient(ellipse at 50% 40%, #29466b 0%, #152b4a 35%, transparent 72%),
        linear-gradient(160deg, #132541, #07132c 75%);
}
html body [data-call-direct] .q-talk-stage::before {
    background-size: 245px auto;
    opacity: .15;
    mask-image: radial-gradient(ellipse at 50% 44%, transparent 8%, #000 80%);
}
html body [data-call-direct] .q-talk-top {
    width: min(100%, 900px);
    margin-inline: auto;
    padding-block-end: 12px;
    border-block-end: 1px solid var(--talk-line);
}
html body [data-call-direct] .q-talk-brand { color: var(--talk-gold); font-size: .875rem; letter-spacing: .035em; }
html body [data-call-direct] .q-talk-back { width: fit-content; min-width: 44px; color: var(--talk-ink); }
html body [data-call-direct] .q-talk-options > summary { border-radius: 15px; color: var(--talk-ink); }
html body [data-call-direct] .q-talk-option-actions:has(button:not([hidden])) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-block-end: 12px;
}
html body [data-call-direct] .q-talk-option-actions > button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding-inline: 9px;
    border: 1px solid var(--q-border);
    border-radius: 11px;
    background: var(--q-surface);
    color: var(--q-text);
    font: inherit;
    font-size: .75rem;
    cursor: pointer;
}
html body [data-call-direct] .q-talk-option-actions > button[aria-pressed="true"] {
    border-color: var(--q-gold);
    background: var(--q-surface-3);
}
html body [data-call-direct] .q-talk-option-actions svg { width: 16px; height: 16px; }
html body [data-call-direct] .q-talk-identity { gap: 6px; padding: clamp(16px, 4dvh, 40px) 0; }
html body [data-call-direct] .q-talk-identity h1 {
    max-width: min(90%, 560px);
    margin-block-start: 20px;
    font-size: clamp(25px, 4vw, 42px);
    letter-spacing: -.035em;
    text-wrap: balance;
}
html body [data-call-direct] .q-talk-person-mark {
    width: clamp(104px, min(57vw, 38dvh), 278px);
    border-width: 1px;
    border-radius: clamp(24px, 8vw, 48px) 17px clamp(24px, 8vw, 48px) 17px;
    box-shadow: 0 0 0 7px #f3ce8418, 0 18px 48px #050d2066;
    background: linear-gradient(140deg, #2d4970, #112747);
}
html body [data-call-direct] .q-talk-person-mark:has(> img:not([hidden])) > [data-call-initials] { visibility: hidden; }
html body [data-call-direct] .q-talk-presence {
    color: #d3e0f5;
    line-height: 1.5;
}
html body [data-call-direct][data-call-phase="ended"] .q-talk-presence { color: #f4cd78; }
html body [data-call-direct] .q-talk-identity .q-call-clock {
    font-variant-numeric: tabular-nums;
}
html body [data-call-direct] .q-call-controls {
    width: min(100%, 560px);
    margin-block-start: 6px;
    padding: 12px clamp(6px, 2vw, 16px);
    gap: clamp(6px, 2vw, 14px);
    border-block-start: 1px solid var(--talk-line);
    background: linear-gradient(#12244050, #08172e9c);
    border-radius: 0 0 18px 18px;
}
html body [data-call-direct] .q-call-controls .q-call-control {
    min-width: 49px;
    height: 55px;
    border-radius: 14px;
    background: #1d3454;
    border-color: #809dc34d;
    color: var(--talk-ink);
}
html body [data-call-direct] .q-call-controls .q-call-control > span { font-size: .6875rem; }
html body [data-call-direct] .q-call-controls [data-join] { min-width: 76px; width: auto; }
html body [data-call-direct] .q-call-controls .q-talk-join-primary {
    color: #102039;
    background: var(--talk-gold);
    border-color: var(--talk-gold);
}
html body [data-call-direct] .q-call-controls [aria-pressed="true"] {
    color: var(--talk-gold);
    background: #f3ce8422;
    border-color: #e9c4809c;
}
html body [data-call-direct] .q-call-controls .q-call-end {
    background: #963047;
    border-color: #cf7586;
    color: #fff;
}
html body [data-call-direct] .q-call-controls .q-call-control:focus-visible,
html body [data-call-direct] :is(.q-talk-back, .q-talk-options > summary):focus-visible {
    outline: 2px solid var(--talk-gold);
    outline-offset: 3px;
}
html body [data-call-direct] .q-talk-stage { --talk-cell-height: clamp(48px, 8dvh, 68px); overflow: clip; }
html body [data-call-direct] .q-talk-top { position: relative; z-index: 3; }
html body [data-call-direct] .q-talk-portrait { position: relative; isolation: isolate; }
html body .q-talk-call:not([data-call-direct]) .q-talk-portrait { display: contents; }
html body [data-call-direct] .q-talk-person-mark { animation: none; }
html body [data-call-direct] .q-talk-ripples {
    position: absolute;
    z-index: -1;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}
html body [data-call-direct] .q-talk-ripples > i {
    --ripple-delay: 0s;
    position: absolute;
    inset: 0;
    aspect-ratio: 1;
    border: 1px solid #f2ce85;
    border-radius: var(--talk-avatar-radius);
    opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
    html body [data-call-direct]:is([data-call-phase="dialing"], [data-call-phase="ringing"]) .q-talk-ripples > i {
        animation: qash-talk-ripple 2.7s var(--ripple-delay) linear infinite;
    }
    html body [data-call-direct] .q-talk-ripples > i:nth-child(2) { --ripple-delay: .9s; }
    html body [data-call-direct] .q-talk-ripples > i:nth-child(3) { --ripple-delay: 1.8s; }
    @keyframes qash-talk-ripple {
        0% { transform: scale(1); opacity: .64; }
        70% { opacity: .24; }
        100% { transform: scale(1.63); opacity: 0; }
    }
}
html body [data-call-direct]:not(.q-call-joined) .q-talk-grid-only { display: none; }
html body [data-call-direct]:not(.q-call-joined) .q-call-self { display: none; }
html body [data-call-direct][data-autojoin="true"]:not([data-entry-ready]) button[data-join] { visibility: hidden; }
html body [data-call-direct].q-call-joined .q-call-controls {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: var(--talk-cell-height);
    gap: 1px;
    padding: 0;
    border: 1px solid #8da8d361;
    border-radius: 20px;
    overflow: hidden;
    background: #334766;
}
html body [data-call-direct].q-call-joined .q-call-controls .q-call-control {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: #132744;
}
html body [data-call-direct].q-call-joined .q-call-controls .q-call-control:not(:disabled):hover { background: #203859; }
html body [data-call-direct].q-call-joined .q-call-controls [aria-pressed="true"]:not([data-self-view]),
html body [data-call-direct].q-call-joined .q-call-controls [aria-pressed="false"][data-self-view] { color: var(--talk-gold); background: #2d3548; }
html body [data-call-direct].q-call-joined .q-call-controls [data-self-view][aria-pressed="true"]::after { content: none; }
html body [data-call-direct].q-call-joined .q-call-controls :disabled { color: #909eb3; cursor: default; }
html body [data-call-direct].q-call-joined .q-call-controls .q-call-end { background: #6f2340; color: #fff; }
html body [data-call-direct].q-call-joined .q-call-controls .q-call-end:hover { background: #892943; }
html body [data-call-direct].q-call-joined .q-call-controls .q-call-control:focus-visible { outline-offset: -3px; }
html body [data-call-direct].q-call-joined .q-call-controls :is([data-mute], [data-camera], [data-speaker])::after { top: calc(50% - 10px); }
html body .q-talk-call.q-call-joined .q-call-controls .q-call-control[data-speaker][aria-pressed=true] { background:#efd48b; border-color:#efd48b; color:#101d34; }
html body .q-talk-call .q-call-controls [data-speaker][aria-pressed=true]::after { content:none; }
html body [data-call-direct]:not([data-talk-multi]).q-call-joined:has(.q-call-tile video:not(.q-camera-idle)) .q-talk-stage {
    height: 100%;
    min-height: 0;
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined:has(.q-call-tile video:not(.q-camera-idle)) .q-talk-identity {
    z-index: 1;
    margin: 0 0 auto;
    padding-block: 9px;
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined:has(.q-call-tile video:not(.q-camera-idle)) .q-talk-portrait { display: none; }
html body [data-call-direct]:not([data-talk-multi]).q-call-joined:has(.q-call-tile video:not(.q-camera-idle)) .q-talk-identity h1 {
    margin-block-start: 0;
    font-size: clamp(22px, 4vw, 32px);
    text-shadow: 0 2px 14px #000;
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles:has(.q-call-tile video:not(.q-camera-idle)) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    clip-path: none;
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles:has(.q-call-tile video:not(.q-camera-idle))::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(#061326d9, transparent 37%, transparent 66%, #061326ce);
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles > .q-call-tile:has(video:not(.q-camera-idle)) {
    position: absolute;
    inset: 0;
    max-height: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tile:has(video:not(.q-camera-idle)) > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
html body [data-call-direct]:not([data-talk-multi])[data-fit-video] .q-call-tile:has(video:not(.q-camera-idle)) > video { object-fit: contain; }
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles:has([data-peer] video:not(.q-camera-idle)) > .q-call-self:has(video:not(.q-camera-idle)) {
    inset: auto max(16px, env(safe-area-inset-right)) calc(var(--talk-cell-height) * 3 + max(24px, env(safe-area-inset-bottom)) + 20px) auto;
    z-index: 2;
    width: clamp(76px, 22vw, 144px);
    height: auto;
    aspect-ratio: 4 / 3;
    border: 1px solid #f2ce8590;
    border-radius: 13px;
    overflow: hidden;
}
html body [data-call-direct]:not([data-talk-multi])[data-hide-self-view]:has([data-peer] video:not(.q-camera-idle)) .q-call-self { visibility: hidden; }
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles:has(.q-call-tile video:not(.q-camera-idle)) > .q-call-tile > :is(span, .q-call-avatar) { display: none; }
html body [data-call-direct]:not([data-talk-multi]).q-call-joined:has(.q-call-tile video:not(.q-camera-idle)) .q-talk-feedback { position: relative; z-index: 2; }
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tile[data-peer]:has(> button:not([hidden])) {
    z-index: 2;
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles:has(.q-call-tile video:not(.q-camera-idle)) [data-peer] > button:not([hidden]) {
    position: fixed;
    inset: auto auto calc(var(--talk-cell-height) * 3 + max(24px, env(safe-area-inset-bottom)) + 20px) max(16px, env(safe-area-inset-left));
    z-index: 2;
}
html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles:has(.q-call-tile video:not(.q-camera-idle)) [data-peer]:has(video.q-camera-idle):not(:has(> button:not([hidden]))) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

@media (max-width: 600px) {
    html body .q-talk-back > span { display:none; }
    html body .q-talk-call .q-call-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); }
}

/* Keep the Adinkra cloth with the conversation so the inbox stays quiet. */
html body [data-mls]:not([data-chat-show-status])::before { display:none; }
html body [data-mls] [data-chat-list-inbox] { background:var(--q-surface); }
html body [data-mls] .q-private-conversation { background:var(--q-surface); }
html[data-theme=light] body [data-mls] .q-panel.q-private-conversation { background:var(--q-chat-canvas); }
html body [data-mls] .q-private-conversation::before { opacity:.06; }
html[data-theme=light] body [data-mls] .q-private-conversation::before { opacity:.045; }
html body [data-mls] .q-chat-room-header { background:var(--q-surface); }
html body [data-mls] .q-chat-thread-avatar { width:38px; height:38px; }
html body [data-mls] [data-mls-messages] {
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:8px 6px 10px;
}
html body [data-mls] :is(.q-chat-day,.q-chat-thread-empty) {
    align-self:center;
    margin:6px auto;
    padding:3px 10px;
    border-radius:18px;
    background:var(--q-surface);
    color:var(--q-muted);
    font-size:11px;
}
html[data-theme] body [data-mls] [data-mls-messages] > .q-chat-bubble {
    position:relative;
    width:fit-content;
    max-width:min(80%, 570px);
    min-width:0;
    padding:8px 12px 6px;
    padding-inline-end:27px;
    border:1px solid var(--q-chat-message-line);
    border-radius:17px 17px 17px 5px;
    background:var(--q-chat-received);
    color:var(--q-text);
    font-size:.9rem;
    line-height:1.45;
    touch-action:pan-y;
    translate:var(--q-chat-drag, 0) 0;
}
html[data-theme] body [data-mls] [data-mls-messages] > .q-chat-bubble.q-message-mine {
    border-radius:17px 17px 5px 17px;
    background:var(--q-chat-sent);
    border-color:color-mix(in srgb, var(--q-ui-selection-edge,#7487a0) 46%, var(--q-chat-sent));
}
html[data-theme] body [data-mls] [data-mls-messages] > .q-chat-bubble.q-chat-expression-only {
    background:transparent;
    border-color:transparent;
    box-shadow:none;
}
html body [data-mls] .q-chat-expression-only .q-chat-bubble-text { font-size:1.65rem; }
html body [data-mls] .q-chat-bubble > p { margin:0; overflow-wrap:anywhere; }
html body [data-mls] [data-message-receipt] {
    display:inline-block; position:relative; width:18px; height:13px; vertical-align:middle;
    color:var(--q-muted); flex:none;
}
html body [data-mls] small > [data-message-receipt] { margin-inline-end:4px; }
html body [data-mls] [data-message-receipt]::before,
html body [data-mls] :is([data-message-receipt=Read],[data-message-receipt=Delivered])::after {
    content:""; position:absolute; left:1px; top:3px; width:10px; height:5px;
    border:solid currentColor; border-width:0 0 2px 2px; transform:rotate(-45deg);
}
html body [data-mls] [data-message-receipt]::after { margin-left:5px; }
html body [data-mls] [data-message-receipt=Read] { color:#76caff; }
html[data-theme=light] body [data-mls] [data-message-receipt=Read] { color:#0068af; }
html body [data-mls] .q-chat-bubble > :is(audio,video,img) { max-width:100%; }
html body [data-mls] .q-chat-bubble-meta {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:5px;
    margin-top:2px;
    font-size:10px;
    color:var(--q-muted);
}
html body [data-mls] .q-chat-refit-mark { color:var(--q-gold); }
html body [data-mls] .q-chat-reaction-counts { display:flex; flex-wrap:wrap; gap:4px; margin:2px 0 0; }
html body [data-mls] .q-chat-reaction-counts button {
    display:inline-flex;
    align-items:center;
    gap:4px;
    min-height:28px;
    min-width:34px;
    justify-content:center;
    padding:2px 6px;
    border:1px solid transparent;
    border-radius:20px;
    background:var(--q-surface);
    color:var(--q-text);
    cursor:pointer;
}
html body [data-mls] .q-chat-reaction-counts button.q-chat-reaction-own { border-color:var(--q-gold); }
html body [data-mls] .q-chat-reaction-glyph { display:inline-grid; place-items:center; line-height:1; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-reaction-glyph svg { width:1.4em; height:1.4em; display:block; }
html body [data-mls] .q-chat-bubble-tools {
    position:absolute;
    inset-inline-end:0;
    inset-block:0;
    margin-block:auto;
    display:grid;
    align-items:center;
    justify-items:end;
    width:26px;
    height:34px;
    padding:0 7px;
    border:0;
    border-radius:50%;
    background:transparent;
    color:var(--q-muted);
    cursor:pointer;
}
html body [data-mls] .q-chat-bubble-menu .q-chat-menu-row svg { width:17px; height:17px; }
html body [data-mls] :is(.q-chat-bubble-tools,.q-chat-message-more) svg { display:none; }
html body [data-mls] :is(.q-chat-bubble-tools,.q-chat-message-more)::before {
    content:"";
    width:3px;
    height:3px;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 -7px currentColor, 0 7px currentColor;
}
@media (forced-colors:active) {
    html body [data-mls] :is(.q-chat-bubble-tools,.q-chat-message-more)::before {
        forced-color-adjust:none;
        color:ButtonText;
    }
}
html body [data-mls] .q-chat-bubble-tools:focus-visible { outline:2px solid var(--q-gold); }
html body [data-mls] .q-chat-bubble-menu {
    position:fixed;
    inset:auto;
    z-index:80;
    width:min(328px,calc(100vw - 16px));
    max-height:min(70dvh,360px);
    margin:0;
    padding:6px;
    overflow:auto;
    border-radius:16px;
    border:1px solid var(--q-border);
    background:var(--q-surface);
    color:var(--q-text);
    box-shadow:0 12px 32px #07132c35;
}
html body [data-mls] .q-chat-bubble-menu[hidden] { display:none; }
html body [data-mls] .q-chat-bubble-reactions { display:flex; flex-wrap:wrap; gap:2px; padding:3px 0 5px; border-bottom:1px solid var(--q-border); }
html body [data-mls] .q-chat-bubble-reactions button { flex:1 0 32px; }
html body [data-mls] :is(.q-chat-reaction-option,.q-chat-reaction-more,.q-chat-reaction-heading button) {
    display:grid;
    place-items:center;
    min-height:38px;
    padding:3px;
    border:0;
    border-radius:12px;
    background:transparent;
    color:var(--q-text);
    font-size:19px;
    cursor:pointer;
}
html body [data-mls] :is(.q-chat-reaction-option,.q-chat-reaction-more):hover { background:var(--q-surface-2); }
html body [data-mls] .q-chat-reaction-option[aria-pressed=true] { background:var(--q-surface-3); box-shadow:inset 0 0 0 1px var(--q-gold); }
html body [data-mls] .q-chat-reaction-more { color:var(--q-gold); background:var(--q-surface-2); }
html body [data-mls] .q-chat-reaction-panel { padding:2px 5px 5px; }
html body [data-mls] .q-chat-reaction-heading { display:flex; align-items:center; justify-content:space-between; padding-inline:6px 0; }
html body [data-mls] .q-chat-reaction-heading button { width:38px; color:var(--q-gold); font-size:25px; }
html body [data-mls] .q-chat-reaction-controls { display:grid; grid-template-columns:minmax(0, 1fr) 94px; gap:5px; }
html body [data-mls] .q-chat-reaction-controls :is(input,select) {
    min-width:0;
    width:100%;
    min-height:36px;
    padding:6px 8px;
    border:1px solid var(--q-border);
    border-radius:12px;
    background:var(--q-surface-2);
    color:var(--q-text);
    font:inherit;
    font-size:12px;
}
html body [data-mls] .q-chat-reaction-catalog {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(40px, 1fr));
    gap:2px;
    max-height:min(35dvh,225px);
    padding:6px 1px 2px;
    overflow-y:auto;
    overscroll-behavior:contain;
}
html body [data-mls] .q-chat-reaction-catalog:empty { display:none; }
html body [data-mls] .q-chat-reaction-panel [role="status"] { margin:10px 6px; color:var(--q-muted); }
html body [data-mls] .q-chat-reaction-panel ul { list-style:none; margin:0; padding:0 6px; }
html body [data-mls] .q-chat-reaction-panel li {
    display:flex;
    align-items:center;
    gap:10px;
    min-height:35px;
    overflow-wrap:anywhere;
    border-block-start:1px solid var(--q-border);
}
html body [data-mls] .q-chat-reaction-panel li .q-chat-reaction-glyph { flex:0 0 26px; font-size:17px; }
html body [data-mls] .q-chat-reaction-panel .q-chat-menu-row { margin-top:4px; }
@media (pointer:coarse) {
    html body [data-mls] .q-chat-reaction-controls input { font-size:16px; }
}
html body [data-mls] .q-chat-protection-receipt { padding:8px 12px; font-size:11px; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-protection-receipt summary { cursor:pointer; }
html body [data-mls] [data-chat-refitting] .q-chat-compose-capsule { border-color:var(--q-gold); }
html body [data-mls] [data-chat-refitting] .q-chat-attach { display:none; }
@media (max-width:480px) {
    html body [data-mls] .q-chat-thread-avatar { width:32px; height:32px; }
    html body [data-mls] .q-chat-room-header .q-chat-primary-actions > :is(button,.q-chat-menu) { flex-shrink:0; }
}
@media (max-width:760px) {
    html[data-theme] body [data-mls] [data-mls-messages] > .q-chat-bubble { max-width:92%; min-height:44px; padding:7px 9px 6px; padding-inline-end:44px; }
    html body [data-mls] .q-chat-bubble:not(.q-message-mine) .q-chat-bubble-meta { justify-content:flex-start; }
    html body [data-mls] :is(.q-chat-bubble-tools,.q-chat-message-more) { width:44px; height:44px; }
}

html body main[data-screen-name="app.chat"] > .q-space-navigation { display:none; }
@media (min-width:761px) {
    html body [data-mls][data-chat-has-room] .q-private-messages { min-height:min(40dvh, 390px); }
}

html body[data-workspace] main[data-screen-name="app.chat"],
html body [data-mls] .q-private-messages {
    scrollbar-width:none;
    scrollbar-gutter:auto;
}
html body[data-workspace] main[data-screen-name="app.chat"]::-webkit-scrollbar,
html body [data-mls] .q-private-messages::-webkit-scrollbar { display:none; }
html body [data-mls] .q-private-messages:focus-visible { outline:2px solid var(--q-gold); outline-offset:-2px; }
html body [data-mls] .q-chat-room-header {
    min-height:60px;
    gap:8px;
    padding:0 0 8px;
    margin:0;
}
html body [data-mls] .q-chat-thread-contact {
    display:flex;
    flex:1 1 0;
    align-items:center;
    gap:9px;
    min-width:0;
    min-height:44px;
    border:0;
    border-radius:12px;
    padding:2px 0;
    background:transparent;
    color:var(--q-text);
    text-align:start;
    cursor:pointer;
}
html body [data-mls] .q-chat-thread-contact:focus-visible { outline:2px solid var(--q-gold); outline-offset:2px; }
html body [data-mls] .q-chat-room-name { display:grid; gap:1px; }
html body [data-mls] .q-chat-room-name :is(strong,small) {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
html body [data-mls] .q-chat-room-name strong { font-size:15px; font-weight:650; line-height:1.35; }
html body [data-mls] .q-chat-room-name small { color:var(--q-muted); font-size:11px; line-height:1.35; }
html[data-theme] body [data-mls] .q-chat-room-header .q-chat-primary-actions > :is([data-mls-start-call],[data-mls-start-video]) {
    display:grid; place-items:center; width:44px; min-width:44px; height:44px; padding:0; color:var(--q-text);
}
html body [data-mls] .q-chat-room-header :is([data-mls-start-call],[data-mls-start-video]) > svg {
    display:block; width:29px; height:29px; flex:none; stroke-width:2;
}
html[data-theme][data-theme] body[data-workspace] [data-mls] :is(.q-chat-room-header,.q-chat-list-heading) .q-chat-menu > summary.q-icon-btn,
html[data-theme][data-theme] body [data-ai-companion] .q-ai-companion-head > [data-ai-options-open] {
    display:grid; place-items:center; box-sizing:border-box; flex:none;
    width:44px; min-width:44px; height:44px; padding:0; border-radius:0;
    background:transparent; border:0; box-shadow:none; color:var(--q-text);
}
html body [data-mls] :is(.q-chat-room-header,.q-chat-list-heading) .q-chat-menu > summary svg,
html body [data-ai-companion] .q-ai-companion-head > [data-ai-options-open] svg {
    display:block; width:26px; height:26px; stroke:currentColor; stroke-width:3.8; opacity:1;
}
html body [data-ai-companion] :is(.q-ai-bubble-foot > .q-ai-act:not(:disabled), .q-ai-bubble-foot .q-ai-message-menu > summary) {
    display:inline-grid; place-items:center; width:44px; height:44px; padding:0;
    border:0; box-shadow:none; background:transparent;
    color:inherit; opacity:1;
}
html body [data-ai-companion] .q-ai-bubble-foot .q-ai-message-menu > summary svg { width:24px; height:24px; stroke-width:3.6; }
html body [data-ai-companion] .q-ai-bubble-foot .q-ai-act:not(:disabled) svg { width:20px; height:20px; stroke-width:2; flex:none; }
html body [data-ai-companion] .q-ai-message-menu[open] { min-width:min(250px,58vw); max-width:100%; }
html body [data-ai-companion] .q-ai-message-actions {
    grid-template-columns:repeat(auto-fit,minmax(min(124px,100%),1fr)); gap:3px; padding:5px;
}
html body [data-ai-companion] .q-ai-message-actions > .q-ai-act {
    display:flex; width:100%; height:auto; min-height:44px; box-sizing:border-box; gap:9px; padding:8px 9px;
    font-size:14px; line-height:1.3; font-weight:550; text-align:start; color:var(--q-text); opacity:1;
}
html body [data-ai-companion] .q-ai-bubble-foot .q-ai-message-actions > .q-ai-act {
    background:transparent; border:0; box-shadow:none;
}
html body [data-ai-companion] .q-ai-bubble-foot .q-ai-act[aria-pressed=true] span {
    text-decoration:underline; text-underline-offset:3px;
}
html body [data-ai-companion] .q-ai-bubble-foot .q-ai-message-menu[data-ai-menu-placed] {
    position:relative; flex-basis:auto; min-width:0;
}
html body [data-ai-companion] [data-ai-menu-placed] > .q-ai-message-actions {
    position:absolute; z-index:1; box-sizing:border-box; margin:0;
    top:var(--ai-menu-top); left:var(--ai-menu-left); width:var(--ai-menu-width);
    max-height:var(--ai-menu-height); overflow-y:auto; overscroll-behavior:contain;
    grid-auto-rows:max-content; box-shadow:0 6px 22px #07132c30;
}
html body [data-ai-companion] .q-ai-msg:has([data-ai-menu-placed]) {
    position:relative; z-index:3;
}
html body [data-ai-companion] .q-ai-bubble-foot :is(summary,button):focus-visible { outline:2px solid currentColor; outline-offset:1px; }

html body [data-mls] .q-chat-person-card {
    width:min(340px,calc(100vw - 36px));
    max-height:calc(100dvh - 36px);
    margin:auto;
    padding:0;
    overflow:auto;
    border:1px solid var(--q-border);
    border-radius:23px;
    background:var(--q-surface);
    color:var(--q-text);
    box-shadow:0 24px 72px #050d2660;
}
html body [data-mls] .q-chat-person-card::backdrop { background:#08142b88; }
html body [data-mls] .q-chat-person-cover {
    position:relative;
    isolation:isolate;
    display:grid;
    place-items:end center;
    min-height:112px;
    background:#0b1b35;
}
html body [data-mls] .q-chat-person-cover::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:#f0cd84;
    mask:url('../adinkra-pattern.svg') center / 215px auto repeat;
    opacity:.12;
}
html body [data-mls] .q-chat-person-cover .q-chat-person-avatar {
    width:78px;
    height:78px;
    margin-bottom:-23px;
    border:2px solid #f0cd84;
    background:#102849;
    color:#f5d58b;
    font-size:22px;
}
html body [data-mls] .q-chat-person-cover > [data-chat-person-close] {
    position:absolute;
    inset-block-start:9px;
    inset-inline-end:9px;
    width:44px;
    min-width:44px;
    height:44px;
    padding:10px;
    background:#152b4e;
    border:1px solid #eecb7b60;
    border-radius:50%;
    color:#f8dda1;
}
html body [data-mls] .q-chat-person-body { padding:36px 19px 19px; text-align:center; overflow-wrap:anywhere; }
html body [data-mls] .q-chat-person-body h2 { margin:0; font-size:20px; line-height:1.25; }
html body [data-mls] .q-chat-person-body p { margin:5px 0 0; color:var(--q-muted); font-size:13px; }
html body [data-mls] .q-chat-person-actions {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:1fr;
    gap:8px;
    margin-top:18px;
}
html body [data-mls] .q-chat-person-actions button {
    display:grid;
    place-items:center;
    gap:6px;
    min-height:57px;
    border:1px solid var(--q-border);
    border-radius:14px;
    background:var(--q-surface-2);
    color:var(--q-text);
    cursor:pointer;
    font:600 12px/1.2 var(--q-font,system-ui);
}
html body [data-mls] .q-chat-person-actions button[hidden] { display:none; }
html body [data-mls] .q-chat-person-actions button:hover { border-color:var(--q-gold); }
html body [data-mls] .q-chat-person-actions svg { width:20px; height:20px; color:var(--q-gold); }

html body .q-incoming-call {
    position:fixed;
    inset:0;
    width:100%;
    height:100dvh;
    max-width:none;
    max-height:none;
    margin:0;
    padding:max(20px,env(safe-area-inset-top)) 20px max(28px,env(safe-area-inset-bottom));
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    z-index:140;
    border:0;
    border-radius:0;
    background:radial-gradient(ellipse at 50% 36%,#244063,#09172c 76%);
    color:#f7f9ff;
}
html body .q-incoming-call[hidden],html body .q-incoming-call:not([open]),html body .q-incoming-call [hidden] { display:none; }
html body .q-incoming-call [data-incoming-name] { max-width:min(85vw,740px); font-size:clamp(25px,5vw,46px); white-space:normal; overflow-wrap:anywhere; }
html body .q-incoming-call [data-incoming-kind] { color:#d8e8fa; font-size:.95rem; }
html body .q-incoming-call .q-incoming-actions { display:flex; align-items:center; gap:clamp(16px,8vw,52px); }
html body .q-incoming-call .q-incoming-actions > .q-icon-btn {
    display:grid; place-items:center; gap:4px; min-width:90px; min-height:64px; width:auto; height:auto; padding:10px 14px; border-radius:18px;
    font:600 .85rem/1.2 var(--q-font,system-ui); color:#fff;
}
html body .q-incoming-call .q-incoming-actions svg { width:22px; height:22px; }
html body .q-incoming-call .q-incoming-actions .q-incoming-accept { background:#176343; border-color:#72b598; }
html body .q-incoming-call .q-incoming-actions .q-call-end { background:#a92c42; border-color:#df7c8b; }

@media (max-width:760px) {
    html body[data-workspace] .q-workspace-column:has(> main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status])) > .q-topbar,
    html body[data-workspace] .qash-shell:has(main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status])) > .q-bottomnav {
        display:none;
    }
    html body[data-workspace] main[data-screen-name="app.chat"]:has([data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status])) {
        position:fixed;
        inset-inline:0;
        inset-block-start:var(--q-chat-visible-top,0px);
        width:100%;
        max-width:none;
        height:var(--q-chat-visible-height,100dvh);
        align-items:stretch;
        box-sizing:border-box;
        display:flex;
        flex-direction:column;
        max-height:var(--q-chat-visible-height,100dvh);
        padding:0;
        overflow:hidden;
    }
    html body main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status]),
    html body main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status]) :is([data-chat-shell],.q-private-layout,.q-private-conversation) {
        display:flex;
        flex:1 1 0;
        flex-direction:column;
        min-height:0;
        min-width:0;
        margin:0;
        padding:0;
        border:0;
        border-radius:0;
        box-shadow:none;
    }
    html body main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status]) :is(.q-chat-sections,.qt-chat-updates,[data-next-moves]) { display:none; }
    html body main[data-screen-name="app.chat"]:has([data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status])) > [data-next-moves] { display:none; }
    html body main[data-screen-name="app.chat"] .q-chat-room-header {
        flex:none;
        gap:3px;
        min-height:60px;
        padding:6px 7px;
    }
    html body main[data-screen-name="app.chat"] .q-chat-room-header :is(.q-chat-primary-actions > button.q-icon-btn,.q-chat-thread-tools > summary.q-icon-btn,.q-chat-mobile-back) {
        width:40px;
        min-width:40px;
        height:44px;
        padding:10px;
    }
    html body main[data-screen-name="app.chat"] .q-chat-thread-contact { gap:7px; }
    html body main[data-screen-name="app.chat"] .q-chat-thread-avatar { width:32px; height:32px; }
    html body main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status]) .q-private-messages {
        flex:1 1 auto;
        min-height:0;
        max-height:none;
        overflow:auto;
        padding:6px 9px;
    }
    html body main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status]) [data-mls-compose] {
        flex:none;
        margin:0;
        padding:7px 10px max(8px,env(safe-area-inset-bottom));
        border-top:1px solid var(--q-border);
        background:var(--q-surface);
    }
    html body [data-mls] .q-chat-compose-notes:not(:has(> :not([hidden]))) { display:none; }
}
/* The original animated brand face stays legible on both themes. */
html[data-theme] body[data-workspace][data-workspace] .q-ai-float.q-ai-float { width:48px; height:48px; min-width:48px; min-height:48px; background:#09172e; color:#f5d17c; border-color:#d4a843; }
html[data-theme] body[data-workspace][data-workspace] .q-ai-float.q-ai-float > .q-ai-mark { width:40px; height:38px; max-width:40px; --q-ai-face-fill:#09172e; color:#f5d17c; }
html[data-theme] body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-mark-logo { display:none; }
html[data-theme] body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-mark > svg.q-ai-face { display:block; position:absolute; inset:0; width:40px; height:36px; max-width:none; color:#f5d17c; }
html[data-theme] body[data-workspace][data-workspace] .q-ai-float.q-ai-float .q-ai-mark > small { background:#f5d17c; color:#09172e; right:0; bottom:0; font-size:6px; }
@media(prefers-reduced-motion:no-preference) { html body[data-workspace] .q-ai-float .q-ai-eye { animation:q-chat-eye-blink 4.8s infinite; transform-box:fill-box; transform-origin:center; } }
@keyframes q-chat-eye-blink { 0%,40%,46%,80%,86%,100% { transform:scaleY(1); } 43%,83% { transform:scaleY(.08); } }

/* Empty-state artwork is quiet scenery, never a control. */
html body [data-mls] .q-chat-empty-state { pointer-events:none; user-select:none; }
html body [data-mls] .q-chat-empty-state img { width:min(155px,48vw); opacity:.65; filter:saturate(.3); }
html body [data-mls] .q-chat-empty-state figcaption { font-size:12px; opacity:.8; }

html body [data-call-direct] .q-talk-stage {
    box-sizing: border-box;
    --talk-cell-height: clamp(44px, 7.4dvh, 64px);
    padding-block: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-bottom));
}
html body [data-call-direct] .q-talk-identity { padding-block: clamp(8px, 2dvh, 22px); }
html body [data-call-direct] .q-talk-person-mark { width: clamp(80px, min(55vw, 30dvh), 265px); }
html body [data-call-direct] .q-talk-options > summary { border: 0; background: transparent; }
html body [data-call-direct] :is(.q-talk-options > summary,.q-call-controls button,.q-talk-result > *) svg {
    color: inherit; stroke: currentColor;
}
html body [data-call-direct] .q-call-controls [data-talk-options] svg,
html body [data-call-direct] .q-talk-options > summary svg { stroke-width: 3; }
html body [data-call-direct].q-call-joined .q-call-controls button:disabled {
    opacity: 1; background: #192b44; color: #a8b6c9;
}
html body [data-call-direct] .q-talk-result {
    display: flex; align-items: stretch; justify-content: center; gap: 1px;
    margin-inline: auto; width: min(100%, 420px); overflow: hidden;
    border-radius: 14px; background: #435776;
}
html body [data-call-direct] .q-talk-result > * {
    flex: 1; display: grid; justify-items: center; align-content: center; gap: 5px;
    min-height: 62px; border: 0; border-radius: 0; background: #192e4b;
    color: #f4f7ff; text-decoration: none; font: inherit; font-size: .8rem; cursor: pointer;
}
html body [data-call-direct] .q-talk-result [data-redial] { color: #ffdc8c; }
html body [data-call-direct] .q-talk-output { align-self: center; max-width: 100%; }
html body [data-call-direct] [hidden] { display: none !important; }


/* Reserve the controls first and size the caller within the remaining phone window. */
html body .q-talk-call[data-call-direct]:not([data-talk-multi]) {
    inset-block: var(--call-visible-top, 0px) auto;
    height: min(100dvh, var(--call-visible-height, 100dvh));
    overflow: clip;
}
html body [data-call-direct]:not([data-talk-multi]) .q-talk-stage {
    height: 100%;
    min-height: 0;
}
html body [data-call-direct]:not([data-talk-multi]) .q-talk-identity {
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    container-type: size;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
html body [data-call-direct]:not([data-talk-multi]) .q-talk-identity h1 {
    margin-block-start: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html body [data-call-direct]:not([data-talk-multi]) .q-talk-person-mark {
    min-width: 0;
    width: min(55vw, 30dvh, 265px, max(0px, calc(100cqh - 6rem)));
}
html body [data-call-direct]:not([data-talk-multi]) .q-talk-identity:has(.q-talk-sound:not([hidden])) .q-talk-person-mark {
    width: min(55vw, 30dvh, 265px, max(0px, calc(100cqh - 9rem)));
}
html body [data-call-direct]:not([data-talk-multi]) :is(.q-talk-top,.q-call-controls,.q-talk-result) { flex-shrink: 0; }
html body [data-call-direct] .q-talk-feedback:empty { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
    html body [data-call-direct]:not([data-talk-multi]) .q-talk-stage {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        grid-template-rows: auto minmax(0,1fr) auto auto;
        column-gap: 16px;
        padding-block: max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-bottom));
    }
    html body [data-call-direct] .q-talk-top { grid-column: 1 / -1; padding-block-end: 0; }
    html body [data-call-direct] .q-talk-identity { grid-area: 2 / 1; padding-block: 3px; }
    html body [data-call-direct] .q-talk-output { grid-area: 3 / 1; }
    html body [data-call-direct] .q-talk-feedback { grid-area: 4 / 1; margin: 0; }
    html body [data-call-direct] :is(.q-call-controls,.q-talk-result) { grid-area: 2 / 2 / 5 / 3; align-self: center; margin-block: 0; }
    html body [data-call-direct] .q-talk-identity h1 { font-size: clamp(20px, 3vw, 28px); }
    html body [data-call-direct]:not([data-talk-multi]).q-call-joined:has(.q-call-tile video:not(.q-camera-idle)) .q-talk-identity { margin: 0; align-self: stretch; justify-content: start; }
    html body [data-call-direct]:not([data-talk-multi]).q-call-joined .q-call-tiles:has([data-peer] video:not(.q-camera-idle)) > .q-call-self:has(video:not(.q-camera-idle)) { inset: auto auto max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); }
}

.q-chat-missed-message[data-call-direction=outgoing] { align-self: flex-end; margin-inline-start: auto; }

html body [data-call-direct] .q-talk-portrait { --talk-avatar-radius: clamp(24px, 8vw, 48px) 17px; }
html body [data-call-direct] .q-talk-portrait .q-talk-person-mark { border-radius: var(--talk-avatar-radius); }
html body [data-call-direct] .q-talk-top .q-talk-options > summary,
html body [data-call-direct].q-call-joined .q-call-controls [data-self-view][aria-pressed="true"] { color: #f3f6fb; }
html body [data-call-direct].q-call-joined .q-call-controls button.q-call-control:disabled { color: #b2c0d3; opacity: 1; background: #21344e; }
html body [data-mls] .q-chat-missed-message[data-call-direction="incoming"] { margin-inline: 0 auto; align-self: flex-start; }
html body [data-mls] .q-chat-missed-message[data-call-direction="outgoing"] { margin-inline: auto 0; align-self: flex-end; }
@media (max-width:760px) {
    html body main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status]),
    html body main[data-screen-name="app.chat"] [data-mls][data-chat-has-room]:not([data-chat-list-view],[data-chat-show-status]) :is([data-chat-shell],.q-private-layout,.q-private-conversation) {
        width: 100%;
        max-width: none;
        align-self: stretch;
        box-sizing: border-box;
    }
}

/* Desktop chat shares the space below the toolbar between two scrollable panes. */
@media (min-width: 761px) {
    body[data-workspace] .q-workspace-column:has(> main[data-screen-name="app.chat"]) .q-workspace-location {
        margin-inline-end: auto;
    }
    html body[data-workspace] main[data-screen-name="app.chat"]:has([data-chat-shell]) {
        max-width: none;
        padding: clamp(12px, 1.4vw, 24px);
    }
    html body main[data-screen-name="app.chat"] [data-mls]:has(> [data-chat-shell]) {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 24rem;
        padding: 0;
    }
    html body [data-mls] > :is([data-chat-status-pane], [data-chat-calls-pane]):not([hidden]) {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    html body [data-mls] > [data-chat-shell]:not([hidden]) {
        flex: 1 1 0;
        min-height: 12rem;
        display: flex;
        flex-direction: column;
    }
    html body [data-mls] [data-chat-shell] > .q-private-layout {
        flex: 1 1 0;
        min-height: 0;
        grid-template-columns: clamp(230px, 26%, 380px) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
    }
    html body [data-mls] [data-chat-list-inbox] { min-height: 0; overflow-y: auto; }
    html body [data-mls] .q-private-conversation {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    html body [data-mls] .q-chat-idle { flex: 1; min-height: 0; }
    html body [data-mls]:not([data-chat-has-room]) .q-private-messages { display: none; }
    html body [data-mls][data-chat-has-room] .q-private-messages {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
    }
    html body [data-mls] .q-private-conversation > :is(.q-chat-room-header, [data-mls-compose]) { flex-shrink: 0; }
}
