/* The Owner's "everyone's work" bar and its "Made by" chips (everyone-switch.js; frozen Main.dc.html): label left, "Made by" centred,
   switch right. One stylesheet for every app that loads this folder (Media Studio, AI Slide Decks, the Site Builder; owner-view final
   review I-7). Tokens only: each app's theme file sets the --ms-* sizes (as for list-toolbar.css), the --th-* colours, and the --es-*
   names below, which say where the bar sits on its page and which of the app's own colours it wears:
     --es-bar-space, --es-summary-space   the bar's and the summary's margins on that app's page
     --es-chips-top                       the space above a card's chips
     --es-on, --es-knob                   the switch when on, and its knob
     --es-summary-ink                     the sentence under the tabs
     --es-by-bg, --es-by-ink              the "Made by" chip
     --es-former-bg, --es-former-ink      the "Former member" chip */
.es-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--ms-16);
  min-height: var(--ms-76); padding: var(--ms-16) var(--ms-24); margin: var(--es-bar-space);
  background: var(--th-surface); border: var(--ms-1) solid var(--th-edge); border-radius: var(--ms-12);
}
.es-bar[hidden] { display: none; }
.es-label { justify-self: start; font-size: var(--ms-text-15); font-weight: var(--ms-semibold); color: var(--th-on-surface); }
.es-mid { justify-self: center; min-height: var(--ms-touch); display: flex; align-items: center; }
.es-pick { display: flex; align-items: center; gap: var(--ms-10); }
.es-pick label { font-size: var(--ms-14); font-weight: var(--ms-semibold); color: var(--th-on-surface-dim); }
.es-select {
  height: var(--ms-touch); min-width: var(--ms-220); padding: 0 var(--ms-12); font: inherit; font-size: var(--ms-14);
  background: var(--th-surface); color: var(--th-input-text); border: var(--ms-1) solid var(--th-edge-strong); border-radius: var(--ms-8);
}
.es-switch {
  justify-self: end; width: var(--ms-56); height: var(--ms-32); padding: var(--ms-4); border: 0; border-radius: var(--ms-16); cursor: pointer;
  display: flex; align-items: center; justify-content: flex-start; background: var(--th-placeholder);
}
.es-switch.es-on { justify-content: flex-end; background: var(--es-on); }
.es-switch:focus-visible, .es-select:focus-visible { outline: var(--ms-2) solid var(--th-focus-border); outline-offset: var(--ms-2); }
.es-knob { width: var(--ms-24); height: var(--ms-24); border-radius: var(--ms-12); background: var(--es-knob); box-shadow: 0 var(--ms-1) var(--ms-2) var(--th-shadow-color); }
.es-summary { margin: var(--es-summary-space); font-size: var(--ms-14); color: var(--es-summary-ink); }
.es-chips { display: flex; flex-wrap: wrap; gap: var(--ms-8); margin-top: var(--es-chips-top); }
.es-chip { font-size: var(--ms-text-12); padding: var(--ms-4) var(--ms-10); border-radius: var(--ms-12); }
.es-chip-by { background: var(--es-by-bg); color: var(--es-by-ink); }
.es-chip-former { background: var(--es-former-bg); color: var(--es-former-ink); }
/* Phone width: label and switch on the first row, the dropdown on its own row; nothing scrolls sideways */
@media (max-width: 640px) { /* om-allow: a media query cannot read a custom property; the frozen Main.dc.html phone width */
  .es-bar { grid-template-columns: minmax(0, 1fr) auto; padding: var(--ms-16); }
  .es-mid { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .es-mid:empty { display: none; }   /* switch off: no "Made by", so no empty second row */
  .es-bar .es-switch { grid-column: 2; grid-row: 1; }
  .es-pick { width: 100%; }
  .es-select { flex: 1; min-width: 0; }
}
