/* Free online whiteboard: the board fills the window under the site's header; its controls float on it. */
.wbx-wrap {
  position: relative;
  height: calc(100vh - var(--hdr, 64px));
  height: calc(100dvh - var(--hdr, 64px));
  min-height: 420px;
}
.wbx {
  --wb-panel: #ffffff;
  --wb-line: #e5e7eb;
  --wb-fg: #1f2937;
  --wb-fg2: #6b7280;
  --wb-hover: #f1f5f9;
  --wb-on: #e0f2fe;
  --wb-on-fg: #0369a1;
  --wb-accent: #0ea5e9;
  /* Panels barely lifted off the board: a hairline and a whisper of shadow. */
  --wb-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 2px 6px -3px rgb(15 23 42 / 0.08);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
  color: var(--wb-fg);
  font: 14px/1.4 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.wbx[data-theme='dark'] {
  --wb-panel: #1f2329;
  --wb-line: #343a42;
  --wb-fg: #e5e7eb;
  --wb-fg2: #9ca3af;
  --wb-hover: #2b3038;
  --wb-on: #0c4a6e;
  --wb-on-fg: #bae6fd;
  --wb-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 6px -3px rgb(0 0 0 / 0.4);
}
.wbx.is-full .wbx-more { display: none; }
.wbx canvas#wb-canvas { position: absolute; inset: 0; display: block; max-width: none; touch-action: none; }
.wbx button { font: inherit; color: inherit; }
.wbx kbd { font: 500 10px/1 Inter, system-ui, sans-serif; color: var(--wb-fg2); }

.wbx-panel {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--wb-panel);
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  box-shadow: var(--wb-shadow);
}
.wbx-ib,
.wbx-tool {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.wbx-ib:hover:not(:disabled),
.wbx-tool:hover { background: var(--wb-hover); }
.wbx-ib:disabled { opacity: 0.35; cursor: default; }
.wbx-ib:focus-visible,
.wbx-tool:focus-visible,
.wbx-seg button:focus-visible,
.wbx-sw:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 1px; }
.wbx-tool[aria-pressed='true'],
.wbx-ib[aria-expanded='true'] { background: var(--wb-on); color: var(--wb-on-fg); }
.wbx-tool kbd { position: absolute; right: 3px; bottom: 2px; font-size: 9px; opacity: 0.8; }
.wbx-sep { width: 1px; height: 22px; margin: 0 3px; background: var(--wb-line); flex: none; }

.wbx-tl { top: 12px; left: 12px; gap: 6px; padding-right: 12px; }
.wbx-title { display: flex; flex-direction: column; line-height: 1.15; }
.wbx-title h1 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--wb-fg); }
.wbx-saved { font-size: 11.5px; color: var(--wb-fg2); white-space: nowrap; }
.wbx-toolbar { top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.wbx-toolbar::-webkit-scrollbar { display: none; }
.wbx-tr { top: 12px; right: 12px; gap: 0; padding: 3px; }
/* The top right box, minimal: smaller buttons, "Record" alone. */
.wbx-tr .wbx-ib { min-width: 30px; height: 30px; padding: 0 5px; }
.wbx-tr .wbx-ib svg { width: 16px; height: 16px; }
.wbx-tr .wbx-sep { height: 18px; margin: 0 2px; }
/* The tools a little bigger (as in other free whiteboards): easier to hit with a pen or a finger. */
.wbx-toolbar { gap: 3px; padding: 5px; }
.wbx-toolbar .wbx-tool { min-width: 40px; height: 40px; border-radius: 10px; }
.wbx-toolbar .wbx-tool svg { width: 20px; height: 20px; }
.wbx-bl { bottom: 12px; left: 12px; }
.wbx-bc { bottom: 12px; left: 50%; transform: translateX(-50%); }
.wbx-br { bottom: 12px; right: 12px; }
.wbx-zoom { min-width: 54px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wbx-page { min-width: 52px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--wb-fg2); }
.wbx-more {
  position: absolute;
  z-index: 3;
  bottom: 62px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--wb-panel);
  border: 1px solid var(--wb-line);
  color: var(--wb-fg2);
  font-size: 12px;
  text-decoration: none;
  box-shadow: var(--wb-shadow);
}
.wbx-more:hover { color: var(--wb-fg); }

/* Record a lesson: the free app records this board with your camera and voice */
.wbx-rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wb-fg);
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.wbx-rec:hover, .wbx-rec[aria-expanded='true'] { background: var(--wb-hover); }
.wbx-rec:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 1px; }
.wbx-rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgb(239 68 68 / 0.18); flex: none; }
.wbx-recpop { top: 62px; right: 12px; width: 312px; padding: 14px 16px 12px; max-height: calc(100% - 80px); overflow-y: auto; }
.wbx-recpop h2 { margin: 12px 0 6px; font-size: 15px; font-weight: 700; color: var(--wb-fg); }
.wbx-recpop p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--wb-fg2); user-select: text; }
.wbx-rec-art { position: relative; height: 104px; border-radius: 10px; background: var(--wb-hover); overflow: hidden; }
.wbx-rec-board {
  position: absolute; inset: 12px 14px;
  border-radius: 6px; background: var(--wb-panel); border: 1px solid var(--wb-line);
  background-image: linear-gradient(transparent 0 46%, #0ea5e9 46% 49%, transparent 49%), linear-gradient(transparent 0 66%, #e03131 66% 69%, transparent 69%);
  background-size: 62% 100%, 40% 100%; background-repeat: no-repeat; background-position: 14px 0, 14px 0;
}
.wbx-rec-cam { position: absolute; right: 22px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(160deg, #94a3b8, #475569); border: 2px solid var(--wb-panel); box-shadow: var(--wb-shadow); }
.wbx-rec-pill { position: absolute; left: 22px; top: 20px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; background: rgb(15 23 42 / 0.82); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.wbx-rec-pill .wbx-rec-dot { width: 6px; height: 6px; box-shadow: none; animation: wbx-rec-blink 1.2s ease-in-out infinite; }
@keyframes wbx-rec-blink { 50% { opacity: 0.25; } }
.wbx-rec-go {
  display: block; padding: 10px 12px; border-radius: 9px;
  background: #0ea5e9; color: #fff; font-weight: 600; font-size: 13.5px; text-align: center; text-decoration: none;
}
.wbx-rec-go:hover { background: #0284c7; }
button.wbx-rec-go { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.wbx-rec-set { display: flex; flex-direction: column; gap: 7px; margin: 0 0 12px; }
.wbx-rec-field { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--wb-fg2); }
.wbx-rec-field select { min-width: 0; height: 28px; padding: 0 6px; border: 1px solid var(--wb-line); border-radius: 7px; background: var(--wb-panel); color: var(--wb-fg); font: 12.5px/1 inherit; font-family: inherit; }
.wbx-rec-lay { grid-template-columns: 82px auto auto auto; justify-content: start; }
.wbx-rec-corners { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border: 1px solid var(--wb-line); border-radius: 7px; }
.wbx-rec-corners button { position: relative; width: 16px; height: 11px; border: 0; border-radius: 3px; background: var(--wb-hover); cursor: pointer; padding: 0; }
.wbx-rec-corners button i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--wb-fg2); }
.wbx-rec-corners [data-corner='tl'] i { left: 2px; top: 2px; }
.wbx-rec-corners [data-corner='tr'] i { right: 2px; top: 2px; }
.wbx-rec-corners [data-corner='bl'] i { left: 2px; bottom: 2px; }
.wbx-rec-corners [data-corner='br'] i { right: 2px; bottom: 2px; }
.wbx-rec-corners button.on { background: var(--wb-on); }
.wbx-rec-corners button.on i { background: #0ea5e9; }
.wbx-rec-seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--wb-line); border-radius: 7px; }
.wbx-rec-seg button { min-width: 24px; height: 22px; padding: 0 5px; border: 0; border-radius: 5px; background: transparent; color: var(--wb-fg2); font: 600 11px/1 inherit; font-family: inherit; cursor: pointer; display: grid; place-items: center; }
.wbx-rec-seg button.on { background: var(--wb-on); color: var(--wb-on-fg); }
.wbx-rec-seg .sh-c, .wbx-rec-seg .sh-s { width: 11px; height: 11px; border: 1.6px solid currentColor; }
.wbx-rec-seg .sh-c { border-radius: 50%; }
.wbx-rec-seg .sh-s { border-radius: 3px; }
.wbx-rec-or { margin: 12px 0 6px; font-size: 11.5px; color: var(--wb-fg2); }
.wbx-rec-alt { display: block; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--wb-line); color: var(--wb-fg); font-weight: 600; font-size: 13px; text-align: center; text-decoration: none; }
.wbx-rec-alt:hover { background: var(--wb-hover); }

/* Recording: the camera bubble, the bar with the time, the finished video */
.wbx-cam { --cam: clamp(104px, 13vw, 180px); position: absolute; z-index: 4; right: 18px; bottom: 76px; width: var(--cam); height: var(--cam); border-radius: 50%; object-fit: cover; transform: scaleX(-1); border: 3px solid #fff; box-shadow: 0 8px 28px -8px rgb(15 23 42 / 0.45); background: #0f172a; cursor: grab; touch-action: none; }
.wbx-cam.size-s { --cam: clamp(84px, 9vw, 120px); }
.wbx-cam.size-l { --cam: clamp(150px, 19vw, 260px); }
.wbx-cam.shape-square { border-radius: 18px; }
.wbx-cam.at-tl, .wbx-cam.at-tr { top: 76px; bottom: auto; }
.wbx-cam.at-tl, .wbx-cam.at-bl { left: 18px; right: auto; }
.wbx-cam.at-tr, .wbx-cam.at-br { right: 18px; left: auto; }
.wbx-cam.dragging { cursor: grabbing; }
.wbx-cam[hidden] { display: none; }

.wbx-recbar { position: absolute; z-index: 6; top: 64px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: rgb(15 23 42 / 0.9); color: #fff; box-shadow: var(--wb-shadow); font-variant-numeric: tabular-nums; }
.wbx-recbar[hidden] { display: none; }
.wbx-recbar .wbx-rec-dot { animation: wbx-rec-blink 1.2s ease-in-out infinite; }
.wbx-recbar.paused .wbx-rec-dot { animation: none; opacity: 0.4; }
.wbx-rec-time { font-weight: 700; font-size: 13px; }
.wbx-rec-max { font-size: 12px; opacity: 0.6; }
.wbx-recbar.ending .wbx-rec-time { color: #fbbf24; }
.wbx-recbar .wbx-ib { color: #fff; min-width: 30px; height: 30px; }
.wbx-recbar .wbx-ib:hover { background: rgb(255 255 255 / 0.12); }
.wbx-rec-stop { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: #ef4444; color: #fff; font: 600 12.5px/1 inherit; font-family: inherit; cursor: pointer; }
.wbx-rec-stop:hover { background: #dc2626; }
.wbx-recdone { width: min(560px, calc(100vw - 32px)); }
.wbx-recdone video { display: block; width: 100%; max-height: 52vh; border-radius: 10px; background: #000; }
.wbx-rec-note { margin: 8px 0 12px; font-size: 12.5px; color: var(--wb-fg2); }
.wbx-rec-acts { display: flex; gap: 8px; }
.wbx-rec-acts .wbx-rec-go { flex: 1; }
.wbx-rec-again { padding: 0 14px; border: 1px solid var(--wb-line); border-radius: 9px; background: transparent; color: var(--wb-fg); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
.wbx-rec-again:hover { background: var(--wb-hover); }
.wbx-rec-up { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--wb-hover); }
.wbx-rec-up b { font-size: 13.5px; }
.wbx-rec-up p { margin: 4px 0 10px; font-size: 12.5px; color: var(--wb-fg2); }
.wbx-rec-up .wbx-rec-row { margin-top: 0; }
.wbx-rec-up .wbx-rec-alt { padding: 7px 14px; background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.wbx-rec-up .wbx-rec-alt:hover { background: #0284c7; }
.wbx-rec-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; }
.wbx-rec-row a { color: var(--wb-fg2); text-decoration: none; }
.wbx-rec-row a:hover { color: var(--wb-fg); text-decoration: underline; }
.wbx-rec-row button { margin-left: auto; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--wb-fg2); font: inherit; cursor: pointer; }
.wbx-rec-row button:hover { background: var(--wb-hover); color: var(--wb-fg); }
.wbx.presenting .wbx-rec, .wbx.presenting .wbx-rec + .wbx-sep { display: none; }
.wbx-rec-label { display: none; }
.wbx-tr .wbx-rec { height: 30px; padding: 0 10px 0 8px; gap: 6px; font-size: 12.5px; }
.wbx-tr .wbx-rec-dot { width: 8px; height: 8px; }
@media (max-width: 560px) { .wbx-rec-short { display: none; } .wbx-rec { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .wbx-rec-pill .wbx-rec-dot { animation: none; } }

/* the style panel */
.wbx-props {
  top: 68px;
  left: 12px;
  width: 214px;
  max-height: calc(100% - 140px);
  overflow-x: hidden;
  overflow-y: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px 12px 12px;
}
.wbx-props[hidden] { display: none; }
.wbx-label { margin: 10px 0 6px; font-size: 11.5px; font-weight: 600; color: var(--wb-fg2); }
.wbx-label:first-child { margin-top: 2px; }
.wbx-label b { font-weight: 500; }
.wbx-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.wbx-sw {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgb(0 0 0 / 0.12);
  background: var(--c);
  cursor: pointer;
}
.wbx-sw[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--wb-panel), 0 0 0 4px var(--wb-accent); }
.wbx-sw.none { background: linear-gradient(135deg, transparent 45%, #e03131 45% 55%, transparent 55%), #fff; }
.wbx-custom { overflow: hidden; background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e); }
.wbx-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.wbx-seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--wb-hover); }
.wbx-seg button {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.wbx-seg button:hover { background: var(--wb-panel); }
.wbx-seg button[aria-pressed='true'] { background: var(--wb-panel); color: var(--wb-on-fg); box-shadow: 0 1px 2px rgb(15 23 42 / 0.12); }
.wbx-w { display: block; width: var(--w); height: var(--w); border-radius: 50%; background: currentColor; }
.wbx-dash { display: block; width: 22px; border-top: 2px currentColor solid; }
.wbx-dash.dashed { border-top-style: dashed; }
.wbx-dash.dotted { border-top-style: dotted; }
.wbx-fill { display: block; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; }
.wbx-fill.solid { background: currentColor; }
.wbx-fill.hatch { background: repeating-linear-gradient(-45deg, currentColor 0 1.5px, transparent 1.5px 4px); }
.f-hand { font-family: 'Patrick Hand', 'Comic Sans MS', cursive; font-size: 14px; }
.f-serif { font-family: Lora, Georgia, serif; }
.f-mono { font-family: ui-monospace, Consolas, monospace; }
.wbx-range { width: 100%; accent-color: var(--wb-accent); }

/* menus */
.wbx-pop {
  position: absolute;
  z-index: 5;
  padding: 6px;
  background: var(--wb-panel);
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  box-shadow: var(--wb-shadow);
}
.wbx-pop[hidden] { display: none; }
.wbx-menu { top: 62px; left: 12px; width: 280px; max-height: calc(100% - 80px); overflow-y: auto; }
.wbx-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--wb-line); }
.wbx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.wbx-row:hover { background: var(--wb-hover); }
.wbx-row span { flex: 1; }
.wbx-row svg { flex: none; color: var(--wb-fg2); }
.wbx-paperpop { bottom: 62px; right: 12px; width: 268px; padding: 10px 12px 12px; }
.wbx-pop-title { margin: 4px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--wb-fg2); }
.wbx-papers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.wbx-paper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.wbx-paper[aria-pressed='true'] { border-color: var(--wb-accent); background: var(--wb-on); color: var(--wb-on-fg); }
.wbx-paper-swatch { width: 44px; height: 30px; border-radius: 4px; border: 1px solid rgb(0 0 0 / 0.1); background: #fff; }
.p-grid { background-image: linear-gradient(#cbd5e1 1px, transparent 1px), linear-gradient(90deg, #cbd5e1 1px, transparent 1px); background-size: 8px 8px; }
.p-graph { background-image: linear-gradient(#94a3b8 1px, transparent 1px), linear-gradient(90deg, #94a3b8 1px, transparent 1px), linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px); background-size: 15px 15px, 15px 15px, 3px 3px, 3px 3px; }
.p-dots { background-image: radial-gradient(#94a3b8 1px, transparent 1.2px); background-size: 7px 7px; }
.p-dotsbig { background-image: radial-gradient(#64748b 1.6px, transparent 2px); background-size: 11px 11px; }
.p-isodots { background-image: radial-gradient(#94a3b8 1.1px, transparent 1.4px), radial-gradient(#94a3b8 1.1px, transparent 1.4px); background-size: 8px 14px; background-position: 0 0, 4px 7px; }
/* Opened from the toolbar's Background button: under the toolbar. */
.wbx-paperpop.from-bar { top: 62px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
.p-lines { background-image: linear-gradient(#93c5fd 1px, transparent 1px); background-size: 100% 7px; }
.wbx-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--wb-fg2); }

/* text being typed on the board */
.wbx-text {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 1px dashed var(--wb-accent);
  outline-offset: 3px;
  background: transparent;
  resize: none;
  overflow: hidden;
  transform-origin: center;
  user-select: text;
  -webkit-user-select: text;
}
.wbx-text[hidden] { display: none; }
.wbx-text.sticky { outline: none; }

/* presenting: just the board, and a small control to change boards */
.wbx-pres { display: none; bottom: 14px; left: 50%; transform: translateX(-50%); opacity: 0.35; transition: opacity 0.2s; }
.wbx-pres:hover { opacity: 1; }
.wbx-pres span { min-width: 56px; text-align: center; font-size: 12.5px; color: var(--wb-fg2); }
.wbx.presenting .wbx-panel:not(.wbx-pres),
.wbx.presenting .wbx-more,
.wbx.presenting .wbx-props { display: none; }
.wbx.presenting .wbx-pres { display: flex; }

.wbx-toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 70px;
  max-width: min(520px, calc(100% - 32px));
  padding: 9px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 13px;
  text-align: center;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.wbx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.wbx.drop::after { content: 'Drop pictures, a PDF or a board file'; position: absolute; inset: 12px; z-index: 7; display: grid; place-items: center; border: 2px dashed var(--wb-accent); border-radius: 16px; background: rgb(14 165 233 / 0.08); color: var(--wb-on-fg); font-weight: 600; pointer-events: none; }

.wbx-help { max-width: 620px; width: calc(100% - 32px); padding: 22px 24px; border: 1px solid var(--wb-line); border-radius: 16px; background: var(--wb-panel); color: var(--wb-fg); box-shadow: var(--wb-shadow); }
.wbx-help::backdrop { background: rgb(15 23 42 / 0.35); }
.wbx-help h2 { margin: 0 0 12px; font-size: 18px; }
.wbx-help dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.wbx-help dd { margin: 0; text-align: right; }
.wbx-help kbd { display: inline-block; padding: 2px 6px; border: 1px solid var(--wb-line); border-radius: 5px; font-size: 11.5px; color: var(--wb-fg); }
.wbx-help-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.wbx-help .wbx-close { position: absolute; top: 12px; right: 12px; }

/* Not enough room beside the toolbar: the title goes, then the toolbar moves to the bottom. */
@media (max-width: 1240px) {
  .wbx-title { display: none; }
  .wbx-tl { padding-right: 4px; }
}
@media (max-width: 1600px) {
  .wbx-toolbar { top: auto; bottom: 64px; }
  /* Hints sit above the toolbar, and the guide link above the paper button. */
  .wbx-toast { bottom: 124px; }
  .wbx-more { bottom: 118px; }
}
@media (max-width: 860px) {
  .wbx-tool kbd { display: none; }
  .wbx-props { top: 62px; width: 200px; max-height: calc(100% - 200px); }
  .wbx-more { display: none; }
  .wbx-help-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wbx-zoom-extra,
  .wbx-zoom,
  #wb-del-page,
  .wbx-bl .wbx-sep { display: none; }
  .wbx-props { max-height: 38%; }
  .wbx-tr { gap: 0; }
}

/* geometry instruments and the classroom timer */
.wbx-instpop { top: 62px; left: 50%; width: 290px; transform: translateX(-50%); }
.wbx-instpop .wbx-row[aria-pressed='true'] { background: var(--wb-on); color: var(--wb-on-fg); }
.wbx-pop-note { margin: 8px 6px 4px; font-size: 11.5px; line-height: 1.45; color: var(--wb-fg2); }
.wbx-timerpop { top: 62px; right: 12px; width: 264px; padding: 10px 12px 12px; }
.wbx-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wbx-presets button,
.wbx-go { padding: 7px 4px; border: 1px solid var(--wb-line); border-radius: 8px; background: transparent; font-size: 12.5px; cursor: pointer; }
.wbx-presets button:hover,
.wbx-go:hover { border-color: var(--wb-accent); color: var(--wb-on-fg); }
.wbx-timerpop input[type='number'] { width: 56px; padding: 5px 6px; border: 1px solid var(--wb-line); border-radius: 7px; background: transparent; color: var(--wb-fg); font: inherit; }
.wbx-go { padding: 5px 12px; background: var(--wb-accent); border-color: var(--wb-accent); color: #fff; font-weight: 600; }
.wbx-go:hover { color: #fff; filter: brightness(1.05); }
.wbx-clock {
  position: absolute;
  z-index: 4;
  top: 64px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 14px;
  border-radius: 14px;
  background: var(--wb-panel);
  border: 1px solid var(--wb-line);
  box-shadow: var(--wb-shadow);
  cursor: pointer;
  user-select: none;
}
.wbx-clock[hidden] { display: none; }
.wbx-clock b { font: 700 28px/1.1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; min-width: 72px; }
.wbx-clock button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.wbx-clock button:hover { background: var(--wb-hover); }
.wbx-clock.paused b { opacity: 0.55; }
.wbx-clock.done { border-color: #e03131; animation: wbx-flash 1s ease-in-out 4; }
.wbx-clock.done b { color: #e03131; }
@keyframes wbx-flash { 50% { box-shadow: 0 0 0 6px rgb(224 49 49 / 0.25); } }
.wbx.presenting .wbx-clock { top: 14px; }
.p-handwriting { background-image: linear-gradient(transparent 4px, #93c5fd 4px 5px, transparent 5px 10px, #fca5a5 10px 11px, transparent 11px); background-size: 100% 14px; }
.p-axes { background-image: linear-gradient(#64748b, #64748b), linear-gradient(#64748b, #64748b), linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px); background-size: 1.5px 100%, 100% 1.5px, 6px 6px, 6px 6px; background-position: center, center, 0 0, 0 0; background-repeat: no-repeat, no-repeat, repeat, repeat; }
@media (max-width: 1600px) {
  .wbx-instpop { top: auto; bottom: 118px; }
  .wbx-paperpop.from-bar { top: auto; bottom: 118px; }
}

/* Languages: the button by the title, and its list */
.wbx-lang { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; font-size: 11.5px; font-weight: 600; color: var(--wb-fg2); }
.wbx-lang svg { color: var(--wb-fg2); }
.wbx-langpop { top: 62px; left: 12px; width: 232px; max-height: calc(100% - 80px); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.wbx-langpop[hidden] { display: none; }
.wbx-langpop a { padding: 7px 10px; border-radius: 8px; color: var(--wb-fg); font-size: 13px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbx-langpop a:hover { background: var(--wb-hover); }
.wbx-langpop a.on { background: var(--wb-on); color: var(--wb-on-fg); font-weight: 600; }

/* Right to left (Arabic, Persian, Urdu): the panels change sides, menus open from the right */
.wbx[dir='rtl'] .wbx-tl { left: auto; right: 12px; padding-right: 4px; padding-left: 12px; }
.wbx[dir='rtl'] .wbx-tr { right: auto; left: 12px; }
.wbx[dir='rtl'] .wbx-bl { left: auto; right: 12px; }
.wbx[dir='rtl'] .wbx-br { right: auto; left: 12px; }
.wbx[dir='rtl'] .wbx-menu,
.wbx[dir='rtl'] .wbx-langpop { left: auto; right: 12px; }
.wbx[dir='rtl'] .wbx-props { left: auto; right: 12px; }
.wbx[dir='rtl'] .wbx-recpop,
.wbx[dir='rtl'] .wbx-timerpop,
.wbx[dir='rtl'] .wbx-clock { right: auto; left: 12px; }
.wbx[dir='rtl'] .wbx-paperpop:not(.from-bar) { right: auto; left: 12px; }
.wbx[dir='rtl'] .wbx-more { right: auto; left: 12px; }
.wbx[dir='rtl'] .wbx-row { text-align: right; }
.wbx[dir='rtl'] .wbx-rec-row button { margin-left: 0; margin-right: auto; }
.wbx[dir='rtl'] .wbx-help .wbx-close { right: auto; left: 12px; }
.wbx[dir='rtl'] .wbx-tool kbd { right: auto; left: 3px; }
.wbx[dir='rtl'] .wbx-rec-pill { left: auto; right: 22px; }
.wbx[dir='rtl'] .wbx-rec-cam { right: auto; left: 22px; }
/* Keys, sizes and numbers stay left to right inside right-to-left text */
.wbx[dir='rtl'] kbd, .wbx[dir='rtl'] .wbx-zoom, .wbx[dir='rtl'] .wbx-page { direction: ltr; unicode-bidi: isolate; }

/* The page's list of the board's other languages */
.tool-langs p { line-height: 2; }
.tool-langs a { white-space: nowrap; }
