/* Figma call UI — isolated from the rest of the site. */

html.is-call {
  color-scheme: light;
}

html.is-call,
html.is-call body,
html.is-call #app {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #e7f2f3 !important;
  color: #173033;
}

html.is-call body::before,
html.is-call .topbar {
  display: none !important;
}

html.is-call .call-page {
  --call-teal: #1a8a84;
  --call-teal-soft: #d7eef0;
  --call-hang: #ff5c6a;
  --call-ink: #173033;
  --call-muted: #8aa0a3;
  --call-stage: #e7f2f3;
  --call-plus: #c4d7d9;
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px 16px;
  background: #e7f2f3;
  color: var(--call-ink);
}

html.is-call .call-page > audio,
html.is-call #remote-mix {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

html.is-call .call-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 8px 12px 8px 8px;
  min-height: 56px;
  box-shadow: 0 8px 24px rgba(38, 72, 76, 0.04);
}

html.is-call .call-back {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 50%;
  background: #1f3a3d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

html.is-call .call-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.is-call .call-pill {
  flex: 0 0 auto;
  background: var(--call-teal-soft);
  color: var(--call-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 8px 12px;
}

html.is-call .call-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--call-ink);
}

html.is-call .call-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

html.is-call .call-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #c23b48;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  border: 0;
  padding: 0;
}

html.is-call .call-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e23b4c;
}

html.is-call .call-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--call-ink);
}

html.is-call .call-user .avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

html.is-call .call-rotate-btn { display: none; }

html.is-call .call-layout,
html.is-call .call-layout.is-cameras-only,
html.is-call .call-layout:not(.has-workspace),
html.is-call .call-layout.has-workspace {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 0 !important;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

html.is-call .call-layout.has-workspace .call-chat-panel,
html.is-call .call-layout.has-workspace .call-main {
  order: unset;
}

html.is-call .call-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

html.is-call .call-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background-color: var(--call-stage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M64 54v20M54 64h20' stroke='%23c4d7d9' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: 168px 168px;
  border-radius: 24px;
  overflow: hidden;
}

html.is-call .call-stage .lesson-workspace {
  height: 100%;
  min-height: 0;
}

html.is-call .workspace-stage {
  height: 100% !important;
  min-height: 0 !important;
}

html.is-call .call-chat-panel {
  background: #fff;
  border-radius: 24px;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
}

html.is-call .call-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 0;
  padding: 16px 16px 14px;
  background: transparent;
  border-radius: 24px;
}

html.is-call .call-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid #dceaea;
}

html.is-call .call-chat-ico {
  width: 22px;
  height: 22px;
  color: var(--call-teal);
  display: inline-flex;
}

html.is-call .call-chat-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.is-call .call-chat-head h3 {
  margin: 0;
  flex: 1 1 auto;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--call-teal);
}

html.is-call .call-chat-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--call-teal-soft);
  color: var(--call-teal);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.is-call .call-page .chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: transparent !important;
  background-image: none !important;
  color: inherit;
  border: 0 !important;
  padding: 0;
  border-radius: 0;
}

html.is-call .call-page .chat-line {
  background: none;
  border-radius: 0;
  padding: 0;
  color: inherit;
  margin: 0 0 14px;
}

html.is-call .call-page .chat-bubble {
  display: inline-block;
  max-width: 100%;
  background: #f3f6f6;
  border-radius: 16px;
  padding: 10px 12px;
  color: inherit;
}

html.is-call .call-page .chat-file {
  color: var(--call-teal);
  font-weight: 700;
  display: inline-block;
  margin: 0 0 6px;
}

html.is-call .call-page .chat-file.is-image {
  display: block;
}

html.is-call .call-page .chat-file.is-image img {
  display: block;
  max-width: min(100%, 220px);
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

html.is-call .call-page .chat-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

html.is-call .call-page .chat-line b {
  display: inline;
  color: var(--call-teal);
  font-size: 13px;
  margin: 0;
}

html.is-call .call-page .chat-line time {
  color: var(--call-muted);
  font-size: 11px;
  font-weight: 600;
}

html.is-call .call-page .chat-line.mine .chat-bubble {
  background: var(--call-teal-soft);
  color: inherit;
}

html.is-call .call-page .chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #dceaea;
}

html.is-call .chat-compose {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f6f6;
  border-radius: 999px;
  overflow: hidden;
}

html.is-call .call-page .chat-form input[name="text"] {
  margin: 0;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 12px 40px 12px 16px;
  color: var(--call-ink);
}

html.is-call .chat-clip {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  color: var(--call-muted);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html.is-call .chat-clip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

html.is-call .chat-clip input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
}

html.is-call .call-send {
  width: 100%;
  background: var(--call-teal) !important;
  color: #fff !important;
  border-radius: 12px;
  min-height: 44px;
  font-weight: 700;
  box-shadow: none !important;
}

html.is-call .call-page .videos,
html.is-call .call-stage .videos,
html.is-call .call-layout .videos,
html.is-call .call-layout.is-cameras-only .videos,
html.is-call .call-layout:not(.has-workspace) .videos,
html.is-call.call-workspace .videos {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  max-height: calc(100% - 96px) !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow: auto !important;
  z-index: 20 !important;
  gap: 8px !important;
  padding: 0 !important;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

html.is-call .call-page .videos.is-dragging {
  cursor: grabbing;
  z-index: 30 !important;
}

html.is-call .call-page .videos .tile,
html.is-call .videos .tile,
html.is-call .call-layout.is-cameras-only .videos .tile,
html.is-call .call-layout:not(.has-workspace) .videos .tile,
html.is-call.call-workspace .videos .tile {
  width: 168px !important;
  height: 112px !important;
  max-width: 168px !important;
  min-width: 168px !important;
  flex: 0 0 112px !important;
  aspect-ratio: auto !important;
  border-radius: 18px !important;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(38, 72, 76, 0.16);
  background: #132224;
  overflow: hidden;
}

html.is-call .call-page .videos .tile video {
  object-fit: cover;
  transform: none;
  pointer-events: none;
}

html.is-call .call-page .tile#tile-local video { transform: scaleX(-1); }

html.is-call .call-page .tile .name {
  top: 8px;
  left: 8px;
  bottom: auto;
  background: rgba(32, 36, 40, 0.72);
  padding: 4px 10px;
  font-size: 12px;
  pointer-events: none;
}

html.is-call .call-dock-wrap,
html.is-call .controls.call-dock-wrap {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 16px !important;
  z-index: 22;
  display: flex;
  justify-content: center;
  background: transparent !important;
  padding: 0 !important;
  pointer-events: none;
  flex: 0 0 auto;
}

html.is-call .call-toast,
html.is-call #call-hint {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 24;
  margin: 0;
  max-width: min(520px, calc(100% - 32px));
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  text-align: center;
  font-size: 13px;
  pointer-events: none;
}

html.is-call .call-toast:empty,
html.is-call #call-hint:empty,
html.is-call .call-toast.ok,
html.is-call #call-hint.ok { display: none; }

html.is-call .call-toast.error,
html.is-call #call-hint.error {
  display: block;
  background: #fdecea;
  color: #8a2f2f;
}

html.is-call .call-dock,
html.is-call .call-dock.controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 12px 32px rgba(38, 72, 76, 0.14);
  pointer-events: auto;
  max-width: none;
  overflow: visible;
}

html.is-call .dock-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f4f8f8;
  color: var(--call-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

html.is-call .dock-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.is-call .dock-btn svg.is-fill {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}

html.is-call .dock-btn svg.is-fill path[fill="none"] {
  fill: none;
}

html.is-call #board-start.is-on {
  background: #d7eef0;
  color: var(--call-teal);
  box-shadow: inset 0 0 0 1.8px var(--call-teal);
}

html.is-call #share-full {
  display: none !important;
}

html.is-call .dock-btn.is-on {
  background: var(--call-teal);
  color: #fff;
}

html.is-call .dock-btn.hang,
html.is-call .dock-btn.hang.is-on {
  background: var(--call-hang);
  color: #fff;
}

html.is-call .dock-btn.hang svg {
  fill: currentColor;
  stroke: none;
}

html.is-call .call-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 24, 26, 0.36);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

html.is-call .call-menu.hidden { display: none !important; }

html.is-call .call-menu-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  max-height: min(80vh, 640px);
  overflow: visible;
  color: var(--call-ink);
}

html.is-call .call-menu-card #roster-list {
  max-height: 28vh;
}

html.is-call .call-menu-actions { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }

html.is-call .call-menu-actions .btn {
  border-radius: 999px;
  background: #eef6f6;
  color: var(--call-ink);
  box-shadow: none;
}

html.is-call.theme-dark .call-menu-actions .btn {
  background: #243334;
  color: #e8f2f2;
}

html.is-call .fx-bar {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  justify-content: stretch;
}

html.is-call .fx-bar label {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--call-ink);
}

html.is-call .fx-bar select {
  width: 100%;
  min-width: 0;
  margin: 0;
  background: #f4f8f8;
  color: var(--call-ink);
  border: 1.5px solid rgba(38, 72, 76, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  color-scheme: light;
}

html.is-call .call-page .board-wrap,
html.is-call .call-page .screen-wrap {
  border-radius: 24px;
  box-shadow: none;
  background: transparent;
}

html.is-call .call-page .float-panel {
  inset: 0;
  resize: none;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

html.is-call .call-page .board-stage {
  min-height: 0;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #dce9ea;
}

html.is-call .call-page .board-stage .overlay-notes {
  z-index: 6;
}

html.is-call .call-page .board-stage #board {
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  display: block;
  background: #fffef6;
  touch-action: none;
}

html.is-call:not(.call-phone) .call-page .board-wrap {
  grid-template-rows: minmax(0, 1fr) !important;
  position: relative;
}

html.is-call:not(.call-phone) .call-page .board-wrap .window-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  background: transparent;
}

html.is-call.theme-dark .call-page .board-stage {
  background: #1a2a2c;
}

html.is-call .call-page .screen-stage {
  min-height: 0;
  height: auto;
}

html.is-call:not(.call-phone) .call-page .screen-wrap {
  grid-template-rows: minmax(0, 1fr) !important;
}

html.is-call:not(.call-phone) .call-page .screen-wrap .window-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  z-index: 9;
  background: #2a2a2a;
  justify-content: flex-start;
  width: fit-content;
  max-width: min(100%, 520px);
  padding: 10px 12px;
  border-radius: 0 0 16px 0;
}

html.is-call .call-page .window-bar {
  background: transparent;
  border: 0;
}

html.is-call .call-page #board-close {
  border-radius: 999px;
  color: var(--call-teal);
  box-shadow: inset 0 0 0 1.5px var(--call-teal);
  background: #fff;
}

html.is-call .call-page .board-toolbar {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 56px;
  flex-direction: column;
  align-items: center;
  border-radius: 22px;
  background: #fff;
  padding: 10px 8px;
  max-height: calc(100% - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 10px 24px rgba(38, 72, 76, 0.1);
}

html.is-call .call-page #board-tools,
html.is-call .call-page #overlay-tools,
html.is-call .call-page .tool-extra,
html.is-call .call-page .swatch-row,
html.is-call .call-page .swatch-main,
html.is-call .call-page .swatch-extra {
  flex-direction: column;
  flex-wrap: nowrap;
  max-height: none;
}

html.is-call .call-page .swatch-row {
  gap: 8px;
  align-items: center;
}

html.is-call .call-page .swatch-main,
html.is-call .call-page .swatch-extra {
  display: flex;
  gap: 8px;
  align-items: center;
}

html.is-call .call-page .swatch-extra { display: none; }
html.is-call .call-page .swatch-row.is-open .swatch-extra { display: flex; }

html.is-call .call-page .swatch-toggle {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f8f8;
  color: var(--call-teal);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.is-call .call-page .swatch {
  box-shadow: inset 0 0 0 1px rgba(38, 72, 76, 0.18);
}

html.is-call .call-page .board-toolbar .mark-btn {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  justify-content: center;
  overflow: hidden;
  background: #f4f8f8;
  color: #1f3a3d;
  box-shadow: none;
}

html.is-call .call-page .board-toolbar .mark-btn.on-tool {
  background: #d7eef0;
  color: var(--call-teal);
  border-radius: 12px;
}

html.is-call .call-page .board-toolbar .mark-btn.mark-clear {
  border-radius: 50%;
  background: var(--call-teal);
  color: #fff;
  box-shadow: none;
}

html.is-call .call-page .board-toolbar .mark-ico {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

html.is-call .call-page .board-toolbar .mark-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.is-call .call-page .board-toolbar .mark-ico svg [fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

html.is-call .call-page .tool-extra,
html.is-call .call-page .board-field {
  display: none !important;
}

html.is-call .call-page .size-ctl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(38, 72, 76, 0.12);
  font-size: 10px;
  font-weight: 700;
  color: var(--call-teal, #2a5a5e);
  user-select: none;
}

html.is-call .call-page .size-ctl-label {
  display: none;
}

html.is-call .call-page .size-ctl input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 18px;
  height: 72px;
  padding: 0;
  margin: 0;
  accent-color: var(--call-teal, #2a5a5e);
}

html.is-call .call-page .size-ctl #board-size-val,
html.is-call .call-page .size-ctl #overlay-size-val {
  min-width: 1.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

html.is-call .call-top .theme-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: #f4f8f8;
  color: var(--call-teal);
  box-shadow: none;
}

html.is-call .call-page .call-chat-panel .roster { display: none; }

html.is-call.call-phone .phone-only { display: inline; }
html.is-call.call-phone .wide-only { display: none !important; }
html.is-call.call-phone #call-rotate,
html.is-call.call-phone .call-rotate-btn { display: inline-flex !important; }

html.is-call.call-phone .call-page {
  padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  gap: 8px;
  grid-template-rows: auto minmax(0, 1fr);
}

html.is-call.call-phone .call-top {
  background: transparent;
  box-shadow: none;
  padding: 4px 2px 0;
  min-height: 0;
  border-radius: 0;
}

html.is-call.call-phone .call-back { display: none; }
html.is-call.call-phone .call-user { display: none; }
html.is-call.call-phone .call-title { font-size: 13px; font-weight: 800; }

html.is-call.call-phone .call-layout,
html.is-call.call-phone .call-layout.has-workspace,
html.is-call.call-phone .call-layout.is-cameras-only,
html.is-call.call-phone.call-workspace .call-layout,
html.is-call.call-phone.call-workspace .call-layout.has-workspace {
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
}

html.is-call.call-phone .call-main { display: contents; }
html.is-call.call-phone .call-stage {
  order: 1;
  border-radius: 20px;
  min-height: 180px;
}

html.is-call.call-phone .call-chat-panel {
  order: 2;
  max-height: none;
  border-radius: 20px;
}

html.is-call.call-phone .call-dock-wrap,
html.is-call.call-phone .controls.call-dock-wrap {
  order: 3;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  padding: 2px 0 0 !important;
  pointer-events: auto;
}

html.is-call.call-phone .call-dock,
html.is-call.call-phone .call-dock.controls-row {
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 12px;
}

html.is-call.call-phone .dock-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  background: #fff;
}

html.is-call.call-phone .dock-btn.is-on { background: var(--call-teal); }
html.is-call.call-phone #board-start { display: none; }

html.is-call.call-phone .call-chat { padding: 12px 14px 12px; }
html.is-call.call-phone .call-chat-head {
  margin-bottom: 6px;
  padding-bottom: 8px;
}
html.is-call.call-phone .call-chat-head h3 { font-size: 15px; }
html.is-call.call-phone .chat-log { max-height: 56px; }

html.is-call.call-phone .chat-form {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}

html.is-call.call-phone .chat-compose { flex: 1 1 auto; }

html.is-call.call-phone .chat-form input[name="text"] {
  padding: 10px 40px 10px 12px;
}

html.is-call.call-phone .call-send {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  padding: 0;
}

html.is-call.call-phone .videos .tile,
html.is-call.call-phone.call-workspace .videos .tile {
  width: 108px !important;
  height: 80px !important;
  max-width: 108px !important;
  min-width: 108px !important;
  flex: 0 0 80px !important;
  border-radius: 16px !important;
}

html.is-call.call-phone .board-toolbar {
  left: 8px;
  right: 8px;
  top: auto;
  bottom: 8px;
  width: auto;
  transform: none;
  flex-direction: row;
  max-height: none;
  background: #fff;
}

html.is-call.call-phone #board-tools,
html.is-call.call-phone #overlay-tools,
html.is-call.call-phone .tool-extra,
html.is-call.call-phone .swatch-row,
html.is-call.call-phone .swatch-main,
html.is-call.call-phone .swatch-extra {
  flex-direction: row;
}

html.is-call.call-phone .call-menu { align-items: stretch; padding: 0; }
html.is-call.call-phone .call-menu-card {
  width: 100%;
  max-height: none;
  border-radius: 24px 24px 0 0;
  padding: 18px 16px max(20px, env(safe-area-inset-bottom));
}

html.is-call.call-phone .window-bar b { display: none; }
html.is-call.call-phone .control-hint { display: none !important; }
html.is-call.call-phone #overlay-tools-toggle,
html.is-call.call-phone #share-full { display: none; }
html.is-call.call-phone #board-tools.is-locked,
html.is-call.call-phone #overlay-tools.is-locked { display: none; }

html.is-call.call-rotate,
html.is-call.call-rotate body,
html.is-call.call-rotate #app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.is-call.call-rotate .call-page {
  position: fixed;
  top: 0;
  left: 100dvw;
  width: 100dvh;
  height: 100dvw;
  max-height: 100dvw;
  transform: rotate(90deg);
  transform-origin: top left;
}

html.is-call.call-phone.call-landscape .videos,
html.is-call.call-phone.call-rotate .videos {
  top: max(8px, env(safe-area-inset-top)) !important;
  max-height: calc(100% - 16px) !important;
}

html.is-call.theme-dark {
  color-scheme: dark;
}

html.is-call.theme-dark,
html.is-call.theme-dark body,
html.is-call.theme-dark #app {
  background: #101618 !important;
  color: #e8f2f2;
}

html.is-call.theme-dark .call-page {
  --call-teal: #4db8b2;
  --call-teal-soft: #1a3334;
  --call-hang: #ff5c6a;
  --call-ink: #e8f2f2;
  --call-muted: #8aa0a3;
  --call-stage: #141c1e;
  --call-plus: #2a3c3e;
  background: #101618;
  color: var(--call-ink);
}

html.is-call.theme-dark .call-top {
  background: #1a2426;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html.is-call.theme-dark .call-back {
  background: #0e1618;
  color: #e8f2f2;
}

html.is-call.theme-dark .call-chat-panel,
html.is-call.theme-dark .call-chat {
  background: #1a2426;
}

html.is-call.theme-dark .call-stage {
  background-color: #141c1e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M64 54v20M54 64h20' stroke='%232a3c3e' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

html.is-call.theme-dark .call-page .chat-form input {
  background: transparent;
  color: #e8f2f2;
  border-radius: 999px;
}

html.is-call.theme-dark .chat-compose {
  background: #101618;
  border-radius: 999px;
  overflow: hidden;
}

html.is-call.theme-dark .call-dock,
html.is-call.theme-dark .call-dock.controls-row {
  background: #1a2426;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html.is-call.theme-dark .dock-btn {
  background: #243334;
  color: var(--call-teal);
}

html.is-call.theme-dark .dock-btn.is-on {
  background: var(--call-teal);
  color: #101618;
}

html.is-call.theme-dark .dock-btn.hang,
html.is-call.theme-dark .dock-btn.hang.is-on {
  background: var(--call-hang);
  color: #fff;
}

html.is-call.theme-dark .call-toast,
html.is-call.theme-dark #call-hint {
  background: rgba(26, 36, 38, 0.94);
  color: #e8f2f2;
}

html.is-call.theme-dark .call-menu {
  background: rgba(0, 0, 0, 0.55);
}

html.is-call.theme-dark .call-menu-card {
  background: #1a2426;
  color: var(--call-ink);
}

html.is-call.theme-dark .fx-bar select {
  background: #101618;
  color: #e8f2f2;
  border-color: rgba(210, 236, 238, 0.16);
  color-scheme: dark;
}

html.is-call.theme-dark .call-page .board-toolbar {
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

html.is-call.theme-dark .call-page .swatch-toggle,
html.is-call.theme-dark .call-top .theme-toggle {
  background: #243334;
  color: var(--call-teal);
}

html.is-call.theme-dark .call-page .board-toolbar .mark-btn {
  background: #f4f8f8;
  color: #1f3a3d;
}

html.is-call.theme-dark .call-page .board-toolbar .mark-btn.on-tool {
  background: #d7eef0;
  color: var(--call-teal);
}

html.is-call.theme-dark .call-page .board-toolbar .mark-btn.mark-clear {
  background: var(--call-teal);
  color: #fff;
}

html.is-call.theme-dark .call-page #board-close {
  background: #1a2426;
  color: var(--call-teal);
}

html.is-call.theme-dark .call-page .videos .tile {
  border-color: #2a3c3e;
}

html.is-call.theme-dark.call-phone .call-top {
  background: transparent;
  box-shadow: none;
}

html.is-call.theme-dark.call-phone .dock-btn {
  background: #1a2426;
}

html.is-call.theme-dark.call-phone .dock-btn.is-on {
  background: var(--call-teal);
}

html.is-call.theme-dark.call-phone .board-toolbar {
  background: #1a2426;
}

html.is-call.theme-dark .call-chat-head,
html.is-call.theme-dark .call-page .chat-form {
  border-color: #2a3c3e;
}

html.is-call.theme-dark .call-page .chat-bubble {
  background: #101618;
}

html.is-call.theme-dark .call-page .chat-line.mine .chat-bubble {
  background: var(--call-teal-soft);
}

html.is-call:not(.call-phone) .stage-tabs {
  display: none !important;
}

html.is-call .call-page .screen-wrap .window-bar b,
html.is-call .call-page .screen-wrap .size-ctl {
  color: var(--call-ink);
}

html.is-call .call-page .screen-wrap,
html.is-call .call-page .screen-stage {
  background: #d7e8ea;
}

html.is-call .call-page #screen-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #d7e8ea;
}

html.is-call .call-page #screen-host .tile,
html.is-call .call-page #screen-host video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  opacity: 1 !important;
  z-index: 1;
}

html.is-call .call-page #screen-host .tile .name,
html.is-call .call-page #screen-host .tile .media-flags {
  display: none;
}

html.is-call.theme-dark .call-page .screen-wrap,
html.is-call.theme-dark .call-page .screen-stage,
html.is-call.theme-dark .call-page #screen-host {
  background: #141c1e;
}
