/* FaraRoom × Amirkabir — BBB Playback polish (RTL, Vazirmatn) */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn[wght].woff2") format("woff2-variations"),
       url("../fonts/vazirmatn/Vazirmatn[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --fr-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --fr-navy: #0a3d6b;
  --fr-navy-deep: #062847;
  --fr-blue: #1473c4;
  --fr-cyan: #1aa6a0;
  --fr-sand: #eef3f8;
  --fr-surface: #ffffff;
  --fr-ink: #152433;
  --fr-muted: #64788d;
  --fr-line: #d5e0eb;
  --fr-banner-h: 46px;
  --fr-mobile-dock-h: 0px;
  --fr-player-dock-h: 3.75em;
  --fr-bubble: #eef6fc;
  --fr-bubble-me: #dff7f2;
  --fr-radius: 14px;
  --fr-shadow: 0 10px 28px rgba(6, 40, 71, .12);
  --fr-ease: cubic-bezier(.22,.7,.25,1);

  --font-family: var(--fr-font) !important;
  --body-background-color: var(--fr-sand) !important;
  --primary-background-color: #e8f0f8 !important;
  --primary-content-color: var(--fr-ink) !important;
  --primary-highlight-color: #d5e6f5 !important;
  --secondary-background-color: var(--fr-surface) !important;
  --secondary-content-color: var(--fr-ink) !important;
  --secondary-highlight-color: #eaf3fb !important;
  --tertiary-background-color: #e2edf7 !important;
  --tertiary-content-color: var(--fr-navy) !important;
  --tertiary-highlight-color: #c9dcec !important;
  --top-bar-background-color: var(--fr-navy) !important;
  --top-bar-color: #f7fbff !important;
  --top-bar-active-background-color: rgba(255,255,255,.12) !important;
  --bottom-bar-background-color: var(--fr-navy-deep) !important;
  --application-background-color: #e8eef5 !important;
  --application-color: var(--fr-ink) !important;
  --application-control-background-color: #dfe8f2 !important;
  --application-control-color: var(--fr-navy) !important;
  --media-background-color: #0b1c2c !important;
  --media-color: #f5f8fb !important;
  --top-content-background-color: #0e2438 !important;
  --top-content-color: #f5f8fb !important;
  --bottom-content-background-color: #12324f !important;
  --bottom-content-color: #e7f1fa !important;
  --bottom-content-active-background-color: #1a4568 !important;
  --control-bar-background-color: rgba(6, 40, 71, .94) !important;
  --button-solid-background-color: var(--fr-blue) !important;
  --loader-background-color: var(--fr-navy-deep) !important;
  --loader-color: #9fd0ff !important;
  --blue: var(--fr-blue) !important;
}

/* ===== Splash ===== */
#fararoom-splash {
  position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center;
  background:
    radial-gradient(1100px 520px at 85% -15%, rgba(26,166,160,.28), transparent 55%),
    radial-gradient(900px 480px at 5% 110%, rgba(20,115,196,.32), transparent 50%),
    linear-gradient(160deg, #041d33 0%, #0a3d6b 50%, #0b4f6c 100%);
  color: #f4f8fc; font-family: var(--fr-font);
  transition: opacity .55s ease, visibility .55s ease;
}
#fararoom-splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.fr-splash-card {
  width: min(420px, 92vw); text-align: center; padding: 2rem 1.4rem 1.5rem;
  border-radius: 22px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.28); position: relative; overflow: hidden;
}
.fr-brand-mark, .fr-banner-mark {
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, var(--fr-cyan), var(--fr-blue) 58%, #0a3d6b);
}
.fr-brand-mark {
  width: 64px; height: 64px; margin: 0 auto .85rem; border-radius: 18px; font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(20,115,196,.45);
}
.fr-splash-title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 700; }
.fr-splash-tagline {
  margin: .55rem auto 0; max-width: 28ch; font-size: .95rem; line-height: 1.75;
  color: rgba(244,248,252,.86); font-weight: 500;
}
.fr-splash-link { display: inline-block; margin-top: .7rem; color: #9fd8ff; text-decoration: none; font-weight: 600; }
.fr-splash-link:hover { color: #fff; text-decoration: underline; }
.fr-splash-divider {
  width: 56px; height: 2px; margin: 1rem auto .75rem; border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}
.fr-splash-sub { margin: 0; font-size: .92rem; font-weight: 600; }
.fr-progress {
  width: min(220px, 70%); height: 4px; margin: 1.1rem auto .65rem; border-radius: 99px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.fr-progress i {
  display: block; height: 100%; width: 40%; border-radius: inherit;
  background: linear-gradient(90deg, var(--fr-cyan), #7ec8ff);
  animation: fr-load 1.25s ease-in-out infinite;
}
@keyframes fr-load { 0% { transform: translateX(-120%); } 100% { transform: translateX(280%); } }
.fr-splash-hint { margin: 0; font-size: .78rem; color: rgba(244,248,252,.65); }

/* ===== Banner + tools ===== */
.fr-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--fr-banner-h);
  background: linear-gradient(90deg, #062847 0%, #0a3d6b 55%, #0d4f6e 100%);
  color: #f4f8fc; font-family: var(--fr-font);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(6,40,71,.22);
}
.fr-banner-inner {
  height: 100%; max-width: 1680px; margin: 0 auto; padding: 0 .85rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.fr-banner-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.fr-banner-mark { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; font-size: .95rem; }
.fr-banner-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fr-banner-text strong {
  font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-banner-text span {
  font-size: .7rem; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-banner-actions { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.fr-toolbar-sep {
  width: 1px; height: 22px; margin: 0 .15rem;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.35), transparent);
}
.fr-icon-btn {
  appearance: none; border: 1px solid rgba(183,221,255,.28); background: rgba(255,255,255,.06);
  color: #eaf4ff; min-width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  cursor: pointer; padding: 0 .55rem;
  transition: background .18s var(--fr-ease), border-color .18s var(--fr-ease),
              transform .16s var(--fr-ease), box-shadow .18s var(--fr-ease);
}
.fr-icon-btn:hover {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4);
  transform: translateY(-1px);
}
.fr-icon-btn:active { transform: translateY(0); }
.fr-icon-btn.is-active,
.fr-icon-btn[aria-pressed="true"] {
  background: rgba(8, 20, 34, .55) !important;
  border-color: rgba(255,180,180,.35) !important;
  opacity: .48;
  box-shadow: none;
  position: relative;
  filter: grayscale(.35);
}
.fr-icon-btn.is-active em,
.fr-icon-btn[aria-pressed="true"] em {
  opacity: .9;
  text-decoration: line-through;
  text-decoration-color: #ffb4b4;
  text-decoration-thickness: 1.5px;
}
.fr-icon-btn.is-active svg,
.fr-icon-btn[aria-pressed="true"] svg {
  opacity: .5;
}
.fr-icon-btn.is-active::after,
.fr-icon-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  width: 16px; height: 1.75px;
  background: #ff9a9a;
  border-radius: 99px;
  transform: rotate(-32deg);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(6,40,71,.25);
}
.fr-icon-btn svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.fr-icon-btn,
.fr-icon-btn em,
.fr-banner,
.fr-banner * {
  font-family: "Vazirmatn", var(--fr-font), Tahoma, sans-serif !important;
}
.fr-icon-btn.fr-chip em {
  font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; opacity: .92;
  font-family: "Vazirmatn", var(--fr-font), Tahoma, sans-serif !important;
}
.fr-icon-btn.fr-tour-btn {
  border-color: rgba(255, 214, 120, .45);
  background: rgba(255, 214, 120, .1);
  color: #ffe7a8;
}
.fr-icon-btn.fr-tour-btn:hover {
  background: rgba(255, 214, 120, .2);
  border-color: rgba(255, 214, 120, .7);
}
a.fr-fav-link {
  text-decoration: none;
}
a.fr-fav-link img {
  width: 18px; height: 18px; border-radius: 4px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
/* Desktop: icon + label. Compact screens: icon-only via media query below */

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  height: 100% !important;
  margin: 0 !important;
  /* navy base kills white strip under player dock */
  background: #062847 !important;
}
body {
  font-family: var(--fr-font) !important;
  padding-top: var(--fr-banner-h);
  padding-bottom: calc(var(--fr-player-dock-h) + var(--fr-mobile-dock-h));
  box-sizing: border-box;
}
html, body, #root, .application, .message, .about-header, .modal, .top-bar, .button-wrapper {
  font-family: var(--fr-font) !important;
}
#root {
  height: calc(100% - var(--fr-banner-h) - var(--fr-player-dock-h) - var(--fr-mobile-dock-h));
  overflow: hidden;
  background: #062847 !important;
}
.player-wrapper {
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #0a243a !important;
}
html[dir=rtl] body, html[dir=rtl] #root, html[dir=rtl] .application { direction: rtl; text-align: right; }

/* Built-in top-bar search stays off — we use in-chat search */
.top-bar .right .button-wrapper:has(.icon-search),
.top-bar .icon-search,
.top-bar button[aria-label*="جستجو"],
.search-footer { display: none !important; }

/* Collapse empty BBB bottom-bar (controls live in video.js bar) */
.bottom-bar {
  height: 0 !important; min-height: 0 !important; max-height: 0 !important;
  padding: 0 !important; margin: 0 !important; overflow: hidden !important;
  border: 0 !important; opacity: 0 !important; pointer-events: none !important;
}

/* Soft labels: camera / slides / screenshare (hideable via banner) */
.media,
.content .top-content { position: relative; }
.media::before,
.content .top-content::before {
  position: absolute; z-index: 4; top: .55rem; inset-inline-start: .65rem;
  padding: .22rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; font-family: var(--fr-font);
  color: #eaf4ff; letter-spacing: .01em;
  background: rgba(6, 40, 71, .72); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px); pointer-events: none;
  opacity: 1; transform: translateY(0);
  transition: opacity .25s var(--fr-ease), transform .25s var(--fr-ease);
}
.media::before { content: "دوربین کلاس"; }
.content .top-content::before { content: "اسلایدها"; }
.content .top-content:has(.screenshare-wrapper:not(.inactive))::before { content: "اشتراک صفحه"; }
body.fr-hide-badges .media::before,
body.fr-hide-badges .content .top-content::before {
  opacity: 0 !important; transform: translateY(-6px); pointer-events: none;
}

/* Top bar — compact; title centered; brand on the right (RTL start) */
.top-bar {
  position: relative !important;
  background: linear-gradient(90deg, #0a3d6b, #0d4f78) !important;
  color: #f5f9fd !important; border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: 0 !important;
  height: 46px !important;
  padding: 0 .55rem !important;
  align-items: center !important;
  z-index: 6;
}
.top-bar .left,
.top-bar .right,
.top-bar .center {
  padding: 0 .2rem !important;
  height: 100% !important;
  gap: .4rem;
  align-items: center !important;
}
.top-bar .left,
.top-bar .right {
  flex: 0 0 auto;
  min-width: 7.5rem;
  z-index: 2;
}
.top-bar .left {
  opacity: 1 !important; pointer-events: auto !important;
  justify-content: flex-start !important;
}
.top-bar .right { justify-content: flex-end !important; }
.top-bar .button-wrapper {
  width: 34px !important; height: 34px !important;
  margin: 0 .1rem !important;
  display: grid !important;
  place-items: center !important;
}
.top-bar .button {
  border-radius: 10px !important;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #f4f8fc !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.top-bar .button:hover { background: rgba(255,255,255,.18) !important; }
.top-bar .button .icon-left,
.top-bar .button .icon-right,
.top-bar .button .icon-dark,
.top-bar .button .icon-swap,
.top-bar .button [class^="icon-"] {
  display: grid !important;
  place-items: center !important;
  width: 1em; height: 1em;
  line-height: 1 !important;
  margin: 0 !important;
  transform: none;
}
.top-bar .button .icon-left:before,
.top-bar .button .icon-right:before,
.top-bar .button [class^="icon-"]:before {
  line-height: 1 !important;
  vertical-align: middle;
}
/* Brand on the visual right in RTL — text from data-fr-side on .top-bar .left */
.top-bar .left::after {
  content: "فراروم امیرکبیر";
  font-family: var(--fr-font);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: .92;
  color: #eaf4ff;
}
.top-bar .left[data-fr-side]::after {
  content: attr(data-fr-side);
}
.top-bar .center {
  position: absolute !important;
  left: 50%;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(56vw, 520px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1;
  pointer-events: none;
}
.top-bar .center .title {
  pointer-events: auto;
  font-family: "Vazirmatn", var(--fr-font), Tahoma, sans-serif !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(56vw, 520px);
  padding: .2rem .55rem !important;
  border-radius: 10px;
}
/* Remove night / theme toggle */
.top-bar .fr-hide-theme-btn,
.top-bar .button-wrapper:has(.icon-dark),
.top-bar .button-wrapper:has(.icon-light),
.top-bar button:has(.icon-dark),
.top-bar button:has(.icon-light) {
  display: none !important;
}
/* Camera ↔ screen swap — stylish chip */
.top-bar .fr-swap-btn,
.top-bar .button-wrapper:has(.icon-swap) {
  width: auto !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 .55rem 0 .4rem !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .35rem !important;
  background: rgba(159, 232, 255, .12) !important;
  border: 1px solid rgba(159, 232, 255, .35) !important;
  box-shadow: 0 0 0 0 rgba(26,166,160,0);
  transition: background .18s ease, box-shadow .2s ease, transform .16s ease;
}
.top-bar .fr-swap-btn:hover,
.top-bar .button-wrapper:has(.icon-swap):hover {
  background: rgba(159, 232, 255, .22) !important;
  transform: translateY(-1px);
}
.top-bar .fr-swap-btn .button,
.top-bar .button-wrapper:has(.icon-swap) .button {
  background: transparent !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}
.top-bar .fr-swap-label {
  font-family: "Vazirmatn", var(--fr-font), Tahoma, sans-serif !important;
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  color: #eaf4ff;
  white-space: nowrap;
  line-height: 1;
}
body.fr-layout-swapped .top-bar .fr-swap-btn,
body.fr-layout-swapped .top-bar .button-wrapper:has(.icon-swap),
.player-wrapper.fr-layout-swapped .top-bar .fr-swap-btn {
  background: rgba(255, 210, 122, .18) !important;
  border-color: rgba(255, 210, 122, .55) !important;
  box-shadow: 0 0 0 2px rgba(255, 210, 122, .2);
  animation: fr-swap-flash .9s ease;
}
body.fr-layout-swapped .top-bar .fr-swap-label::after {
  content: " · فعال";
  color: #ffd27a;
}
@keyframes fr-swap-flash {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.fr-toast-swap .fr-cam-tip-inner {
  border-color: rgba(255, 210, 122, .45);
  background: linear-gradient(160deg, rgba(12, 70, 110, .96), rgba(6, 40, 71, .96));
}
@media (max-width: 980px) {
  .top-bar .fr-swap-label { display: none !important; }
  .top-bar .fr-swap-btn,
  .top-bar .button-wrapper:has(.icon-swap) {
    padding: 0 !important;
    width: 34px !important;
  }
}
.top-bar .center::after { content: none !important; display: none !important; }
/* Fix reversed chevron in RTL — keep vertically centered */
[dir=rtl] .top-bar .left .icon-left,
[dir=rtl] .top-bar .left .icon-right {
  transform: scaleX(-1);
}
.top-bar .interactive:hover, .top-bar .interactive:focus {
  background: rgba(255,255,255,.12) !important; border-radius: 10px;
}

/* Fullscreen control — single clean chip, no stacking mess */
.fullscreen-button {
  position: absolute !important;
  top: .45rem !important;
  inset-inline-end: .45rem !important;
  inset-inline-start: auto !important;
  z-index: 5 !important;
  margin: 0 !important;
  visibility: visible !important;
}
.fullscreen-button .button-wrapper {
  width: 36px !important; height: 36px !important;
  filter: none !important;
}
.button.solid,
.fullscreen-button .button.solid,
.button-wrapper .solid {
  background: linear-gradient(145deg, #1aa6a0, #1473c4 55%, #0a3d6b) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 11px !important;
  box-shadow: 0 4px 14px rgba(10, 61, 107, .28) !important;
}
.fullscreen-button .button.solid:hover {
  filter: brightness(1.08);
}
.fr-icon-btn.fr-cinema-btn.is-cinema-on {
  background: rgba(255, 210, 122, .2) !important;
  border-color: rgba(255, 210, 122, .55) !important;
  color: #ffe7a8;
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 2px rgba(255, 210, 122, .18);
}
.fr-icon-btn.fr-cinema-btn.is-cinema-on::after { display: none !important; }
.fr-icon-btn.fr-cinema-btn.is-cinema-on em {
  text-decoration: none !important;
  opacity: 1;
}

/* Cinema / focus: only stage + player dock + essential top controls */
body.fr-cinema .fr-banner-brand .fr-banner-text span,
body.fr-cinema .fr-toolbar-sep,
body.fr-cinema #fr-btn-badges,
body.fr-cinema #fr-btn-chatstyle,
body.fr-cinema #fr-btn-tour,
body.fr-cinema #fr-btn-files,
body.fr-cinema .fr-fav-link,
body.fr-cinema .fr-mobile-dock,
body.fr-cinema .content .bottom-content,
body.fr-cinema .media::before,
body.fr-cinema .content .top-content::before,
body.fr-cinema .fullscreen-button {
  display: none !important;
}
body.fr-cinema .player-wrapper > .media {
  /* keep tiny PiP camera optional — collapse for clean stage */
  max-height: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.fr-cinema .player-wrapper {
  grid-template-columns: 0 minmax(0, 1fr) !important;
  grid-template-areas:
    "application top-bar"
    "application content"
    "application content"
    "application content"
    "application bottom-bar" !important;
  grid-template-rows: 44px minmax(0, 1fr) auto 0 0 !important;
}
body.fr-cinema .player-wrapper .application {
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
body.fr-cinema .content .top-content {
  height: 100% !important;
  min-height: 0 !important;
  background: #04182a !important;
}
body.fr-cinema .fr-banner {
  background: linear-gradient(90deg, #04182a, #0a3d6b) !important;
}
body.fr-cinema .fr-player-dock {
  z-index: 80 !important;
}
body.fr-cinema:fullscreen .fr-player-dock,
body.fr-cinema .content:fullscreen ~ .fr-player-dock,
:fullscreen .fr-player-dock {
  /* dock stays on body; when stage is fullscreen dock may hide — keep cinema useful without FS too */
}

/* ===== Layout toggles (smooth) ===== */
.player-wrapper {
  transition: grid-template-columns .38s var(--fr-ease), grid-template-rows .38s var(--fr-ease);
}
.player-wrapper .media,
.player-wrapper .application,
.player-wrapper .content .top-content {
  transition: opacity .28s var(--fr-ease), transform .32s var(--fr-ease), filter .28s ease;
}
.player-wrapper.fr-hide-chat,
.player-wrapper.hidden-section {
  grid-template-columns: 0 auto !important;
}
.player-wrapper.fr-hide-chat .application,
.player-wrapper.hidden-section .application {
  opacity: 0; pointer-events: none; transform: translateX(-12px);
}
/* Desktop: side rail (cam+chat) compact, slides own the stage */
@media (min-width: 601px) {
  .player-wrapper {
    /* side rail | stage — RTL flips visually so chat sits on the right */
    grid-template-columns: minmax(260px, 22vw) minmax(0, 1fr) !important;
    /* top-bar | camera band | chat+stage | thumbs | dock spacer */
    grid-template-rows: 44px minmax(140px, 26vh) minmax(0, 1fr) 58px 0 !important;
    padding: 0 !important;
  }
  .player-wrapper .content {
    min-width: 0 !important;
    min-height: 0 !important;
  }
  .player-wrapper .media {
    min-height: 0 !important;
  }
  .player-wrapper .media .video-js,
  .player-wrapper .media video,
  .player-wrapper .media .vjs-tech {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  /* Camera off: chat rail + full-bleed stage for slides */
  .player-wrapper.fr-hide-camera {
    grid-template-areas:
      "application top-bar"
      "application content"
      "application content"
      "application content"
      "application bottom-bar" !important;
    grid-template-columns: minmax(280px, 24vw) minmax(0, 1fr) !important;
    grid-template-rows: 44px minmax(0, 1fr) auto 58px 0 !important;
    padding: 0 !important;
  }
}
@media (min-width: 1100px) {
  .player-wrapper {
    grid-template-columns: minmax(280px, 20vw) minmax(0, 1fr) !important;
  }
  .player-wrapper.fr-hide-camera {
    grid-template-columns: minmax(300px, 22vw) minmax(0, 1fr) !important;
  }
}
@media (min-width: 1500px) {
  .player-wrapper {
    grid-template-columns: 320px minmax(0, 1fr) !important;
  }
  .player-wrapper.fr-hide-camera {
    grid-template-columns: 340px minmax(0, 1fr) !important;
  }
}

/* Slides / screenshare: fill the stage (no tiny centered postcard) */
.content .top-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.presentation-wrapper {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 0 !important;
}
.presentation-wrapper .presentation,
.presentation {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}
.presentation-wrapper svg,
.presentation svg,
.presentation img,
.presentation canvas,
.presentation-wrapper img,
.presentation-wrapper canvas,
.screenshare-wrapper,
.screenshare-wrapper .video-js,
.screenshare-wrapper video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
.presentation-wrapper svg,
.presentation svg {
  /* keep aspect; contain inside stage */
  object-fit: contain;
}
/* ===== ALWAYS-ON custom player dock (does NOT move Video.js DOM) ===== */
.fr-player-dock {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: var(--fr-mobile-dock-h, 0px) !important;
  z-index: 52 !important;
  width: 100% !important;
  height: var(--fr-player-dock-h) !important;
  margin: 0 !important;
  padding: 0 .55rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: .55rem;
  direction: ltr;
  background: linear-gradient(90deg, #04182a, #0a3d6b) !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 -8px 24px rgba(0,0,0,.3) !important;
  backdrop-filter: blur(8px);
  color: #eaf4ff;
  font-family: var(--fr-font);
}
.fr-dock-play {
  appearance: none; border: 0; position: relative;
  color: #fff; width: 2.55rem; height: 2.55rem; border-radius: 999px;
  display: inline-grid; place-items: center;
  cursor: pointer; flex: 0 0 auto; overflow: visible;
  background: linear-gradient(145deg, #1aa6a0, #1473c4 55%, #0a3d6b);
  box-shadow: 0 8px 20px rgba(20,115,196,.4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .15s ease, background .25s ease;
}
.fr-dock-play-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%);
  pointer-events: none; opacity: .85; border-radius: 50%;
}
.fr-dock-play-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(159,232,255,.0);
  pointer-events: none;
}
.fr-dock-play:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 12px 26px rgba(20,115,196,.5), inset 0 1px 0 rgba(255,255,255,.3);
  filter: brightness(1.06);
}
.fr-dock-play:active { transform: scale(.97); }
.fr-dock-play svg {
  width: 1.1rem; height: 1.1rem;
  position: absolute; z-index: 1;
  transition: opacity .2s ease, transform .22s var(--fr-ease, ease);
}
/* Only ONE icon visible — play when paused, pause when playing */
.fr-dock-play .fr-ico-play {
  opacity: 1; transform: scale(1);
  margin-inline-start: 2px;
}
.fr-dock-play .fr-ico-pause {
  opacity: 0; transform: scale(.6);
  pointer-events: none;
}
.fr-player-dock.is-playing .fr-dock-play {
  background: linear-gradient(145deg, #128f8a, #0a4f7a 60%, #062847);
  animation: fr-play-pulse 1.7s ease-in-out infinite;
}
.fr-player-dock.is-playing .fr-dock-play-ring {
  animation: fr-play-ring 1.7s ease-out infinite;
}
.fr-player-dock.is-playing .fr-dock-play .fr-ico-play {
  opacity: 0; transform: scale(.55) rotate(-12deg);
  pointer-events: none;
}
.fr-player-dock.is-playing .fr-dock-play .fr-ico-pause {
  opacity: 1; transform: scale(1);
  pointer-events: auto;
}
@keyframes fr-play-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(20,115,196,.35), 0 0 0 0 rgba(26,166,160,.35); }
  50% { box-shadow: 0 10px 26px rgba(20,115,196,.5), 0 0 0 8px rgba(26,166,160,0); }
}
@keyframes fr-play-ring {
  0% { transform: scale(1); border-color: rgba(159,232,255,.55); opacity: 1; }
  100% { transform: scale(1.45); border-color: rgba(159,232,255,0); opacity: 0; }
}
.fr-dock-times {
  display: flex; align-items: center; gap: .2rem;
  font-family: "Vazirmatn", var(--fr-font), sans-serif !important;
  font-size: .72rem; font-variant-numeric: tabular-nums; font-weight: 600;
  opacity: .92; flex: 0 0 auto; min-width: 5.6rem;
}
.fr-dock-sep { opacity: .45; }
.fr-dock-progress {
  position: relative;
  flex: 1 1 auto; height: 1.85rem; display: flex; align-items: center;
  cursor: pointer; touch-action: none; min-width: 4rem;
  overflow: hidden; border-radius: 10px;
}
/* Real audio visualizer — continuous background, driven by AnalyserNode (no fake CSS motion) */
.fr-dock-signal {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: stretch;
  gap: 1px; padding: 0;
  opacity: .18; pointer-events: none; z-index: 0;
  transition: opacity .2s ease;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fr-dock-signal i {
  display: block; flex: 1 1 0; min-width: 0;
  height: 100%;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, rgba(159,232,255,.85), rgba(26,166,160,.35) 55%, rgba(26,166,160,.08));
  transform: scaleY(0.06);
  transform-origin: bottom center;
  will-change: transform;
}
.fr-player-dock.is-playing .fr-dock-signal { opacity: .42; }
.fr-player-dock.is-playing.is-speaking .fr-dock-signal { opacity: .62; }
.fr-dock-progress-track {
  position: relative; z-index: 1;
  width: 100%; height: .34rem; border-radius: 99px;
  background: rgba(255,255,255,.14); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}
.fr-dock-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--fr-cyan, #1aa6a0), #4db7ff);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(26,166,160,.35);
  transition: width .08s linear;
}
.fr-dock-vol {
  display: inline-flex; align-items: center; gap: .28rem;
  flex: 0 0 auto; min-width: 0;
}
.fr-dock-mute {
  appearance: none; border: 0; background: rgba(255,255,255,.08);
  color: #eaf4ff; width: 1.85rem; height: 1.85rem; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.fr-dock-mute svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-dock-vol-range {
  width: 78px; height: 4px; appearance: none; border-radius: 99px;
  background: rgba(255,255,255,.18); outline: none; cursor: pointer;
}
.fr-dock-vol-range::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #9fe8ff; border: 2px solid #0a3d6b;
  box-shadow: 0 0 8px rgba(159,232,255,.55);
}
.fr-dock-vol-val {
  font-style: normal; font-size: .64rem; font-variant-numeric: tabular-nums;
  min-width: 2.4rem; opacity: .85;
}
.fr-player-dock.is-boost .fr-dock-vol-val { color: #ffd27a; font-weight: 700; }
.fr-player-dock.is-muted .fr-dock-mute { opacity: .55; }
.fr-dock-skip {
  display: inline-flex; align-items: center; gap: .22rem;
  flex: 0 0 auto;
  padding: .12rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.fr-dock-skip-btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .18rem;
  height: 1.85rem; padding: 0 .42rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #eaf4ff;
  font-family: var(--fr-font);
  transition: background .15s ease, transform .12s ease;
}
.fr-dock-skip-btn:hover { background: rgba(159,232,255,.18); }
.fr-dock-skip-btn:active { transform: scale(.96); }
.fr-dock-skip-btn.is-flash {
  animation: fr-skip-flash .42s ease;
  background: rgba(159,232,255,.28);
  box-shadow: 0 0 0 2px rgba(159,232,255,.35);
}
@keyframes fr-skip-flash {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.fr-dock-skip-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.fr-dock-skip-label {
  font-style: normal; font-size: .62rem; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .01em; opacity: .95;
}
.fr-dock-skip-edit {
  display: inline-flex; align-items: center; gap: .15rem;
  padding: 0 .28rem; height: 1.85rem;
  border-radius: 9px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(234,244,255,.78);
  font-size: .58rem; font-weight: 600;
}
.fr-dock-skip-input {
  width: 2.1rem; border: 0; outline: none; background: transparent;
  color: #fff; text-align: center; font: inherit; font-weight: 700;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.fr-dock-skip-input::-webkit-outer-spin-button,
.fr-dock-skip-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fr-dock-rate {
  display: inline-flex; align-items: center; gap: .18rem;
  font-size: .68rem; flex: 0 0 auto;
  padding: .12rem .16rem .12rem .2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26,166,160,.18), rgba(20,115,196,.16));
  border: 1px solid rgba(159,232,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 14px rgba(0,0,0,.12);
}
.fr-dock-rate-tag {
  font-size: .58rem; font-weight: 700; letter-spacing: .02em;
  color: rgba(159,232,255,.9);
  padding: 0 .28rem; margin-inline-end: .05rem;
  border-inline-end: 1px solid rgba(255,255,255,.12);
  line-height: 1;
}
.fr-dock-rate-btn {
  appearance: none; border: 0; width: 1.5rem; height: 1.5rem;
  border-radius: 9px;
  background: rgba(255,255,255,.12); color: #eaf4ff;
  font-size: .92rem; line-height: 1; cursor: pointer; font-weight: 700;
  transition: background .15s ease, transform .12s ease;
}
.fr-dock-rate-btn:hover { background: rgba(255,255,255,.22); }
.fr-dock-rate-btn:active { transform: scale(.94); }
.fr-dock-rate-input {
  width: 2.45rem; border: 0; background: transparent; color: #fff;
  text-align: center; font: inherit; font-weight: 800;
  font-variant-numeric: tabular-nums; outline: none;
  -moz-appearance: textfield;
}
.fr-dock-rate-input::-webkit-outer-spin-button,
.fr-dock-rate-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fr-dock-rate-unit { opacity: .72; font-weight: 800; margin-inline-end: .1rem; }
.fr-dock-rate-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}
.fr-dock-rate-trigger {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .28rem;
  height: 1.7rem; padding: 0 .55rem 0 .65rem;
  border-radius: 9px;
  font: inherit; font-weight: 700; color: #eaf4ff;
  background: linear-gradient(180deg, rgba(8,36,58,.85), rgba(4,24,42,.72));
  border: 1px solid rgba(159,232,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.18);
  transition: border-color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fr-dock-rate-trigger em {
  font-style: normal; font-size: .64rem; letter-spacing: .01em;
}
.fr-dock-rate-trigger svg {
  width: 12px; height: 12px;
  fill: none; stroke: rgba(159,232,255,.9); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s ease;
}
.fr-dock-rate-trigger:hover {
  border-color: rgba(159,232,255,.42);
  filter: brightness(1.06);
}
.fr-dock-rate-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(159,232,255,.3);
}
.fr-dock-rate-menu-wrap.is-open .fr-dock-rate-trigger {
  border-color: rgba(159,232,255,.55);
  box-shadow: 0 0 0 2px rgba(26,166,160,.25);
}
.fr-dock-rate-menu-wrap.is-open .fr-dock-rate-trigger svg {
  transform: rotate(180deg);
}
.fr-dock-rate-menu {
  position: absolute;
  right: 0; bottom: calc(100% + 8px);
  z-index: 80;
  min-width: 6.4rem;
  margin: 0; padding: .35rem;
  list-style: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b2a45 0%, #071c2f 100%);
  border: 1px solid rgba(159,232,255,.22);
  box-shadow:
    0 16px 36px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(10px);
  animation: fr-rate-pop .16s ease both;
}
@keyframes fr-rate-pop {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.fr-dock-rate-menu[hidden] { display: none !important; }
.fr-dock-rate-menu li {
  display: flex; align-items: center; justify-content: center;
  min-height: 2rem;
  margin: 0; padding: .28rem .55rem;
  border-radius: 9px;
  color: #eaf4ff;
  font-family: var(--fr-font);
  font-size: .78rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, transform .12s ease;
}
.fr-dock-rate-menu li:hover {
  background: rgba(159,232,255,.14);
  color: #fff;
}
.fr-dock-rate-menu li.is-active {
  background: linear-gradient(135deg, rgba(26,166,160,.9), rgba(20,115,196,.88));
  color: #fff;
  box-shadow: 0 4px 12px rgba(20,115,196,.28);
}
.fr-dock-rate-menu li:active { transform: scale(.98); }
/* Keep native VJS bars in DOM (required), but hide visually — custom dock replaces them */
body.fr-has-player-dock .video-js > .vjs-control-bar {
  display: none !important;
}

/* Camera hidden: collapse media video only — custom dock stays on body */
.player-wrapper.fr-hide-camera > .media {
  position: relative !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none;
  opacity: 0 !important;
  visibility: hidden !important;
}
.player-wrapper.fr-hide-camera .media::before,
.player-wrapper.fr-hide-camera .media::after { display: none !important; }
.player-wrapper.fr-hide-camera .application {
  border-inline-start: 1px solid rgba(10,61,107,.14);
  box-shadow: 4px 0 24px rgba(6,40,71,.08);
}
.player-wrapper.fr-hide-slides .content .top-content {
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important; min-height: 0 !important; max-height: 0 !important;
  overflow: hidden !important; opacity: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
}
.player-wrapper.fr-hide-slides .content .top-content * {
  display: none !important;
}
.player-wrapper.fr-hide-slides .content {
  display: flex; flex-direction: column;
}
.player-wrapper.fr-hide-slides .content .bottom-content {
  flex: 1 1 auto; min-height: 120px !important;
}

/* ===== Application / chat panel (light, navy-tinted) ===== */
.application {
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(20,115,196,.08), transparent 55%),
    linear-gradient(180deg, #eaf0f6 0%, #e2eaf3 100%) !important;
  border-inline-start: 1px solid rgba(10,61,107,.12);
}
.application .application-control {
  background: linear-gradient(180deg, #e4ecf5, #d7e3ef) !important;
  border-bottom: 1px solid rgba(10,61,107,.12);
  gap: .28rem; padding: .42rem .45rem !important;
  justify-content: center !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  direction: rtl;
}
.application .application-control .application-icon {
  gap: .22rem; padding: .28rem .55rem !important; border-radius: 999px;
  opacity: 1 !important; font-size: .72rem !important; font-weight: 600 !important;
  color: var(--fr-navy) !important;
  transition: background .18s var(--fr-ease), color .18s ease, transform .16s var(--fr-ease), box-shadow .18s ease;
}
.application .application-control .application-icon:not(.inactive) {
  background: linear-gradient(135deg, rgba(26,166,160,.16), rgba(20,115,196,.16));
  color: var(--fr-navy) !important;
  box-shadow: 0 2px 8px rgba(10,61,107,.08);
}
.application .application-control .application-icon.inactive:hover {
  background: rgba(10,61,107,.08);
  transform: translateY(-1px);
}
.application .application-control .application-icon::after {
  font-family: var(--fr-font); font-size: .7rem; font-weight: 700; line-height: 1;
}
/* RTL: گفتگو first → appears on the right */
.application .application-control .application-icon:has(.icon-chat)::after { content: "گفتگو"; }
.application .application-control .application-icon:has(.icon-notes)::after { content: "یادداشت"; }
.application .application-control .application-icon:has(.icon-polls)::after { content: "رأی"; }
.application .application-control .application-icon:has(.icon-users)::after { content: "حاضرین"; }
.application .application-control .application-icon:has(.icon-videos)::after { content: "ویدیو"; }
.application .application-control .application-icon:has(.icon-captions)::after { content: "زیرنویس"; }
.application .application-control .application-icon.fr-side-tab::after {
  content: attr(data-fr-label);
}
.application .application-control .fr-side-tab-ico {
  display: inline-flex; width: .95rem; height: .95rem;
}
.application .application-control .fr-side-tab-ico svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Side panels (About / Download) — overlays chat/notes */
.application { position: relative; }
.fr-side-panel {
  display: none;
  position: absolute;
  inset: 0;
  top: 2.65rem;
  z-index: 4;
  overflow: auto;
  padding: .55rem .55rem .85rem;
  direction: rtl;
  background:
    radial-gradient(480px 180px at 100% 0%, rgba(26,166,160,.12), transparent 55%),
    radial-gradient(420px 200px at 0% 100%, rgba(20,115,196,.1), transparent 60%),
    linear-gradient(180deg, rgba(234,240,246,.96) 0%, rgba(226,234,243,.98) 100%);
}
.application.fr-about-open .fr-about-panel,
.application.fr-download-open .fr-download-panel { display: block; }
.application.fr-side-open .chat-wrapper,
.application.fr-side-open .notes-wrapper { visibility: hidden; pointer-events: none; }
.fr-side-card {
  max-width: 26rem;
  margin: 0 auto;
  padding: .75rem .8rem .85rem;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(10,61,107,.1);
  box-shadow: 0 10px 28px rgba(6,40,71,.08);
  backdrop-filter: blur(10px);
  animation: fr-about-in .32s var(--fr-ease, ease) both;
}
@keyframes fr-about-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.fr-about-brand {
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: .55rem;
}
.fr-about-mark {
  width: 2.05rem; height: 2.05rem; border-radius: 12px;
  display: inline-grid; place-items: center;
  font-weight: 800; font-size: .92rem; color: #fff;
  background: linear-gradient(145deg, #1aa6a0, #1473c4 55%, #0a3d6b);
  box-shadow: 0 6px 14px rgba(20,115,196,.24);
  flex: 0 0 auto;
}
.fr-about-brand-text { display: flex; flex-direction: column; gap: .08rem; min-width: 0; }
.fr-about-brand-text strong {
  font-size: .82rem; color: var(--fr-navy); font-weight: 800; line-height: 1.25;
}
.fr-about-brand-text span {
  font-size: .66rem; color: var(--fr-muted); font-weight: 600;
}
.fr-about-typewriter {
  min-height: 1.35rem; margin: 0 0 .5rem;
  font-size: .78rem; font-weight: 700; color: #0a3d6b;
  line-height: 1.5;
}
.fr-about-typewriter::after {
  content: "";
  display: inline-block; width: .08rem; height: .9em;
  margin-inline-start: .1rem; vertical-align: -0.1em;
  background: #1aa6a0;
  animation: fr-about-caret .85s steps(1) infinite;
}
@keyframes fr-about-caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.fr-about-lead {
  margin: 0 0 .3rem;
  font-size: .8rem; font-weight: 800; color: var(--fr-navy);
  line-height: 1.5;
}
.fr-about-body,
.fr-about-support {
  margin: 0 0 .5rem;
  font-size: .72rem; line-height: 1.65; color: #3a5168; font-weight: 500;
}
.fr-about-handle {
  color: #0f6cbd; font-weight: 800; text-decoration: none;
  border-bottom: 1px solid rgba(15,108,189,.35);
}
.fr-about-handle:hover { color: #0a3d6b; border-bottom-color: #0a3d6b; }
.fr-about-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .1rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .72rem; font-weight: 800; letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(135deg, #1aa6a0, #1473c4 60%, #0a3d6b);
  box-shadow: 0 8px 18px rgba(20,115,196,.24);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.fr-about-link svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-about-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 22px rgba(20,115,196,.32);
}

/* STT / summary feature card */
.fr-stt-card {
  position: relative;
  margin: .15rem 0 .65rem;
  padding: .65rem .7rem .7rem;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26,166,160,.1), rgba(20,115,196,.08)),
    rgba(255,255,255,.55);
  border: 1px solid rgba(26,166,160,.22);
  box-shadow: 0 8px 20px rgba(10,61,107,.07);
  animation: fr-stt-in .55s var(--fr-ease, ease) both;
}
.fr-stt-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: fr-stt-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fr-stt-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes fr-stt-shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
.fr-stt-wave {
  display: flex; align-items: flex-end; gap: 3px;
  height: 1.05rem; margin-bottom: .4rem;
}
.fr-stt-wave i {
  display: block; width: 3px; border-radius: 99px;
  background: linear-gradient(180deg, #1aa6a0, #1473c4);
  animation: fr-stt-bar 1.1s ease-in-out infinite;
  transform-origin: bottom;
}
.fr-stt-wave i:nth-child(1) { height: 35%; animation-delay: 0s; }
.fr-stt-wave i:nth-child(2) { height: 60%; animation-delay: .08s; }
.fr-stt-wave i:nth-child(3) { height: 90%; animation-delay: .16s; }
.fr-stt-wave i:nth-child(4) { height: 55%; animation-delay: .24s; }
.fr-stt-wave i:nth-child(5) { height: 75%; animation-delay: .12s; }
.fr-stt-wave i:nth-child(6) { height: 45%; animation-delay: .2s; }
.fr-stt-wave i:nth-child(7) { height: 65%; animation-delay: .04s; }
@keyframes fr-stt-bar {
  0%, 100% { transform: scaleY(.55); opacity: .7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.fr-stt-title {
  display: block;
  font-size: .76rem; font-weight: 800; color: var(--fr-navy);
  margin-bottom: .28rem; line-height: 1.35;
}
.fr-stt-body {
  margin: 0 0 .5rem;
  font-size: .68rem; line-height: 1.65; color: #3f556a; font-weight: 500;
}
.fr-stt-cta {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .34rem .65rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .68rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1aa6a0, #0f6cbd);
  box-shadow: 0 6px 14px rgba(20,115,196,.22);
  transition: transform .15s ease, filter .15s ease;
}
.fr-stt-cta svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-stt-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* Download guide panel */
.fr-dl-head {
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: .45rem;
}
.fr-dl-badge {
  width: 2.05rem; height: 2.05rem; border-radius: 12px;
  display: inline-grid; place-items: center; flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #128f8a, #1473c4 60%, #0a3d6b);
  box-shadow: 0 6px 14px rgba(20,115,196,.24);
}
.fr-dl-badge svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-dl-head strong {
  display: block; font-size: .82rem; font-weight: 800; color: var(--fr-navy); line-height: 1.25;
}
.fr-dl-head span {
  display: block; font-size: .62rem; font-weight: 700; color: #1aa6a0; margin-top: .08rem;
  letter-spacing: .01em;
}
.fr-dl-intro {
  margin: 0 0 .55rem;
  font-size: .7rem; line-height: 1.65; color: #3a5168; font-weight: 500;
}
.fr-dl-steps {
  list-style: none; margin: 0 0 .65rem; padding: 0;
  display: flex; flex-direction: column; gap: .32rem;
}
.fr-dl-step {
  display: flex; gap: .45rem; align-items: flex-start;
  padding: .38rem .45rem;
  border-radius: 12px;
  background: rgba(10,61,107,.035);
  border: 1px solid rgba(10,61,107,.06);
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.fr-dl-step:hover {
  background: rgba(26,166,160,.08);
  border-color: rgba(26,166,160,.18);
  transform: translateY(-1px);
}
.fr-dl-n {
  flex: 0 0 auto;
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: .68rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1aa6a0, #1473c4);
  box-shadow: 0 3px 8px rgba(20,115,196,.2);
  margin-top: .05rem;
}
.fr-dl-step strong {
  display: block; font-size: .72rem; font-weight: 800; color: var(--fr-navy); line-height: 1.35;
}
.fr-dl-step p {
  margin: .08rem 0 0;
  font-size: .66rem; line-height: 1.55; color: #4a6075; font-weight: 500;
}
.fr-dl-step-url {
  background: linear-gradient(135deg, rgba(26,166,160,.08), rgba(20,115,196,.06));
  border-color: rgba(26,166,160,.18);
}
.fr-dl-url-hint {
  margin: .1rem 0 .35rem !important;
  font-size: .64rem !important;
  color: #4a6075;
}
.fr-dl-url-btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
  margin: .1rem 0 .35rem;
  padding: .38rem .65rem;
  border-radius: 999px;
  font-family: var(--fr-font);
  font-size: .68rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1aa6a0, #1473c4);
  box-shadow: 0 6px 14px rgba(20,115,196,.22);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.fr-dl-url-btn svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-dl-url-btn em { font-style: normal; }
.fr-dl-url-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.fr-dl-url-btn.is-copied {
  background: linear-gradient(135deg, #128f8a, #0a3d6b);
  box-shadow: 0 0 0 2px rgba(26,166,160,.28);
}
.fr-dl-url {
  display: block;
  direction: ltr;
  text-align: left;
  margin: 0;
  padding: .4rem .5rem;
  border-radius: 10px;
  background: rgba(4,24,42,.06);
  border: 1px dashed rgba(10,61,107,.18);
  color: #0a3d6b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .58rem; font-weight: 600; line-height: 1.45;
  word-break: break-all;
  user-select: all;
}
.fr-dl-actions {
  display: flex; flex-direction: column; gap: .35rem;
}
.fr-dl-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .8rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: .76rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1aa6a0, #1473c4 55%, #0a3d6b);
  box-shadow: 0 10px 22px rgba(20,115,196,.28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.fr-dl-primary svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2.1;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-dl-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 26px rgba(20,115,196,.36);
}
.fr-download-card > .fr-dl-more {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  width: 100%;
  margin-top: .15rem;
  padding: .42rem .55rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: .7rem; font-weight: 700; color: #0f6cbd;
  background: rgba(20,115,196,.07);
  border: 1px solid rgba(20,115,196,.14);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.fr-dl-more {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .38rem .55rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: .7rem; font-weight: 700; color: #0f6cbd;
  background: rgba(20,115,196,.07);
  border: 1px solid rgba(20,115,196,.14);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.fr-dl-more svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-dl-more:hover {
  background: rgba(20,115,196,.12);
  border-color: rgba(20,115,196,.28);
  color: #0a3d6b;
}
.fr-dl-note {
  margin: .45rem 0 0;
  text-align: center;
  font-size: .6rem; font-weight: 600; color: #7a8fa3; letter-spacing: .01em;
}

/* FaraRoom BBB Downloader card */
.fr-bbb-dl {
  position: relative;
  margin: 0 0 .7rem;
  padding: .7rem .7rem .75rem;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26,166,160,.12), rgba(20,115,196,.1)),
    rgba(255,255,255,.6);
  border: 1px solid rgba(26,166,160,.22);
  box-shadow: 0 8px 20px rgba(10,61,107,.07);
  animation: fr-stt-in .45s var(--fr-ease, ease) both;
}
.fr-bbb-dl::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.4) 48%, transparent 68%);
  transform: translateX(-120%);
  animation: fr-stt-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.fr-bbb-dl-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .45rem;
  margin-bottom: .35rem; position: relative; z-index: 1;
}
.fr-bbb-dl-titles { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.fr-bbb-dl-top strong {
  font-size: .8rem; font-weight: 800; color: var(--fr-navy); line-height: 1.3;
}
.fr-bbb-dl-en {
  font-size: .62rem; font-weight: 700; color: #1aa6a0; letter-spacing: .01em;
}
.fr-bbb-dl-top em {
  font-style: normal;
  font-size: .56rem; font-weight: 800; color: #0f6cbd;
  padding: .18rem .45rem; border-radius: 999px;
  background: rgba(20,115,196,.1); border: 1px solid rgba(20,115,196,.16);
  white-space: nowrap; flex: 0 0 auto; margin-top: .1rem;
}
.fr-bbb-dl > p {
  margin: 0 0 .55rem; position: relative; z-index: 1;
  font-size: .68rem; line-height: 1.6; color: #3f556a; font-weight: 500;
}
.fr-download-card-slim {
  padding: .7rem .75rem .75rem;
}
.fr-download-card-slim .fr-bbb-dl {
  margin: 0;
}
.fr-bbb-dl-btn {
  position: relative; z-index: 1;
  appearance: none; border: 0; cursor: pointer; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .58rem .75rem; border-radius: 12px;
  font-family: var(--fr-font); font-size: .76rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1aa6a0, #1473c4 55%, #0a3d6b);
  box-shadow: 0 10px 22px rgba(20,115,196,.28);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.fr-bbb-dl-btn svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.fr-bbb-dl-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.fr-bbb-dl-btn.is-busy { opacity: .72; cursor: wait; transform: none; }
.fr-bbb-dl-meter {
  position: relative; z-index: 1;
  margin-top: .55rem;
  display: flex; align-items: center; gap: .55rem;
}
.fr-bbb-dl-progress {
  flex: 1 1 auto; min-width: 0;
  height: .42rem; border-radius: 99px;
  background: rgba(10,61,107,.1); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(10,61,107,.08);
}
.fr-bbb-dl-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #1aa6a0, #1473c4 70%, #0a3d6b);
  border-radius: 99px;
  transition: width .22s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.fr-bbb-dl-meter.is-active .fr-bbb-dl-progress i::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: fr-bbb-dl-shine 1.1s ease-in-out infinite;
}
@keyframes fr-bbb-dl-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.fr-bbb-dl-pct {
  flex: 0 0 auto;
  min-width: 2.6rem;
  text-align: center;
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fr-navy);
  letter-spacing: .01em;
}
.fr-bbb-dl-meter.is-done .fr-bbb-dl-pct { color: #0f8a75; }
.fr-bbb-dl-meter.is-error .fr-bbb-dl-pct,
.fr-bbb-dl-pct.is-error { color: #c0392b; }
.fr-bbb-dl-meter.is-error .fr-bbb-dl-progress i {
  width: 100% !important;
  background: linear-gradient(90deg, #e07474, #c0392b);
}
.fr-dl-alt {
  margin: .15rem 0 .55rem;
  border-radius: 12px;
  background: rgba(10,61,107,.03);
  border: 1px solid rgba(10,61,107,.08);
  padding: .2rem .55rem .45rem;
}
.fr-dl-alt > summary {
  cursor: pointer; list-style: none;
  font-size: .7rem; font-weight: 800; color: var(--fr-navy);
  padding: .4rem 0;
}
.fr-dl-alt > summary::-webkit-details-marker { display: none; }
.fr-dl-alt[open] > summary { margin-bottom: .25rem; }
.fr-dl-alt .fr-dl-steps { margin-bottom: .45rem; }
.fr-dl-alt .fr-dl-actions { margin-top: .2rem; }

/* In-chat search */
.fr-chat-search {
  position: sticky; top: 0; z-index: 5;
  padding: .55rem .55rem .35rem;
  background: linear-gradient(180deg, #eaf0f6 75%, rgba(234,240,246,0));
}
.fr-chat-search-inner {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.82); border: 1px solid rgba(10,61,107,.12);
  border-radius: 12px; padding: .35rem .55rem;
  box-shadow: 0 4px 14px rgba(15,50,80,.05);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fr-chat-search-inner:focus-within {
  border-color: rgba(20,115,196,.45);
  box-shadow: 0 0 0 3px rgba(20,115,196,.12);
}
.fr-chat-search-inner svg {
  width: 15px; height: 15px; flex: 0 0 auto; color: var(--fr-muted);
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}
.fr-chat-search-inner input {
  flex: 1 1 auto; border: 0; outline: none; background: transparent;
  font-family: var(--fr-font); font-size: .78rem; color: var(--fr-ink);
  min-width: 0;
}
.fr-chat-search-inner input::placeholder { color: #8a9bb0; }
.fr-chat-search-clear {
  appearance: none; border: 0; background: transparent; color: var(--fr-muted);
  font-size: 1rem; line-height: 1; cursor: pointer; padding: 0 .15rem;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.fr-chat-search.has-query .fr-chat-search-clear { opacity: 1; pointer-events: auto; }
.user-message-wrapper.fr-search-miss { display: none !important; }

/* Telegram-like chat bubbles — no avatars */
.chat-wrapper, .notes-wrapper {
  background:
    radial-gradient(900px 280px at 100% 0%, rgba(20,115,196,.07), transparent 55%),
    linear-gradient(180deg, #eaf0f6 0%, #e3ebf3 100%);
}
.message-wrapper {
  padding: .35rem .55rem .85rem !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,61,107,.25) transparent;
}
.user-message-wrapper {
  margin: 0 0 .38rem !important;
  padding: 0;
  animation: fr-msg-in .28s var(--fr-ease) both;
}
@keyframes fr-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.message {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100%;
  line-height: 1.55;
  font-size: .82rem;
  width: 100%;
}
.message .main-content-wrapper {
  gap: 0 !important;
  align-items: stretch !important;
}
.message .data {
  margin: 0 !important;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(10,61,107,.1);
  border-radius: 14px 14px 4px 14px;
  padding: .45rem .68rem .42rem !important;
  box-shadow: 0 3px 10px rgba(15, 50, 80, .05);
  max-width: 100%;
  min-width: 0;
  transition: background .15s ease, box-shadow .18s ease;
}
[dir=rtl] .message .data { border-radius: 14px 14px 14px 4px; }
.message .data:hover { box-shadow: 0 6px 16px rgba(15, 50, 80, .07); }
.message .info {
  margin-bottom: .14rem !important;
  align-items: baseline; gap: .3rem;
  flex-wrap: wrap;
}
.message .name {
  color: var(--fr-navy); font-size: .72rem; font-weight: 700;
  max-width: 78%;
  letter-spacing: -.01em;
}
.message .time {
  font-size: .62rem !important; opacity: .58; font-variant-numeric: tabular-nums;
  margin: 0 !important; margin-inline-start: auto !important;
}
.message .text {
  font-size: .8rem; color: var(--fr-ink); padding: 0 !important;
  word-break: break-word; white-space: pre-wrap;
}
/* Hide avatar look, keep invisible hit-target for native seek + our click */
.chat-wrapper .user-message-wrapper {
  position: relative;
  cursor: pointer;
}
.chat-wrapper .user-message-wrapper.fr-seek-flash .message .data {
  box-shadow: 0 0 0 2px rgba(26,166,160,.55);
  background: #dff3ff;
}
.chat-wrapper .avatar-wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important; height: auto !important;
  margin: 0 !important; padding: 0 !important;
  opacity: 0 !important;
  z-index: 2;
  cursor: pointer;
}
.chat-wrapper .avatar-wrapper .avatar {
  width: 100% !important; height: 100% !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.system-message-wrapper, .poll-wrapper {
  border-radius: 12px; border: 1px solid var(--fr-line);
  background: #fff !important; box-shadow: 0 4px 12px rgba(15,50,80,.04);
  margin: .35rem .25rem !important;
}
.notes-wrapper .notes {
  font-size: .84rem; line-height: 1.75; padding: .85rem !important;
  color: var(--fr-ink);
}

/* Camera tip — fixed toast (never inside collapsing panels) */
.fr-cam-tip {
  position: fixed; z-index: 80;
  left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 1.5rem));
  font-family: var(--fr-font);
  animation: fr-toast-in .35s var(--fr-ease) both;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.fr-cam-tip-inner {
  pointer-events: auto;
  background: rgba(6,40,71,.94); color: #f4f8fc;
  border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: .85rem 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
}
.fr-cam-tip.is-gone { opacity: 0; transform: translateX(-50%) translateY(10px); }
.fr-cam-tip p {
  margin: 0; font-size: .8rem; line-height: 1.7; font-weight: 500;
  white-space: normal; writing-mode: horizontal-tb;
}
.fr-cam-tip-actions {
  display: flex; gap: .4rem; margin-top: .65rem; flex-wrap: wrap;
  justify-content: flex-end;
}
.fr-cam-tip-actions button {
  appearance: none !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  font-family: var(--fr-font) !important;
  font-size: .74rem !important; font-weight: 600 !important;
  border-radius: 999px !important;
  padding: .38rem .85rem !important;
  height: auto !important; width: auto !important; min-width: 0 !important;
  cursor: pointer; line-height: 1.3 !important;
  box-shadow: none !important;
  transition: background .15s ease;
}
.fr-cam-tip-actions button:hover { background: rgba(255,255,255,.2) !important; }
.fr-cam-tip-actions .fr-cam-tip-hide {
  background: linear-gradient(135deg, rgba(26,166,160,.65), rgba(20,115,196,.65)) !important;
  border-color: transparent !important;
}
@keyframes fr-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Compact chat */
body.fr-compact-chat .message .data { padding: .3rem .52rem .28rem !important; }
body.fr-compact-chat .message .name { font-size: .66rem; }
body.fr-compact-chat .message .text { font-size: .74rem; line-height: 1.45; }
body.fr-compact-chat .message .time { font-size: .58rem !important; }
body.fr-compact-chat .user-message-wrapper { margin: 0 0 .24rem !important; }

/* Media / content clean */
.media, .content .top-content { cursor: pointer; }

/* Thumbnail strip — compact, icons + index centered */
.content .bottom-content {
  background: linear-gradient(180deg, #0f2c45 0%, #0a243a 100%) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  min-height: 56px !important;
  max-height: 60px !important;
  height: 58px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  padding: .22rem .35rem !important;
  overflow: hidden !important;
  color: #d7e7f5 !important;
  font-family: var(--fr-font) !important;
}
.thumbnails-wrapper {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
  gap: .3rem;
  align-items: center !important;
  height: 100% !important;
}
.thumbnails-wrapper::-webkit-scrollbar { height: 3px; }
.thumbnails-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.25); border-radius: 99px;
}
.thumbnail-wrapper {
  flex: 0 0 auto !important;
  width: 70px !important;
  height: 50px !important;
  align-self: center !important;
}
.thumbnail-wrapper .thumbnail {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  height: 100% !important;
  width: 100% !important;
  padding: 0 0 14px !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}
.thumbnail-wrapper .thumbnail-image,
.thumbnail-wrapper .thumbnail img,
.thumbnail-wrapper .thumbnail-image.screenshare {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  color: #dceaf8 !important;
}
.thumbnail-wrapper .thumbnail-image.screenshare .icon-screenshare,
.thumbnail-wrapper .thumbnail-image.screenshare [class^="icon-"] {
  display: grid !important;
  place-items: center !important;
  width: 100%; height: 100%;
  font-size: 1.35rem !important;
  opacity: .95;
}
.thumbnail-wrapper .interactive:hover .thumbnail,
.thumbnail-wrapper .active .thumbnail {
  border-color: rgba(77,183,255,.65);
  box-shadow: 0 0 0 2px rgba(77,183,255,.22);
}
.thumbnail-wrapper .thumbnail .thumbnail-index {
  position: absolute !important;
  left: 0; right: 0; bottom: 0;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  color: #eaf4ff !important;
  background: rgba(4, 24, 42, .72);
  font-family: var(--fr-font) !important;
}

/* Replace BBB logo with FaraRoom mark */
.logo,
.presentation.logo,
.thumbnail .logo {
  background-image: url(/playback/presentation/2.3/static/media/fararoom-logo.png) !important;
  background-position: 50% !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}
.presentation.logo {
  background-color: transparent !important;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}

/* ===== Player bar ===== */
.video-js { font-family: var(--fr-font) !important; }
.video-js .vjs-control-bar {
  direction: ltr;
  padding: 0 .25em;
}
.video-js .vjs-progress-control {
  height: .55em; top: -.2em; width: 100%;
}
.video-js .vjs-progress-holder {
  height: .38em !important; border-radius: 99px;
  background: rgba(255,255,255,.16) !important;
  margin: 0 .2em;
  transition: height .12s ease;
}
.video-js .vjs-progress-control:hover .vjs-progress-holder { height: .52em !important; }
.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background: linear-gradient(90deg, var(--fr-cyan), #4db7ff) !important;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(26,166,160,.35);
}
.video-js .vjs-play-progress::before {
  font-size: .75em; color: #9fe8ff; text-shadow: 0 0 8px rgba(79,183,255,.7);
}
.video-js .vjs-load-progress, .video-js .vjs-load-progress div {
  background: rgba(255,255,255,.22) !important; border-radius: 99px;
}
.video-js .vjs-control:focus:before,
.video-js .vjs-control:hover:before,
.video-js .vjs-control:focus { outline: none; text-shadow: 0 0 8px rgba(159,216,255,.55); }
.video-js .vjs-current-time,
.video-js .vjs-duration,
.video-js .vjs-time-divider,
.video-js .vjs-playback-rate {
  font-family: var(--fr-font) !important; font-variant-numeric: tabular-nums;
  display: flex !important; align-items: center; font-weight: 600;
}
.video-js .vjs-playback-rate {
  width: 3.4em !important;
  border-radius: 8px;
}
.video-js .vjs-playback-rate:hover { background: rgba(255,255,255,.1); }
.video-js .vjs-playback-rate .vjs-playback-rate-value {
  font-size: 1.05em; font-weight: 700; letter-spacing: .02em;
  line-height: 2.8em;
}
.video-js .vjs-menu-button-popup .vjs-menu .vjs-menu-content {
  background: rgba(6,40,71,.96) !important; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  font-family: var(--fr-font) !important;
}
.video-js .vjs-menu li { font-family: var(--fr-font) !important; font-weight: 600; }
.video-js .vjs-menu li.vjs-selected,
.video-js .vjs-menu li.vjs-selected:focus,
.video-js .vjs-menu li.vjs-selected:hover {
  background: rgba(26,166,160,.35) !important; color: #fff !important;
}
.video-js .vjs-time-tooltip,
.video-js .vjs-mouse-display .vjs-time-tooltip,
.video-js .vjs-play-progress .vjs-time-tooltip {
  background: #062847 !important; color: #f4f8fc !important;
  border: 1px solid rgba(255,255,255,.16) !important; border-radius: 8px !important;
  font-family: var(--fr-font) !important; font-weight: 700 !important;
  font-variant-numeric: tabular-nums; padding: .35rem .55rem !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.video-js .vjs-big-play-button {
  border: none !important; border-radius: 999px !important;
  background: linear-gradient(145deg, var(--fr-blue), var(--fr-navy)) !important;
  width: 1.7em !important; height: 1.7em !important; line-height: 1.7em !important;
  font-size: 2.45em !important; margin-top: -.85em !important; margin-left: -.85em !important;
  box-shadow: 0 12px 28px rgba(20,115,196,.4);
  transition: opacity .25s ease, transform .2s var(--fr-ease);
}
.video-js .vjs-big-play-button:hover {
  background: linear-gradient(145deg, var(--fr-cyan), var(--fr-blue)) !important;
}
/* Custom play gate (replaces missing/hidden big-play after autoplay) */
#fr-play-gate {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: rgba(4, 18, 32, .52);
  backdrop-filter: blur(5px);
  cursor: pointer;
  font-family: var(--fr-font);
  transition: opacity .35s ease, visibility .35s ease;
}
#fr-play-gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.fr-play-gate-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1.4rem 1.6rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(10,61,107,.92), rgba(6,40,71,.94));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  color: #f4f8fc; text-align: center;
  min-width: min(280px, 86vw);
  animation: fr-msg-in .35s var(--fr-ease) both;
}
.fr-play-gate-icon {
  width: 72px; height: 72px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1aa6a0, #1473c4 55%, #0a3d6b);
  box-shadow: 0 12px 28px rgba(20,115,196,.4);
  color: #fff;
}
.fr-play-gate-icon svg { width: 30px; height: 30px; margin-inline-start: 3px; }
.fr-play-gate-card strong { font-size: 1.05rem; font-weight: 800; }
.fr-play-gate-ready { font-size: .8rem; opacity: .78; font-weight: 500; }
.fr-play-gate-links {
  display: flex; flex-direction: column; align-items: center; gap: .28rem;
  margin-top: .55rem; padding-top: .7rem;
  border-top: 1px solid rgba(255,255,255,.12);
  width: min(100%, 320px);
}
.fr-play-gate-links a {
  color: #b7ddff; text-decoration: none; font-weight: 700;
  font-size: .78rem; line-height: 1.55; text-align: center;
  transition: color .15s ease;
}
.fr-play-gate-links a:hover { color: #fff; text-decoration: underline; }
.fr-play-gate-type {
  min-height: 2.6em; display: inline-flex; align-items: center; justify-content: center;
  max-width: 22rem; font-size: .82rem !important; font-weight: 800 !important;
  color: #eaf6ff !important; letter-spacing: -.01em;
}
.fr-play-gate-type::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-inline-start: .2rem;
  background: #8ec7ff;
  border-radius: 2px;
  animation: fr-caret .9s step-end infinite;
  vertical-align: -2px;
}
@keyframes fr-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.fr-play-gate-links a.fr-play-gate-sub {
  font-size: .68rem; font-weight: 600; opacity: .82; color: #9ec9ea;
}

/* Guided tour */
.fr-tour-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 14, 26, .58);
  backdrop-filter: blur(2px);
  animation: fr-fade .2s ease both;
}
.fr-tour-spot {
  position: fixed; z-index: 91;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(3, 14, 26, .55), 0 0 0 2px rgba(159,232,255,.85), 0 12px 36px rgba(0,0,0,.35);
  pointer-events: none;
  transition: top .25s var(--fr-ease), left .25s var(--fr-ease), width .25s var(--fr-ease), height .25s var(--fr-ease);
}
.fr-tour-card {
  position: fixed; z-index: 92;
  width: min(340px, calc(100vw - 24px));
  padding: 1rem 1.05rem 0.9rem;
  border-radius: 16px;
  background: linear-gradient(165deg, #0c4a78, #062847);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 50px rgba(0,0,0,.4);
  color: #f4f8fc;
  font-family: var(--fr-font);
  direction: rtl;
  text-align: right;
  animation: fr-msg-in .28s var(--fr-ease) both;
}
.fr-tour-kicker {
  font-size: .68rem; font-weight: 700; color: #9fe8ff; opacity: .9;
  margin-bottom: .35rem;
}
.fr-tour-card h3 {
  margin: 0 0 .35rem; font-size: .98rem; font-weight: 800;
}
.fr-tour-card p {
  margin: 0 0 .85rem; font-size: .8rem; line-height: 1.7; opacity: .9;
}
.fr-tour-actions {
  display: grid; grid-template-columns: 1fr auto auto; gap: .4rem; align-items: center;
}
.fr-tour-actions button {
  appearance: none; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #eaf4ff;
  border-radius: 10px; padding: .4rem .75rem;
  font-family: var(--fr-font); font-size: .78rem; font-weight: 700;
  cursor: pointer;
}
.fr-tour-actions .fr-tour-next {
  background: linear-gradient(135deg, #1aa6a0, #1473c4);
  border-color: transparent;
}
.fr-tour-actions button:hover { filter: brightness(1.08); }

/* After first play: no big-play / no darken on pause */
.video-js.fr-started.vjs-paused .vjs-big-play-button,
body.fr-has-played .video-js.vjs-paused .vjs-big-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.video-js.fr-started .vjs-poster,
body.fr-has-played .video-js .vjs-poster {
  display: none !important;
  opacity: 0 !important;
}

/* Mobile bottom dock */
.fr-mobile-dock { display: none; }
@media (max-width: 980px) {
  /* Tablet/phone: icon-only in top bar */
  .fr-icon-btn.fr-chip em { display: none !important; }
  .fr-icon-btn.fr-chip { padding: 0; width: 36px; }
}
@media (max-width: 760px) {
  :root { --fr-banner-h: 44px; --fr-mobile-dock-h: 58px; --fr-player-dock-h: 3.35em; }
  .fr-banner-text span, .fr-toolbar-sep { display: none !important; }
  /* layout toggles live in mobile dock — keep play/tour/badges/style as icons */
  .fr-banner-actions #fr-btn-camera,
  .fr-banner-actions #fr-btn-slides,
  .fr-banner-actions #fr-btn-chat,
  .fr-banner-actions #fr-btn-files { display: none !important; }
  .top-bar .left::after { font-size: .62rem; max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; }
  .content .bottom-content { height: 56px !important; max-height: 56px !important; min-height: 52px !important; }
  .thumbnail-wrapper { width: 64px !important; height: 42px !important; }
  .fr-mobile-dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    height: var(--fr-mobile-dock-h);
    background: linear-gradient(180deg, #0a3d6b, #062847);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 -10px 28px rgba(0,0,0,.28);
    padding: .2rem .15rem calc(.2rem + env(safe-area-inset-bottom, 0px));
  }
  .fr-mobile-dock button {
    appearance: none; border: 0; background: transparent; color: #eaf4ff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .15rem; font-family: var(--fr-font); cursor: pointer;
    position: relative;
    opacity: 1;
    transition: opacity .15s ease;
  }
  .fr-mobile-dock button.is-active {
    opacity: .42;
    filter: grayscale(.4);
  }
  .fr-mobile-dock button.is-active em {
    text-decoration: line-through;
    text-decoration-color: #ffb4b4;
  }
  .fr-mobile-dock button.is-active::after {
    content: "";
    position: absolute;
    width: 18px; height: 1.75px;
    background: #ff9a9a;
    border-radius: 99px;
    top: 14px;
    transform: rotate(-28deg);
  }
  .fr-player-dock {
    bottom: var(--fr-mobile-dock-h) !important;
    padding: 0 .35rem;
    gap: .28rem;
  }
  .fr-dock-vol-range { width: 54px; }
  .fr-dock-vol-val { display: none; }
  .fr-dock-rate-tag { display: none; }
  .fr-dock-rate-trigger em { font-size: .58rem; }
  .fr-dock-rate-menu { min-width: 5.8rem; }
  .fr-dock-times { min-width: 4.4rem; font-size: .64rem; }
  .fr-dock-rate-input { width: 2.2rem; }
  .fr-dock-skip-edit span { display: none; }
  .fr-dock-skip-label { font-size: .56rem; }
  .fr-dock-skip-input { width: 1.7rem; }
  .fr-mobile-dock svg {
    width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .fr-mobile-dock em { font-style: normal; font-size: .62rem; font-weight: 700; opacity: .9; }
}
.button-wrapper .solid { border-radius: 12px !important; }
.modal { border-radius: 16px !important; box-shadow: var(--fr-shadow); }
.loader-wrapper { background: var(--fr-navy-deep) !important; }
.dots-wrapper div { background: #8ec7ff !important; }

@media (max-width: 720px) {
  .fr-banner-text span, .fr-toolbar-sep { display: none; }
  .top-bar .center::after { font-size: .7rem; max-width: 38vw; }
  .application .application-control .application-icon::after { display: none; }
}
@media (max-width: 480px) {
  :root { --fr-banner-h: 52px; }
  .fr-banner-text strong { font-size: .78rem; }
}

/* ===== Files modal ===== */
body.fr-modal-open { overflow: hidden; }
.fr-modal[hidden] { display: none !important; }
.fr-modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 1rem; font-family: var(--fr-font);
}
.fr-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 24, 42, .55);
  backdrop-filter: blur(6px);
  animation: fr-fade .25s ease both;
}
.fr-modal-card {
  position: relative; z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 820px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fbfcfe, #eef3f8);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(4,24,42,.35);
  overflow: hidden;
  animation: fr-modal-in .32s var(--fr-ease) both;
}
@keyframes fr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fr-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.fr-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.2rem .7rem;
  border-bottom: 1px solid var(--fr-line);
  background: linear-gradient(90deg, #062847, #0a3d6b);
  color: #f4f8fc;
}
.fr-modal-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.fr-modal-sub { margin: .25rem 0 0; font-size: .78rem; opacity: .8; }
.fr-modal-x {
  appearance: none; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); color: #fff;
  width: 36px; height: 36px; border-radius: 11px;
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.fr-modal-x:hover { background: rgba(255,255,255,.18); }
.fr-modal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
  padding: .75rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--fr-line);
}
.fr-files-count { font-size: .8rem; font-weight: 600; color: var(--fr-navy); }
.fr-modal-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.fr-btn-primary, .fr-btn-secondary {
  appearance: none; border-radius: 11px; font-family: var(--fr-font);
  font-size: .78rem; font-weight: 700; padding: .45rem .9rem; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.fr-btn-primary {
  border: none;
  background: linear-gradient(145deg, #1aa6a0, #1473c4 55%, #0a3d6b);
  color: #fff; box-shadow: 0 6px 16px rgba(10,61,107,.22);
}
.fr-btn-secondary {
  border: 1px solid var(--fr-line); background: #fff; color: var(--fr-navy);
}
.fr-btn-primary:hover, .fr-btn-secondary:hover { transform: translateY(-1px); }
.fr-btn-primary:disabled, .fr-btn-secondary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fr-files-grid {
  flex: 1 1 auto; overflow: auto; padding: .9rem 1rem 1.1rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .75rem; align-content: start;
}
.fr-files-loading, .fr-files-empty {
  grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem;
  color: var(--fr-muted); font-size: .9rem;
}
.fr-file-card {
  appearance: none; border: 1px solid var(--fr-line); background: #fff;
  border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0;
  text-align: center; font-family: var(--fr-font);
  box-shadow: 0 4px 14px rgba(15,50,80,.05);
  transition: transform .18s var(--fr-ease), box-shadow .18s ease, border-color .18s ease;
}
.fr-file-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20,115,196,.35);
  box-shadow: 0 12px 28px rgba(10,61,107,.12);
}
.fr-file-card img {
  display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain;
  background: #f0f4f8;
}
.fr-file-card span {
  display: block; padding: .45rem .4rem .55rem;
  font-size: .68rem; font-weight: 600; color: var(--fr-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-file-card.is-svg {
  position: relative;
  border-color: rgba(26,166,160,.28);
}
.fr-file-card.is-svg::after {
  content: "SVG";
  position: absolute; top: .4rem; inset-inline-start: .4rem;
  font-size: .58rem; font-weight: 800; letter-spacing: .04em;
  padding: .12rem .35rem; border-radius: 6px;
  background: rgba(6, 40, 71, .78); color: #9fe8ff;
  pointer-events: none;
}
/* Fullscreen lightbox over modal */
.fr-lightbox[hidden] { display: none !important; }
.fr-lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  padding: 1rem;
  gap: .5rem;
}
.fr-lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 12, 24, .88);
  backdrop-filter: blur(8px);
}
.fr-lightbox-stage {
  position: relative; z-index: 1;
  margin: 0;
  width: min(96vw, 1200px);
  height: min(86vh, 900px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .65rem;
}
.fr-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(86vh - 2.8rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  background: #fff;
}
.fr-lightbox-stage figcaption {
  color: #eaf4ff; font-size: .82rem; font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.fr-lb-nav, .fr-lb-close {
  position: relative; z-index: 2;
  appearance: none; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12); color: #fff;
  width: 48px; height: 48px; border-radius: 14px;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.fr-lb-nav:hover, .fr-lb-close:hover { background: rgba(255,255,255,.22); transform: scale(1.04); }
.fr-lb-close {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  font-size: 1.4rem; width: 42px; height: 42px;
}
body.fr-lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .fr-lb-nav { width: 40px; height: 40px; }
  .fr-lightbox { padding: .5rem; }
}
