/* Focus groups (2026-10-31): what a group chat adds to the one-to-one chat (focusgroup.js), from the accepted study v5.
   The thread, the bubbles, the dots and the bar are styles.css's. */

/* the group's emblem keeps its size beside a long list of names, which ends in "…" instead */
.fg .who-chip .emblem{flex:none}
.fg .who-chip>div{min-width:0}
.fg .who-chip .mono{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* who said it: the member's descriptive title after the name, in the line's own soft ink */
.msg-title{color:var(--ink-soft)}
.msg.me .msg-title{color:var(--bubble-me-k)}
/* an @ pick in the user's own bubble */
.msg .mention{font-weight:600}

/* the field: written in (contenteditable), so an @ pick becomes a chip; the platform's field otherwise */
.composer{position:relative}
.composer .af{flex:1;min-width:0;position:static}
.af-in{min-height:44px;max-height:120px;overflow-y:auto;padding:10px var(--s-4);background:var(--field);border:1px solid var(--field-edge);border-radius:22px;
  color:var(--ink);line-height:1.5;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.af-in:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.af-in:empty::before{content:attr(data-ph);color:var(--ink-soft)}
.mchip{display:inline-flex;align-items:center;gap:4px;vertical-align:-3px;padding:1px 8px 1px 2px;margin:0 1px;border-radius:var(--r-full);
  background:color-mix(in srgb,var(--accent) 16%,var(--field));font-weight:600;line-height:1.35;white-space:nowrap;user-select:all}
.mchip .chip-av{width:20px;height:20px}
.mchip .st{display:flex}
.mchip .st .chip-av{width:18px;height:18px;box-shadow:0 0 0 1.5px var(--field)}
.mchip .st .chip-av+.chip-av{margin-left:-6px}

/* the @ list, variant C: the people as faces above, their types and groups as pills below */
.pc mark{background:none;color:inherit;text-decoration:underline 2px var(--accent);text-underline-offset:3px}
.pc .stack{display:flex;flex:none}
.pc .stack .chip-av+.chip-av{margin-left:-7px}
.pc{position:absolute;bottom:calc(100% - var(--s-2));left:var(--s-4);right:var(--s-4);z-index:30;background:var(--surface);border:2px solid var(--ink);border-radius:var(--r-2);
  box-shadow:var(--shadow);padding:var(--s-3);max-width:640px;max-height:min(60vh,420px);overflow-y:auto}
.pc .faces{display:flex;flex-wrap:wrap;gap:var(--s-2)}
.pc .face{display:flex;flex-direction:column;align-items:center;gap:6px;width:92px;padding:var(--s-2) 4px;border:0;background:none;border-radius:var(--r-2);cursor:pointer;color:var(--ink)}
.pc .face .chip-av{width:52px;height:52px}
/* a long name or title breaks inside the face's width, never over the next face */
.pc .face .nm{max-width:100%;font:700 10.5px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;text-align:center;hyphens:auto;overflow-wrap:anywhere}
.pc .face .sub{max-width:100%;font-size:11.5px;line-height:1.25;color:var(--ink-soft);text-align:center;hyphens:auto;overflow-wrap:anywhere}
.pc .face.cur{background:var(--paper-2);box-shadow:inset 0 -3px 0 var(--accent)}
.pc .pills{display:flex;flex-wrap:wrap;gap:var(--s-2)}
.pc .faces+.pills{border-top:1px solid var(--line);margin-top:var(--s-2);padding-top:var(--s-3)}
.pc .pill{display:inline-flex;align-items:center;gap:var(--s-2);min-height:34px;padding:3px var(--s-3) 3px 4px;border:1px solid var(--line-strong);border-radius:var(--r-full);
  background:var(--paper);cursor:pointer;color:var(--ink);font:700 11px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}
.pc .pill .chip-av{width:24px;height:24px}
.pc .pill .stack .chip-av{box-shadow:0 0 0 2px var(--paper)}
.pc .pill .n{font-weight:400;color:var(--ink-soft)}
.pc .pill.cur{border-color:var(--ink);background:var(--paper-2);box-shadow:inset 0 0 0 1px var(--ink)}

/* Diskussion laufen lassen: between the field and Senden; greyed while anyone thinks or answers */
.composer .run{flex:none;min-height:44px}
.composer .run[aria-disabled="true"]{color:var(--ink-mute);border-color:var(--line-strong);cursor:not-allowed}
.composer .run[aria-disabled="true"]:hover{background:transparent;color:var(--ink-mute)}
@media (max-width:640px){
  .fg form.composer{flex-wrap:wrap}
  .fg form.composer .af{flex:1 1 100%}
  .fg form.composer .run{flex:1 1 0;min-width:0;padding:0 var(--s-2);font-size:11px;letter-spacing:.04em}
  .pc{left:var(--s-2);right:var(--s-2)}
  .pc .face{width:76px}
  .pc .face .chip-av{width:44px;height:44px}
}

/* ---------- the live chat (round B, study v5): the live interview's stage with the group as tiles ---------- */
.stage.gstage{overflow:hidden;background:var(--paper)}
.gtiles{position:absolute;z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:center}
.gtiles .grow{display:flex;justify-content:center}
.gt{flex:none;min-width:0}
.gt-box{position:relative;overflow:hidden;border-radius:var(--r-2)}
.gt-box .room{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
[data-theme="dark"] .drawing .gt-box::before{content:"";position:absolute;inset:0;background:rgba(10,10,9,.45);z-index:1}
.gt-box svg.portrait-d{position:absolute;z-index:2;left:50%;bottom:0;height:100%;width:auto;aspect-ratio:300/340;transform:translateX(-50%);overflow:visible}
.gt-box canvas.orb{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:2}
/* the orbs stand on the one-to-one orb's ground, without rooms; the faces on their rooms */
.stage:not(.drawing) .gt-box .room,.stage:not(.drawing) .gt-box svg.portrait-d{display:none}
.stage.drawing .gt-box canvas.orb{display:none}
.stage:not(.drawing) .gt-box:not(.speaking):not(.thinking) canvas.orb{opacity:.45}
/* the one talking, or else the one thinking: a thin outline, never on two */
.gt-box.on{box-shadow:0 0 0 2px var(--accent)}
.gt-lab{padding:6px 2px 0;text-align:center}
.gt-name{display:block;font:700 11px/1.35 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gt-title{display:block;font-size:13px;line-height:1.3;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a hidden twin of the subtitle's line, to find where two lines end */
.subs-measure{position:absolute;visibility:hidden;left:-9999px;top:0;margin:0;font:400 26px/1.35 var(--grot)}
@media (max-width:640px){
  .stage.gstage{aspect-ratio:auto}
  .gt-name{font-size:10px;letter-spacing:.07em}
  .gt-title{font-size:11.5px}
  .subs-measure{font-size:20px}
}

/* since your last question: a fold above the bar, never under the subtitles; the question first */
.since{display:flex;flex-direction:column;min-height:0;margin:0 var(--page-margin);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-2)}
.since-h{display:flex;align-items:center;gap:var(--s-3);width:100%;min-height:44px;padding:0 var(--s-4);background:none;border:0;cursor:pointer;color:var(--ink);text-align:left;flex:none}
.since-h .kicker{flex:1;color:var(--ink)}
.since-h .ms-chev{margin-left:var(--s-1)}
.since-h[aria-expanded="true"] .ms-chev{transform:translateY(1px) rotate(225deg);border-color:var(--accent)}
.since ol{list-style:none;margin:0;padding:0 var(--s-4) var(--s-2);overflow-y:auto;min-height:0;max-height:180px;overscroll-behavior:contain}
.since li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:2px var(--s-3);padding:var(--s-2) 0;border-top:1px solid var(--line)}
.since li .chip-av{width:28px;height:28px;grid-row:span 2}
.since .who{font:700 10.5px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase}
.since .who span{font-weight:400;color:var(--ink-soft);margin-left:8px}
.since .tx{font-size:14px;line-height:1.45;color:var(--ink)}
.since li.q{grid-template-columns:minmax(0,1fr)}
.since li.q .tx{color:var(--ink-soft)}
/* the bar under the stage: Aufnehmen, then the field with Diskussion laufen lassen and Senden */
.fg .bar .composer .pc{left:0}
@media (max-width:640px){ .fg .bar form.composer{flex-wrap:wrap} }
