/* Media, workspace and tool rail remain separate grid columns. */
#conferenceV255:not(.is-minimised){display:grid;grid-template-columns:minmax(0,1fr) 104px;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;gap:10px}
#conferenceV255.meeting-open-v270{grid-template-columns:minmax(0,1fr) minmax(280px,34%) 104px}
#conferenceV255>header,#conferenceV255>[data-conference-status],#conferenceV255>[data-meeting-capture-notice]{grid-column:1/-2}
#conferenceV255>header{grid-row:1}#conferenceV255>[data-conference-status]{grid-row:2}#conferenceV255>[data-meeting-capture-notice]{grid-row:3}
#conferenceV255>[data-conference-grid]{grid-column:1;grid-row:4/6;min-width:0;min-height:0}
#conferenceV255.has-screen-stage-v267>[data-screen-stage-v267]{grid-column:1;grid-row:4}
#conferenceV255.has-screen-stage-v267>[data-conference-grid]{grid-row:5}
#conferenceV255>[data-meeting-pane]{grid-column:2;grid-row:4/6;min-width:0;min-height:0}
#conferenceV255>[data-meeting-controls]{grid-column:-2;grid-row:1/6;display:flex;flex-direction:column;align-items:stretch;align-self:stretch;gap:8px;width:auto;margin:0;padding:10px 0 0 10px;border-left:1px solid #dce4ef}
#conferenceV255>[data-meeting-controls] button{position:relative;white-space:normal;min-height:56px;padding:10px 6px;font-size:12px;line-height:1.35}
#conferenceV255>[data-meeting-controls] button[aria-pressed=true]{background:#213b5c;color:#fff;border-color:#213b5c}
#conferenceV255>footer{grid-column:1/-1;grid-row:6;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#conferenceV255 .conference-layout-controls-v262{display:contents}
#conferenceV255 .conference-leave-last-v273{margin-left:auto;order:100}
.meeting-unread-v273{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;border-radius:12px;background:#be2938;color:#fff;font-size:11px;font-weight:700;margin-left:4px;padding:0 4px}
.meeting-unread-v273[hidden],#conferenceV255>[data-meeting-controls][hidden]{display:none}
@media(max-width:760px){#conferenceV255:not(.is-minimised),#conferenceV255.meeting-open-v270{grid-template-columns:minmax(0,1fr) 84px;grid-template-rows:auto auto auto minmax(140px,1fr) minmax(0,auto) auto}#conferenceV255.meeting-open-v270>[data-conference-grid]{grid-row:4}#conferenceV255.meeting-open-v270>[data-meeting-pane]{grid-column:1;grid-row:5;max-height:40vh}#conferenceV255>[data-meeting-controls]{padding-left:6px}#conferenceV255>[data-meeting-controls] button{font-size:11px}#conferenceV255.has-screen-stage-v267>[data-screen-stage-v267]{grid-row:4}#conferenceV255.has-screen-stage-v267>[data-conference-grid]{grid-row:4;align-self:end;max-height:25%}}

#conferenceV255>footer>.conference-controls-v255{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
/* Keep both exit actions together at the right edge; Leave stays last. */
#conferenceV255 .conference-controls-v255 [data-conference-end]{order:99;margin-left:auto}
#conferenceV255 .conference-controls-v255 [data-conference-end]:not([hidden]) ~ .conference-leave-last-v273{margin-left:0}

/* Keep a live, compact participant view inside Pegasus when minimised. */
#conferenceV255.is-minimised{inset:auto 16px 16px auto;width:min(350px,calc(100vw - 32px));height:auto;max-height:min(55dvh,460px);display:block;overflow:auto}
#conferenceV255.is-minimised [data-meeting-controls]{display:none!important}
#conferenceV255.is-minimised [data-conference-grid]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;padding:4px 12px;max-height:30dvh;overflow:auto}
#conferenceV255.is-minimised .conference-person-v255{min-height:90px;height:clamp(90px,18dvh,160px)}
#conferenceV255.is-minimised .conference-person-v255 video{height:100%;width:100%;object-fit:cover}
#conferenceV255.is-minimised [data-participant][data-is-you=true]:has(~ [data-is-you=false]){display:none}
#conferenceV255.is-minimised [data-conference-status]{padding:4px 12px}
#conferenceV255.is-minimised{background:#eef3f8}
/* Conference workspace: compact tools, balanced panels and Pegasus colours. */
#conferenceV255:not(.is-minimised){box-sizing:border-box;grid-template-columns:minmax(0,1fr) 112px;gap:8px;padding:0 8px;overflow:hidden;background-color:#f5f7fa}
#conferenceV255.meeting-open-v270{grid-template-columns:minmax(0,1fr) minmax(220px,min(31%,380px)) 112px}
#conferenceV255>[data-meeting-controls]{box-sizing:border-box;min-width:0;max-width:100%;padding:10px 6px;gap:7px;overflow-y:auto;border-left:1px solid #d8dee8;background:#f5f7fa}
#conferenceV255>[data-meeting-controls] button{min-width:0;max-width:100%;min-height:48px;border-radius:7px;font-weight:600;border-color:#d5dce7;color:#1c3151;background:#fff}
#conferenceV255>[data-meeting-controls] button[aria-pressed=true]{background:#1e3455;color:#fff;border-color:#1e3455}
#conferenceV255>[data-meeting-pane]{box-sizing:border-box;min-width:0;max-width:100%;overflow:auto}
#conferenceV255 .meeting-unread-v273{margin:0 6px 0 0;background:#ae273a;vertical-align:middle}
#conferenceV255 .conference-duration-v281{margin-left:auto;align-self:center;color:#5a6b82;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
#conferenceV255.is-minimised>header{cursor:grab;touch-action:none;user-select:none}
#conferenceV255.is-minimised>header:active{cursor:grabbing}
#conferenceV255.is-minimised.call-moved-v281{left:var(--call-mini-x);top:var(--call-mini-y);right:auto;bottom:auto}
.conference-screen-stage-v267:fullscreen{display:flex;flex-direction:column;background:#101d31;padding:12px;box-sizing:border-box}
.conference-screen-stage-v267:fullscreen video{flex:1;min-height:0;max-height:calc(100dvh - 60px);width:100%;object-fit:contain}
@media(max-width:760px){#conferenceV255:not(.is-minimised),#conferenceV255.meeting-open-v270{grid-template-columns:minmax(0,1fr) 86px}#conferenceV255>[data-meeting-controls]{padding:6px 4px}#conferenceV255>[data-meeting-controls] button{font-size:11px}}
/* Drag the minimised picture or header; controls remain clickable. */
#conferenceV255.is-minimised>[data-conference-grid]{cursor:grab;touch-action:none;user-select:none}
#conferenceV255.is-minimised>[data-conference-grid]:active{cursor:grabbing}
#conferenceV255 [data-float-video-v290]{font-size:11px;padding:5px 7px;white-space:nowrap}
#conferenceV255 [data-float-video-v290][hidden]{display:none!important}
#conferenceV255.is-minimised>header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:12px}
#conferenceV255.is-minimised>header>div:first-of-type{min-width:0}
#conferenceV255.is-minimised>header h2{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
#conferenceV255.is-minimised [data-red-swoosh]{display:none}
