/* Solaryx Meet — the call, v2. Builds on meet.css tokens. Motion after React Bits (Dock, ClickSpark,
   StarBorder, SpotlightCard, AnimatedContent), written in plain CSS/JS so it can live in the Meet shell. */
.call2 { height: 100svh; overflow: hidden; }
.call2 .page { height: 100svh; }
.call2 .astra-backdrop { opacity: .16; }

.c-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; }
.c-left, .c-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-top .chip { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; }
.c-top .brand-mark { width: 22px; height: 22px; }
.c-title { font: 600 15px/1 var(--font-ui); letter-spacing: -0.01em; white-space: nowrap; }
.c-sub { font: 500 12.5px/1 var(--font-ui); color: var(--ink-3); white-space: nowrap; }
.c-rec { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--font-ui); color: var(--ink-2); }
.c-rec i { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, 0.05); }
.seg button { height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font: 500 12.5px/1 var(--font-ui); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.presenting-flag { display: none; align-items: center; gap: 8px; font: 500 12.5px/1 var(--font-ui); color: var(--ink); }
.presenting-flag i { width: 7px; height: 7px; border-radius: 2px; background: var(--alert); }
.is-presenting .presenting-flag { display: inline-flex; }

/* body: stage + side panel */
.c-body { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; gap: 12px; padding: 4px 16px 0; }
.c-stage { flex: 1; min-width: 0; min-height: 0; display: flex; gap: 12px; }
.grid { flex: 1; min-width: 0; display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.is-speaker .grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.is-speaker .grid .tile:not(.speaking) { display: none; }
.is-presenting .grid { flex: none; width: 212px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.is-presenting .grid .tile { flex: none; aspect-ratio: 16 / 10; height: auto; }
.is-presenting .grid .tile .avatar { width: 44px; height: 44px; border-radius: 11px; font-size: 15px; }
.is-presenting .grid .tile .who { font-size: 11.5px; height: 22px; left: 6px; bottom: 6px; }

/* tiles: SpotlightCard + AnimatedContent + StarBorder for whoever speaks */
.tile { position: relative; min-height: 0; border-radius: var(--r-card); overflow: hidden; background: #0b0b0c; box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; animation: tileIn .7s var(--out) both; animation-delay: calc(var(--n, 0) * 70ms); }
@keyframes tileIn { from { opacity: 0; } }
.tile .cam { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, #202024 0%, #101012 55%, #09090a 100%); }
.tile .cam.b { background: radial-gradient(110% 90% at 70% 30%, #242428 0%, #111113 60%, #08080a 100%); }
.tile .cam.c { background: radial-gradient(120% 100% at 50% 10%, #1e1e22 0%, #0e0e10 60%, #070708 100%); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.tile .center { position: absolute; inset: 0; display: grid; place-items: center; }
.tile .avatar { transition: box-shadow .3s; }
.tile.speaking { box-shadow: inset 0 0 0 2px var(--ink); }
.tile .who { position: absolute; z-index: 3; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; border-radius: var(--r-tag); background: rgba(0, 0, 0, 0.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 12.5px/1 var(--font-ui); white-space: nowrap; }
.tile .who svg { width: 13px; height: 13px; color: #ffb3b3; }
.tile .who .lvl { display: none !important; gap: 2px; align-items: flex-end; height: 11px; }
.tile .who .lvl b { width: 2px; background: var(--ink); border-radius: 1px; animation: lvl .9s ease-in-out infinite; }
.tile .who .lvl b:nth-child(2) { animation-delay: .15s; } .tile .who .lvl b:nth-child(3) { animation-delay: .3s; }
@keyframes lvl { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.tile.speaking .who .lvl { display: inline-flex; }
.tile .hand { position: absolute; z-index: 3; top: 10px; right: 10px; height: 26px; padding: 0 8px; display: none; align-items: center; gap: 6px; border-radius: var(--r-tag); background: var(--ink); color: #0a0a0b; font: 600 12px/1 var(--font-ui); }
.tile.raised .hand { display: inline-flex; animation: pop .4s var(--out); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* the document viewer (presenting a PDF or a design) */
.viewer { flex: 1; min-width: 0; display: none; flex-direction: column; border-radius: var(--r-card); background: rgba(10, 10, 12, 0.92); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; animation: tileIn .5s var(--out); }
.is-presenting .viewer { display: flex; }
.v-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.v-name { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; font: 600 13.5px/1 var(--font-ui); }
.v-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-name small { color: var(--ink-3); font-weight: 500; }
.v-grp { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, 0.05); }
.vb { height: 30px; min-width: 30px; padding: 0 8px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: 500 12.5px/1 var(--font-ui); cursor: pointer; }
.vb:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.vb[aria-pressed="true"] { background: var(--ink); color: #0a0a0b; }
.vb svg { width: 16px; height: 16px; }
.v-page { font: 500 12.5px/1 var(--font-mono); color: var(--ink-2); padding: 0 6px; white-space: nowrap; }
.v-stage { position: relative; flex: 1; min-height: 0; overflow: auto; display: grid; place-items: start center; padding: 22px; cursor: default; }
.v-stage.pan { cursor: grab; } .v-stage.pan:active { cursor: grabbing; }
.v-stage.comment { cursor: crosshair; }
.v-doc { position: relative; transform-origin: top center; transition: transform .25s var(--settle); }
.v-doc canvas, .v-doc img { display: block; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); background: #fff; user-select: none; -webkit-user-drag: none; }
.v-follow { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; }
.v-follow i { width: 7px; height: 7px; border-radius: 2px; background: #7fe0a4; }
.pin { position: absolute; z-index: 3; width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; border-radius: 6px; background: var(--ink); color: #0a0a0b; font: 700 11.5px/1 var(--font-ui); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); animation: pop .35s var(--out); cursor: pointer; }
.pin-note { position: absolute; z-index: 4; width: 240px; padding: 10px; border-radius: var(--r-ctl); background: #0e0e10; box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px rgba(0, 0, 0, 0.6); font-size: 13px; }
.pin-note textarea { width: 100%; height: 64px; resize: none; padding: 8px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: var(--ink); font: 13px/1.4 var(--font-ui); outline: none; }
.pin-note .row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.laser { position: absolute; z-index: 5; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.7), 0 0 36px 10px rgba(255, 255, 255, 0.25); pointer-events: none; display: none; }
.v-stage.laser-on .laser { display: block; }
.v-stage.laser-on { cursor: none; }

/* side panel with tabs */
.side2 { width: 360px; flex: none; display: none; flex-direction: column; border-radius: var(--r-card); background: rgba(8, 8, 10, 0.88); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); overflow: hidden; }
.side2.open { display: flex; animation: panelIn .34s var(--out); }
.tabs { position: relative; display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; flex: 1; height: 38px; border: 0; background: transparent; color: var(--ink-3); font: 500 13px/1 var(--font-ui); cursor: pointer; transition: color .2s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs .ink { position: absolute; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; transition: left .35s var(--settle), width .35s var(--settle); }
.tabs .x { flex: none; width: 38px; }
.tab { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tab.on { display: flex; animation: fadeUp .3s var(--out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.tab-b { flex: 1; overflow: auto; padding: 14px 16px; display: grid; align-content: start; gap: 14px; font-size: 14px; }
.tab-f { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.file { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-field); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s; }
.file:hover { background: rgba(255, 255, 255, 0.06); }
.file .ft { width: 40px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); font: 700 10px/1 var(--font-mono); color: var(--ink-2); }
.file b { display: block; font-weight: 600; font-size: 13.5px; }
.file small { color: var(--ink-3); font-size: 12px; }
.set { display: grid; gap: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.tgl { width: 38px; height: 22px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.14); position: relative; cursor: pointer; transition: background-color .2s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 4px; background: var(--ink); transition: transform .25s var(--settle); }
.tgl[aria-pressed="true"] { background: #e9e9e6; } .tgl[aria-pressed="true"]::after { transform: translateX(16px); background: #0a0a0b; }
.line { font-size: 13.5px; line-height: 1.5; }
.line .t { font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); margin-right: 8px; }
.line b { font-weight: 600; }

/* the dock: React Bits "Dock" magnification, square keys */
.c-dock { position: relative; z-index: 4; display: flex; justify-content: center; padding: 12px 16px 16px; }
.c-dock .dock-in { align-items: flex-end; height: 62px; padding: 8px; }
.c-dock .ic { transform-origin: bottom center; will-change: transform; }
.menu { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 220px; padding: 6px; border-radius: var(--r-field); background: #0e0e10; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0, 0, 0, 0.6); display: none; z-index: 8; animation: fadeUp .22s var(--out); }
.menu.open { display: block; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 13.5px/1 var(--font-ui); cursor: pointer; text-align: left; }
.menu button:hover { background: rgba(255, 255, 255, 0.07); }
.menu button svg { width: 18px; height: 18px; color: var(--ink-2); }
.emoji { display: flex; gap: 4px; padding: 4px; }
.emoji button { width: 42px; height: 42px; justify-content: center; font-size: 22px; padding: 0; }
.float { position: fixed; z-index: 30; font-size: 34px; pointer-events: none; animation: floatUp 2.6s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 12% { opacity: 1; transform: translate(0, -30px) scale(1.1); } 100% { opacity: 0; transform: translate(var(--dx, 0), -360px) scale(1); } }
.spark { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

@media (max-width: 900px) {
  .side2.open { position: fixed; inset: 64px 10px 92px; width: auto; z-index: 9; }
  .grid { --cols: 1 !important; }
  .grid .tile:nth-child(n+3) { display: none; }
  .is-presenting .c-stage { flex-direction: column; }
  .is-presenting .grid { width: 100%; flex-direction: row; height: 86px; }
  .is-presenting .grid .tile { height: 100%; aspect-ratio: 16 / 10; width: auto; display: block; }
  .c-top .seg, .c-sub, .c-rec span { display: none; }
  .c-dock .dock-in .hide-sm { display: none; }
}
@media (max-width: 480px) { .c-dock { padding: 8px 6px 12px; } .c-dock .dock-in { gap: 4px; } .c-dock .ic { width: 40px; height: 40px; } .c-dock .sep { display: none; } }
@media (prefers-reduced-motion: reduce) { .tile, .viewer, .tab.on, .side2.open, .menu.open { animation: none; } .float { display: none; } }
/* v3: calm. A speaker gets one still outline; the stars stay far back. */
.tile { transition: box-shadow .25s ease; }
.c-dock .ic { transform: none !important; }

/* drawing on a presented page or design: the ink is content, so it may carry colour */
.v-ink { position: absolute; inset: 0; z-index: 2; touch-action: none; pointer-events: none; }
.v-stage.drawing .v-ink { pointer-events: auto; cursor: crosshair; }
.v-stage.erasing .v-ink { pointer-events: auto; cursor: cell; }
.v-sw { display: inline-flex; gap: 4px; padding: 0 4px; }
.sw { width: 18px; height: 18px; border: 0; border-radius: 4px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sw[data-c="#111111"] { --c: #111111; } .sw[data-c="#e5484d"] { --c: #e5484d; } .sw[data-c="#2f6fed"] { --c: #2f6fed; }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.v-draw .vb:not([aria-label="Undo"]):not([aria-label="Clear drawings on this page"]) { width: 30px; padding: 0; }
@media (max-width: 1100px) { .v-follow { display: none; } }
