/* OsMike Meetings — site layer on base.css (starter). Colours only as --site-* tokens in this first block. */
:root { --site-stage:#14110d; --site-stage2:#0e0b08; --site-stage-line:#2a241c; --site-stage-ink:#efe9df; --site-stage-muted:#a89e8f;
  --site-rec:#E8553F; --site-ok:#2f7d4f; --site-tile:#000000; --site-veil:rgba(0,0,0,.5); --site-tile-shadow:rgba(0,0,0,.4); }
html[data-theme="dark"] { --site-ok:#7fd3a0; --site-rec:#ff6a4d; }

.ic { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; vertical-align:-3px; margin-right:6px; }
.ic .fill, #i-rec .fill { fill:currentColor; stroke:none; }
.inline { display:flex; gap:8px; min-width:0; } .inline input { flex:1; min-width:0; }
.two { display:grid; gap:12px; grid-template-columns:minmax(0,1fr); } @media (min-width:600px) { .two { grid-template-columns:1fr 1fr; } }
.span2 { grid-column:1 / -1; }
.card-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.card-head .card-title { margin:0 0 12px; }
.row.past { gap:6px; }
.meta { display:flex; flex-wrap:wrap; gap:4px 16px; color:var(--muted); font-size:15px; }
.meta > span, .facts > span { display:inline-flex; align-items:baseline; min-width:0; overflow-wrap:anywhere; }
.row .badge { align-self:flex-start; margin-top:4px; }
.badge.ok { color:var(--site-ok); border-color:var(--site-ok); }
.badge.warn { color:var(--site-error); border-color:var(--site-error); }
.search { display:flex; gap:8px; margin:8px 0; } .search input { flex:1; min-width:0; }
.facts { display:flex; flex-direction:column; gap:6px; margin:0 0 20px; color:var(--ink); }
.detail { display:grid; gap:24px; grid-template-columns:minmax(0,1fr); }
@media (min-width:1000px) { .detail { grid-template-columns:minmax(0,5fr) minmax(0,6fr); align-items:start; } }
.detail h3 { font-size:20px; margin:20px 0 8px; }
.bul { margin:0; padding-left:22px; } .bul li { margin:0 0 6px; }
.actions-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.actions-list li { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:12px; padding:10px 14px; }
.actions-list .task { font-weight:600; overflow-wrap:anywhere; }
.transcript { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.transcript li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 12px; }
.transcript .t { color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; grid-row:1 / span 2; padding-top:3px; }
.transcript .sp { font-weight:700; font-size:15px; }
.transcript .tx { overflow-wrap:anywhere; }
.small-btn { min-height:40px; padding:8px 18px; font-size:15px; }
.host-actions { margin-top:24px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.menu-ap { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 12px; font-size:15px; }
.menu-ap select { width:auto; min-height:36px; padding:4px 8px; }
.recnote { display:flex; gap:4px; align-items:flex-start; border:1px solid var(--site-rec); border-radius:12px; padding:12px 14px; margin:8px 0 16px; }
.recnote .ic { color:var(--site-rec); margin-top:4px; }
.join h1 { overflow-wrap:anywhere; }
.toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:var(--ink); color:var(--bg); padding:10px 18px; border-radius:18px; text-align:center; font-size:15px; z-index:60; max-width:calc(100vw - 32px); }

/* The call: a dark stage in both themes (video reads best on dark). */
#app { flex:1; display:flex; flex-direction:column; min-height:0; }
.room { flex:1; display:flex; flex-direction:column; background:var(--site-stage); color:var(--site-stage-ink); position:relative; min-height:100vh; min-height:100dvh; height:100vh; height:100dvh; max-height:100vh; max-height:100dvh; }
/* height + max-height (flex:1 ignores height), not only min-height: the stage must end at the window edge, so the fitted grid fits the window (else a big room grew below the fold and the SFU paused the pictures nobody could see) */
.roomtop { display:flex; align-items:center; gap:10px; padding:8px 12px; background:var(--site-stage2); border-bottom:1px solid var(--site-stage-line); }
.roomtop .brand { min-height:36px; } .grow { flex:1; }
.rec { display:inline-flex; align-items:center; font-size:14px; font-weight:700; color:var(--site-stage-ink); border:1px solid var(--site-rec); border-radius:999px; padding:2px 10px 2px 8px; }
.rec .ic { color:var(--site-rec); margin-right:4px; }
/* own recording state: steady red = your microphone is being recorded; dim + dashed = reconnecting / not recording */
.rec.on .ic { animation:recpulse 2s ease-in-out infinite; }
.rec.warn { border-style:dashed; color:var(--site-stage-muted); }
.rec.warn .ic { opacity:.55; }
@keyframes recpulse { 50% { opacity:.35; } }
@media (prefers-reduced-motion: reduce) { .rec.on .ic { animation:none; } }
.notice.pending { display:flex; gap:10px; align-items:flex-start; }
.spin { flex:none; width:16px; height:16px; margin-top:4px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; animation:spin 1s linear infinite; opacity:.7; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation:none; } }
.cnt { font-size:14px; color:var(--site-stage-muted); white-space:nowrap; }
.btn.ghostdark { background:transparent; color:var(--site-stage-ink); border-color:var(--site-stage-line); min-height:38px; padding:6px 14px; font-size:15px; }
@media (max-width:520px) { .hide-s { display:none; } .btn.ghostdark .ic { margin:0; } }
.stage { flex:1; display:flex; flex-wrap:wrap; gap:10px; padding:14px; align-content:center; justify-content:center; min-height:0; position:relative; }
.tile { position:relative; background:var(--site-tile); border-radius:14px; overflow:hidden; aspect-ratio:16/9; box-shadow:0 4px 18px var(--site-tile-shadow); }
.tile video { width:100%; height:100%; object-fit:cover; background:var(--site-tile); display:block; }
.tile.self video { transform:scaleX(-1); }
.tile.self.solo { width:clamp(240px,30vw,640px); }
.tile.self.pip { position:absolute; right:16px; bottom:16px; width:clamp(140px,18vw,280px); z-index:5; border:2px solid var(--site-stage-line); }
.tile .nm { position:absolute; left:10px; bottom:8px; color:var(--site-stage-ink); font-size:14px; background:var(--site-veil); padding:2px 10px; border-radius:12px; max-width:calc(100% - 20px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tile .mutedic { position:absolute; right:10px; top:8px; font-size:13px; background:var(--site-veil); border-radius:50%; width:26px; height:26px; display:none; place-items:center; }
.tile.ismuted .mutedic { display:grid; }
.waiting { position:absolute; left:16px; right:16px; text-align:center; color:var(--site-stage-muted); font-size:15px; pointer-events:none; }
.waiting .btn { pointer-events:auto; margin-top:8px; }
@media (max-width:640px) { .tile.self.solo { width:70vw; } .tile.self.pip { width:32vw; right:10px; bottom:10px; } }
.controls { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; padding:12px; background:var(--site-stage2); border-top:1px solid var(--site-stage-line); }
.ctl { width:52px; height:52px; border-radius:50%; border:0; cursor:pointer; font-size:20px; color:var(--site-stage-ink); background:var(--site-stage-line); display:grid; place-items:center; }
.ctl.off { background:var(--site-rec); }
.ctl.leave { width:auto; padding:0 22px; border-radius:26px; font:700 16px var(--sans); background:var(--site-rec); color:var(--site-stage-ink); }
.ctl.end { background:transparent; border:1px solid var(--site-rec); }
.two > .stack, .two input { min-width:0; }
.facts .tz { display:block; font-size:15px; }
/* SFU path (LiveKit): many people — the stage scrolls instead of shrinking tiles below 160 px; who talks is outlined. */
.stage { overflow-y:auto; }
.tile.speaking { outline:3px solid var(--site-ok); outline-offset:-3px; }
.tile.camoff video { visibility:hidden; }
.tile.camoff::after { content:""; position:absolute; inset:0; margin:auto; width:28%; aspect-ratio:1; border-radius:50%; background:var(--site-stage-line); }
.tile .lkaudio { display:none; }
.soundbtn { position:absolute; left:50%; top:64px; transform:translateX(-50%); z-index:10; }

/* Screen sharing (SFU): a share takes the stage, the people become a filmstrip (side on desktop, bottom on phones). */
.room [hidden] { display:none !important; }
.ctl.share .ic { width:24px; height:24px; margin:0; }
.ctl.share.on { background:var(--site-ok); }
.ctl.share.unavail { opacity:.45; }
.body { flex:1; min-height:0; display:flex; flex-direction:column; }
.sharebar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:6px 12px; background:var(--site-stage2); border-bottom:2px solid var(--site-ok); font-size:15px; }
.sharebar video { display:none; width:96px; aspect-ratio:16/9; height:auto; border-radius:6px; background:var(--site-tile); object-fit:contain; flex:none; }
.sharebar .sb-t { font-weight:700; flex:1; min-width:120px; }
.sharebar .smooth { display:inline-flex; align-items:center; gap:6px; font-size:14px; color:var(--site-stage-muted); cursor:pointer; min-height:36px; }
.sharebar .smooth input { width:18px; height:18px; accent-color:var(--site-ok); margin:0; }
.btn.sbstop { background:var(--site-rec); color:var(--site-stage-ink); border:0; min-height:36px; padding:6px 18px; font-size:15px; }
.screens { flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; gap:8px; padding:10px 0 10px 14px; }
.sh-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.sh-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.sh-tab { border:1px solid var(--site-stage-line); background:transparent; color:var(--site-stage-ink); border-radius:999px; padding:4px 12px; font:600 14px var(--sans); cursor:pointer; min-height:34px; }
.sh-tab[aria-selected="true"] { background:var(--site-stage-ink); color:var(--site-stage); border-color:var(--site-stage-ink); }
.sh-pill { font-size:14px; color:var(--site-stage-ink); border:1px solid var(--site-ok); border-radius:999px; padding:3px 12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.sh-stop, .sh-full { min-height:34px; padding:4px 12px; font-size:14px; }
.sh-full .ic { margin:0; }
.sh-view { flex:1; min-height:0; position:relative; background:var(--site-tile); border-radius:12px; overflow:hidden; touch-action:none; }
.sh-item { position:absolute; inset:0; }
.sh-item video { width:100%; height:100%; object-fit:contain; display:block; transform-origin:center; background:var(--site-tile); }
.sh-item.zoomed { cursor:grab; }
.screens:fullscreen { padding:8px; background:var(--site-stage); }
.room.sharing .body { flex-direction:row; }
.room.sharing .stage { flex:0 0 232px; flex-direction:column; flex-wrap:nowrap; align-content:stretch; justify-content:flex-start; overflow-y:auto; padding:10px 14px 10px 10px; }
.room.sharing .tile { width:100%; flex:0 0 auto; }
.room.sharing .tile.self { position:relative; right:auto; bottom:auto; border:0; z-index:auto; }
@media (max-width:640px) {
  .room.sharing .body { flex-direction:column; }
  .screens { padding:8px 8px 0; }
  .room.sharing .stage { flex:0 0 auto; flex-direction:row; overflow-x:auto; overflow-y:hidden; padding:8px; gap:8px; }
  .room.sharing .tile { width:128px; }
  .sharebar video { width:64px; }
  .sharebar .sb-t { min-width:0; font-size:14px; }
  .controls { gap:10px; }
}
