/* QALM app shell: one frame for Solo, Listen, Online, Recap and Settings. Loaded last.

   Every screen has two parts: a dark control panel and a white viewing panel.
     single  narrower than 720px, or lower than 500px (phones, narrow split screens):
             one panel at a time, title on top, tabs at the bottom. The viewing panel shows
             under the controls where it holds something (Online, Recap, Settings) and is
             left out where it would only be a picture (Solo, Listen before the live text).
     split   720px wide and 500px high or more (tablets either way up, computers, wide split
             screens): logo, module tabs and Settings in one top bar that never moves; the
             control panel on the left, the viewing panel on the right.
   The left panel takes 45% upright, 40% lying down and 36% on large screens, never less
   than 300px. */

:root{
  /* spacing */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-6:24px;--sp-8:32px;
  /* corners */
  --r-card:14px;--r-pane:22px;
  /* touch */
  --tap:48px;--field-h:48px;
  /* type */
  --fs-title:clamp(28px,2.4vw,32px);--fs-head:19px;--fs-body:15px;--fs-small:13px;
  /* the two panels */
  --pn-d:#18191D;--card-d:#292B30;--pn-l:#FAFAFA;--card-l:#EFEFF2;--line-l:#E4E4E8;
  /* motion */
  --t-fast:.18s;
  /* safe areas */
  --safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);
  --safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);
}
html{height:100%;-webkit-text-size-adjust:100%}
body{min-height:100%}
#view{container:ws/inline-size}

/* shared controls: a comfortable touch target everywhere */
#app .cta,#app .btnk,#app .btng{min-height:var(--tap)}
#app .fld input,#app .so-n{min-height:var(--field-h)}
#app .tabs button{min-height:var(--tap)}
#app button,#app .lchip{transition:background-color var(--t-fast),color var(--t-fast),transform var(--t-fast)}
body:not([data-mods~="group"]):not([data-mods~="groupshow"]) #app .tabs [data-tab="group"]{display:none}

/* parts that exist only for the split screen */
.vp-empty,.vpane,.rl-nav,.sg-me,.sg-nav,.lvhero.lvhero-w{display:none}

/* the empty viewing panel: a picture, a status and one line */
.vp-empty{flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:100%;padding:32px;text-align:center;color:#1B1B1F}
.vp-ico{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:var(--card-l);margin-bottom:6px}
.vp-ico svg{width:46px;height:46px;fill:none;stroke:#8A8A93;stroke-width:3;stroke-linecap:round}
.vp-empty b{font-size:var(--fs-head);font-weight:600}
.vp-empty p{max-width:34ch;font-size:var(--fs-body);line-height:1.5;color:#6B6B73}

/* ================= single ================= */
@media (max-width:719.98px), (max-height:499.98px){
  #app .hdr,#app .cap,#app .sheet,#app .lv{padding-left:max(var(--pad-l,20px),var(--safe-l));padding-right:max(var(--pad-r,20px),var(--safe-r))}
  /* Solo: the "ready" picture is for wide screens */
  #app .so-v2 .capwrap{display:none}
  #app .so-split{display:contents}
}
/* a narrow window on a computer, or a large phone: the content keeps a reading width */
@media (min-width:600px) and (max-width:719.98px){
  #app{--pad-l:max(28px,calc((100% - 640px) / 2));--pad-r:var(--pad-l)}
  #app .cap,#app .sheet{--pad-l:max(28px,calc((100% - 640px) / 2));--pad-r:var(--pad-l)}
  #app .tabs{padding-left:max(8px,calc((100% - 560px) / 2));padding-right:max(8px,calc((100% - 560px) / 2))}
}

/* ================= split ================= */
@media (min-width:720px) and (min-height:500px){
  body{background:#0B0B0C}
  #app{--hh:68px;--gap:clamp(12px,1.4vw,20px);--lp:45%;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:#0B0B0C}
  /* the top bar: logo · module tabs · account, in the same place on every screen */
  #app .hdr{flex:none;height:calc(var(--hh) + var(--safe-t));padding:var(--safe-t) max(var(--gap),var(--safe-r)) 0 max(var(--gap),var(--safe-l));grid-template-columns:1fr auto 1fr;border:0;background:#0B0B0C}
  #app .hdr .qlogo{height:40px;width:auto}
  #app .tabs{gap:2px;padding:4px;border-radius:999px;background:#1C1D21}
  #app .tabs button{display:flex;align-items:center;gap:7px;min-height:44px;padding:0 16px;font-size:15px;border-radius:999px}
  #app .tabs svg{display:block;width:18px;height:18px;stroke-width:2}
  #app .tabs button[data-tab="settings"] span{display:none}
  #app .tabs button[data-tab="settings"]{padding:0 13px}
  #app .hdr .me,#app .hdr .hmore{width:44px;height:44px}

  /* the workspace: two panels with a gap, filling the window */
  #app #view{flex:1;min-height:0;display:grid;grid-template-columns:minmax(300px,var(--lp)) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:var(--gap);
    padding:0 max(var(--gap),var(--safe-r)) max(var(--gap),var(--safe-b)) max(var(--gap),var(--safe-l));background:#0B0B0C;align-items:stretch}
  #app .capwrap,#app .sheetwrap{position:static;min-height:0;max-height:none;overflow:auto;border-radius:var(--r-pane);scrollbar-width:thin}
  #app .capwrap{grid-column:1;grid-row:1;background:var(--pn-d);scrollbar-color:#3a3b40 transparent}
  #app .sheetwrap{grid-column:2;grid-row:1;background:var(--pn-l);display:flex;flex-direction:column;scrollbar-color:#cfcfd6 transparent}
  #app .cap{background:transparent;border-radius:0;padding:28px 28px 32px;min-height:100%}
  #app .sheet{flex:1;min-height:100%;background:transparent;border-radius:0;padding:28px clamp(24px,3vw,40px) 32px}
  #app .sheet>*{max-width:900px;margin-inline:auto;width:100%}
  #app .lt{font-size:var(--fs-title)}
  #app .vp-empty{display:flex}
  /* Online with nothing planned: the picture instead of a small empty box */
  #app .onempty{display:none}
  #app .sheet .vp-empty{min-height:60%}

  /* ---------- Solo, before the meeting: controls left (the sheet), "ready" right (the cap) ---------- */
  #app .so-v2 .sheetwrap{grid-column:1;background:var(--pn-d)}
  #app .so-v2 .capwrap{grid-column:2;background:var(--pn-l)}
  #app .so-v2 .cap{display:flex;padding:0}
  #app .so-v2 .sheet{display:flex;flex-direction:column;justify-content:safe center;gap:14px;padding:24px clamp(20px,2.4vw,32px);color:#fff}
  #app .so-v2 .sheet>*{max-width:none;margin:0}
  #app .so-v2 .sheet>.fld{margin-top:4px}
  #app .so-v2 .sheet>.so-cta{margin-top:8px}
  #app .so-v2 .so-card2{background:var(--card-d);border-color:#34363C}

  /* ---------- Solo, during the meeting: controls left, activity right ---------- */
  #app #view>.so-split{grid-column:1/-1;display:grid;grid-template-columns:minmax(300px,var(--lp)) minmax(0,1fr);gap:var(--gap);min-height:0}
  #app .so-split>.vpane{grid-column:2;grid-row:1}
  #app .so-split>.so-meet{grid-column:1;grid-row:1;min-height:0;border-radius:var(--r-pane);background:var(--pn-d);padding:24px clamp(20px,2.4vw,32px);overflow:auto}
  #app .so-split .so-hint{display:none}
  #app .so-split .so-time{font-size:clamp(56px,7vw,88px)}
  .vpane{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto;border-radius:var(--r-pane);background:var(--pn-l);color:#1B1B1F;padding:28px clamp(24px,3vw,40px)}
  .vp-h{margin:0 0 4px;font-size:var(--fs-head);font-weight:600}
  .vp-sh{margin:12px 0 0;font-size:var(--fs-small);font-weight:600;color:#6B6B73}
  .vp-card{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:var(--r-card);background:var(--card-l);font-size:var(--fs-body);line-height:1.45;color:#3A3A40}
  .vp-card b{font-size:16px;color:#1B1B1F}
  .vp-chips,.vp-list{display:flex;flex-wrap:wrap;gap:8px}
  .vp-chips span,.vp-list span{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border-radius:999px;background:var(--card-l);font-size:14px;font-weight:500}
  .vp-list svg{width:16px;height:16px}
  .vp-none{font-size:14px;color:#8A8A93;margin:0}
  .vp-foot{margin-top:auto;font-size:var(--fs-small);color:#8A8A93}

  /* ---------- Listen: controls left, transcript right ---------- */
  #app #view>.lv{grid-column:1/-1;width:auto;max-width:none;margin:0;display:grid;grid-template-columns:minmax(300px,var(--lp)) minmax(0,1fr);grid-template-rows:1fr auto auto auto auto 1fr;column-gap:var(--gap);row-gap:14px;padding:0;min-height:0;background:transparent}
  #app #view>.lv::before{content:"";grid-column:1;grid-row:1/-1;border-radius:var(--r-pane);background:var(--pn-d)}
  #app .lv>*{grid-column:1;margin-inline:clamp(20px,2.4vw,32px);max-width:none;width:auto;min-width:0}
  #app .lv>.lvpend2{grid-row:1;align-self:start;margin-top:20px}
  #app .lv>.lvhero{grid-row:2;display:grid;height:clamp(150px,30dvh,300px)}
  #app .lv>.lchips{grid-row:3;flex-wrap:wrap;overflow:visible}
  #app .lv>.lvallow{grid-row:4}
  #app .lv>.lvbar,#app .lv>.lrecbar{grid-row:5}
  #app .lv>.lvcard{grid-column:2;grid-row:1/-1;margin:0;border-radius:var(--r-pane);background:var(--pn-l);min-height:0}
  #app .lv.lvsmall .lvcard{justify-content:center;align-items:center;text-align:center;gap:6px;padding:32px}
  #app .lv.lvsmall .lvcard::before{content:"";width:96px;height:96px;margin-bottom:8px;border-radius:50%;background:var(--card-l) url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cpath d=%22M12 14h24M12 22h24M12 30h16M12 38h20%22 fill=%22none%22 stroke=%22%238A8A93%22 stroke-width=%223%22 stroke-linecap=%22round%22/%3E%3C/svg%3E') center/46px no-repeat}
  #app .lv.lvsmall .lvh{flex-direction:column;padding:0}
  #app .lv.lvsmall .lvhint{max-width:40ch;font-size:var(--fs-body)}
  #app .lv .lvhero-w{display:grid}
  #app .lv.rec .lvhero{display:grid}

  /* ---------- Recap: search, filters and numbers left; the list right ---------- */
  #app .rl-nav{display:flex;flex-direction:column;gap:4px;margin:18px 0}
  #app .rl-nav button{display:flex;align-items:center;gap:10px;min-height:var(--tap);padding:0 14px;border-radius:var(--r-card);color:#D9D9DE;font-size:var(--fs-body);text-align:start}
  #app .rl-nav button small{color:#8A8A93;font-size:13px}
  #app .rl-nav button.on{background:var(--card-d);color:#fff}
  #app .rl-nav button:hover{background:#222328}
  #app .rl>.chips:first-child{display:none}

  /* ---------- a report: summary left, the full report right ---------- */
  #app #view>.rp{grid-column:1/-1;display:grid;grid-template-columns:minmax(300px,var(--lp)) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:0 var(--gap);min-height:0;background:transparent}
  #app .rp>.rp-bar{grid-column:1/-1;background:transparent;padding:4px 4px 10px}
  #app .rp>.rp-capw{grid-column:1;grid-row:2;min-height:0;overflow:auto;border-radius:var(--r-pane);background:var(--pn-d)}
  #app .rp>.rp-capw .rp-cap{border-radius:0;background:transparent;min-height:100%}
  #app .rp>.rp-sw{grid-column:2;grid-row:2;min-height:0;overflow:auto;border-radius:var(--r-pane);background:var(--pn-l)}
  #app .rp>.rp-sw .rp-in{border-radius:0;background:transparent;max-width:900px}
  #app .rp>:not(.rp-bar):not(.rp-capw):not(.rp-sw){grid-column:2}

  /* ---------- Settings: profile and sections left; the chosen section right ---------- */
  #app .sg-who{display:none}
  #app .sg-me{display:flex;align-items:center;gap:12px;margin:18px 0 16px}
  .sg-av{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--card-d);color:#fff;font-weight:600}
  .sg-me b{display:block;color:#fff;font-size:16px}.sg-me small{display:block;color:#8A8A93;font-size:13px;margin-top:2px}
  #app .sg-nav{display:flex;flex-direction:column;gap:4px}
  #app .sg-nav button{display:flex;align-items:center;gap:12px;min-height:var(--tap);padding:0 14px;border-radius:var(--r-card);color:#D9D9DE;font-size:var(--fs-body);text-align:start}
  #app .sg-nav button svg{width:18px;height:18px;opacity:.8}
  #app .sg-nav button.on{background:var(--card-d);color:#fff}
  #app .sg-nav button:hover{background:#222328}
  #app .sg-sec{scroll-margin-top:16px}
}
/* lying down: 40% · large screens: 36% */
@media (min-width:720px) and (min-height:500px) and (orientation:landscape){#app{--lp:40%}}
@media (min-width:1440px) and (min-height:500px){#app{--lp:36%}}

/* ================= Solo, before the meeting: the card grows with its panel ================= */
#app .so-v2 .so-tblw .tbl{zoom:var(--tbl-z,.62)}
@container ws (min-width:600px){
  .so-v2{--tbl-z:.9}
  .so-v2 .so-h{font-size:22px}
  .so-v2 .so-lsw button{min-height:44px}
}
@media (min-width:720px) and (min-height:950px){
  /* tall screens: table on top of the info */
  #app .so-v2 .so-card2{grid-template-columns:1fr;justify-items:center;gap:16px;padding:20px}
  #app .so-v2 .so-tblw{padding:0;border:0}
  #app .so-v2 .so-info{width:100%;padding:16px 0 0;border-top:1px solid #34363C}
  #app .so-v2{--tbl-z:.78}
}
@media (min-width:720px) and (min-height:1000px){
  #app .so-v2{--tbl-z:1.1}
  #app .so-v2 .so-h{font-size:24px}
  #app .so-v2 .fld input,#app .so-v2 .so-n{min-height:54px;font-size:17px}
  #app .so-v2 .so-cta{min-height:58px;font-size:18px}
}
/* shorter split screens: the info beside the table, so Start stays in view */
@media (min-width:720px) and (min-height:500px) and (max-height:949.98px){
  #app .so-v2 .so-card2{grid-template-columns:auto 1fr;justify-items:stretch;gap:0;padding:14px}
  #app .so-v2 .so-tblw{padding-right:14px;border-right:1px solid #34363C}
  #app .so-v2 .so-info{padding:0 0 0 14px;border-top:0}
  #app .so-v2{--tbl-z:.62}
}
@media (min-width:720px) and (min-height:800px) and (max-height:949.98px){#app .so-v2{--tbl-z:.75}}

/* ================= Listen on a phone: one group in the middle ================= */
#app .lv.lvsmall{justify-content:center;gap:12px}
@media (max-width:719.98px), (max-height:499.98px){
  #app .lv.lvsmall>*{width:100%;max-width:760px;margin-inline:auto}
  #app .lv:not(.lvsmall)>*{width:100%;max-width:980px;margin-inline:auto}
}
.lvhero{flex:0 1 auto;min-height:0;height:clamp(150px,32dvh,360px);display:grid;place-items:center}
.lvring{position:relative;height:100%;aspect-ratio:1;border-radius:50%;border:1.5px dashed #3A3634;display:grid;place-items:center}
.lvring i{position:absolute;inset:16%;border-radius:50%;background:radial-gradient(circle,rgba(var(--mode-glow),.22),rgba(var(--mode-glow),0) 70%)}
.lvring svg{position:relative;width:34%;height:34%;stroke:var(--mode);stroke-width:1.4}
.lv.rec .lvhero{display:none}
@media (max-height:640px){.lvhero{display:none!important}}

/* ================= short windows: nothing is cut off, the screen scrolls instead ================= */
@media (max-height:499.98px){
  #app.lis-fixed{height:auto;min-height:100dvh;overflow:visible;padding-bottom:calc(var(--tabh) + var(--safe-b))}
  #app.lis-fixed #view{overflow:visible}
  #app .lv.lvsmall{justify-content:flex-start}
  #app .so-v2{--tbl-z:.7}
}
.vp-ico svg.i{width:44px;height:44px;stroke-width:1.6}
/* a narrow control panel (small split screens): the info goes under the table */
@media (min-width:720px) and (min-height:500px){#app .so-v2 .sheetwrap{container:pane/inline-size}}
@container pane (max-width:430px){
  #app .so-v2 .so-card2{grid-template-columns:1fr;justify-items:center;gap:12px;padding:16px}
  #app .so-v2 .so-tblw{padding:0;border:0}
  #app .so-v2 .so-info{width:100%;padding:12px 0 0;border-top:1px solid #34363C}
}

/* ================= swiping between modules ================= */
/* the page can never be pushed sideways, and the browser's own sideways bounce stays out of it */
html,body{overflow-x:clip;overscroll-behavior-x:none}
#app{overflow-x:clip}
@keyframes swIn{from{opacity:.55}to{opacity:1}}
body[data-swipe=in] #view{animation:swIn .18s ease-out}

/* ================= field labels: one style everywhere, like the "In-person meeting" heading ================= */
#app .fld span,#app .so-nl{font-size:15.5px;font-weight:600;letter-spacing:-.005em;color:var(--fg);margin:0 0 10px 2px}
#app .so-nl small{font-size:13px;font-weight:400;color:#8F8B8A;margin-left:6px}
#app .so-v2 .fld span,#app .so-v2 .so-nl,#app .t-dark .fld span{color:#fff}
#app .sg-h{font-size:15.5px;font-weight:600;color:var(--fg);margin:22px 2px 8px}
/* Solo, before the meeting: room between the title and the speakers */
#app .so-v2 .so-names{gap:0;margin-top:12px}
#app .so-v2 .so-ng{gap:12px}
#app .so-v2 .fld input,#app .so-v2 .so-n{min-height:54px;font-size:16px}
@media (max-height:740px){
  #app .so-v2 .so-names{margin-top:6px}
  #app .so-v2 .so-ng{gap:10px}
  #app .so-v2 .fld input,#app .so-v2 .so-n{min-height:50px}
  #app .fld span,#app .so-nl{margin-bottom:8px}
}
/* Recap with no meetings yet */
.rl-none{display:flex;flex-direction:column;gap:4px;padding:28px 8px;text-align:center}
.rl-none b{font-size:17px;font-weight:600;color:var(--fg)}.rl-none span{font-size:14.5px;color:var(--fg2)}
@media (min-width:720px) and (min-height:500px){#app .rl-none{display:none}}
