/* R761: keep the reference context beside the chat on ordinary desktop widths. */
.client-inbox-workspace{--ref-glass:rgba(13,19,28,.62);--ref-glass-raised:rgba(17,25,37,.76)}
:root[data-theme="light"] .client-inbox-workspace{--ref-glass:rgba(255,255,255,.72);--ref-glass-raised:rgba(247,250,252,.82)}
.client-inbox-workspace .client-shell.inbox .client-reference-workspace>.chat-header,
.client-inbox-workspace .client-shell.inbox .client-reference-compose{
 background:var(--ref-glass-raised)!important;
 backdrop-filter:blur(16px) saturate(120%)!important;
 -webkit-backdrop-filter:blur(16px) saturate(120%)!important;
}
.client-inbox-workspace .client-shell.inbox .client-reference-context{
 background:var(--ref-glass)!important;
 backdrop-filter:blur(18px) saturate(125%)!important;
 -webkit-backdrop-filter:blur(18px) saturate(125%)!important;
 box-shadow:inset 1px 0 rgba(255,255,255,.035),-9px 0 32px rgba(0,0,0,.09)!important;
}
.client-inbox-workspace .client-reference-context-head{background:linear-gradient(180deg,var(--ref-glass-raised),transparent)!important}
.client-inbox-workspace .client-reference-banner{background:linear-gradient(90deg,var(--ref-glass),transparent)!important}
.client-inbox-workspace .client-shell.inbox .client-card .client-card-avatar,
.client-inbox-workspace .client-shell.inbox .client-card .client-card-avatar .client-real-avatar,
.client-inbox-workspace .client-shell.inbox .client-reference-workspace .chat-heading .avatar,
.client-inbox-workspace .client-shell.inbox .client-reference-workspace .chat-heading .avatar .client-real-avatar,
.client-inbox-workspace .client-reference-contact .avatar,
.client-inbox-workspace .client-reference-contact .client-real-avatar{border-radius:50%!important}
.client-inbox-workspace .client-reference-score-ring{box-shadow:0 0 16px color-mix(in srgb,var(--ref-mint) 13%,transparent)}
.client-inbox-workspace .client-reference-score-ring::before{background:var(--ref-glass-raised)!important}
.client-inbox-workspace .client-reference-workspace.client-thread-enter{animation:client-thread-enter .22s cubic-bezier(.2,.8,.2,1) both}
@keyframes client-thread-enter{from{opacity:.78;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.client-inbox-workspace .client-shell.inbox .client-card,
.client-inbox-workspace .client-reference-context-actions button,
.client-inbox-workspace .client-reference-suggestions button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.client-inbox-workspace .client-shell.inbox .client-card:hover{transform:translateY(-1px)}
.client-inbox-workspace .client-shell.inbox .client-card.selected:hover{transform:none}
.client-inbox-workspace .client-reference-body.context-drawer-open .client-reference-scrim{animation:client-context-scrim .2s ease both}
@keyframes client-context-scrim{from{opacity:0}to{opacity:1}}
/* The site menu and chat list take more space than the standalone design mock.
   Use the actual conversation width so 1366–1440 px desktops retain a right pane. */
@container client-conversation (min-width:721px){
 .client-inbox-workspace .client-shell.inbox .client-reference-body{grid-template-columns:minmax(0,1fr) 282px!important}
 .client-inbox-workspace .client-shell.inbox .client-reference-body:not(:has(.client-reference-context)){grid-template-columns:minmax(0,1fr)!important}
 .client-inbox-workspace .client-shell.inbox .client-reference-context{
  display:block;position:static;grid-column:2;grid-row:1;width:auto;max-height:100%;box-shadow:inset 1px 0 rgba(255,255,255,.035)!important
 }
 .client-inbox-workspace .client-reference-body.context-drawer-open .client-reference-scrim{display:none}
}
@media (max-width:760px){
 .client-inbox-workspace .client-shell.inbox .client-reference-body{grid-template-columns:minmax(0,1fr)!important}
 .client-inbox-workspace .client-shell.inbox .client-reference-context{display:none}
 .client-inbox-workspace .client-shell.inbox .client-reference-body.context-drawer-open .client-reference-context{
  display:block;position:absolute;grid-column:auto;grid-row:auto;top:0;right:0;bottom:0;width:min(310px,88%);max-height:none
 }
}
@media (prefers-reduced-motion:reduce){
 .client-inbox-workspace .client-reference-workspace.client-thread-enter,
 .client-inbox-workspace .client-reference-body.context-drawer-open .client-reference-scrim{animation:none}
 .client-inbox-workspace .client-shell.inbox .client-card{transition:none}
}
