/* Echo Voice 1.8.4 — adaptive room refinements.
   Calm, intentional layouts; do not alter media or connection protocols. */

body.in-room #screenCall .participant-grid{
  justify-content:start;
  align-content:start;
  gap:12px;
}
/* One person: prominent portrait and room to breathe, but no full-width card. */
@media(min-width:781px){
 body.in-room #screenCall .participant-grid.is-solo{
   grid-template-columns:minmax(0,300px);
 }
 body.in-room #screenCall .participant-grid.is-solo .participant-card{
   display:flex;flex-direction:column;justify-content:space-between;
   min-height:214px;padding:15px 18px;
   grid-template-columns:none;grid-template-rows:none;
 }
 body.in-room #screenCall .participant-grid.is-solo .avatar-wrap{
   margin:12px auto 17px;align-self:center;
 }
 body.in-room #screenCall .participant-grid.is-solo .avatar{
   width:96px;height:96px;font-size:32px;
 }
 body.in-room #screenCall .participant-grid.is-duo{
   grid-template-columns:repeat(2,minmax(0,260px));
 }
 body.in-room #screenCall .participant-grid.is-duo .participant-card{
   min-height:204px;padding:14px 16px;
 }
 body.in-room #screenCall .participant-grid.is-duo .avatar{
   width:84px;height:84px;font-size:30px;
 }
 body.in-room #screenCall .participant-grid.is-duo .avatar-wrap{margin:8px auto 16px}
 body.in-room #screenCall .participant-grid.is-small-group{
   grid-template-columns:repeat(auto-fit,minmax(min(100%,172px),1fr));
 }
 body.in-room #screenCall .participant-grid.is-small-group .participant-card{
   min-height:177px;padding:12px;
 }
 body.in-room #screenCall .participant-grid.is-small-group .avatar{
   width:71px;height:71px;
 }
 body.in-room #screenCall .participant-grid.is-crowded{
   grid-template-columns:repeat(auto-fill,minmax(min(100%,147px),1fr));
   gap:9px;
 }
 body.in-room #screenCall .participant-grid.is-crowded .participant-card{
   min-height:146px;padding:10px;
 }
 body.in-room #screenCall .participant-grid.is-crowded .avatar{
   width:57px;height:57px;font-size:24px;
 }
 body.in-room #screenCall .participant-grid.is-crowded .avatar-wrap{
   min-width:57px;margin:0 auto 12px;
 }
}
@media(min-width:781px) and (max-width:1000px){
 body.in-room #screenCall .participant-grid.is-duo{
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
/* Compact and phone layouts: room identity first; audio controls are an
   expandable panel after the people, not a fixed strip before the heading. */
@media(max-width:780px){
 body.in-room #screenCall{
   grid-template-columns:minmax(0,1fr);
   grid-template-rows:minmax(0,1fr);
 }
 body.in-room #screenCall .call-main{
   grid-row:1;order:0;min-height:0;
 }
 body.in-room #screenCall .room-scroll > .settings-panel{
   display:block;grid-row:auto;order:0;
   width:100%;max-width:100%;height:auto;max-height:none;min-height:0;
   align-self:auto;margin:14px 0 8px;padding:0;
   overflow:visible;
   border:1px solid var(--eg-line,var(--border));
   border-radius:16px;
 }
 body.in-room #screenCall .room-scroll > .settings-panel .settings-mobile-toggle{
   width:100%;height:auto;min-height:44px;
 }
 body.in-room #screenCall .participant-grid.is-solo{
   grid-template-columns:minmax(0,1fr);
 }
 body.in-room #screenCall .participant-grid.is-solo .participant-card{
   min-height:150px;
 }
 body.in-room #screenCall .participant-grid.is-solo .avatar{
   width:76px;height:76px;
 }
 body.in-room #screenCall .participant-grid.is-duo{
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.in-room #screenCall .participant-grid.is-duo .participant-card{
   min-height:180px;
 }
 body.in-room #screenCall .participant-grid.is-duo .avatar{
   width:65px;height:65px;
 }
 body.in-room #screenCall .participant-grid.is-duo .avatar-wrap{
   min-width:65px;
 }
 body.in-room #screenCall .participant-grid.is-small-group{
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.in-room #screenCall .participant-grid.is-small-group .avatar{
   width:57px;height:57px;
 }
 body.in-room #screenCall .participant-grid.is-crowded{
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:9px;
 }
 body.in-room #screenCall .participant-grid.is-crowded .participant-card{
   min-height:145px;
 }
 body.in-room #screenCall .participant-grid.is-crowded .participant-card .avatar{
   width:49px;height:49px;
 }
}
@media(max-width:520px){
 body.in-room #screenCall .participant-grid.is-solo .participant-card{
   display:grid;grid-template-columns:minmax(72px,88px) minmax(0,1fr);
   grid-template-rows:auto auto;gap:5px 11px;
   min-height:138px;
 }
 body.in-room #screenCall .participant-grid.is-solo .tile-top{
   grid-column:1/-1;grid-row:1;
 }
 body.in-room #screenCall .participant-grid.is-solo .avatar-wrap{
   grid-column:1;grid-row:2;margin:0 auto;align-self:center;
 }
 body.in-room #screenCall .participant-grid.is-solo .tile-bottom{
   grid-column:2;grid-row:2;align-self:center;
 }
 body.in-room #screenCall .participant-grid.is-solo .avatar{
   width:72px;height:72px;
 }
 body.in-room #screenCall .participant-grid.is-duo .avatar{
   width:59px;height:59px;
 }
 body.in-room #screenCall .participant-grid.is-duo .avatar-wrap{
   min-width:59px;
 }
 body.in-room #screenCall .participant-grid.is-small-group .avatar{
   width:55px;height:55px;
 }
 body.in-room #screenCall .participant-grid.is-crowded .avatar{
   width:48px;height:48px;
 }
 body.in-room #screenCall .participant-grid.is-crowded .avatar-wrap{
   min-width:48px;
 }
}
/* Better typography for peer connectivity and device availability. */
body.in-room #screenCall .connection-pill{
  transition:background-color .18s,border-color .18s,color .18s;
}
body.in-room #screenCall .connection-pill[data-connection-state="reconnecting"]{
  border-color:color-mix(in srgb,#e4be76 52%,transparent);
}
.preferences-dialog .device-availability{
  margin:7px 0 10px;color:var(--muted,#a3b4b6);
  font-size:11.5px;line-height:1.45;
}
.preferences-dialog .device-availability:empty{display:none}
@media(prefers-reduced-motion:reduce){
 body.in-room #screenCall .connection-pill{transition:none}
}
:root[data-reduce-motion="true"] body.in-room #screenCall .connection-pill{transition:none}
