/* Meeting chat beside other screens + the floating meeting key (Claude Code 2026-11-16).
   Owner (tablet photo, dictionary open during a meeting): "set key back live screen and add chat UI with dictionary", then
   "in meeting return set as float key". #mtPill = a floating key pair (drag anywhere, place remembered): Back to meeting + Chat.
   #mtAwayChat = the meeting chat beside the page (tablet / PC: right column, page narrows; phone: bottom sheet).
   The chat rules below are the meeting's own (styles/meet-layout.css, Phase 3) for #mtAwayChat, generated — keep in step. */

/* ---- the floating key ---- */
.mt-float { position: fixed; z-index: 70; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; touch-action: none; user-select: none; -webkit-user-select: none;
  background: var(--vt-card, #0E1A33); border: 1px solid var(--vt-line, rgba(231,199,126,.42));
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mt-float.is-placed { transform: none; bottom: auto; }
.mt-float.is-drag { cursor: grabbing; box-shadow: 0 22px 46px rgba(0,0,0,.55), 0 0 0 2px var(--vt-acc, #E7C77E); }
.mt-float-grip { display: grid; grid-template-columns: repeat(1, 4px); gap: 3px; padding: 0 4px 0 6px; cursor: grab; }
.mt-float-grip i { width: 4px; height: 4px; border-radius: 50%; background: var(--vt-ink-2, #A9B6CF); opacity: .8; }
.mt-float a, .mt-float button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 800 .9rem/1 "Manrope", system-ui, sans-serif; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.mt-float-back { background: linear-gradient(180deg, color-mix(in srgb, var(--vt-acc, #E7C77E) 55%, #fff), var(--vt-acc, #E7C77E));
  box-shadow: 0 3px 0 color-mix(in srgb, var(--vt-acc, #E7C77E) 55%, #000), 0 8px 18px rgba(0,0,0,.3); color: #14110A; }
.mt-float-back .mt-rec-dot { width: 9px; height: 9px; }
.mt-float-chat { position: relative; border: 1px solid var(--vt-line, rgba(231,199,126,.42)); color: var(--vt-key-ink, #FFF1C9);
  background: linear-gradient(180deg, var(--vt-key-a, #2E4A7C), var(--vt-key-c, #12203D)); }
.mt-float-chat .ic { width: 18px; height: 18px; }
.mt-float.is-chat .mt-float-chat { background: linear-gradient(180deg, color-mix(in srgb, var(--vt-acc, #E7C77E) 55%, #fff), var(--vt-acc, #E7C77E)); color: #14110A; border-color: transparent; }
.mt-float-n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: #F0566A; color: #fff; font: 800 .7rem/1 "Manrope", sans-serif; font-style: normal; box-shadow: 0 0 0 2px var(--vt-base, #070F24); }
.mt-float-n[hidden] { display: none; }
body.mt-board-full .mt-float, body.mt-main-full-on .mt-float { display: none !important; }
@media (max-width: 420px) { .mt-float a, .mt-float button { padding: 0 12px; font-size: .84rem; } }

/* ---- the chat beside the page ---- */
#mtAwayChat { position: fixed; z-index: 65; top: calc(10px + env(safe-area-inset-top)); right: 10px; bottom: 10px; width: min(400px, 36vw); align-self: stretch; justify-self: auto;   /* .mt-panel sets align-self: start, which shrinks a fixed box to its content */
  margin: 0; display: flex !important; flex-direction: column; gap: 0; padding: 12px 14px 0; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--vt-line); background: var(--vt-card); box-shadow: 0 24px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--vt-ink, #F7F1E3); }
#mtAwayChat > .mt-ph { flex: none; padding: 2px 0 4px; font: 600 1.35rem/1.2 "Cormorant Garamond", Georgia, serif; color: var(--vt-acc-hi, #FFF1C9); }
#mtAwayChat > .mt-msgs { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
#mtAwayChat .mt-away-share { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 8px 0 0; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--vt-line); background: color-mix(in srgb, var(--vt-acc, #E7C77E) 12%, transparent); color: var(--vt-acc-hi, #FFF1C9);
  font: 700 .88rem/1.2 "Manrope", sans-serif; cursor: pointer; }
#mtAwayChat .mt-away-share[hidden] { display: none; }
#mtAwayChat .mt-away-share .ic { width: 18px; height: 18px; flex: none; }
#mtAwayChat .mt-away-share b { font-weight: 800; color: var(--vt-acc, #E7C77E); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mtAwayChat .mt-away-share:disabled { opacity: .6; }
/* tablet / PC: the page makes room for the chat column */
@media (min-width: 768px) {
  body.mt-away-chat #main { padding-right: calc(min(400px, 36vw) + 16px) !important; box-sizing: border-box; }
}
/* phone: a sheet over the lower part, the page above it stays readable */
@media (max-width: 767px) {
  #mtAwayChat { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(62dvh, 560px); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  /* the floating key never covers the chat: while the sheet is open it sits just above it (its own place comes back after) */
  body.mt-away-chat .mt-float { top: auto !important; left: 50% !important; transform: translateX(-50%) !important; bottom: calc(min(62dvh, 560px) + 10px) !important; }
}

/* ---- meeting chat rules (generated from meet-layout.css) ---- */
#mtAwayChat .mt-chead { display: grid; gap: 8px; flex: none; padding: 10px 0 8px; }
#mtAwayChat .mt-csearch { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid rgba(212, 175, 55, .28); border-radius: 12px; background: #10151F; }
#mtAwayChat .mt-csearch svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #A9ADB8; stroke-width: 2; stroke-linecap: round; }
#mtAwayChat .mt-csearch input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; color: #F8F8F8; font: 500 .9rem "Manrope", system-ui, sans-serif; outline: none; box-shadow: none !important; padding: 0 !important; }
#mtAwayChat .mt-cfilt { display: flex; gap: 6px; flex-wrap: wrap; }
#mtAwayChat .mt-cfilt button { min-height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: #10151F; color: #D9DCE3; font: 700 .8rem/1 "Manrope", sans-serif; cursor: pointer; }
#mtAwayChat .mt-cfilt button.on { background: linear-gradient(180deg, #F2D27A, #D4AF37); border-color: #E8C76A; color: #14110A; }
#mtAwayChat .mt-msgs { display: flex !important; flex-direction: column; gap: 12px; padding: 4px 4px 4px 0; }
#mtAwayChat .mt-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; }
#mtAwayChat .mt-mav { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #151922; border: 1.5px solid rgba(169, 173, 184, .5); color: #DDE3EE; font: 800 .72rem/1 "Manrope", sans-serif; letter-spacing: .02em; }
#mtAwayChat .mt-msg.host .mt-mav { border-color: #D4AF37; color: #F2D88A; }
#mtAwayChat .mt-mbody { min-width: 0; }
#mtAwayChat .mt-mbody small { display: flex !important; align-items: baseline; gap: 8px; margin: 0 0 4px !important; color: #A9ADB8 !important; font: 600 .74rem/1.2 "Manrope", sans-serif !important; }
#mtAwayChat .mt-mbody small b { color: #F2F2F7; font-weight: 800; font-size: .84rem; }
#mtAwayChat .mt-msg.host .mt-mbody small b { color: #E8C76A; }
#mtAwayChat .mt-mhost { padding: 2px 7px; border-radius: 6px; background: rgba(212, 175, 55, .16); color: #E8C76A; font: 800 .64rem/1.2 "Manrope", sans-serif; font-style: normal; }
#mtAwayChat .mt-mbody time { margin-left: auto; font-size: .72rem; color: #8F95A3; }
#mtAwayChat .mt-mpriv { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 6px; border: 1px dashed rgba(232, 199, 106, .6); color: #E8C76A; font: 700 .68rem/1.3 "Manrope", sans-serif; font-style: normal; }
#mtAwayChat .mt-mtext { display: inline-block; max-width: 100%; padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: #1C222E; border: 1px solid rgba(255, 255, 255, .06); color: #F2F2F7; font: 500 .92rem/1.45 "Manrope", "Kantumruy Pro", system-ui, sans-serif; overflow-wrap: anywhere; }
#mtAwayChat .mt-msg.host .mt-mtext { background: linear-gradient(180deg, rgba(212, 175, 55, .26), rgba(212, 175, 55, .16)); border-color: rgba(212, 175, 55, .45); color: #FFF6DC; }
#mtAwayChat .mt-msg.mine:not(.host) .mt-mtext { background: #1E2B45; border-color: rgba(40, 120, 240, .35); }
#mtAwayChat .mt-msg.private .mt-mtext { border-style: dashed; border-color: rgba(232, 199, 106, .55); }
#mtAwayChat .mt-mtext a { color: #8DB8FF; font-weight: 700; }
#mtAwayChat .mt-att { display: flex; align-items: center; gap: 10px; }
#mtAwayChat .mt-att-img { width: 72px; height: 54px; flex: none; object-fit: cover; border-radius: 8px; background: #0B0F17; }
#mtAwayChat .mt-att-ic { width: 44px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #F04452; color: #fff; font: 800 .72rem/1 "Manrope", sans-serif; }
#mtAwayChat .mt-att-tx { display: grid; gap: 4px; min-width: 0; }
#mtAwayChat .mt-att-tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mtAwayChat .mt-att-tx span { font-size: .8rem; color: #A9ADB8; }
#mtAwayChat .mt-cnew { align-self: center; margin: -44px auto 8px; position: relative; z-index: 3; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #2878F0; color: #fff; font: 700 .8rem/1 "Manrope", sans-serif; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
#mtAwayChat .mt-cnew[hidden] { display: none; }
#mtAwayChat .mt-compose { position: relative; display: grid; gap: 8px; flex: none; padding: 10px 0 12px; border-top: 1px solid rgba(212, 175, 55, .16); }
#mtAwayChat .mt-compose select { height: 36px; border-radius: 10px; background: #10151F; color: #F2F2F7; border: 1px solid rgba(255, 255, 255, .14); font: 600 .84rem "Manrope", sans-serif; }
#mtAwayChat .mt-cbox { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 6px; border: 1px solid rgba(212, 175, 55, .3); border-radius: 14px; background: #10151F; }
#mtAwayChat .mt-cbox #mtText { flex: 1; min-width: 0; height: 40px; border: 0 !important; background: transparent !important; color: #F8F8F8; font: 500 .92rem "Manrope", system-ui, sans-serif; outline: none; box-shadow: none !important; padding: 0 4px !important; }
#mtAwayChat .mt-ctools { display: flex; gap: 2px; }
#mtAwayChat .mt-cic { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #E8C76A; cursor: pointer; }
#mtAwayChat .mt-cic:hover { background: rgba(212, 175, 55, .12); }
#mtAwayChat .mt-cic svg, #mtAwayChat .mt-csend svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#mtAwayChat .mt-csend { width: 44px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: linear-gradient(180deg, #F2D27A, #D4AF37); color: #14110A; cursor: pointer; box-shadow: 0 4px 12px rgba(212, 175, 55, .3); }
#mtAwayChat .mt-emo { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; padding: 8px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 14px; background: #0D1320; box-shadow: 0 -10px 26px rgba(0, 0, 0, .5); }
#mtAwayChat .mt-emo[hidden] { display: none; }
#mtAwayChat .mt-emo button { height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 22px; cursor: pointer; }
#mtAwayChat .mt-emo button:hover { background: rgba(255, 255, 255, .08); }
