/* .52 presentation only. No media element is recreated on a tab change. */
.conversation-workspace-active > footer{display:none}
.wuppa-private-shell #private-live-panel.has-conversation-workspace{padding:8px 10px 0;margin-top:0;border-radius:12px;overflow:visible}
.has-conversation-workspace > #peer-status{font-size:.78rem;line-height:1.35;margin:0 0 7px;color:var(--muted,#b7c0c8)}
.conversation-workspace{position:relative;padding-bottom:72px;min-width:0}
.workspace-pane{min-width:0}
.workspace-tabs{position:fixed;inset-inline:0;bottom:0;z-index:42;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--bg,#25282b);border-top:1px solid var(--line,#58616a);padding:5px max(8px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));gap:5px}
.wuppa-private-shell .workspace-tab{min-height:48px;min-width:0;margin:0;padding:8px 5px;font-size:.92rem;border:0;border-radius:9px;background:transparent;color:var(--muted,#c4cbd1);font-weight:600}
.wuppa-private-shell .workspace-tab[aria-selected=true]{background:#443b32;color:#ffd6ab;box-shadow:inset 0 -3px #d39565}
.workspace-tab.workspace-has-call::after{content:'';display:inline-block;margin-inline-start:6px;width:7px;height:7px;border-radius:50%;background:#d39565}
.wuppa-private-shell .workspace-return-call{display:block;width:100%;margin:0 0 8px;padding:9px 12px;min-height:44px;background:#38483d;border:1px solid #779382;color:#ecf4ed;border-radius:8px;text-align:start;font-size:.9rem}
.has-conversation-workspace #workspace-call .videos{position:relative;isolation:isolate;height:clamp(120px,32dvh,300px);margin:0 0 8px;overflow:hidden;border-radius:10px;background:#111}
.has-conversation-workspace #workspace-call .private-media-actions{margin-bottom:6px}
.has-conversation-workspace #messages{max-height:calc(100dvh - 345px);min-height:140px;overflow:auto;overscroll-behavior:contain;margin:0 0 10px}
.has-conversation-workspace .composer{margin:8px 0;display:flex;align-items:flex-end;gap:6px;min-width:0}
.has-conversation-workspace .composer textarea{min-width:0;flex:1;max-height:140px;margin:0}
.has-conversation-workspace .composer button{flex:0 0 auto;min-height:44px;max-width:35%;font-size:.85rem;padding:10px 8px;margin:0;overflow-wrap:anywhere}
.workspace-translation{border:1px solid var(--line,#58616a);border-radius:8px;font-size:.9rem}
.workspace-translation > summary,.workspace-message-help > summary{padding:10px;min-height:44px;box-sizing:border-box;cursor:pointer}
.workspace-translation .chat-translation{border:0;margin:0;padding:10px}
.workspace-message-help{font-size:.85rem;margin:8px 0}
.workspace-contact-hint{font-size:.85rem;color:var(--muted,#b7c0c8)}
#workspace-contact > .panel{padding:10px;margin:8px 0}
#workspace-contact .actions{flex-wrap:wrap}
.has-conversation-workspace .private-voice-options{margin:9px 0}
/* Keep one voice controller mounted while presenting only relevant controls. */
.conversation-workspace[data-view=chat] .private-voice > :not(.voice-draft):not(.voice-health){display:none!important}
.conversation-workspace[data-view=chat] .voice-draft{border-top:0;margin-top:0;padding-top:0}
.conversation-workspace[data-view=call] .voice-draft{display:none}
.conversation-workspace[data-view=call] .voice-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.conversation-workspace .voice-check{font-size:.85rem}
.conversation-workspace .voice-option select{font-size:.85rem;padding:8px}
.voice-auto-read{padding:10px 0;margin:8px 0;border-top:1px solid var(--line,#58616a);border-bottom:1px solid var(--line,#58616a)}
.voice-auto-read label{display:flex;gap:8px;align-items:flex-start;line-height:1.4;font-size:.88rem}
.voice-auto-read input{width:20px!important;height:20px!important;min-width:20px;margin-top:2px}
.voice-auto-read p{font-size:.8rem;color:var(--muted,#b7c0c8);margin:6px 0;line-height:1.4}
.voice-auto-read button{font-size:.85rem;min-height:44px;margin:4px 0;padding:8px 12px}
.has-conversation-workspace.device-key-unavailable .workspace-tabs,.has-conversation-workspace.device-key-unavailable #workspace-call,.has-conversation-workspace.device-key-unavailable #workspace-chat,.has-conversation-workspace.device-key-unavailable .private-voice-options,.has-conversation-workspace.device-key-unavailable .workspace-return-call{display:none!important}
@media(min-width:800px){.workspace-tabs{position:sticky;inset-inline:auto;bottom:0;border-radius:10px;margin-top:12px}.conversation-workspace{padding-bottom:8px}.has-conversation-workspace #messages{max-height:55dvh}}
@media(max-width:360px){.conversation-workspace[data-view=call] .voice-options{grid-template-columns:1fr}.workspace-tab{font-size:.85rem}.has-conversation-workspace .composer button{max-width:32%}}
@media(max-height:560px){.has-conversation-workspace #workspace-call .videos{height:clamp(90px,23dvh,150px)}.has-conversation-workspace #messages{max-height:40dvh;min-height:80px}}

/* .55: the input is a first-class control, never below a clipped/inner scroll area.
   Preserve browser/font scaling; measure nav and composer rather than shrinking text. */
.wuppa-private-shell .conversation-workspace{--workspace-nav-height:64px;--workspace-composer-height:88px;--workspace-keyboard-inset:0px}
.wuppa-private-shell .conversation-workspace[data-view=chat]{padding-bottom:calc(var(--workspace-nav-height) + var(--workspace-composer-height) + 20px)}
.wuppa-private-shell .conversation-workspace[data-view=chat] #composer{position:fixed;z-index:45;inset-inline:0;bottom:calc(var(--workspace-keyboard-inset) + var(--workspace-nav-height));width:100%;max-width:1100px;margin:0 auto;padding:8px 12px;background:var(--bg,#25282b);border-top:1px solid var(--line,#58616a);display:flex;flex-direction:row;align-items:flex-end;gap:8px;box-sizing:border-box}
.wuppa-private-shell .conversation-workspace[data-view=chat] #message-text{display:block;flex:1 1 0%;width:0;min-width:0;min-height:48px;max-height:min(120px,25dvh);padding:8px;resize:none;font:inherit;line-height:1.35}
.wuppa-private-shell .conversation-workspace[data-view=chat] #send{display:block;flex:0 0 auto;min-height:48px;max-width:32%;margin:0;padding:9px 7px;font:inherit;font-size:.85rem}
.wuppa-private-shell .conversation-workspace .workspace-tabs{position:fixed;bottom:var(--workspace-keyboard-inset);z-index:46;inset-inline:0;max-width:1100px;margin:0 auto;border-radius:0}
.wuppa-private-shell .conversation-workspace #workspace-chat #messages{max-height:max(90px,calc(100dvh - var(--private-header-height,56px) - var(--workspace-nav-height) - var(--workspace-composer-height) - 160px));min-height:90px;overscroll-behavior:auto}
.wuppa-private-shell.private-conversation > header{padding-block:3px;min-height:50px}
.wuppa-private-shell.private-conversation > header .brand{font-size:1.3rem;min-height:44px}
.wuppa-private-shell .private-conversation-heading{padding-block:4px;margin-bottom:5px}
.wuppa-private-shell .private-conversation-heading h1{font-size:1rem}
.wuppa-private-shell .private-conversation-heading .wuppa-language select{max-width:min(7rem,28vw)}
.wuppa-private-shell.workspace-composing > header{display:none}
.wuppa-private-shell.workspace-composing .private-conversation-heading{top:0}
.wuppa-private-shell.workspace-composing #peer-status{display:none}
.wuppa-private-shell .has-conversation-workspace.device-key-unavailable #composer{display:none!important}

/* .57 presentation repair: the workspace nesting must not inherit the old 2:1 grid.
   Same video nodes and streams; no playback/call lifecycle changes. */
.wuppa-private-shell .has-conversation-workspace #workspace-call .videos{display:block;grid-template-columns:none;gap:0}
.wuppa-private-shell .has-conversation-workspace #workspace-call .videos #remote-video{position:relative;display:block;width:100%;height:100%;min-height:0;max-height:none;margin:0;border-radius:0;object-fit:cover}
.wuppa-private-shell .has-conversation-workspace #workspace-call .videos #local-video{position:absolute;inset-inline-start:auto;inset-inline-end:auto;right:8px;top:8px;width:26%;height:28%;min-height:0;max-height:100px;max-width:160px;margin:0;object-fit:cover;z-index:2;border:1px solid #b5bdc5;border-radius:8px;box-shadow:0 2px 8px #0009}
/* Text and hint remain readable at the user's font size. Disabled state is retained. */
.wuppa-private-shell .conversation-workspace #message-text{color:#fff;caret-color:#fff}
.wuppa-private-shell .conversation-workspace #message-text::placeholder{color:#fff;opacity:1}
/* The contact name and explanatory area are a real, keyboard-accessible link. */
.wuppa-private-shell .attention-message-entry{display:block;min-height:44px;color:inherit;text-decoration:none;border-radius:8px;padding:8px 4px}
.wuppa-private-shell .attention-message-entry:focus-visible{outline:3px solid #ffd6ab;outline-offset:3px}
.wuppa-private-shell .attention-message-entry:hover{background:#ffffff0a}
.wuppa-private-shell .attention-row[data-message-entry]{cursor:pointer}
