:root {
  --bg: #202124;
  --bg2: #2d2e31;
  --bg3: #3c4043;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --primary: #8ab4f8;
  --primary-ink: #062e6f;
  --danger: #ea4335;
  --ok: #81c995;
  --radius: 12px;
  --font: "Inter", "Hind Siliguri", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: #f28b82; min-height: 1em; }
.accent { color: var(--primary); }

.ms {
  font-family: "Material Symbols Rounded";
  font-size: 22px; line-height: 1; font-weight: normal; font-style: normal;
  display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased; user-select: none;
}
.ms.fill { font-variation-settings: "FILL" 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 500; font-size: 15px;
  background: transparent; transition: background .15s, opacity .15s;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover:not(:disabled) { background: #aecbfa; }
.btn-text { color: var(--primary); }
.btn-text:hover:not(:disabled) { background: rgba(138,180,248,.1); }
.btn-outline { border: 1px solid #5f6368; color: var(--primary); }
.btn-outline:hover { background: rgba(138,180,248,.08); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.small .ms { font-size: 18px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: transparent; display: grid; place-items: center;
}
.round-btn.off { background: var(--danger); border-color: var(--danger); }

.text-input {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid #5f6368;
  background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none;
}
.text-input:focus { border-color: var(--primary); }
.text-input.small { padding: 8px 12px; font-size: 14px; }
select {
  background: var(--bg2); color: var(--text); border: 1px solid #5f6368; border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 14px; max-width: 100%;
}
.tag { background: rgba(138,180,248,.15); color: var(--primary); padding: 2px 8px; border-radius: 999px; font-size: 12px; }

/* ---------- Topbar / Home ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; color: var(--text); }
.brand-icon { color: var(--primary); font-size: 30px; }
.clock { color: var(--muted); }

.home {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  max-width: 1200px; margin: 6vh auto 0; padding: 0 24px 48px;
}
.home h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 500; line-height: 1.25; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 34em; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.join-form { display: flex; gap: 6px; align-items: center; }
.input-wrap {
  display: flex; align-items: center; gap: 8px; border: 1px solid #5f6368; border-radius: 8px;
  padding: 0 12px; height: 46px;
}
.input-wrap:focus-within { border-color: var(--primary); }
.input-wrap input { background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; width: 210px; }
.input-wrap .ms { color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--bg3); margin: 32px 0 16px; }
.hero-card { text-align: center; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 380px; margin: 0 auto 20px; }
.hero-tile {
  aspect-ratio: 4/3; border-radius: 14px; background: var(--bg2); display: grid; place-items: center;
  border: 2px solid transparent; animation: pulse 3s infinite;
}
.hero-tile .ms { font-size: 40px; color: var(--c); }
.hero-tile:nth-child(2) { animation-delay: .5s; } .hero-tile:nth-child(4) { animation-delay: 1s; }
.hero-tile:nth-child(6) { animation-delay: 1.5s; }
@keyframes pulse { 50% { border-color: var(--primary); } }
.hero-card h3 { font-weight: 500; font-size: 22px; margin: 0 0 6px; }

.ended { text-align: center; padding: 18vh 24px; }
.ended h1 { font-weight: 400; font-size: 30px; }
.ended-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Prejoin ---------- */
.prejoin-body {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center;
  max-width: 1150px; margin: 4vh auto; padding: 0 24px;
}
.preview { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview-off { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: var(--muted); }
.preview-name { position: absolute; top: 14px; left: 16px; font-weight: 500; text-shadow: 0 1px 3px #000; }
.preview-controls { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; gap: 16px; justify-content: center; }
.meter { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; }
.meter div { height: 100%; width: 0; background: var(--ok); transition: width .08s; }
.prejoin-side h2 { font-weight: 400; font-size: 30px; margin: 0 0 8px; }
.prejoin-side form { display: grid; gap: 16px; margin-top: 20px; }
.device-row { display: grid; gap: 10px; }
.device-row label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.device-row select { flex: 1; min-width: 0; }

/* ---------- Meeting ---------- */
.page-room { overflow: hidden; }
.meeting { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.main-area { flex: 1; display: flex; min-height: 0; padding: 16px 16px 0; gap: 16px; }
.stage { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; gap: 12px; overflow: hidden; }
.grid {
  flex: 1; min-width: 0; min-height: 0; display: grid; gap: 10px; align-content: center; justify-content: center;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  grid-auto-rows: var(--row-h, 1fr);
}
.stage.has-featured .grid {
  flex: 0 0 240px; grid-template-columns: 1fr; grid-auto-rows: 135px; align-content: start;
  overflow-y: auto;
}
.featured { flex: 1; display: flex; min-width: 0; }
.featured .tile { flex: 1; }

.tile {
  position: relative; background: var(--bg2); border-radius: var(--radius); overflow: hidden;
  min-height: 0; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s;
}
.tile.speaking { outline-color: var(--primary); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.screen video, .featured .tile video { object-fit: contain; }
.tile.mirror video { transform: scaleX(-1); }
.tile .avatar {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.tile .avatar span {
  width: clamp(48px, 28%, 120px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: clamp(20px, 3vw, 48px); font-weight: 500; color: #fff;
}
.tile.speaking .avatar span { box-shadow: 0 0 0 6px rgba(138,180,248,.35); }
.tile.has-video .avatar { display: none; }
.tile .label {
  position: absolute; left: 10px; bottom: 8px; right: 50px; display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .label .ms { font-size: 18px; }
.tile .mic-off {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(32,33,36,.75); display: none; place-items: center;
}
.tile .mic-off .ms { font-size: 18px; }
.tile.muted .mic-off { display: grid; }
.tile .hand {
  position: absolute; top: 10px; left: 10px; background: #fdd663; color: #202124; border-radius: 999px;
  padding: 4px 8px; display: none; align-items: center; gap: 4px; font-size: 13px; font-weight: 600;
}
.tile .hand .ms { font-size: 18px; }
.tile.hand-up .hand { display: flex; }
.tile .tile-actions {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(0,0,0,.35); opacity: 0; transition: opacity .15s;
}
.tile:hover .tile-actions { opacity: 1; }
.tile-actions button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(32,33,36,.85); display: grid; place-items: center; }
.tile-actions button:hover { background: var(--bg3); }
.tile .quality { position: absolute; right: 10px; bottom: 8px; color: #f28b82; display: none; }
.tile.poor .quality { display: block; }

.pager {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
  background: rgba(32,33,36,.9); border-radius: 999px; padding: 2px 8px; z-index: 5; font-size: 14px;
}

.captions {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(820px, 92%);
  background: rgba(0,0,0,.75); border-radius: 10px; padding: 10px 16px; z-index: 6; font-size: 18px; line-height: 1.5;
  pointer-events: none;
}
.captions .cap b { color: var(--primary); font-weight: 600; margin-right: 6px; }

.reactions-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 7; }
.float-emoji {
  position: absolute; bottom: 0; font-size: 42px; animation: floatUp 3.2s ease-out forwards; text-align: center;
}
.float-emoji small { display: block; font-size: 12px; background: rgba(0,0,0,.6); border-radius: 6px; padding: 1px 6px; }
@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; }
  100% { transform: translateY(-75vh); opacity: 0; }
}

/* ---------- Panel ---------- */
.panel {
  width: 360px; flex: 0 0 360px; background: #fff; color: #202124; border-radius: var(--radius);
  display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 8;
}
.panel .muted { color: #5f6368; }
.panel .icon-btn:hover { background: rgba(0,0,0,.06); }
.panel .text-input { color: #202124; border-color: #dadce0; }
.panel select { background: #fff; color: #202124; border-color: #dadce0; width: 100%; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 4px 24px; }
.panel-head h3 { margin: 0; font-weight: 400; font-size: 18px; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 24px 16px; display: flex; flex-direction: column; gap: 10px; }
.host-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.panel .btn-outline { border-color: #dadce0; color: #1a73e8; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.people .pav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; }
.people .pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .pname small { display: block; color: #5f6368; }
.people .picons { display: flex; align-items: center; color: #5f6368; }
.people .picons .ms { font-size: 20px; }
.people .picons .hand-ic { color: #e37400; }
.people .icon-btn { width: 34px; height: 34px; }
.people-more { color: #5f6368; text-align: center; padding: 8px 0; font-size: 13px; }

.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.msg .meta { font-size: 13px; font-weight: 600; } .msg .meta span { color: #5f6368; font-weight: 400; margin-left: 6px; }
.msg .body { font-size: 14px; white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.msg .body a { color: #1a73e8; }
.chat-form { display: flex; gap: 6px; align-items: center; background: #f1f3f4; border-radius: 999px; padding: 2px 4px 2px 6px; }
.chat-form .text-input { border: 0; background: transparent; }
.chat-form .icon-btn { color: #1a73e8; }
.copy-row { display: flex; align-items: center; justify-content: space-between; background: #f1f3f4; border-radius: 6px; padding: 4px 4px 4px 12px; word-break: break-all; font-size: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: #3c4043; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---------- Controls ---------- */
.controls {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; padding: 0 16px; gap: 12px;
}
.ctl-left { display: flex; gap: 10px; font-size: 16px; white-space: nowrap; overflow: hidden; }
.ctl-left .sep { color: #5f6368; }
.ctl-left { align-items: center; }
.code-copy {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #5f6368; background: transparent;
  border-radius: 999px; padding: 6px 12px; font-size: 15px; transition: background .15s, border-color .15s;
}
.code-copy:hover { background: rgba(138,180,248,.1); border-color: var(--primary); }
.code-copy .ms { font-size: 18px; color: var(--primary); }
.code-copy .copy-text { color: var(--primary); font-size: 13px; font-weight: 500; }
.code-copy.copied { border-color: var(--ok); }
.code-copy.copied .ms, .code-copy.copied .copy-text { color: var(--ok); }
.ctl-center { display: flex; gap: 10px; align-items: center; }
.ctl-right { display: flex; justify-content: flex-end; gap: 4px; }
.ctl {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg3); display: grid; place-items: center;
  transition: background .15s;
}
.ctl:hover { background: #4a4e51; }
.ctl.off { background: var(--danger); }
.ctl.off:hover { background: #d93025; }
.ctl.on { background: var(--primary); color: var(--primary-ink); }
.ctl.leave { background: var(--danger); width: 64px; border-radius: 999px; }
.badge {
  position: absolute; top: 2px; right: 0; background: var(--bg3); color: var(--text); border-radius: 999px;
  font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px;
}
.badge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; background: var(--primary); top: 6px; right: 6px; }

.pop-wrap { position: relative; }
.pop {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: var(--bg2);
  border-radius: 999px; padding: 6px; display: flex; gap: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.5); z-index: 20;
}
.pop .emoji { border: 0; background: transparent; font-size: 26px; width: 44px; height: 44px; border-radius: 50%; }
.pop .emoji:hover { background: var(--bg3); }
.pop.menu { flex-direction: column; border-radius: 8px; padding: 8px 0; min-width: 230px; left: auto; right: -60px; transform: none; }
.pop.menu button { border: 0; background: transparent; display: flex; gap: 14px; align-items: center; padding: 10px 18px; text-align: left; }
.pop.menu button:hover { background: var(--bg3); }

.banner {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: #fdd663; color: #202124;
  padding: 8px 16px; border-radius: 8px; z-index: 50; font-weight: 500; display: flex; gap: 10px; align-items: center;
}
.banner button { border: 0; background: #202124; color: #fff; border-radius: 6px; padding: 4px 10px; }
.rec-badge {
  position: fixed; top: 12px; left: 16px; background: rgba(234,67,53,.9); padding: 4px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; z-index: 50; display: flex; gap: 6px; align-items: center;
}
.rec-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.toasts { position: fixed; left: 16px; bottom: 92px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast {
  background: #fff; color: #202124; padding: 12px 18px; border-radius: 6px; font-size: 14px; max-width: 340px;
  box-shadow: 0 2px 10px rgba(0,0,0,.4); animation: toastIn .2s;
}
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

dialog { background: #fff; color: #202124; border: 0; border-radius: 12px; padding: 24px; max-width: 460px; }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h3 { margin: 0 0 8px; font-weight: 400; font-size: 22px; }
dialog .muted { color: #5f6368; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
dialog .btn-outline { border-color: #dadce0; color: #1a73e8; }
dialog .btn-text { color: #1a73e8; }

.present-note {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 12px; color: var(--muted);
}
.present-note .ms { font-size: 36px; color: var(--primary); }
.present-note p { margin: 4px 0 8px; }
.pop.menu button.mobile-only { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home, .prejoin-body { grid-template-columns: 1fr; gap: 28px; margin-top: 2vh; }
  .home-right { display: none; }
  /* mobile-e panel khulle video stage lukiye panel pura jayga ney (overlay na, tai video upore uthe na) */
  .meeting.panel-open .stage { display: none; }
  .panel { flex: 1 1 auto; width: auto; min-width: 0; }
  .ctl-left { display: none; }
  .controls { grid-template-columns: 1fr auto; padding: 0 8px; }
  .ctl-center { gap: 6px; }
  .stage.has-featured { flex-direction: column; }
  .stage.has-featured .grid { flex: 0 0 110px; grid-auto-flow: column; grid-auto-columns: 160px; grid-template-columns: none; grid-auto-rows: 100%; overflow-x: auto; }
}
@media (max-width: 600px) {
  .main-area { padding: 8px 8px 0; }
  .controls { padding: 0 6px; gap: 6px; }
  .ctl-center { gap: 4px; }
  .ctl { width: 38px; height: 38px; }
  .ctl .ms { font-size: 20px; }
  .ctl.leave { width: 48px; }
  .ctl-right { gap: 0; }
  .ctl-right .icon-btn { width: 38px; height: 38px; }
  #ccBtn, #handBtn { display: none; }
  .pop.menu button.mobile-only { display: flex; }
  .ctl-right .icon-btn[data-open="info"] { display: none; }
  .input-wrap input { width: 150px; }
  .pop.menu { right: -100px; }
}

/* ---------- Accounts ---------- */
.topbar-right { display: flex; align-items: center; gap: 16px; }
.auth-btns { display: flex; gap: 10px; flex-wrap: wrap; max-width: 420px; }
.auth-btns .btn { flex: 1 1 150px; justify-content: center; }
.auth-wrap { display: flex; justify-content: center; padding: 40px 16px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--bg2); border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.auth-card h2 { margin: 0; }
.auth-card .field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.auth-card .btn-lg { justify-content: center; margin-top: 6px; }
.auth-card .switch { text-align: center; }
.auth-card .switch a { color: var(--primary); }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 14px; max-width: 360px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--bg3); }
.prejoin-google { margin-top: 20px; }
.prejoin-google .or-line { margin-bottom: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; background: var(--bg2); border-radius: 999px; padding: 4px 4px 4px 4px; }
.user-chip img, .uc-initial { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.uc-initial { display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.uc-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; max-width: 200px; }
.uc-text b, .uc-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-text small { color: var(--muted); }
.uc-logout { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.uc-logout:hover { background: var(--bg3); color: var(--text); }
.welcome { margin-top: 16px; font-size: 15px; }
@media (max-width: 600px) { .uc-text, .clock { display: none; } }

/* ---------- Ask to join / Admit ---------- */
.wait-box { text-align: center; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wait-box h3 { margin: 12px 0 0; font-weight: 500; font-size: 20px; }
.wait-box p { margin: 0 0 12px; max-width: 26em; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--bg3); border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.denied-ic { font-size: 44px; color: #f28b82; }

.knock-card {
  position: fixed; top: 16px; right: 16px; z-index: 70; width: min(360px, calc(100vw - 32px));
  background: #fff; color: #202124; border-radius: 12px; padding: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.45);
  animation: toastIn .2s;
}
.knock-card .kc-top { display: flex; align-items: center; gap: 12px; }
.knock-card .pav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; }
.knock-card .kc-text { flex: 1; min-width: 0; font-size: 14px; }
.knock-card .kc-text b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knock-card .kc-text small { color: #5f6368; }
.knock-card .kc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.knock-card .btn-text { color: #1a73e8; }
.btn-admit { background: #1a73e8; color: #fff; }
.btn-admit:hover { background: #1765cc; }
.btn-deny { color: #d93025; border: 1px solid #dadce0; }
.btn-deny:hover { background: #fce8e6; }
.badge.knock { background: #ea4335; color: #fff; top: auto; bottom: 0; right: -2px; }
.lobby-toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #3c4043; }
.waiting-section { border: 1px solid #dadce0; border-radius: 10px; padding: 8px 12px; background: #f8f9fa; }
.wait-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.wait-head .btn-text { color: #1a73e8; }
.waiting-section .people li { padding: 6px 0; }
.waiting-section .btn.small { padding: 5px 10px; }

/* ---------- Profile / meetings / schedule ---------- */
.user-chip .uc-main { display: flex; align-items: center; gap: 10px; color: inherit; border-radius: 999px; padding-right: 6px; }
.user-chip .uc-main:hover { background: var(--bg3); }
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.page-wrap { max-width: 960px; margin: 8px auto 0; padding: 0 16px 48px; }
.page-wrap.wide { max-width: 1180px; }
.page-title { font-size: 28px; font-weight: 500; margin: 8px 0 20px; }
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.page-head .page-title { margin: 8px 0; }
.card { background: var(--bg2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-weight: 500; }
.card .field { color: var(--muted); }
.card form { margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-btns form { display: contents; }
.flash { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; }
.flash.ok { background: rgba(129,201,149,.15); color: var(--ok); }
.flash.err { background: rgba(242,139,130,.15); color: #f28b82; }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.profile-forms { display: grid; gap: 20px; }
.profile-photo { align-items: center; text-align: center; }
.profile-photo h2 { margin: 4px 0 0; font-weight: 500; }
.profile-photo p { margin: 0; }
.big-avatar .avatar { box-shadow: 0 0 0 4px var(--bg3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats > div { background: var(--bg); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 26px; font-weight: 500; color: var(--primary); }
.stats span { color: var(--muted); font-size: 13px; }
.wide-stats { margin: 16px 0 20px; }
.wide-stats > div { background: var(--bg2); }

.new-menu { position: relative; }
.new-menu summary { list-style: none; cursor: pointer; }
.new-menu summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 300px;
  background: #fff; color: #202124; border-radius: 8px; padding: 8px 0; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.menu-pop form { margin: 0; }
.menu-pop button, .menu-pop a {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; border: 0; background: none;
  color: #202124; font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.menu-pop button:hover, .menu-pop a:hover { background: #f1f3f4; }
.menu-pop .ms { color: #5f6368; }
.signin-note { margin: 24px 0 12px; }
.welcome a { color: var(--primary); }
.upcoming { margin-top: 24px; max-width: 460px; display: grid; gap: 8px; }
.upcoming h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.up-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg2); border-radius: 12px; padding: 10px 14px; color: inherit; }
.up-item:hover { background: var(--bg3); }
.up-item div { display: flex; flex-direction: column; }
.up-item small { color: var(--muted); }

.meet-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 4px; }
.join-as a { color: var(--primary); }
.quick-times { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #5f6368; background: transparent; color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.auth-card select { width: 100%; padding: 12px 14px; font-size: 15px; }
.auth-card input[type=datetime-local] { color-scheme: dark; }

.created-card { border: 1px solid rgba(129,201,149,.5); margin-bottom: 20px; }
.created-card h3 { display: flex; gap: 8px; align-items: center; }
.created-card p { margin: 0; }
.ok-ic { color: var(--ok); }
.copy-row.big { background: var(--bg); border-radius: 10px; padding: 6px 6px 6px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; word-break: break-all; }
.meet-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { color: var(--muted); font-size: 12px; padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; color: var(--text);
  font: inherit; font-size: 14px; cursor: pointer;
}
.cal-day:hover { background: var(--bg3); }
.cal-day.today { color: var(--primary); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }
.cal-day.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--primary); }
.cal-day.sel { background: var(--primary); color: var(--primary-ink); }
.cal-day.sel::after { background: var(--primary-ink); }
.cal-day i { position: absolute; top: 0; right: 2px; font-size: 10px; font-style: normal; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bg3); margin-bottom: 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; color: var(--muted); font: inherit; padding: 10px 14px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.day-filter a { color: var(--primary); }
.meet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meet-item { background: var(--bg2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; border-left: 4px solid transparent; }
.meet-item.up { border-left-color: var(--primary); }
.meet-item .muted.small { margin-top: 4px; line-height: 1.6; }
.ms.tiny { font-size: 15px; vertical-align: -3px; margin-right: 3px; }
.meet-list .empty { padding: 28px; text-align: center; background: var(--bg2); border-radius: 14px; }
.btn-text.danger { color: #f28b82; }
.page-meetings .toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); }

@media (max-width: 800px) {
  .profile-grid, .meet-layout { grid-template-columns: 1fr; }
  .menu-pop { min-width: 260px; }
}
@media (max-width: 480px) {
  .stats b { font-size: 20px; }
  .stats > div { padding: 10px; }
}

/* ---------- Raised hands ---------- */
.meeting { position: relative; }
.hand-bar {
  position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  background: #fff; color: #202124; border-radius: 999px; padding: 6px 6px 6px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.45); font-size: 14px; white-space: nowrap;
}
.hand-bar::before { content: "✋"; font-size: 18px; order: 1; }
.hand-bar .hb-avatar { order: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; flex: none; }
.hand-bar .hb-text { order: 2; overflow: hidden; text-overflow: ellipsis; }
.hand-bar .hb-btn {
  order: 3; border: 0; background: #e8f0fe; color: #1a73e8; font: inherit; font-weight: 600;
  border-radius: 999px; padding: 6px 14px; cursor: pointer; flex: none;
}
.hand-bar .hb-btn:hover { background: #d2e3fc; }
.hand-bar.pop-in { animation: handPop .35s ease-out; }
@keyframes handPop { from { opacity: 0; transform: translate(-50%, 12px) scale(.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.people-head {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #5f6368 !important;
  padding: 12px 0 4px !important; text-transform: none;
}
.people-head .ms { font-size: 18px; color: #e37400; }
.people-head .btn { margin-left: auto; color: #1a73e8; }
.people li.raised { background: #fef7e0; margin: 0 -12px; padding: 8px 12px; border-radius: 10px; }
.people li.raised + li.raised { margin-top: 4px; }
.hand-order {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #e37400; color: #fff; font-size: 12px; font-weight: 600; margin-right: 2px;
}
@media (max-width: 600px) { .hand-bar { bottom: 70px; font-size: 13px; } }
