/* ==========================================================================
   SIDE PANEL (.verser-side-panel-host, .verser-side-panel). A panel that extends from a main area instead of lying
   over it (the meeting call's Chat and People, 2 Nov). Where the host is wide the panel stands at the main area's
   end edge (right in English, left in Arabic) and the main area gets narrower; where it is narrow
   (data-layout="stack", set by side-panel.js from the host's own width) the panel hangs under the main area's bottom
   edge and the screen decides how much shorter the main area gets. Nothing in the main area is ever covered.
     .verser-side-panel-host             the row: the main area, then the panel
       > .verser-side-panel-main         the main area (a stage, a list)
       > .verser-side-panel              data-open="true" shows it; aria-label names it
           .verser-side-panel-head       the kit's underline tabs (one panel at a time, a tab each) and Close
           .verser-side-panel-close      the kit's icon button
           .verser-side-panel-body       one per tab; scrolls up and down, never sideways
           .verser-side-panel-foot       pinned under the body (a composer)
   Motion (side-panel.js): the panel slides in from the edge it is attached to, transform and opacity only; the main
   area's children named by the screen move to their new places with a FLIP, so nothing jumps. Reduced motion: a fade.
   Tokens: --verser-side-panel-* (ui/tokens.css).
   ========================================================================== */
.verser-side-panel-host{display:flex;flex-direction:row;align-items:stretch;min-width:0}
.verser-side-panel-host>.verser-side-panel-main{flex:1 1 0;min-width:0}
.verser-side-panel-host:has(>.verser-side-panel[data-open="true"]){gap:var(--verser-side-panel-gap)}
.verser-side-panel{
  display:none;flex:0 0 var(--verser-side-panel-size);flex-direction:column;min-width:0;min-height:0;overflow:hidden;
  border:1px solid var(--verser-side-panel-border);border-radius:var(--verser-side-panel-radius);
  background:var(--gloss),var(--fog),var(--verser-side-panel-fill);background-origin:border-box;
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--verser-side-panel-shadow);
  color:var(--text);font-family:var(--font-ui)
}
.verser-side-panel[data-open="true"]{display:flex}
/* Narrow: under the main area, the full width, a steady height (the screen may set its own). */
.verser-side-panel-host[data-layout="stack"]{flex-direction:column}
.verser-side-panel-host[data-layout="stack"]>.verser-side-panel-main{flex:none}
.verser-side-panel-host[data-layout="stack"]>.verser-side-panel{flex:none;block-size:var(--verser-side-panel-stack-size)}

.verser-side-panel-head{display:flex;align-items:center;gap:var(--space-1);flex:none;padding-inline:var(--space-2) var(--space-1);border-bottom:1px solid var(--verser-tabs-line-border)}
.verser-side-panel-head .tabs-line{--verser-tabs-line-margin-top:0;flex:1 1 auto;min-width:0;border-bottom:0}
.verser-side-panel-head .tabs-line .tab-line{flex:0 1 auto;padding-inline:var(--space-3)}
.verser-side-panel-head .tabs-line .tab-badge{font-variant-numeric:tabular-nums}
.verser-side-panel-head .tabs-line .tab-badge[hidden]{display:none}
.verser-side-panel-close{flex:none}
.verser-side-panel-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:var(--verser-side-panel-padding);scrollbar-width:thin;scrollbar-color:var(--fill-3) transparent}
.verser-side-panel-body[hidden]{display:none}
.verser-side-panel-foot{flex:none;padding:0 var(--verser-side-panel-padding) var(--verser-side-panel-padding)}
.verser-side-panel-foot[hidden]{display:none}
.verser-side-panel-foot:empty{display:none}
/* A tab's pane: its body scrolls, its foot stays under it. */
.verser-side-panel-pane{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
.verser-side-panel-pane[hidden]{display:none}
/* A quiet count after a tab's label (how many people), where the pink .tab-badge is for something unread. */
.verser-side-panel-count{color:var(--text-2);font-family:var(--mono);font-size:var(--font-size-meta);font-weight:500;font-variant-numeric:tabular-nums}
.verser-side-panel-count:empty{display:none}
