/* Compact compositions preserve type sizes and the existing animation timeline. */
@media (min-width:901px) and (max-height:950px){
 .labs-page .scene-summary{min-height:56px;padding-block:10px}
 .network-player .network-studio{--compact-scene:clamp(440px,calc(100svh - 230px),650px);height:var(--compact-scene)}
 .network-studio .studio-heading{top:18px;left:24px;right:24px}
 .network-studio .peer-left,.network-studio .peer-right{left:3%;right:auto;width:27%;top:64px}
 .network-studio .peer-right{top:calc(50% + 24px)}
 .network-studio .source-instance{height:calc((var(--compact-scene) - 104px)/2)}
 .network-studio .source-content{height:auto}
 .network-studio .source-preview{padding:8px 12px}
 .network-studio .source-instance .instance-chrome{height:32px}
 .network-studio .source-instance .instance-toolbar{height:30px}
 .network-studio .document-sheet,.network-studio .notes-sheet{display:none}
 .network-studio .source-title{font-size:15px;line-height:1.3}
 .network-studio .source-rail{width:28px;padding-top:10px;gap:7px}
 .network-studio .other-material{margin-top:5px}
 .network-studio .studio-lead{top:64px;left:34%;width:63%}
 .network-studio .lead-workspace{height:calc(var(--compact-scene) - 174px);min-height:266px}
 .network-studio .governance-rule{padding:16px}
 .network-studio .knowledge-browser{padding:16px}
 .network-studio .knowledge-list>div{height:47px}
 .network-studio .governance-rule>strong{font-size:19px}
 .network-studio .knowledge-heading strong{font-size:23px}
 .network-studio .network-ai{padding:18px}
 .network-studio .network-ai-result p,.network-studio .network-ai-result ol{font-size:16px}
 .network-studio .network-intro{padding:24px}
 .network-studio .network-intro strong{font-size:30px}
 .network-studio .network-intro p{font-size:16px;margin-top:16px}
 .meeting-player .workspace-top{min-height:84px;padding:8px 18px}
 .meeting-player .live-call{padding-top:5px;padding-bottom:24px}
 .meeting-player .call-person{height:58px}
 .meeting-player .app-workspace{min-height:360px;height:360px}
 .meeting-player .transcript-panel{padding:18px}
 .meeting-player .transcript-entry:not(.active-line){display:none}
 .meeting-player .transcript-entries{gap:12px}
 .meeting-player .transcript-entry{min-height:0}
 .meeting-player .intelligence-panel{grid-template-rows:130px 230px}
 .meeting-player .agenda-panel{padding:10px 16px}
 .meeting-player .agenda-panel .pane-heading{margin-bottom:8px}
 .meeting-player .agenda-list{gap:7px}
 .meeting-player .agenda-list li>div{flex-direction:row;align-items:center}
 .meeting-player .assistant-panel{padding:12px 16px;min-height:0}
 .meeting-player .answer-space{padding-top:10px}
 .meeting-player .meeting-answer p{margin-top:5px;margin-bottom:5px}
 .meeting-player .animation-intro{padding:22px}
 .meeting-player .animation-intro strong{font-size:28px}
 .meeting-player .animation-intro p{font-size:16px}
 .labs-page .player-chapters button{padding-block:8px}
 .labs-page .lab-player figcaption{margin-top:6px;margin-bottom:12px}
}
@media (max-width:900px) and (max-height:950px){
 .meeting-player .scene-summary,.network-player .scene-summary{min-height:74px}
 /* Give the viewer one readable panel, in the same space, throughout the sequence. */
 .meeting-player .app-workspace{--meeting-panel-height:310px;display:block;position:relative;height:var(--meeting-panel-height);min-height:var(--meeting-panel-height)}
 .meeting-player .intelligence-panel{display:contents}
 .meeting-player .app-sidebar{display:none}
 .meeting-player .transcript-panel,.meeting-player .agenda-panel,.meeting-player .assistant-panel{display:none!important;position:absolute;inset:0;height:100%;min-height:0;opacity:1!important;padding:18px;border:0}
 .meeting-player[data-focus="transcript"] .transcript-panel,.meeting-player[data-focus="agenda"] .agenda-panel,.meeting-player[data-focus="assistant"] .assistant-panel{display:block!important}
 .meeting-player .transcript-entry:not(.active-line){display:none}
 .meeting-player .transcript-entry.active-line{display:block}
 .meeting-player .agenda-panel .pane-heading{margin-bottom:20px}
 .meeting-player .agenda-list{gap:18px}
 .meeting-player .agenda-list strong{font-size:14px}
 .meeting-player .agenda-state{font-size:10px}
 .meeting-player .agenda-list li>div{flex-direction:row;align-items:center}
 .meeting-player .transcript-entry p{font-size:16px}
 .meeting-player .animation-intro strong{font-size:24px}
 .meeting-player .animation-intro p{font-size:14px}
 .network-player .network-studio{height:566px}
 .network-studio .studio-heading{top:14px}
 .network-studio .peer-left,.network-studio .peer-right{top:66px;width:43%;left:4%;right:auto}
 .network-studio .peer-right{left:auto;right:4%}
 .network-studio .source-instance{height:124px}
 .network-studio .source-instance .instance-chrome{height:33px}
 .network-studio .source-instance .instance-toolbar{height:25px}
 .network-studio .source-content{height:66px}
 .network-studio .source-preview{padding:3px 8px}
 .network-studio .source-label{float:right;margin:0 0 2px 4px}
 .network-studio .source-title{font-size:12px;line-height:1.25;max-width:none}
 .network-studio .other-material{margin-top:3px;height:17px}
 .network-studio .document-sheet,.network-studio .notes-sheet{display:none}
 .network-studio .source-rail{display:none}
 .network-studio .studio-lead{top:210px;left:4%;width:92%}
 .network-studio .lead-instance .instance-chrome{height:24px}
 .network-studio .lead-instance .instance-toolbar{height:30px}
 .network-studio .lead-workspace{height:270px;display:block}
 .network-studio .governance-rule{height:116px;padding:10px 13px;border-right:0;border-bottom:1px solid #dce7df;display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;gap:5px 12px}
 .network-studio .governance-rule[hidden]{display:none}
 .network-studio .governance-rule>strong{grid-column:1/-1;font-size:16px;line-height:1.3;min-height:0}
 .network-studio .rule-eyebrow{grid-column:1/-1;margin:0;font-size:10px;line-height:1.3}
 .network-studio .rule-fields{position:static;grid-column:2;grid-row:3;justify-content:flex-end;align-self:center;margin:0;font-size:8px;line-height:1.3}
 .network-studio .rule-fields b{font-size:9px;margin-top:2px}
 .network-studio .rule-status{grid-column:1;grid-row:3;align-self:center;justify-self:start;margin:0;padding:4px 8px;font-size:10px;line-height:1.3}
 .network-studio .knowledge-browser{height:154px;padding:7px 13px}
 .network-studio .knowledge-heading{margin-bottom:2px}
 .network-studio .knowledge-heading>div>span{display:none}
 .network-studio .knowledge-heading strong{font-size:18px}
 .network-studio .knowledge-list>div{height:32px}
 .network-studio .lead-idle-note{margin-top:3px}
 .network-studio .network-ai{padding:12px}
 .network-studio .network-ai-inputs{margin:7px 0 10px}
 .network-studio .network-ai-result p{min-height:0;margin-bottom:10px;font-size:13px;line-height:1.4}
 .network-studio .network-ai-result ol{font-size:13px;line-height:1.4}
 .network-studio .network-ai-result li+li{margin-top:6px}
 .network-studio .network-ai-processing{padding:36px 0}
 .network-studio .network-intro{padding:18px}
 .network-studio .network-intro p{display:none}
 .network-studio .network-finale{padding:14px}
 .network-studio .network-finale>strong{font-size:26px}
 .network-studio .network-finale p{font-size:13px;line-height:1.45}
 .network-studio .connection-explainer{bottom:9px}
}
@media (max-width:350px) and (max-height:950px){
 /* Reserve room for the fully wrapped answer and transcript action in every
    stage, so neither the button nor the taskbar moves when the answer arrives. */
 .meeting-player .app-workspace{--meeting-panel-height:350px}
 .network-player .network-studio{height:596px}
 .network-studio .lead-workspace{height:300px}
 .network-studio .governance-rule{height:146px}
 .network-studio .source-label{float:none;display:none}
}
/* Very shallow landscape screens scroll naturally instead of shrinking the text. */

/* Network panels size from their content. Reserve a stable workspace for every
   stage, and place devices/caption in flow so extra lines cannot collide. */
.network-player .network-studio{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 grid-template-areas:"heading heading" "left right" "lead lead" "caption caption";
 gap:28px 8%;height:auto;padding:24px 4% 16px;
}
.network-studio .studio-heading{grid-area:heading;position:static;min-width:0}
.network-studio .studio-device{position:relative;inset:auto;width:auto;min-width:0}
.network-studio .peer-left{grid-area:left}
.network-studio .peer-right{grid-area:right}
.network-studio .studio-lead{grid-area:lead}
.network-studio .source-instance{height:auto;min-height:185px}
.network-studio .source-content{height:auto}
.network-studio .source-preview{min-width:0}
.network-studio .source-label{float:none}
.network-studio .source-title{max-width:none}
.network-studio .other-material{height:auto;min-height:18px;clear:both}
.network-studio .instance-chrome{height:auto;min-height:33px;white-space:normal;padding-block:6px}
.network-studio .instance-toolbar{height:auto;min-height:34px;flex-wrap:wrap;padding-block:6px}
.network-studio .lead-workspace{height:auto;min-height:340px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.network-studio .governance-rule{height:auto;min-width:0}
.network-studio .knowledge-browser{height:auto;min-width:0}
.network-studio .knowledge-heading{gap:8px;line-height:1.3}
.network-studio .knowledge-count{flex-shrink:0}
.network-studio .knowledge-list>div{height:auto;min-height:42px;padding-block:6px;line-height:1.3}
.network-studio .knowledge-list strong,.network-studio .knowledge-list>div>div>span{line-height:1.3}
.network-studio .lead-idle-note{line-height:1.4;margin-top:8px}
.network-studio .connection-explainer{grid-area:caption;position:static;min-height:18px;text-align:center;line-height:1.4}
.network-studio .network-ai-top{flex-wrap:wrap}
.network-studio .network-ai-result p{min-height:0}
.network-studio .network-ai-result{line-height:1.4}
.network-studio .network-intro strong,.network-studio .network-finale>strong{line-height:1.35}
@media(min-width:1100px) and (max-height:950px){
 .network-player .network-studio{grid-template-columns:minmax(0,27fr) minmax(0,63fr);grid-template-areas:"heading heading" "left lead" "right lead" "caption caption";gap:20px 4%;padding:18px 3% 14px}
 .network-studio .source-instance{height:100%;min-height:180px}
 .network-studio .lead-instance{height:100%;display:flex;flex-direction:column}
 .network-studio .lead-workspace{flex:1;min-height:340px}
}
@media(max-width:1099px){
 .network-studio .chrome-platform,.network-studio .windows-controls{display:none}
 .network-studio .team-device-status{display:none}
 .network-studio .lead-workspace{min-height:350px}
}
@media(max-width:900px){
 .network-player .network-studio{gap:24px 6%;padding:16px 4% 12px}
 .network-studio .source-instance{min-height:150px}
 .network-studio .source-instance .instance-chrome{min-height:42px}
 .network-studio .source-preview{padding:8px}
 .network-studio .document-sheet,.network-studio .notes-sheet{display:none}
 .network-studio .source-rail{display:none}
 .network-studio .lead-workspace{display:block;min-height:360px}
 .network-studio .governance-rule{height:auto;min-height:116px;padding:12px 14px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 12px;border-right:0;border-bottom:1px solid #dce7df}
 .network-studio .governance-rule[hidden]{display:none}
 .network-studio .rule-eyebrow,.network-studio .governance-rule>strong{grid-column:1/-1;margin:0;min-height:0}
 .network-studio .rule-fields{position:static;grid-column:2;grid-row:3;align-self:center;justify-content:flex-end;margin:0}
 .network-studio .rule-status{grid-column:1;grid-row:3;align-self:center;justify-self:start;margin:0}
 .network-studio .knowledge-browser{padding:12px 14px}
 .network-studio .knowledge-heading{margin-bottom:6px}
 .network-studio .knowledge-list>div{min-height:40px}
 .network-studio .network-ai-result{display:block}
 .network-studio .network-result-label{display:block;margin-bottom:5px}
 .network-studio .network-ai-result p{margin:0 0 12px}
}
@media(max-width:350px){
 .network-studio .lead-workspace{min-height:400px}
 .network-studio .source-label{display:flex}
 .network-studio .network-ai-top>span{white-space:normal}
}
@media(max-width:650px){
 .network-studio .connection-explainer{min-height:42px}
}
@media(min-width:651px) and (max-width:900px) and (min-height:951px){
 .network-studio .lead-workspace{min-height:390px}
}
