/* Whiteboards (public/board.js). Colours only through theme tokens: notes are a tint of the link-type colours
   (--ft-*) over the page, text stays --ink, so every theme keeps its contrast. */

/* ---- the Whiteboard tab: a grid of boards */
.wb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wb-card { position: relative; display: grid; gap: 4px; align-content: start; min-height: 150px; padding: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.wb-card:hover, .wb-card:focus-visible { border-color: var(--ink); outline: none; }
.wb-card b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.wb-card small { color: var(--mute); font-size: 12.5px; }
.wb-mini { position: relative; height: 70px; margin-bottom: 6px; background: var(--wash); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 12px 12px; }
.wb-mini i { position: absolute; width: 30px; height: 30px; background: var(--note-yellow); }
.wb-mini i:nth-child(1) { left: 14%; top: 18%; }
.wb-mini i:nth-child(2) { left: 42%; top: 38%; background: var(--note-blue); }
.wb-mini i:nth-child(3) { left: 68%; top: 14%; background: var(--note-green); }
.wb-card-acts { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; }
.wb-card-acts .danger { color: var(--red, var(--ft-red)); }
.wb-new { place-content: center; justify-items: center; text-align: center; border-style: dashed; }
.wb-new span { font-size: 30px; line-height: 1; color: var(--mute); }
.wb-rename { font: inherit; font-weight: 600; font-size: 15px; padding: 2px 6px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); width: 100%; }
.wb-hint { margin-top: 14px; font-size: 13px; color: var(--mute); }

/* ---- a board, full screen */
.ck-wb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--wash); color: var(--ink); overflow: hidden; }
.ck-wb[open] { display: flex; flex-direction: column; }
.ck-wb::backdrop { background: var(--wash); }
.wb-top { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 3; }
.wb-title { min-width: 0; flex: 0 1 320px; font: inherit; font-weight: 600; font-size: 16px; border: 1px solid transparent; background: none; color: var(--ink); padding: 5px 8px; }
.wb-title:not([readonly]):hover { border-color: var(--line); }
.wb-title:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.wb-save { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.wb-save[data-s="error"] { color: var(--ft-red); }
.wb-sp { flex: 1; }
.wb-ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.wb-ib:hover { background: var(--wash); }
.wb-zv { font: inherit; font-size: 12.5px; min-width: 52px; height: 32px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.wb-people { display: flex; align-items: center; }
.wb-people i { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--paper); background: var(--pc); color: var(--on-ink); font-style: normal; font-size: 11px; font-weight: 600; }
.wb-people.off { opacity: .5; }
/* voice (public/voice.js) */
.wb-voice { position: relative; display: flex; align-items: center; }
.vc-join { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; border-radius: 16px; }
.vc-join:hover { background: var(--wash); }
.vc-join.locked { color: var(--mute); }
.vc-join[disabled] { opacity: .6; cursor: default; }
.vc-bar { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--ft-green); border-radius: 18px; }
.vc-pill, .vc-btn { display: inline-grid; grid-auto-flow: column; place-items: center; gap: 4px; min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 15px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.vc-pill { font-weight: 600; }
.vc-pill svg { color: var(--ft-green); }
.vc-pill:hover, .vc-btn:hover { background: var(--wash); }
.vc-btn.off { background: var(--red); color: var(--on-red); }
.vc-btn.leave { color: var(--ft-red); }
.vc-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 12; display: grid; gap: 2px; min-width: 220px; max-width: 300px; padding: 6px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); }
.vc-p { display: flex; align-items: center; gap: 10px; padding: 4px 6px; font-size: 13.5px; color: var(--ink); }
.vc-p span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-style: normal; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 2px var(--paper), 0 0 0 2px var(--paper); transition: box-shadow .12s; }
.vc-av.emoji { background: var(--wash); color: var(--ink); font-size: 17px; }
.vc-p.talk .vc-av { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ft-green); }
.vc-m { display: inline-grid; color: var(--ft-red); }
.vc-audio { display: none; }
.vc-via { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border: 0; border-radius: 15px; background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; white-space: nowrap; max-width: 190px; }
.vc-via span { overflow: hidden; text-overflow: ellipsis; }
.vc-via.warn { background: var(--gold); color: var(--on-gold); cursor: pointer; }
.vc-via.warn[disabled] { opacity: .6; cursor: progress; }
.vc-room { position: relative; display: grid; gap: 2px; }
.vc-room + .vc-room { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.vc-room.multi { padding-left: 8px; box-shadow: inset 2px 0 0 var(--ft-green); }
.vc-p small { display: block; font-size: 12px; color: var(--mute); }
.vc-p.rider .vc-av { width: 26px; height: 26px; font-size: 11px; background: var(--wash); color: var(--ink); }
.vc-same, .vc-own { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 2px 42px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.vc-own { margin: 6px 0 0; }
.vc-same:hover, .vc-own:hover { background: var(--wash); }
.vc-more { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; margin-left: auto; border: 0; border-radius: 14px; background: none; color: var(--mute); cursor: pointer; }
.vc-more:hover, .vc-more[aria-expanded="true"] { background: var(--wash); color: var(--ink); }
.vc-menu { display: grid; gap: 2px; margin: 0 0 4px 42px; padding: 4px; border: 1px solid var(--line); background: var(--paper); }
.vc-menu button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.vc-menu button:hover { background: var(--wash); }
.vc-menu button svg, .vc-same svg, .vc-own svg, .vc-via svg { flex: none; }
.vc-more { color: var(--ink-2); }
.vc-menu p { margin: 4px 6px; font-size: 12.5px; color: var(--mute); }
.vc-tip { margin: 6px 4px 2px; font-size: 12px; line-height: 1.4; color: var(--mute); }
.vc-ask { max-width: 420px; }
.vc-ask p { color: var(--ink-2); line-height: 1.45; }
.vc-choose { display: grid; gap: 8px; margin: 12px 0; }
.vc-choose .btn { display: flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: left; }
.vc-choose p { margin: 6px 0 0; font-size: 13px; color: var(--mute); }
@media (max-width: 640px) { .vc-join span { display: none; } .vc-join { padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .vc-av { transition: none; } }
.wb-people small { margin-left: 4px; font-size: 12px; color: var(--mute); }

.wb-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default;
  background-color: var(--wash); outline: none; background-position: var(--gx, 0) var(--gy, 0); }
/* backgrounds (boards.settings.bg); they move and scale with the view */
.ck-wb[data-bg="dots"] .wb-stage { background-image: radial-gradient(color-mix(in srgb, var(--ink) 18%, transparent) 1px, transparent 1.3px); background-size: var(--gs, 24px) var(--gs, 24px); }
.ck-wb[data-bg="grid"] .wb-stage { background-color: var(--paper); background-image: linear-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px); background-size: var(--gs, 24px) var(--gs, 24px); }
.ck-wb[data-bg="lines"] .wb-stage { background-color: var(--paper); background-image: linear-gradient(transparent calc(var(--ls, 36px) - 1px), color-mix(in srgb, var(--ft-blue) 35%, transparent) calc(var(--ls, 36px) - 1px)); background-size: 100% var(--ls, 36px); }
.ck-wb[data-bg="clean"] .wb-stage { background-color: var(--paper); background-image: none; }
.wb-guide { stroke: var(--ft-red); stroke-width: calc(1px / var(--wbs, 1)); stroke-dasharray: calc(4px / var(--wbs, 1)) calc(3px / var(--wbs, 1)); }
/* text formatting (whole item) */
.wb-item[data-ff="serif"] { font-family: Georgia, "Times New Roman", serif; }
.wb-item[data-ff="mono"] { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wb-item[data-ff="hand"] { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Chalkboard SE", cursive; }
.wb-item.fb { font-weight: 700; } .wb-item.fi { font-style: italic; } .wb-item.fu .wb-text { text-decoration: underline; text-underline-offset: .15em; }
.wb-item[data-al="left"] .wb-text { text-align: left; } .wb-item[data-al="center"] .wb-text { text-align: center; } .wb-item[data-al="right"] .wb-text { text-align: right; }
/* (the size lives on .wb-note and .wb-shape below: a fixed font-size there once overrode A- A+ on sticky notes and shapes) */
.wb-item.wb-text.wrap .wb-text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* board options menu */
.wb-menu { position: fixed; z-index: 12; width: 280px; max-width: calc(100vw - 16px); padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .5); display: grid; gap: 8px; }
.wb-mh { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); }
.wb-mh small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wb-bgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wb-bgb { display: grid; gap: 4px; justify-items: center; padding: 4px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 11.5px; cursor: pointer; }
.wb-bgb[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -1px; }
.wb-bgb[disabled] { cursor: default; opacity: .6; }
.wb-bgb i { width: 100%; height: 34px; background-color: var(--paper); }
.wb-bgb[data-bgp="dots"] i { background-color: var(--wash); background-image: radial-gradient(color-mix(in srgb, var(--ink) 30%, transparent) 1px, transparent 1.3px); background-size: 8px 8px; }
.wb-bgb[data-bgp="grid"] i { background-image: linear-gradient(color-mix(in srgb, var(--ink) 15%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 15%, transparent) 1px, transparent 1px); background-size: 8px 8px; }
.wb-bgb[data-bgp="lines"] i { background-image: linear-gradient(transparent 9px, color-mix(in srgb, var(--ft-blue) 45%, transparent) 9px); background-size: 100% 10px; }
.wb-mi { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.wb-mnote { margin: 0; font-size: 12px; line-height: 1.4; color: var(--mute); }
.wb-mext:empty { display: none; }
.wb-mext { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.wb-mext button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 6px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.wb-mext button:hover { background: var(--wash); }
.wb-mext button[disabled] { color: var(--mute); cursor: default; background: none; }
/* format controls on the selection bar */
.wb-font { height: 32px; font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 6px; margin-right: 2px; }
.wb-ib.sm { width: 32px; font: inherit; font-size: 12.5px; font-weight: 600; }
.wb-ib[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.ck-wb[data-mode="hand"] .wb-stage, .wb-stage.panning { cursor: grab; }
.ck-wb[data-mode="pen"] .wb-stage, .ck-wb[data-mode="rect"] .wb-stage, .ck-wb[data-mode="ellipse"] .wb-stage, .ck-wb[data-mode="line"] .wb-stage, .ck-wb[data-mode="arrow"] .wb-stage { cursor: crosshair; }
.ck-wb[data-mode="note"] .wb-stage, .ck-wb[data-mode="text"] .wb-stage { cursor: copy; }
.wb-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.wb-items { position: absolute; left: 0; top: 0; }
.wb-item { position: absolute; box-sizing: border-box; }
.wb-item.on { outline: calc(2px / var(--wbs, 1)) solid var(--gold); outline-offset: calc(2px / var(--wbs, 1)); }
.wb-item.target { outline: calc(3px / var(--wbs, 1)) dashed var(--gold); }
.wb-text { width: 100%; height: 100%; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; cursor: inherit; }
.wb-item.editing .wb-text { cursor: text; user-select: text; -webkit-user-select: text; }
.wb-note { padding: 14px 14px 10px; font-size: var(--ts, 16px); line-height: 1.35; color: var(--ink); background: var(--note-yellow); box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 18px -12px rgba(0, 0, 0, .35); }
.wb-note[data-c="green"], .wb-shape[data-c="green"] { background: var(--note-green); }
.wb-note[data-c="blue"], .wb-shape[data-c="blue"] { background: var(--note-blue); }
.wb-note[data-c="red"], .wb-shape[data-c="red"] { background: var(--note-pink); }
.wb-note[data-c="violet"], .wb-shape[data-c="violet"] { background: var(--note-violet); }
.wb-note[data-c="amber"], .wb-shape[data-c="amber"] { background: var(--note-yellow); }
.wb-note[data-c="plain"], .wb-shape[data-c="plain"] { background: var(--paper); }
.wb-text-k, .wb-text { font-size: inherit; }
.wb-item.wb-text { color: var(--tc, var(--ink)); font-size: var(--ts, 22px); line-height: 1.25; font-weight: 500; }
.wb-item.wb-text .wb-text { overflow: visible; white-space: pre; }
.wb-shape { display: grid; place-items: center; padding: 10px; border: calc(2px) solid var(--ink); background: var(--paper); border-radius: 8px; text-align: center; font-size: var(--ts, 15px); color: var(--ink); }
.wb-shape.round { border-radius: 50%; }
.wb-shape .wb-text { height: auto; max-height: 100%; }
.wb-image { background: var(--paper); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .45); }
.wb-image img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wb-ink { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2000000; } /* drawing and arrows sit above notes and pictures */
.wb-stroke { pointer-events: auto; cursor: pointer; }
.wb-stroke .vis { fill: none; stroke: var(--sc, var(--ink)); stroke-width: var(--sw, 3px); stroke-linecap: round; stroke-linejoin: round; }
.wb-stroke[data-k="arrow"]:not(.headless) .vis { marker-end: url(#wb-head); }
.wb-stroke .hit { fill: none; stroke: transparent; stroke-width: 16px; stroke-linecap: round; }
.wb-stroke.on .vis { filter: drop-shadow(0 0 2px var(--gold)); }
.wb-draft { fill: none; stroke: var(--sc, var(--ink)); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; }
rect.wb-draft, ellipse.wb-draft { stroke: var(--ink); stroke-width: 2px; stroke-dasharray: 6 4; }
.wb-sel { position: absolute; z-index: 2000001; pointer-events: none; border: calc(1px / var(--wbs, 1)) dashed var(--gold); }
.wb-sel[hidden] { display: none; }
.wb-h { position: absolute; width: calc(12px / var(--wbs, 1)); height: calc(12px / var(--wbs, 1)); background: var(--paper); border: calc(2px / var(--wbs, 1)) solid var(--gold); pointer-events: auto; }
.wb-h.nw { left: calc(-6px / var(--wbs, 1)); top: calc(-6px / var(--wbs, 1)); cursor: nwse-resize; }
.wb-h.ne { right: calc(-6px / var(--wbs, 1)); top: calc(-6px / var(--wbs, 1)); cursor: nesw-resize; }
.wb-h.sw { left: calc(-6px / var(--wbs, 1)); bottom: calc(-6px / var(--wbs, 1)); cursor: nesw-resize; }
.wb-h.se { right: calc(-6px / var(--wbs, 1)); bottom: calc(-6px / var(--wbs, 1)); cursor: nwse-resize; }
.wb-marquee { position: absolute; border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); pointer-events: none; }
.wb-cursors { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2000002; }
.wb-cursor { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .08s linear, opacity .4s; z-index: 5; }
.wb-cursor svg path { fill: var(--pc); stroke: var(--paper); stroke-width: 1.2; }
.wb-cursor span { position: absolute; left: 14px; top: 14px; padding: 1px 6px; background: var(--pc); color: var(--on-ink); font-size: 11.5px; white-space: nowrap; }
.wb-cursor.idle { opacity: 0; }
.wb-msg { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .4); z-index: 4; }
.wb-msg[hidden] { display: none; }
.wb-bar { position: absolute; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45); }
.wb-bar[hidden] { display: none; }

/* ---- tools */
.wb-tools { display: flex; align-items: center; gap: 2px; justify-content: center; flex-wrap: wrap; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); z-index: 3; }
.wb-tools[hidden] { display: none; }
.wb-tool { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.wb-tool:hover { background: var(--wash); }
.wb-tool[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.wb-div { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.wb-colors { display: flex; gap: 4px; }
.wb-sw { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); cursor: pointer; padding: 0; background: var(--note-yellow); }
.wb-sw[data-c="green"] { background: var(--note-green); }
.wb-sw[data-c="blue"] { background: var(--note-blue); }
.wb-sw[data-c="red"] { background: var(--note-pink); }
.wb-sw[data-c="violet"] { background: var(--note-violet); }
.wb-sw[data-c="plain"] { background: var(--paper); }
.wb-sw.ink { background: var(--sc); border-color: transparent; }
.wb-sw[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 700px) {
  .wb-top { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .wb-title { flex-basis: 140px; font-size: 15px; }
  .wb-zv { display: none; }
  .wb-tools { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .wb-tool { width: 44px; height: 44px; flex: none; }
  .wb-colors { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .wb-cursor { transition: none; } }

/* the picture tool's menu and the gallery picker */
.wb-imenu { position: fixed; z-index: 10; display: grid; min-width: 220px; padding: 4px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); }
.wb-imenu button { font: inherit; text-align: left; padding: 10px 12px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.wb-imenu button:hover, .wb-imenu button:focus-visible { background: var(--wash); outline: none; }
.wb-gal { width: min(760px, calc(100vw - 32px)); }
.wb-gal h2 { font-size: 18px; margin-bottom: 4px; }
.wb-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; margin: 12px 0; }
.wb-gal-t { position: relative; display: grid; gap: 4px; cursor: pointer; }
.wb-gal-t img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--wash); outline: 2px solid transparent; outline-offset: -2px; }
.wb-gal-t input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--gold); }
.wb-gal-t input:checked + img { outline-color: var(--gold); }
.wb-gal-t small { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tables */
.wb-table { background: var(--paper); color: var(--ink); }
.wb-tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.wb-tbl td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.35em; height: 32px; outline: none; }
.wb-tbl td.b { font-weight: 700; } .wb-tbl td.i { font-style: italic; }
.wb-tbl tr.wb-th td { background: var(--wash); }
.wb-tbl td.wb-num { text-align: right; color: var(--mute); font-variant-numeric: tabular-nums; background: var(--wash); }
.wb-table.on .wb-tbl td.cur, .wb-tbl td[contenteditable="true"], .wb-tbl td[contenteditable="plaintext-only"] { box-shadow: inset 0 0 0 2px var(--gold); }
.wb-table:not(.editing) .wb-tbl td { cursor: inherit; }

/* diamonds, pills and arrow labels (diagrams) */
.wb-shape.pill { border-radius: 999px; }
.wb-shape.dia { border: 0; background: none !important; padding: 18% 22%; }
.wb-shape.dia .wb-dia { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wb-shape.dia .wb-text { position: relative; }
.wb-dia polygon { fill: var(--paper); stroke: var(--ink); stroke-width: 2px; }
.wb-shape.dia[data-c="green"] polygon { fill: var(--note-green); } .wb-shape.dia[data-c="blue"] polygon { fill: var(--note-blue); }
.wb-shape.dia[data-c="red"] polygon { fill: var(--note-pink); } .wb-shape.dia[data-c="violet"] polygon { fill: var(--note-violet); }
.wb-shape.dia[data-c="amber"] polygon { fill: var(--note-yellow); }
.wb-stroke .lbl { font-weight: 600; font-size: 13px; fill: var(--ink); stroke: var(--paper); stroke-width: 5px; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.wb-lblin { position: absolute; z-index: 5; translate: -50% -50%; width: 120px; font: inherit; font-size: 13px; text-align: center; padding: 4px 6px; border: 2px solid var(--gold); background: var(--paper); color: var(--ink); outline: none; }

/* diagram dialog */
.wb-smart { width: min(820px, calc(100vw - 32px)); }
.wb-sm-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wb-sm-kinds button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.wb-sm-kinds button svg { width: 28px; height: 28px; }
.wb-sm-kinds button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.wb-sm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wb-sm-body textarea { font: inherit; font-size: 14px; line-height: 1.5; padding: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); resize: vertical; min-height: 220px; tab-size: 2; }
.wb-sm-prev { display: grid; place-items: center; min-height: 220px; padding: 8px; border: 1px solid var(--line); background: var(--wash); overflow: hidden; }
.wb-sm-svg { width: 100%; max-height: 300px; }
.wb-sm-svg rect, .wb-sm-svg polygon { fill: var(--paper); stroke: var(--ink); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.wb-sm-svg line { stroke: var(--mute); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.wb-sm-svg text { font-size: 15px; fill: var(--ink); }
@media (max-width: 640px) {
  .wb-sm-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-sm-body { grid-template-columns: minmax(0, 1fr); }
  .wb-sm-prev { min-height: 160px; }
}

/* scenes: frames under everything; only the name catches the pointer, so what sits inside stays easy to pick */
.wb-scene { border: 1.5px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 2px; background: color-mix(in srgb, var(--paper) 55%, transparent); pointer-events: none; }
.wb-scene.on { border-color: var(--gold); }
.wb-scene .wb-scn-t { position: absolute; left: 0; bottom: 100%; width: auto; height: auto; max-width: 100%; margin-bottom: 6px; padding: 2px 6px 2px 0; font-size: calc(14px / var(--wbs, 1)); font-weight: 600; line-height: 1.3; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: auto; cursor: pointer; }
.wb-scene .wb-scn-t:empty::before { content: attr(data-ph); }
.wb-scene.on .wb-scn-t { color: var(--ink); }
.wb-scene.editing .wb-scn-t { cursor: text; overflow: visible; text-overflow: clip; outline: 2px solid var(--gold); outline-offset: 2px; background: var(--paper); }
rect.wb-scn-draft { fill: color-mix(in srgb, var(--paper) 50%, transparent); stroke: var(--gold); stroke-width: calc(1.5px / var(--wbs, 1)); stroke-dasharray: calc(6px / var(--wbs, 1)) calc(4px / var(--wbs, 1)); }
.ck-wb[data-mode="scene"] .wb-stage { cursor: crosshair; }
.wb-scn { width: 380px; max-width: calc(100vw - 16px); }
.wb-scl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 52vh; overflow: auto; overscroll-behavior: contain; }
.wb-scl li { display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid transparent; background: var(--paper); }
.wb-scl li:hover { border-color: var(--line); }
.wb-scl li.lift { border-color: var(--gold); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5); position: relative; z-index: 1; }
.wb-scgrip { flex: none; display: grid; place-items: center; width: 18px; align-self: stretch; color: var(--mute); cursor: grab; touch-action: none; }
.wb-scgrip svg { width: 16px; height: 16px; }
.wb-scl li.lift .wb-scgrip { cursor: grabbing; }
.wb-scgo { flex: none; display: grid; place-items: center; width: 108px; height: 66px; padding: 0; border: 1px solid var(--line); background: var(--wash); cursor: pointer; }
.wb-scgo:hover, .wb-scgo:focus-visible { border-color: var(--gold); outline: none; }
.wb-scth { display: block; max-width: 104px; max-height: 62px; background: var(--paper); }
.wb-scmeta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wb-scnm { display: flex; gap: 8px; align-items: baseline; min-width: 0; font-size: 13.5px; color: var(--ink); }
.wb-scnm b { flex: none; min-width: 16px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.wb-scnm span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-scin { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 2px 6px; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); }
.wb-scbtns { display: flex; gap: 0; margin-left: 18px; }
.wb-scbtns .wb-ib svg { width: 16px; height: 16px; }
.wb-scadd { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-scadd .btn { display: inline-flex; align-items: center; gap: 6px; }
.wb-scadd .btn svg { width: 16px; height: 16px; }
.wb-scadd kbd { font: inherit; font-size: 11px; color: var(--mute); border: 1px solid var(--line); padding: 0 4px; }
.wb-scacts { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-scacts .btn { display: inline-flex; align-items: center; gap: 6px; }
.wb-scacts .btn svg { width: 16px; height: 16px; }
/* presenting: the board alone, full screen, one scene at a time. The scene on show is a card on a dark stage (--stage,
   tinted per theme); everything outside it fades away; the camera glides between scenes (glideTo in board.js). */
.ck-wb.presenting .wb-top, .ck-wb.presenting .wb-tools, .ck-wb.presenting .wb-bar, .ck-wb.presenting .wb-sel, .ck-wb.presenting .wb-cursors { display: none !important; }
.ck-wb.presenting .wb-stage { background-image: none; background-color: var(--paper); cursor: pointer; transition: background-color .6s ease; }
.ck-wb.presenting.pres-scene .wb-stage { background-color: var(--stage); background-image: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--bar) 9%, transparent), transparent 70%); }
.ck-wb.pres-idle .wb-stage { cursor: none; }
.ck-wb.presenting .wb-scn-t { display: none; }
.ck-wb.presenting .wb-item, .ck-wb.presenting .wb-stroke { transition: opacity .55s cubic-bezier(.4, 0, .2, 1); }
.ck-wb.presenting.pres-scene .wb-item:not(.in-scene), .ck-wb.presenting.pres-scene .wb-stroke:not(.in-scene) { opacity: 0; }
.ck-wb.presenting .wb-scene { border-color: transparent; background: none; }
.ck-wb.presenting .wb-scene.cur-scene { background: var(--paper); border-radius: calc(12px / var(--wbs, 1));
  box-shadow: 0 0 0 calc(1px / var(--wbs, 1)) color-mix(in srgb, var(--on-stage) 12%, transparent),
    0 calc(28px / var(--wbs, 1)) calc(70px / var(--wbs, 1)) calc(-24px / var(--wbs, 1)) rgba(0, 0, 0, .6),
    0 calc(6px / var(--wbs, 1)) calc(18px / var(--wbs, 1)) rgba(0, 0, 0, .18); }
.ck-wb.pres-enter .wb-stage { animation: presIn .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes presIn { from { opacity: 0; scale: .965; filter: blur(6px); } to { opacity: 1; scale: 1; filter: none; } }
/* the controls: a glass pill that rests out of sight while the pointer does */
.wb-pres { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 22; display: flex; align-items: center; gap: 2px; padding: 5px 6px;
  color: var(--on-stage); background: color-mix(in srgb, var(--stage) 74%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--on-stage) 14%, transparent); border-radius: 999px; box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .7);
  transition: opacity .4s ease, translate .45s cubic-bezier(.2, .8, .2, 1); }
.wb-pres .wb-ib { color: var(--on-stage); border-radius: 999px; background: none; }
.wb-pres .wb-ib:hover, .wb-pres .wb-ib:focus-visible { background: color-mix(in srgb, var(--on-stage) 14%, transparent); }
.wb-pres .wb-ib[aria-pressed="true"] { background: var(--stage-accent); color: var(--stage); }
.wb-pres .wb-div { width: 1px; height: 20px; background: color-mix(in srgb, var(--on-stage) 18%, transparent); margin: 0 4px; }
.wb-pres-n { padding: 0 10px; font-size: 13px; color: var(--on-stage); white-space: nowrap; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .wb-pres { max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; } .wb-pres .wb-ib { flex: none; } }
.ck-wb.pres-idle .wb-pres { opacity: 0; translate: -50% 14px; pointer-events: none; }
@media (hover: none) { .ck-wb.pres-idle .wb-pres { opacity: .85; translate: -50% 0; pointer-events: auto; } }
/* progress along the bottom edge, and the scene's name for a moment after each move */
.wb-pres-prog { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 21; background: color-mix(in srgb, var(--on-stage) 10%, transparent); }
.wb-pres-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--stage-accent) 70%, var(--on-stage)), var(--stage-accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--stage-accent) 60%, transparent); transition: width .9s cubic-bezier(.65, 0, .35, 1); }
.ck-wb:not(.pres-scene) .wb-pres-prog { opacity: 0; }
.wb-pres-cap { position: fixed; left: 24px; top: calc(20px + env(safe-area-inset-top, 0px)); z-index: 21; max-width: min(60vw, 520px); padding: 7px 14px; font-size: 13px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--on-stage); background: color-mix(in srgb, var(--stage) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--on-stage) 12%, transparent); border-radius: 999px;
  opacity: 0; translate: 0 -8px; transition: opacity .45s ease, translate .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.wb-pres-cap.show { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .ck-wb.pres-enter .wb-stage { animation: none; } .wb-pres-prog i { transition: none; } }
/* scene frames hidden (per device): the frames still make pages and presentation steps */
.ck-wb.no-frames .wb-scene { border-color: transparent; background: none; }
.ck-wb.no-frames .wb-scene .wb-scn-t { display: none; }
.ck-wb.no-frames .wb-scene.on { border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.wb-sctog { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.wb-sctog svg { width: 16px; height: 16px; flex: none; color: var(--mute); }
.wb-sctog span { flex: 1; }
.wb-sctog i { flex: none; width: 30px; height: 18px; border-radius: 9px; background: var(--line); position: relative; transition: background .15s; }
.wb-sctog i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: transform .15s; }
.wb-sctog[aria-pressed="true"] i { background: var(--gold); }
.wb-sctog[aria-pressed="true"] i::after { transform: translateX(12px); }
.wb-sctog:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* public links */
.wb-shl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wb-shrow { display: grid; gap: 4px; }
.wb-shrow.ended .wb-shurl input { color: var(--mute); text-decoration: line-through; }
.wb-shurl { display: flex; gap: 6px; }
.wb-shurl input { flex: 1; min-width: 0; font: inherit; font-size: 12.5px; padding: 5px 8px; border: 1px solid var(--line); background: var(--wash); color: var(--ink); }
.wb-shurl .btn, .wb-shform .btn, .wb-shbtns .btn { display: inline-flex; align-items: center; gap: 6px; }
.wb-shurl .btn svg, .wb-shform .btn svg { width: 16px; height: 16px; }
.wb-shbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-shform { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.wb-shf { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ink); }
.wb-shf > span { min-width: 90px; color: var(--mute); }
.wb-shf select, .wb-shf input, .wb-shpw input { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.wb-shchk { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.wb-shpw { display: grid; gap: 4px; }
.wb-shpw input { width: 100%; box-sizing: border-box; }
.wb-shbusy { color: var(--ink); }
.wb-shstat { margin: 0; font-size: 12.5px; color: var(--ink); }
.wb-shver { margin: 0; font-size: 12.5px; color: var(--mute); }
.wb-shver.stale { color: var(--ink); padding: 6px 8px; border-left: 3px solid var(--gold); background: var(--wash); }
.wb-shrow .wb-sctog { padding: 4px 0; font-size: 12.5px; }
.wb-sctog:disabled { opacity: .55; cursor: default; }
.wb-ib.dot { position: relative; }
.wb-ib.dot::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--paper); }
/* people on the board: press someone to follow their screen */
.wb-people .wb-pp { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; padding: 0; border-radius: 50%; border: 2px solid var(--paper); background: var(--pc); color: var(--on-ink); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.wb-people .wb-pp:hover, .wb-people .wb-pp:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; z-index: 1; }
.wb-people .wb-pp.on { outline: 2.5px solid var(--gold); outline-offset: 1px; z-index: 1; }
.wb-people .wb-fl { color: var(--ink); }
.wb-follow { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; background: var(--paper); border: 1.5px solid var(--gold); color: var(--ink); font-size: 13px; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .5); white-space: nowrap; max-width: calc(100% - 24px); }
.wb-follow span { overflow: hidden; text-overflow: ellipsis; }
.ck-wb.following .wb-stage { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--gold) 70%, transparent); }
/* presenting effects (the presenter and whoever follows them): smooth, GPU-friendly layers over the board */
.wb-fx { position: absolute; inset: 0; pointer-events: none; z-index: 12; overflow: hidden; }
.wb-fx-blur { position: absolute; inset: 0; opacity: 0; background: color-mix(in srgb, var(--stage) 18%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); transition: opacity .6s cubic-bezier(.4, 0, .2, 1); }
.ck-wb.fx-blur .wb-fx-blur { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .wb-world { transition: filter .5s; } .ck-wb.fx-blur .wb-world { filter: blur(16px); } }
.wb-fx-blank { position: absolute; inset: 0; opacity: 0; background: radial-gradient(90% 70% at 50% 45%, color-mix(in srgb, var(--bar) 16%, var(--stage)), var(--stage)); transition: opacity .7s cubic-bezier(.4, 0, .2, 1); }
.ck-wb.fx-blank .wb-fx-blank { opacity: 1; }
/* curtains: each side is 11 folds of velvet. They travel together on a strong ease (no gaps between folds), gather into
   narrow folds off screen, and ripple (decaying, inner folds more) when they meet, like cloth settling. */
.wb-cur { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2; pointer-events: none;
  --cr: var(--ft-red); --cd: color-mix(in oklab, var(--ft-red) 42%, black); --cl: color-mix(in oklab, var(--ft-red) 80%, white); }
.wb-cur-l { left: 0; }
.wb-cur-r { right: 0; transform: scaleX(-1); }
.wb-cur i { position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 100% / 11); width: calc(100% / 11 + 3px); will-change: transform;
  --rip: calc(1.5px + var(--i) * .7px);
  background:
    radial-gradient(160% 30% at 50% 104%, rgba(0, 0, 0, .5), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .4), transparent 20%, transparent 80%, rgba(0, 0, 0, .32)),
    linear-gradient(90deg, var(--cd), color-mix(in oklab, var(--cr) 72%, var(--cd)) 20%, var(--cr) 42%, var(--cl) 60%, var(--cr) 76%, color-mix(in oklab, var(--cr) 60%, var(--cd)) 92%, var(--cd));
  transform-origin: 0 50%; transform: translateX(calc(-100% * (12 + .7 * var(--i)))) scaleX(.38);
  transition: transform 1.55s cubic-bezier(.72, 0, .18, 1); }
.wb-cur i:last-child { box-shadow: 12px 0 34px -12px rgba(0, 0, 0, .65); }
.ck-wb.fx-curtain .wb-cur i { transform: none; animation: curRip 2.4s cubic-bezier(.35, .1, .3, 1) calc(1.3s + (10 - var(--i)) * 40ms) both; }
@keyframes curRip { 0%, 100% { translate: 0 0; } 20% { translate: var(--rip) 0; } 46% { translate: calc(var(--rip) * -.55) 0; } 70% { translate: calc(var(--rip) * .25) 0; } 86% { translate: calc(var(--rip) * -.08) 0; } }
.wb-cur-top { position: absolute; left: -2%; right: -2%; top: 0; height: 13vh; z-index: 3; transform: translateY(-110%); transition: transform 1s cubic-bezier(.34, 1.36, .5, 1) .2s;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ft-red) 40%, black), var(--ft-red) 70%, color-mix(in oklab, var(--ft-red) 60%, black));
  -webkit-mask: radial-gradient(34px 26px at 50% 0, #000 98%, transparent) 0 100% / 68px 26px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 25px) no-repeat;
  mask: radial-gradient(34px 26px at 50% 0, #000 98%, transparent) 0 100% / 68px 26px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 25px) no-repeat;
  box-shadow: inset 0 -3px 0 var(--gold); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.wb-cur-top::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 31px); height: 5px; background: linear-gradient(90deg, color-mix(in oklab, var(--gold) 70%, black), var(--gold), color-mix(in oklab, var(--gold) 60%, white), var(--gold), color-mix(in oklab, var(--gold) 70%, black)); }
.ck-wb.fx-curtain .wb-cur-top { transform: none; transition: transform .9s cubic-bezier(.34, 1.36, .5, 1) 0s; }
.ck-wb:not(.fx-curtain) .wb-cur-top { transition: transform .7s cubic-bezier(.5, 0, .75, 0) .55s; }
/* particles (confetti, streamers, bubbles, sparks) are drawn on this canvas by board.js */
.wb-fx-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
/* drum roll: the spotlight closes in and the card trembles harder while the roll builds; Ta-da squashes, stretches and settles */
@property --amp { syntax: '<length>'; inherits: true; initial-value: 0px; }
.wb-fx-drum, .wb-fx-card { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; opacity: 0; transition: opacity .35s ease; }
.wb-fx-drum.on, .wb-fx-card.on { opacity: 1; }
.wb-fx-drum.out, .wb-fx-card.out { opacity: 0; transition: opacity .55s ease .12s; }
.dr-spot { position: absolute; inset: -40%; background: radial-gradient(circle at 50% 50%, transparent 13%, color-mix(in srgb, var(--stage) 72%, transparent) 36%); transform: scale(1.7); will-change: transform; }
.wb-fx-drum.on .dr-spot { animation: drSpot 2.4s cubic-bezier(.45, 0, .55, 1) forwards; }
.wb-fx-drum.tada .dr-spot { animation: drSpotOpen 1.1s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes drSpot { from { transform: scale(1.7); } to { transform: scale(1); } }
@keyframes drSpotOpen { from { transform: scale(1); } to { transform: scale(2.4); opacity: .55; } }
.dr-box, .fc-box { position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 44px 22px; color: var(--on-stage);
  background: color-mix(in srgb, var(--stage) 76%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--on-stage) 14%, transparent); border-radius: 26px; box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .75); will-change: transform; }
.dr-box { animation: drIn .75s cubic-bezier(.2, 1.35, .35, 1) both, drSwell 1.75s cubic-bezier(.5, 0, .9, .6) .65s forwards; }
@keyframes drIn { from { opacity: 0; scale: .55; translate: 0 34px; } }
@keyframes drSwell { from { scale: 1; } to { scale: 1.07; } }
.dr-box svg { width: 180px; height: auto; overflow: visible; fill: none; stroke: var(--on-stage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dr-box .dr-stick circle { fill: var(--stage-accent); stroke: var(--stage-accent); }
.dr-box b, .fc-box b { font-size: 32px; font-weight: 700; letter-spacing: .02em; color: var(--on-stage); text-align: center; white-space: nowrap; }
.dr-box .dr-say { width: 12ch; }
.wb-fx-drum.on:not(.tada) .dr-stick.l { transform-origin: 52px 36px; animation: drHit .085s ease-in-out infinite alternate; }
.wb-fx-drum.on:not(.tada) .dr-stick.r { transform-origin: 68px 36px; animation: drHit .085s ease-in-out infinite alternate-reverse; }
.wb-fx-drum.on:not(.tada) .dr-shake { animation: drShake .09s linear infinite, drAmp 2.4s cubic-bezier(.6, 0, .9, .5) forwards; }
@keyframes drAmp { from { --amp: .3px; } to { --amp: 2.6px; } }
@keyframes drShake { 0%, 100% { translate: 0 0; } 25% { translate: var(--amp) calc(var(--amp) * -1); } 50% { translate: calc(var(--amp) * -1) var(--amp); } 75% { translate: var(--amp) var(--amp); } }
.wb-fx-drum.tada .dr-box { animation: drTada .8s cubic-bezier(.3, .7, .3, 1) both; border-color: color-mix(in srgb, var(--stage-accent) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--stage-accent) 40%, transparent), 0 0 90px -8px color-mix(in srgb, var(--stage-accent) 55%, transparent), 0 30px 70px -26px rgba(0, 0, 0, .75); transition: box-shadow .5s, border-color .5s; }
@keyframes drTada { 0% { scale: 1.07; } 16% { scale: 1.18 .86; } 34% { scale: .93 1.1; } 52% { scale: 1.05 .97; } 72% { scale: .99 1.01; } 100% { scale: 1; } }
.wb-fx-drum.tada b { color: var(--stage-accent); animation: drPop .75s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: 0 0 24px color-mix(in srgb, var(--stage-accent) 60%, transparent); }
@keyframes drPop { from { scale: .35; opacity: 0; letter-spacing: .4em; } to { scale: 1; opacity: 1; } }
.wb-fx-drum.out .dr-box, .wb-fx-card.out .fc-box { animation: drOut .6s cubic-bezier(.55, 0, .8, .2) forwards; }
@keyframes drOut { from { scale: 1; opacity: 1; } to { scale: .82; opacity: 0; translate: 0 18px; } }
@keyframes drHit { from { transform: rotate(-10deg); } to { transform: rotate(8deg); } }
/* applause (and the still cards): hands clap in a spring rhythm, a spark where they meet (drawn by board.js on the beat) */
.wb-fx-card { background: radial-gradient(circle at 50% 50%, transparent 20%, color-mix(in srgb, var(--stage) 45%, transparent) 75%); }
.fc-box { animation: drIn .7s cubic-bezier(.2, 1.35, .35, 1) both; }
.k-clap.on:not(.out) .fc-box { animation: drIn .7s cubic-bezier(.2, 1.35, .35, 1) both, fcBeat .36s cubic-bezier(.3, 0, .3, 1) .74s infinite; }
@keyframes fcBeat { 50% { scale: 1.035; } }
.fc-box svg { width: 150px; height: auto; overflow: visible; fill: none; stroke: var(--on-stage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fc-ic svg { width: 72px; height: 72px; stroke-width: 1.4; }
.cl-hit { stroke: var(--stage-accent); opacity: 0; transform-origin: 60px 16px; }
.cl-hand.l { transform-origin: 46px 84px; transform: rotate(-26deg); }
.cl-hand.r { transform-origin: 74px 84px; transform: rotate(26deg); }
.k-clap.on .cl-hand.l { animation: clapL .36s .56s infinite; }
.k-clap.on .cl-hand.r { animation: clapR .36s .56s infinite; }
.k-clap.on .cl-hit { animation: clapHit .36s .56s infinite; }
@keyframes clapL { 0%, 100% { transform: rotate(-26deg); animation-timing-function: cubic-bezier(.6, 0, 1, .5); } 50% { transform: rotate(0); animation-timing-function: cubic-bezier(0, .5, .4, 1); } }
@keyframes clapR { 0%, 100% { transform: rotate(26deg); animation-timing-function: cubic-bezier(.6, 0, 1, .5); } 50% { transform: rotate(0); animation-timing-function: cubic-bezier(0, .5, .4, 1); } }
@keyframes clapHit { 0%, 44% { opacity: 0; transform: scale(.6); } 52% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .wb-cur, .wb-cur-top { transition: opacity .3s !important; opacity: 0; }
  .wb-cur i, .wb-cur-top { transform: none !important; animation: none !important; transition: none !important; }
  .ck-wb.fx-curtain .wb-cur, .ck-wb.fx-curtain .wb-cur-top { opacity: 1; }
  .wb-fx-drum *, .wb-fx-card *, .dr-box, .fc-box { animation: none !important; }
  .cl-hand.l, .cl-hand.r { transform: none; }
  .wb-fx-cv { display: none; }
}

/* "Add as reminder" over words picked while writing (30 Sep 2026) */
.wb-remsel { position: absolute; z-index: 30; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; font-family: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.2; background: var(--ink); color: var(--on-ink); border: 0; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); cursor: pointer; }
.wb-remsel svg { width: 16px; height: 16px; }
.wb-remsel:hover { background: var(--ink-2); }
.wb-remsel[hidden] { display: none; }

/* scene motion (30 Sep 2026): the motion picker and One by one in the scenes list; items waiting for their click; words */
.wb-scmo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; }
.wb-scmv { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; color: var(--mute); }
.wb-scmv svg { flex: none; }
.wb-scmv svg { width: 16px; height: 16px; }
.wb-scmv select { font-size: 12px; padding: 2px 22px 2px 6px; border: 1px solid var(--line); background-color: var(--paper); color: var(--ink); border-radius: 6px; max-width: 128px; }
.wb-scbuild { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px 2px 5px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 999px; cursor: pointer; }
.wb-scbuild svg { width: 15px; height: 15px; }
.wb-scbuild[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ck-wb.presenting .wb-pend { opacity: 0 !important; }
.wb-word { display: inline-block; }
/* people on the board: a dot for active (filled) or idle (ring, and the initials fade); press someone for a small menu */
.wb-people i, .wb-people .wb-pp { position: relative; }
.wb-people i::after, .wb-people .wb-pp::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--paper); background: var(--ft-green); }
.wb-people i.idle, .wb-people .wb-pp.idle { opacity: .6; }
.wb-people i.idle::after, .wb-people .wb-pp.idle::after { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ft-amber); }
.wb-ppm { position: absolute; z-index: 30; width: 220px; padding: 6px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .5); animation: wbPpm .16s ease-out; }
@keyframes wbPpm { from { opacity: 0; transform: translateY(-4px); } }
.wb-ppm p { margin: 0; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.wb-ppm p b { font-size: 14px; }
.wb-ppm p small { font-size: 12px; color: var(--mute); }
.wb-ppm button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.wb-ppm button:hover, .wb-ppm button:focus-visible { background: var(--wash); outline: none; }
.wb-ppm svg { width: 18px; height: 18px; flex: none; }
.wb-wave { position: absolute; left: 50%; top: -26px; width: 26px; height: 26px; margin-left: -13px; color: var(--gold); pointer-events: none; transform-origin: 50% 90%; animation: wbWave 1.6s ease-in-out both; }
.wb-wave svg { width: 26px; height: 26px; stroke-width: 2; }
@keyframes wbWave { 0% { opacity: 0; transform: translateY(6px) rotate(0); } 12% { opacity: 1; transform: translateY(0) rotate(-14deg); } 26% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 54% { transform: rotate(16deg); } 68% { transform: rotate(-8deg); } 82% { opacity: 1; transform: rotate(0); } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .wb-ppm { animation: none; } }
