/* Focused layout fixes; no changes to media nodes, clinical data or access permissions. */
.r33-task-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:12px;background:var(--surface,#fff);border:1px solid var(--line,#bdd3d3);border-radius:16px}
.r33-task-nav [aria-selected=true]{background:#00666b;color:white;border-color:#00666b}
.r33-task-nav button{min-height:44px}
[data-r33-task][hidden]{display:none!important}
.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.table-wrap.r33-scrollable{border-inline-end:3px solid #00828b}
.table-wrap:focus-visible{outline:3px solid #00828b;outline-offset:3px}
/* Text is the primary patient experience, including when the media call has ended. */
body[data-workspace=patient] .room-workspace.r33-patient-room{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;max-width:100%}
body[data-workspace=patient] .room-workspace.r33-patient-room>.room-call-area{position:relative!important;inset:auto!important;height:auto!important;min-height:0;align-self:start}
body[data-workspace=patient] .room-workspace.r33-patient-room>.room-chat{display:block!important;position:relative!important;inset:auto!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;width:100%!important;height:auto!important;max-height:none!important;padding:16px!important;border-radius:16px!important}
.r33-patient-room .chat{max-height:42dvh;overflow-y:auto;overflow-wrap:anywhere}
.r33-patient-room .drawer-close,.r33-patient-room .drawer-handle{display:none!important}
.room-workspace input,.room-workspace textarea,.room-workspace select{max-width:100%}
.room-workspace [data-form=message]{scroll-margin-bottom:24px}
.r22-communications{max-width:100%;align-self:start}
.r22-communications>summary{font-size:1rem}
@media(max-width:1099px){.r22-communications{position:relative!important;top:auto!important}.r22-communications .chat{max-height:32dvh}.r22-communications textarea{min-height:72px}.r33-task-nav{gap:6px}.r33-task-nav button{flex:1 1 130px}}
@media(prefers-reduced-motion:reduce){.room-workspace{transition:none!important}}

.r33-routing-group{padding:16px;border:1px solid var(--line,#bdd3d3);border-radius:14px;margin-bottom:12px}.r33-routing-group>summary{cursor:pointer;font-weight:650;min-height:44px}.r33-routing-group>label{margin-top:16px}
