/* The board's grid follows the view through these on .wb-stage, set every frame of a pan or glide. Not inherited, so a change restyles the
   stage alone and not the thousand things on the board (14 Oct 2026: they were, and 1 and 2 stuttered on a board of pages and a big table). */
@property --gx { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --gy { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --gs { syntax: '<length>'; inherits: false; initial-value: 24px; }
@property --ls { syntax: '<length>'; inherits: false; initial-value: 36px; }
/* 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-lbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; color: var(--mute); }
.wb-lbar .spacer { flex: 1; }
.wb-lbar label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.wb-recent .lr-chip { cursor: pointer; } .wb-recent .lr-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.wb-lbar select { font: inherit; font-size: 13px; }
.wb-lq { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: min(260px, 100%); min-width: 0; }
.wb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.wb-list > .empty { grid-column: 1 / -1; }
.wb-card { position: relative; display: grid; gap: 2px; align-content: start; padding: 0 0 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.wb-card:hover, .wb-card:focus-visible { border-color: var(--ink); outline: none; }
.wb-card b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.wb-card small { color: var(--mute); font-size: 12.5px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-cardh { display: flex; align-items: flex-start; gap: 6px; padding: 10px 6px 0 12px; min-width: 0; }
.wb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-cardh .wb-rename { flex: 1; min-width: 0; }
.wb-name input { width: 100%; font: inherit; }
.wb-mini { position: relative; aspect-ratio: 22 / 9; border-bottom: 1px solid var(--line); background: var(--wash); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 12px 12px; }
.wb-map { display: block; width: 100%; height: 100%; }
.wb-more { position: relative; flex: none; }
.wb-more > summary { list-style: none; display: grid; place-items: center; width: 28px; height: 24px; color: var(--mute); cursor: pointer; }
.wb-more > summary::-webkit-details-marker { display: none; }
.wb-more > summary svg { fill: currentColor; }
.wb-more > summary:hover, .wb-more[open] > summary, .wb-more > summary:focus-visible { color: var(--ink); background: var(--wash); outline: none; }
.wb-card-acts { position: absolute; right: 0; top: 28px; z-index: 5; display: grid; min-width: 168px; padding: 4px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.wb-card-acts button { font: inherit; font-size: 14px; text-align: left; padding: 9px 12px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.wb-card-acts button:hover, .wb-card-acts button:focus-visible { background: var(--wash); outline: none; }
.wb-card-acts .danger { color: var(--red, var(--ft-red)); }
.wb-sctidy { display: grid; gap: 4px; margin: 8px 0 0; }
.wb-sctidy .btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.wb-sctidy small { color: var(--mute); font-size: 12px; line-height: 1.35; }
.wb-views { display: inline-flex; border: 1px solid var(--line); }
.wb-views button { display: grid; place-items: center; width: 32px; height: 28px; border: 0; background: none; color: var(--mute); cursor: pointer; }
.wb-views button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.wb-shared { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 16px); padding: 3px 8px; background: var(--paper); border: 1px solid var(--ink); color: var(--ink); font-size: 11.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-shared[hidden] { display: none; }
.wb-shared { font-family: inherit; cursor: pointer; z-index: 1; } /* a button: the numbers open (shareStatsDialog) */
.wb-shared:hover { background: var(--ink); color: var(--on-ink); }
.wb-shared:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wb-ststs { width: min(620px, calc(100vw - 24px)); }
.wb-ststs form { display: grid; gap: 12px; padding: 22px; }
.wb-ststs h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.wb-ststs .wb-stbody { display: grid; gap: 12px; min-width: 0; }
.wb-ststs .ds-stats { border-top: 0; padding-top: 0; margin-top: 0; }
.wb-ststs .ds-bars i { cursor: default; }
.wb-ststs .wb-sttip { min-height: 1.4em; margin: -6px 0 -4px; font-size: 12.5px; }
.wb-stls { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wb-stls li { display: grid; gap: 4px; min-width: 0; }
.wb-stls li.off { opacity: 0.7; }
.wb-stl { display: flex; gap: 6px; min-width: 0; }
.wb-stl input { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.wb-stls .hint { margin: 0; font-size: 12.5px; }
@media (max-width: 560px) {
  .wb-ststs form { padding: 16px; }
  .wb-ststs .ds-kpi b { font-size: 20px; }
}
.wb-sec { margin-top: 18px; }
.wb-sech { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 0; margin: 0 0 8px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.wb-sech svg { transition: transform .12s; transform: rotate(90deg); color: var(--mute); }
.wb-sec.shut .wb-sech svg { transform: none; }
.wb-sec.shut .wb-sech { margin-bottom: 0; }
.wb-sech small { color: var(--mute); font-size: 12.5px; }
.wb-file-l { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-file-i { font: inherit; font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.wb-file-i:hover, .wb-file-i:focus-visible { border-color: var(--ink); outline: none; }
.wb-file-i.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.wb-scall { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin: 0 0 8px; background: var(--wash); font-size: 13px; }
.wb-scall > span { font-weight: 600; }
.wb-scall .wb-scmo { margin: 0; }
/* the list view: one board a line (the same shape phones get), denser */
.wb-list.rows { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.wb-list.rows .wb-card[data-wb-open] { grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-rows: auto; align-items: center; padding: 0; column-gap: 0; }
.wb-list.rows .wb-card[data-wb-open] .wb-mini { aspect-ratio: auto; height: 44px; border-bottom: 0; border-right: 1px solid var(--line); }
.wb-list.rows .wb-card[data-wb-open] .wb-map { position: absolute; inset: 0; object-fit: contain; }
.wb-list.rows .wb-cardh { grid-column: 2; grid-row: 1; padding: 0 6px 0 12px; align-items: center; }
.wb-list.rows .wb-card[data-wb-open] small { grid-column: 4; grid-row: 1; padding: 0 44px 0 12px; }
.wb-list.rows .wb-more { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.wb-list.rows .wb-shared { position: static; grid-column: 3; grid-row: 1; max-width: none; }
.wb-list.rows .wb-cardh { padding-right: 0; }
.wb-list.rows .wb-new { min-height: 0; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; padding: 10px 14px; }
.wb-list.rows .wb-new small { display: none; }
.wb-list.rows .wb-new > span:first-child { font-size: 20px; }
@media (max-width: 560px) {
  /* phones: one board a line, its map at the left, so a name is read whole */
  .wb-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wb-card[data-wb-open] { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; padding: 0; column-gap: 0; }
  .wb-card[data-wb-open] .wb-mini { grid-row: 1 / 3; aspect-ratio: auto; min-height: 64px; border-bottom: 0; border-right: 1px solid var(--line); }
  .wb-card[data-wb-open] .wb-map { position: absolute; inset: 0; object-fit: contain; }
  .wb-card[data-wb-open] .wb-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
  .wb-card[data-wb-open] small { padding-bottom: 10px; }
  .wb-list .wb-card[data-wb-open] .wb-shared { left: 4px; top: 4px; padding: 2px 5px; font-size: 10.5px; max-width: 104px; }
  .wb-list.rows .wb-card[data-wb-open] { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; }
  .wb-list.rows .wb-card[data-wb-open] .wb-mini { height: auto; min-height: 56px; }
  .wb-list.rows .wb-cardh { padding: 8px 6px 0 12px; align-items: flex-start; }
  .wb-list.rows .wb-card[data-wb-open] small { grid-column: 2; grid-row: 2; padding: 0 12px 8px; }
  .wb-list.rows .wb-more { position: relative; right: auto; top: auto; transform: none; }
  .wb-list.rows .wb-shared { position: absolute; }
  .wb-more > summary { width: 40px; height: 32px; }
  .wb-card-acts { top: 34px; }
  .wb-list .wb-new { min-height: 0; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; padding: 12px 14px; }
  .wb-list .wb-new small { display: none; }
  .wb-list .wb-new > span:first-child { font-size: 22px; }
  .wb-lbar { flex-wrap: wrap; }
  .wb-lq { width: 100%; }
}
.wb-send form { display: grid; gap: 12px; padding: 22px; }
.wb-send h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.wb-send-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wb-send-how label { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; }
.wb-send-how label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.wb-send-how label:has(input:disabled) { cursor: default; color: var(--mute); }
.wb-send-how span { display: grid; gap: 2px; min-width: 0; }
.wb-send-how small { color: var(--mute); font-size: 12.5px; line-height: 1.35; }
.wb-send-f { display: grid; gap: 4px; font-size: 13px; }
.wb-send-f[hidden] { display: none; }
.wb-send-f > span { color: var(--mute); }
.wb-send-f select, .wb-send-f input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-width: 0; width: 100%; }
.wb-send-say { margin: 0; min-height: 1.4em; }
.wb-send-say.bad { color: var(--red, var(--ft-red)); }
@media (max-width: 520px) { .wb-send-how { grid-template-columns: minmax(0, 1fr); } .wb-send form { padding: 16px; } }
.wb-new { place-content: center; justify-items: center; text-align: center; border-style: dashed; padding: 14px; min-height: 150px; gap: 4px; }
.wb-new small { white-space: normal; padding: 0; }
.wb-new > span:first-child { font-size: 30px; line-height: 1; color: var(--mute); }
.wb-naming { padding: 14px; cursor: default; border-style: solid; border-color: var(--ink); justify-items: stretch; text-align: left; gap: 8px; }
.wb-naming .wb-newacts { display: flex; align-items: center; gap: 14px; }
/* Only me (15 Oct 2026): a private board in a team project */
.wb-naming .wb-onlyme { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.wb-naming .wb-onlyme input { margin: 0; width: 16px; height: 16px; accent-color: var(--ink); }
.wb-lock { flex: none; display: inline-flex; align-items: center; color: var(--mute); padding-top: 2px; }
.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; }
/* Nothing in the board is page text to select: on an iPad a pen stroke, a double tap or a long press otherwise selected the
   toolbar and header (blue handles, "Copy | Search") while writing. Typing places stay selectable. */
.ck-wb { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ck-wb input, .ck-wb textarea, .ck-wb [contenteditable="true"], .ck-wb [contenteditable="plaintext-only"] { user-select: text; -webkit-user-select: text; }
.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 480px; text-overflow: ellipsis; 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; }
/* the voice bar and its list live in voice.css (also used by the chat) */
.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; -webkit-touch-callout: 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, .ck-wb[data-mode="mark"] .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-item.wb-text { overflow: visible; } /* the item carries the class wb-text too, so the rule for words clipped the whole item: a text saved narrower than its words lost its end (laptop audit, 9 Oct 2026) */
.wb-shape { display: grid; place-items: center; padding: 10px; border: var(--bw, 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[data-k="arrow"].headless.dot .vis { marker-end: url(#wb-dot); }
.wb-stroke .hit { fill: none; stroke: transparent; stroke-width: max(16px, calc(20px / var(--wbs, 1))); stroke-linecap: round; }
/* a stroke made with pen pressure is a filled shape; held low, the pen shades (wide and light) */
.wb-stroke.ink .vis { fill: var(--sc, var(--ink)); fill-rule: nonzero; stroke: none; marker-end: none; }
.wb-stroke.ink.shade .vis { fill-opacity: .26; }
path.wb-draft.wb-inkd { fill: var(--sc, var(--ink)); stroke: none; }
path.wb-draft.wb-inkd.shade { fill-opacity: .26; }
.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; }
/* The selection is drawn in the stage in screen pixels (--wbs 1 here), not inside the scaled world, and is a layer of its own: iPad Safari
   left its handles and dots behind as it moved (7 Nov 2026). paintSel makes the element anew when its look changes. */
.wb-sel { position: absolute; z-index: 3; --wbs: 1; will-change: transform; 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-h.side { top: 50%; width: calc(10px / var(--wbs, 1)); height: calc(28px / var(--wbs, 1)); margin-top: calc(-14px / var(--wbs, 1)); border-radius: calc(5px / var(--wbs, 1)); cursor: ew-resize; touch-action: none; }
.wb-h.side.w { left: calc(-5px / var(--wbs, 1)); }
.wb-h.side.e { right: calc(-5px / var(--wbs, 1)); }
.wb-h.side.n, .wb-h.side.s { top: auto; left: 50%; width: calc(28px / var(--wbs, 1)); height: calc(10px / var(--wbs, 1)); margin-top: 0; margin-left: calc(-14px / var(--wbs, 1)); cursor: ns-resize; }
.wb-h.side.n { top: calc(-5px / var(--wbs, 1)); }
.wb-h.side.s { bottom: calc(-5px / var(--wbs, 1)); }
@media (pointer: coarse) { .wb-h.side.n, .wb-h.side.s { width: calc(40px / var(--wbs, 1)); height: calc(16px / var(--wbs, 1)); margin-top: 0; margin-left: calc(-20px / var(--wbs, 1)); } .wb-h.side.n { top: calc(-8px / var(--wbs, 1)); } .wb-h.side.s { bottom: calc(-8px / var(--wbs, 1)); } }
.wb-h.col { top: 0; bottom: 0; height: auto; width: calc(10px / var(--wbs, 1)); margin-left: calc(-5px / var(--wbs, 1)); border: 0; background: transparent; cursor: col-resize; touch-action: none; }
.wb-h.col::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: calc(2px / var(--wbs, 1)); margin-left: calc(-1px / var(--wbs, 1)); background: var(--gold); opacity: 0; }
.wb-h.col:hover::after { opacity: 1; }
@media (hover: none) { .wb-h.col::after { opacity: .45; } }
@media (pointer: coarse) { .wb-h.col { width: calc(22px / var(--wbs, 1)); margin-left: calc(-11px / var(--wbs, 1)); } }
@media (pointer: coarse) { .wb-h.side { width: calc(16px / var(--wbs, 1)); height: calc(40px / var(--wbs, 1)); margin-top: calc(-20px / var(--wbs, 1)); } .wb-h.side.w { left: calc(-8px / var(--wbs, 1)); } .wb-h.side.e { right: calc(-8px / var(--wbs, 1)); } }
.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: 7; 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; }
.wb-bar.folded { padding: 2px; } /* folded by its first button: one small button that brings the tools back (above the map in the corner: z-index 7) */

/* ---- 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-imenu a.wb-imenu-a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.wb-imenu a.wb-imenu-a:hover, .wb-imenu a.wb-imenu-a: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); }
/* formulas: a small corner mark on a cell that is calculated; addresses (A B C, 1 2 3) show while a cell is being typed in */
.wb-tbl td.fx { background-image: linear-gradient(225deg, var(--gold) 5px, transparent 5px); font-variant-numeric: tabular-nums; }
.wb-tbl td.fxerr { color: var(--red); }
.wb-table.editing .wb-tbl td[data-cn], .wb-table.editing .wb-tbl td[data-rn] { position: relative; }
.wb-table.editing .wb-tbl td[data-cn]::before { content: attr(data-cn); position: absolute; left: 0; right: 0; top: -18px; text-align: center; font-size: 11px; line-height: 14px; font-weight: 600; font-style: normal; color: var(--mute); pointer-events: none; }
.wb-table.editing .wb-tbl td[data-rn]::after { content: attr(data-rn); position: absolute; left: -27px; top: 8px; width: 18px; text-align: right; font-size: 11px; line-height: 14px; font-weight: 600; font-style: normal; color: var(--mute); pointer-events: none; }
.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: 0; }
/* the words stay inside the diamond: a padding in % reads the board layer's width (0), so it never held them in (owner's flow, 20 Oct 2026) */
.wb-shape.dia .wb-text { width: 56%; max-height: 68%; overflow: visible; }
.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; }
/* an oval with more than a label: the words stay in the rectangle inside the curve (owner, 3 Nov 2026: "if pasted can auto resize") */
.wb-shape.round.many .wb-text { width: 70%; max-height: 68%; overflow: visible; }
.wb-dia polygon { fill: var(--paper); stroke: var(--ink); stroke-width: var(--bw, 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(6, 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-dir { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--mute); }
.wb-sm-dir[hidden] { display: none; }
.wb-sm-dir span { margin-right: 4px; }
.wb-sm-dir button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.wb-sm-dir button svg { width: 18px; height: 18px; }
.wb-sm-dir 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 path { fill: none; stroke: var(--mute); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.wb-sm-svg .ah { fill: var(--mute); stroke: none; }
.wb-sm-svg text.el { font-size: 13px; fill: var(--mute); }
.wb-sm-svg text.sub { font-size: 12.5px; fill: var(--mute); }
.wb-sm-svg g[data-ln] { cursor: pointer; }
.wb-sm-svg g.on rect, .wb-sm-svg g.on polygon { stroke: var(--gold); stroke-width: 3px; }
.wb-sm-prev.sample .wb-sm-svg { opacity: .55; } .wb-sm-prev.sample .wb-sm-svg g[data-ln] { cursor: default; }
.wb-sm-edit { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.wb-sm-tools { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid var(--line); border-bottom: 0; background: var(--wash); }
.wb-sm-tools button { display: grid; place-items: center; width: 36px; height: 32px; padding: 0; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; }
.wb-sm-tools button:hover, .wb-sm-tools button:focus-visible { border-color: var(--ink); background: var(--paper); }
.wb-sm-tools button[hidden] { display: none; }
.wb-sm-tools button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-sm-tools i { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.wb-sm-count { margin-left: auto; font-size: 12.5px; color: var(--mute); text-align: right; }
.wb-sm-edit textarea { width: 100%; tab-size: 2; }
@media (hover: none) { .wb-sm-tools button { width: 44px; height: 40px; } }
.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; z-index: 1; 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: 400px; max-width: calc(100vw - 16px); }
.wb-menu:not(.wb-scn) { overflow-y: auto; overscroll-behavior: contain; }
.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; flex-wrap: wrap; 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); }
/* what lies outside the scene fades, then is not drawn at all (visibility): a faded picture still held its own layer, and a board of
   PDF pages crashed an iPhone when Present began (17 Oct 2026). pres-snap: the first scene appears without fading the whole board. */
.ck-wb.presenting.pres-scene .wb-item:not(.in-scene), .ck-wb.presenting.pres-scene .wb-stroke:not(.in-scene) { opacity: 0; visibility: hidden; transition: opacity .55s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .55s; }
.ck-wb.pres-snap .wb-item, .ck-wb.pres-snap .wb-stroke, .ck-wb.pres-lite .wb-pend { transition: none !important; }
/* phones and tablets: no blur filters or wide soft shadows while presenting (each is a large offscreen picture there) */
.ck-wb.pres-lite.presenting .wb-scene.cur-scene { box-shadow: 0 0 0 calc(1px / var(--wbs, 1)) color-mix(in srgb, var(--on-stage) 12%, transparent); }
.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:not(.pres-lite) .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 */
/* timer and stopwatch: a small card under the header; while presenting, a quiet pill in the top right that never fades */
.wb-clock { position: absolute; right: 14px; top: 62px; z-index: 11; display: grid; gap: 8px; min-width: 216px; max-width: min(340px, calc(100% - 16px)); padding: 10px 12px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--ink); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .5); user-select: none; }
.wb-ck-top { display: flex; align-items: center; gap: 8px; }
.wb-ck-modes { display: inline-flex; flex: 1; border: 1px solid var(--line); }
.wb-ck-modes button { flex: 1; padding: 5px 10px; background: none; border: 0; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.wb-ck-modes button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.wb-ck-row { display: flex; align-items: center; gap: 6px; }
.wb-ck-kind { flex: 1; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
span.wb-ck-time { cursor: default; }
.ck-wb.presenting .wb-clock.ro { padding-right: 16px; }
.wb-ck-time { flex: 1; padding: 0; background: none; border: 0; font: inherit; font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; color: inherit; text-align: left; cursor: pointer; }
.wb-ck-btns { display: inline-flex; gap: 2px; }
.wb-ck-btns .wb-ib[disabled] { opacity: .35; cursor: default; }
.wb-ck-set { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wb-ck-set button { min-width: 30px; height: 28px; padding: 0 6px; background: none; border: 1px solid var(--line); font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.wb-ck-set button[aria-pressed="true"] { border-color: var(--ink); background: var(--wash); font-weight: 600; }
.wb-ck-set small { margin-left: 4px; font-size: 12px; color: var(--mute); }
.wb-ck-from { margin: 0; font-size: 12px; color: var(--mute); }
.wb-ckb { position: relative; }
.wb-ckb.live::after { content: ''; position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ft-green); box-shadow: 0 0 0 2px var(--paper); }
.wb-clock[data-state="soon"] { border-top-color: var(--ft-amber); }
.wb-clock[data-state="over"] { border-top-color: var(--ft-red); }
.wb-clock[data-state="over"] .wb-ck-time { color: var(--ft-red); }
.wb-clock.ring { animation: wb-ck-ring .5s ease-in-out 3; }
@keyframes wb-ck-ring { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ft-red) 45%, transparent); } }
.ck-wb.presenting .wb-clock { max-width: none; position: fixed; right: 22px; top: calc(18px + env(safe-area-inset-top, 0px)); z-index: 23; min-width: 0; padding: 6px 8px 6px 16px; gap: 0; color: var(--on-stage); background: color-mix(in srgb, var(--stage) 74%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); 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); }
.ck-wb.presenting .wb-ck-top, .ck-wb.presenting .wb-ck-set, .ck-wb.presenting .wb-ck-from { display: none; }
.ck-wb.presenting .wb-ck-time { font-size: 30px; }
.ck-wb.presenting .wb-ck-btns .wb-ib { color: inherit; }
.ck-wb.presenting .wb-clock[data-state="soon"] { border-color: var(--stage-accent); }
.ck-wb.presenting .wb-clock[data-state="over"] { border-color: var(--ft-red); background: var(--red); }
.ck-wb.presenting .wb-clock[data-state="over"] .wb-ck-time { color: var(--on-red); }
.ck-wb.presenting.pres-idle .wb-ck-btns { display: none; }
.ck-wb.presenting.pres-idle .wb-clock { padding-right: 16px; }
@media (hover: none) { .ck-wb.presenting.pres-idle .wb-ck-btns { display: inline-flex; opacity: .85; } .ck-wb.presenting.pres-idle .wb-clock { padding-right: 8px; } .wb-ck-set button { min-width: 38px; height: 38px; } .wb-ck-modes button { padding: 9px 10px; } }
@media (max-width: 700px) { .wb-top .wb-ckb { display: none; } .wb-clock { right: 8px; top: 58px; } .ck-wb.presenting .wb-clock { right: 10px; } .ck-wb.presenting .wb-ck-time { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .wb-clock.ring { animation: none; } }
.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-fmtbar { position: absolute; z-index: 30; display: flex; align-items: center; gap: 2px; padding: 3px; max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45); }
.wb-fmtbar::-webkit-scrollbar { display: none; }
.wb-fmtbar > * { flex: none; }
.wb-fmtbar .wb-ib { width: 32px; height: 32px; }
.wb-fmtbar [hidden] { display: none; }
.wb-fmtbar[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; } }

/* videos (YouTube, Google Drive): a title strip that drags the item, and a stage that holds the Play button or the player */
.wb-video { display: grid; grid-template-rows: 30px minmax(0, 1fr); background: var(--stage); color: var(--on-stage); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .45); overflow: hidden; }
.wb-vid-bar { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; min-width: 0; }
.wb-video .wb-vid-t { line-height: 30px; flex: 1; min-width: 0; padding: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--on-stage); }
.wb-video .wb-vid-t:empty::before { content: attr(data-ph); opacity: .7; font-weight: 500; }
.wb-video.editing .wb-vid-t { text-overflow: clip; outline: 1px solid var(--stage-accent); outline-offset: 2px; }
.wb-vid-b { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; padding: 0; background: none; color: var(--on-stage); opacity: .75; cursor: pointer; }
.wb-vid-b:hover, .wb-vid-b:focus-visible { opacity: 1; }
.wb-vid-b svg { width: 16px; height: 16px; }
.wb-vid-body { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; min-height: 0; border-top: 1px solid color-mix(in srgb, var(--on-stage) 18%, transparent); }
.wb-vid-body small { font-size: 12px; opacity: .7; }
.wb-vid-play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--on-stage); background: none; color: var(--on-stage); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background-color .15s, color .15s; }
.wb-vid-play svg { width: 30px; height: 30px; }
.wb-vid-play svg rect { display: none; } /* the play triangle alone inside the ring */
.wb-vid-play svg path { fill: currentColor; transform: scale(1.9); transform-origin: 12px 12px; }
.wb-vid-play:hover, .wb-vid-play:focus-visible { background: var(--on-stage); color: var(--stage); transform: scale(1.06); }
.wb-vid-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--stage); }
.ck-wb[data-mode]:not([data-mode="select"]) .wb-vid-body iframe { pointer-events: none; }
.wb-vid-body iframe.zoomed { transform-origin: 0 0; }
.wb-stage.wb-busy iframe { pointer-events: none; } /* moving, resizing or panning: a file card under the pointer never takes the drag */ /* drawing or moving the board: the player does not swallow the pointer */
/* one column that may shrink: without minmax(0, 1fr) the widest row (two buttons in Indonesian) set the column's width and everything ran out of the box */
.wb-vmenu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; box-sizing: border-box; width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
.wb-vmenu > * { min-width: 0; }
.wb-vmenu label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 13px; }
.wb-vmenu input { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.wb-vmsg { margin: 0; font-size: 12.5px; color: var(--red); }
.wb-vfine { margin: 0; font-size: 12px; color: var(--mute); }
.wb-vrow { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .wb-vid-play { transition: none; } .wb-vid-play:hover { transform: none; } }

/* the board's own theme (menu): a row of names, each with a swatch in that theme's paper and ink */
.wb-ths { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-thb { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.wb-thb[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -1px; }
.wb-thb i.ck-thp { position: static; display: block; width: 14px; height: 14px; padding: 0; gap: 0; border: 1px solid var(--faint, var(--line)); border-radius: 50%; background: linear-gradient(135deg, var(--paper) 50%, var(--ink) 50%); }
.wb-menu label.wb-mi { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; } /* the app's dialog label rule stacked the tick over its words */
.wb-menu label.wb-mi input { width: auto; flex: none; margin: 0; }

/* Pen check: a readable log of what the pen and fingers did (board menu) */
.wb-mlink { background: none; border: 0; padding: 6px 0 0; font: inherit; font-size: 12.5px; color: var(--mute); text-decoration: underline; cursor: pointer; }
.wb-plog { position: fixed; z-index: 30; left: 8px; right: 8px; top: 56px; bottom: 76px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .5); }
.wb-plog-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wb-plog-h span { flex: 1; color: var(--mute); }
.wb-plog pre { flex: 1; margin: 0; padding: 8px 10px; overflow: auto; font: 11px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre; color: var(--ink); user-select: text; -webkit-user-select: text; }

/* the zoom percentage opens a slider */
.wb-zpop { position: fixed; z-index: 12; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .45); max-width: calc(100vw - 16px); flex-wrap: wrap; }
.wb-zpop input[type="range"] { width: 200px; height: 32px; margin: 0; accent-color: var(--ink); touch-action: pan-x; }
.wb-zpop .btn { white-space: nowrap; }

/* pen line weights beside the colours; the eraser; strokes about to go */
.wb-pw { width: 28px; height: 28px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 50%; cursor: pointer; padding: 0; }
.wb-pw i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--ink); }
.wb-pw[aria-pressed="true"] { border-color: var(--ink); }
.wb-colors .wb-div { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.wb-erhint { font-size: 12.5px; color: var(--mute); padding: 0 6px; }
.wb-stroke.wb-erasing { opacity: .22; }
.ck-wb[data-mode="eraser"] .wb-stage { cursor: cell; }

/* shapes: no fill (the colour goes to the border), border weight and style; lines and arrows: weight and style */
.wb-shape[data-bs="dash"] { border-style: dashed; }
.wb-shape[data-bs="dot"] { border-style: dotted; }
.wb-shape.hollow { background: transparent !important; border-color: var(--bc, var(--ink)); }
.wb-shape.dia.hollow polygon { fill: none; stroke: var(--bc, var(--ink)); }
.wb-shape.dia[data-bs="dash"] polygon { stroke-dasharray: calc(var(--bw, 2px) * 3) calc(var(--bw, 2px) * 2.5); }
.wb-shape.dia[data-bs="dot"] polygon { stroke-dasharray: 0.1px calc(var(--bw, 2px) * 2.2); stroke-linecap: round; }
.wb-stroke[data-k="arrow"] .vis { stroke-dasharray: var(--sd, none); }
/* a picked line: no box, a round handle on each end (filled when that end holds on to something) */
.wb-sel.line { border-color: transparent; }
.wb-h.end { width: calc(14px / var(--wbs, 1)); height: calc(14px / var(--wbs, 1)); border-radius: 50%; transform: translate(-50%, -50%); cursor: move; touch-action: none; }
.wb-h.end.fixed { background: var(--gold); }
.wb-h.ins { width: calc(24px / var(--wbs, 1)); height: calc(24px / var(--wbs, 1)); border-radius: 50%; transform: translate(-50%, -50%); cursor: pointer; display: grid; place-items: center; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.wb-h.ins svg { width: 70%; height: 70%; stroke: currentColor; fill: none; stroke-width: 2.2; }
.wb-h.ins:hover { background: var(--gold); color: var(--on-gold); }
@media (pointer: coarse) { .wb-h.ins { width: calc(34px / var(--wbs, 1)); height: calc(34px / var(--wbs, 1)); } }
.wb-stroke.ins .vis { stroke: var(--gold); stroke-width: calc(var(--sw, 3px) + 3px); filter: drop-shadow(0 0 3px var(--gold)); }
@media (pointer: coarse) { .wb-h.end { width: calc(22px / var(--wbs, 1)); height: calc(22px / var(--wbs, 1)); } }
/* dots beside a picked item: drag one to draw an arrow from it */
.wb-cn { position: absolute; width: calc(10px / var(--wbs, 1)); height: calc(10px / var(--wbs, 1)); border-radius: 50%; background: var(--paper); border: calc(2px / var(--wbs, 1)) solid var(--gold); pointer-events: auto; cursor: crosshair; touch-action: none; opacity: .75; }
.wb-cn:hover { opacity: 1; background: var(--gold); }
.wb-cn::after { content: ""; position: absolute; inset: calc(-9px / var(--wbs, 1)); }
.wb-cn.n { left: 50%; top: calc(-20px / var(--wbs, 1)); transform: translateX(-50%); }
.wb-cn.s { left: 50%; bottom: calc(-20px / var(--wbs, 1)); transform: translateX(-50%); }
.wb-cn.w { top: 50%; left: calc(-20px / var(--wbs, 1)); transform: translateY(-50%); }
.wb-cn.e { top: 50%; right: calc(-20px / var(--wbs, 1)); transform: translateY(-50%); }
/* the item bar never runs past the screen: on a phone it scrolls sideways */
.wb-bar { max-width: calc(100% - 16px); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; }
.wb-bar::-webkit-scrollbar { display: none; }
.wb-bar > * { flex: none; }

/* a cropped picture shows a part of its file; cropping: the whole picture faded, the kept part bright in a frame with handles */
.wb-image.cropped { overflow: hidden; }
.wb-image.cropped img { position: absolute; max-width: none; object-fit: fill; }
.wb-image.cropping { visibility: hidden; }
.wb-image.seethru { background: none; box-shadow: none; }
.wb-image.seethru img { opacity: var(--op, 1); }
.wb-oppop { flex-wrap: wrap; gap: 2px 10px; width: min(600px, calc(100vw - 16px)); padding: 8px 14px 10px; }
.wb-oppop input[type="range"] { flex: 1 1 140px; width: auto; min-width: 120px; }
.wb-opk { font-size: 13px; font-weight: 600; }
.wb-opv { order: 1; min-width: 3em; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }
.wb-opq { order: 2; display: flex; gap: 2px; }
.wb-opq .btn { padding-inline: 8px; }
.wb-ophint { order: 3; flex-basis: 100%; color: var(--mute); font-size: 12px; line-height: 1.4; }
.wb-crop { position: absolute; z-index: 2000002; pointer-events: auto; touch-action: none; user-select: none; }
.wb-crop img { display: block; pointer-events: none; max-width: none; }
.wb-crop-all { width: 100%; height: 100%; opacity: .32; }
.wb-crop-r { position: absolute; cursor: move; outline: calc(2px / var(--wbs, 1)) solid var(--gold); }
.wb-crop-in { position: absolute; inset: 0; overflow: hidden; }
.wb-crop-in img { position: absolute; }
.wb-crop-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); transform: translate(-50%, -50%); }
.wb-crop-h::after { content: ""; position: absolute; inset: calc(-8px / var(--wbs, 1)); }
.wb-crop-h.nw { left: 0; top: 0; cursor: nwse-resize; } .wb-crop-h.n { left: 50%; top: 0; cursor: ns-resize; } .wb-crop-h.ne { left: 100%; top: 0; cursor: nesw-resize; }
.wb-crop-h.e { left: 100%; top: 50%; cursor: ew-resize; } .wb-crop-h.se { left: 100%; top: 100%; cursor: nwse-resize; } .wb-crop-h.s { left: 50%; top: 100%; cursor: ns-resize; }
.wb-crop-h.sw { left: 0; top: 100%; cursor: nesw-resize; } .wb-crop-h.w { left: 0; top: 50%; cursor: ew-resize; }
@media (pointer: coarse) { .wb-crop-h { width: calc(20px / var(--wbs, 1)); height: calc(20px / var(--wbs, 1)); } }
.wb-crop-bar { position: absolute; display: flex; gap: 2px; padding: 4px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45); transform-origin: 50% 0; transform: translate(-50%, calc(12px / var(--wbs, 1))) scale(calc(1 / var(--wbs, 1))); white-space: nowrap; }
.wb-crop-bar .wb-ib.sm { width: auto; padding: 0 10px; }
.ck-wb.presenting.pres-mag .wb-stage { cursor: grab; }
.ck-wb.presenting.pres-mag .wb-stage.mag-grab { cursor: grabbing; }
.wb-magk { margin-left: 4px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* a document on the board: the same card as a video, tall, read and scrolled inside */
.wb-vid-play.doc { border-radius: 14px; }
.wb-vid-play.doc svg rect { display: initial; }
.wb-vid-play.doc svg path { fill: none; transform: none; }
.wb-doc-go { font-size: 14px; font-weight: 600; }
.wb-vh { margin: 10px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.wb-vlinks { display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.wb-vlinks button { display: grid; gap: 1px; text-align: left; padding: 6px 8px; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; }
.wb-vlinks button:hover, .wb-vlinks button:focus-visible { background: var(--wash); }
.wb-vlinks b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-vlinks small { color: var(--mute); font-size: 12px; }

/* compare two versions of a document (board.js compareDialog, public/docdiff.js) */
.wb-cmp { width: min(760px, calc(100vw - 32px)); }
.wb-cmp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.wb-cmp-s { display: grid; gap: 10px; align-content: start; min-width: 0; margin: 0; padding: 12px; border: 1.5px solid var(--line); }
.wb-cmp-s legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.wb-cmp-l { display: grid; gap: 6px; font-size: 12.5px; color: var(--mute); }
.wb-cmp-l input { width: 100%; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.wb-cmp-l input:disabled { opacity: .45; }
.wb-cmp-or { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.wb-cmp-f { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ink); min-width: 0; }
.wb-cmp-f svg { width: 18px; height: 18px; flex: none; }
.wb-cmp-f b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wb-cmp-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--mute); cursor: pointer; }
.wb-cmp-x svg { width: 14px; height: 14px; }
.wb-cmp-msg { margin: 0 0 8px; font-size: 13px; color: var(--red); }
.wb-cmp-busy { margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.wb-cmp .wb-vfine { margin-bottom: 12px; line-height: 1.45; }
@media (max-width: 620px) { .wb-cmp-two { grid-template-columns: 1fr; } }
.wb-mbtn, .wb-vcmp { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; font: inherit; font-size: 13.5px; text-align: left; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); cursor: pointer; }
.wb-mbtn:hover, .wb-vcmp:hover { border-color: var(--ink); }
.wb-mbtn svg, .wb-vcmp svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* links and snippets of the project, picked onto the board (board.js fromProject) */
.wb-from { width: min(620px, calc(100vw - 32px)); }
.wb-from-q { width: 100%; font: inherit; padding: 8px 10px; margin: 4px 0 10px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.wb-from-list { max-height: min(52vh, 460px); overflow-y: auto; margin-bottom: 14px; border: 1.5px solid var(--line); padding: 4px 10px 8px; }
.wb-from-list .wb-vh { margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: var(--mute); }
.wb-from label.wb-from-r { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.wb-from label.wb-from-r[hidden] { display: none; }
.wb-from-t { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: baseline; width: 100%; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.wb-from-t:hover { background: var(--wash); }
.wb-from-t:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.wb-from-t:disabled { opacity: .5; cursor: default; }
.wb-from-t b { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-from-t small { font-size: 12px; color: var(--mute); }
.wb-from-r input { width: auto; flex: none; margin: 3px 0 0; }
.wb-from-r span { display: grid; gap: 2px; min-width: 0; }
.wb-from-r b { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-from-r small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-vmenu .wb-vcmp + .wb-vcmp { margin-top: -2px; }
.wb-sm-tools button[hidden] + button[hidden] + i { display: none; }

/* a see-through fill (owner, 7 Oct 2026, three ellipses laid over each other for a Venn: the one with a fill hid the others): the colour is a
   layer of its own at 45%, the border takes the colour's ink like an unfilled shape */
.wb-shape.soft { background: none !important; border-color: var(--bc, var(--ink)); }
.wb-shape.soft::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--paper); opacity: .45; pointer-events: none; }
.wb-shape.soft[data-c="green"]::before { background: var(--note-green); } .wb-shape.soft[data-c="blue"]::before { background: var(--note-blue); }
.wb-shape.soft[data-c="red"]::before { background: var(--note-pink); } .wb-shape.soft[data-c="violet"]::before { background: var(--note-violet); }
.wb-shape.soft[data-c="amber"]::before { background: var(--note-yellow); }
.wb-shape.dia.soft::before { content: none; } .wb-shape.dia.soft polygon { fill-opacity: .45; }
.wb-ib[data-wb="nofill"][data-fill="soft"] { box-shadow: inset 0 -3px 0 var(--mute); } .wb-ib[data-wb="nofill"][data-fill="none"] { box-shadow: inset 0 -3px 0 var(--ink); }
.wb-sm-svg ellipse { fill: var(--paper); stroke: var(--ink); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.wb-sm-svg ellipse.soft { fill-opacity: .45; } .wb-sm-svg ellipse.c-blue { fill: var(--note-blue); stroke: var(--ft-blue); } .wb-sm-svg ellipse.c-red { fill: var(--note-pink); stroke: var(--ft-red); } .wb-sm-svg ellipse.c-amber { fill: var(--note-yellow); stroke: var(--ft-amber); }
.wb-sm-svg :is(rect, polygon).c-green { fill: var(--note-green); } .wb-sm-svg :is(rect, polygon).c-blue { fill: var(--note-blue); } .wb-sm-svg :is(rect, polygon).c-red { fill: var(--note-pink); } .wb-sm-svg :is(rect, polygon).c-amber { fill: var(--note-yellow); } .wb-sm-svg :is(rect, polygon).c-violet { fill: var(--note-violet); }
.wb-sm-svg g.on ellipse { stroke: var(--gold); stroke-width: 3px; } .wb-sm-svg text.vl.b { font-weight: 700; }
@media (max-width: 700px) { .wb-sm-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wb-sm-kinds button { padding: 8px 4px; font-size: 12px; } }

/* Fingers on a picked thing (owner, 8 Oct 2026, on a phone: resizing a text "will make an arrow instead"): the corner handles were 12 px and the
   arrow dots sat 20 px out, so a finger meant for a handle often landed on a dot. On touch the handles are bigger with a wider hit area, the dots
   stand further out, and a text picked alone shows no dots at all (its sides set the width; the arrow tool still draws from it). */
@media (pointer: coarse) {
  .wb-h:not(.end):not(.col):not(.side):not(.ins) { width: calc(20px / var(--wbs, 1)); height: calc(20px / var(--wbs, 1)); }
  .wb-h.nw { left: calc(-10px / var(--wbs, 1)); top: calc(-10px / var(--wbs, 1)); } .wb-h.ne { right: calc(-10px / var(--wbs, 1)); top: calc(-10px / var(--wbs, 1)); }
  .wb-h.sw { left: calc(-10px / var(--wbs, 1)); bottom: calc(-10px / var(--wbs, 1)); } .wb-h.se { right: calc(-10px / var(--wbs, 1)); bottom: calc(-10px / var(--wbs, 1)); }
  .wb-h:not(.col)::after { content: ""; position: absolute; inset: calc(-10px / var(--wbs, 1)); }
  .wb-cn.n { top: calc(-40px / var(--wbs, 1)); } .wb-cn.s { bottom: calc(-40px / var(--wbs, 1)); }
  .wb-cn.w { left: calc(-40px / var(--wbs, 1)); } .wb-cn.e { right: calc(-40px / var(--wbs, 1)); }
  .wb-cn::after { inset: calc(-6px / var(--wbs, 1)); }
  .wb-sel.txt .wb-cn { display: none; }
  .wb-h.side { z-index: 2; } .wb-h.side::after { inset: 0 calc(-12px / var(--wbs, 1)); } /* sides: wide to the left and right, not up and down */
  .wb-h:not(.side):not(.end):not(.col) { z-index: 3; } .wb-h:not(.side):not(.end):not(.col):not(.ins)::after { inset: calc(-6px / var(--wbs, 1)); } /* corners stay reachable on a short text */
  .wb-h.side.w { left: calc(-30px / var(--wbs, 1)); } .wb-h.side.e { right: calc(-30px / var(--wbs, 1)); } /* the sides stand clear of the corners, so a short text has room for both */
  .wb-h.side.n { top: calc(-30px / var(--wbs, 1)); } .wb-h.side.s { bottom: calc(-30px / var(--wbs, 1)); }
  /* a text picked alone (a label is short): small corners that stand outside it, so its words stay readable while it is picked */
  .wb-sel.txt .wb-h:not(.end):not(.col):not(.side) { width: calc(14px / var(--wbs, 1)); height: calc(14px / var(--wbs, 1)); border-radius: 50%; }
  .wb-sel.txt .wb-h.nw { left: calc(-20px / var(--wbs, 1)); top: calc(-20px / var(--wbs, 1)); } .wb-sel.txt .wb-h.ne { right: calc(-20px / var(--wbs, 1)); top: calc(-20px / var(--wbs, 1)); }
  .wb-sel.txt .wb-h.sw { left: calc(-20px / var(--wbs, 1)); bottom: calc(-20px / var(--wbs, 1)); } .wb-sel.txt .wb-h.se { right: calc(-20px / var(--wbs, 1)); bottom: calc(-20px / var(--wbs, 1)); }
  .wb-sel.txt .wb-h.side.w { left: calc(-34px / var(--wbs, 1)); } .wb-sel.txt .wb-h.side.e { right: calc(-34px / var(--wbs, 1)); }
}
/* the tool row on a phone scrolls sideways: its cut-off end fades, so it says there is more (class set by board.js toolFade) */
.wb-tools { scroll-padding-inline: 36px; }
.wb-tools.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.wb-tools.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.wb-tools.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
/* The Scenes panel is never taller than the window (owner, same day: on a phone Present, Download PDF and Share were cut off below the screen
   and the panel did not scroll): the panel scrolls, the buttons stay at its foot. */
.wb-scn { max-height: calc(100dvh - 64px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; } /* the scrollbar took the row's last icon and a sideways bar appeared */
.wb-scn .wb-scacts { position: sticky; bottom: -10px; margin: 0 -12px -10px; padding: 8px 12px 10px; background: var(--paper); border-top: 1px solid var(--line); }
@media (max-width: 760px), (max-height: 760px) { .wb-scn .wb-scl { max-height: none; overflow: visible; } }

/* learning tools (public/learn.js): a card with a title strip to move it by, the drawing, and its controls */
.wb-math { background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .45); overflow: hidden; }
.wb-math .lt { display: grid; grid-template-rows: 30px minmax(0, 1fr) auto; height: 100%; color: var(--ink); }
.wb-math .lt-bar { display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--wash); border-bottom: 1px solid var(--line); cursor: move; min-width: 0; }
.wb-math .lt-bar b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-math .lt-bar small { margin-left: auto; font-size: 11px; color: var(--mute); white-space: nowrap; }
.wb-math .lt-view { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px; }
.wb-math .lt-view svg { width: 100%; height: 100%; display: block; }
.wb-math .lt-view[data-lt] { cursor: grab; touch-action: none; }
.wb-math .lt-ctl { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 10px 10px; border-top: 1px solid var(--line); font-size: 13px; user-select: none; -webkit-user-select: none; }
.wb-math .lt-ctl button { font: inherit; font-size: 13px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; min-height: 30px; padding: 0 10px; cursor: pointer; touch-action: manipulation; }
.wb-math .lt-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.wb-math .lt-ctl button:disabled { opacity: .45; cursor: default; }
.wb-math .lt-step { display: inline-flex; align-items: center; gap: 4px; }
.wb-math .lt-step > span { color: var(--mute); margin-right: 2px; }
.wb-math .lt-step button { width: 30px; padding: 0; font-weight: 700; }
.wb-math .lt-step b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.wb-math .lt-step i { font-style: normal; color: var(--mute); padding: 0 2px; }
.wb-math .lt-seg { display: inline-flex; gap: 0; }
.wb-math .lt-seg button { border-radius: 0; margin-left: -1.5px; }
.wb-math .lt-seg button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.wb-math .lt-seg button:last-child { border-radius: 0 6px 6px 0; }
.wb-math .lt-rng { display: grid; gap: 2px; min-width: 130px; flex: 1 1 130px; flex-direction: column; font-size: 12px; color: var(--mute); }
.wb-math .lt-rng b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wb-math .lt-rng input { width: 100%; accent-color: var(--ink); margin: 0; touch-action: pan-x; }
.wb-math .lt-fxs { display: grid; gap: 4px; width: 100%; }
.wb-math .lt-fx { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); align-items: center; gap: 6px; flex-direction: row; color: var(--ink); font-size: 13px; }
.wb-math .lt-fx i { width: 12px; height: 12px; border-radius: 50%; }
.wb-math .lt-fx input { font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 0; user-select: text; -webkit-user-select: text; }
.wb-math .lt-fx input:focus { border-color: var(--ink); outline: none; }
.wb-math .lt-err { grid-column: 3; color: var(--red); font-size: 12px; }
.wb-math .lt-hint { width: 100%; color: var(--mute); font-size: 12px; }
.wb-math .lt-cubegrid { display: grid; gap: 3px; }
.wb-math .lt-ctl .lt-cell { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 4px; background: var(--note-blue); font-weight: 700; font-variant-numeric: tabular-nums; }
/* charts (board.js chartPaint / chartDialog, public/charts.js): the picture fills the item; every mark has its numbers in a title */
.wb-math.wb-ch { border: 1px solid var(--faint); border-radius: 10px; box-shadow: 0 8px 20px -16px rgba(0, 0, 0, .4); }
.wb-math .ch-box { width: 100%; height: 100%; }
.wb-math .ch-box svg, .wb-chart .wc-prev svg { display: block; width: 100%; height: 100%; }
.wb-math .ch-m { transition: opacity .12s; }
.wb-math .ch-m:hover { opacity: .78; }
.wb-chart { width: min(980px, calc(100vw - 32px)); }
.wc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.wc-side { display: grid; gap: 10px; min-width: 0; max-height: min(64vh, 620px); overflow-y: auto; padding-right: 4px; }
.wc-main { position: sticky; top: 0; min-width: 0; }
.wc-prev { aspect-ratio: 560 / 340; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.wc-note { min-height: 1.4em; margin: 8px 0 0; font-size: 12.5px; color: var(--mute); }
.wc-h { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--mute); }
.wc-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-seg button, .wc-types button { font: inherit; font-size: 13px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.wc-seg button[aria-pressed="true"], .wc-types button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.wc-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wc-types button { display: flex; align-items: center; gap: 6px; border-radius: 8px; padding: 6px 8px; min-width: 0; }
.wc-types button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-types svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wc-f { display: grid; gap: 4px; min-width: 0; font-size: 13px; }
.wc-f > span { font-size: 12px; color: var(--mute); }
.wc-f textarea { font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 120px; tab-size: 12; }
.wc-f.sm { flex: 1 1 140px; }
.wc-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; }
.wc-chk { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-size: 13px; }
.wc-vc { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-pill { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px; max-width: 100%; }
.wc-pill:has(input:checked) { border-color: var(--ink); }
.wc-side .hint { margin: 0; font-size: 12.5px; }
@media (max-width: 760px) {
  .wc-grid { grid-template-columns: minmax(0, 1fr); }
  .wc-main { position: static; order: -1; }
  .wc-side { max-height: none; overflow: visible; }
  .wc-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wb-learn { width: min(640px, calc(100vw - 32px)); }
.wb-ln-lv { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.wb-ln-lv button { font: inherit; font-size: 13px; padding: 5px 12px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer; }
.wb-ln-lv button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.wb-ln-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; max-height: min(56vh, 480px); overflow-y: auto; margin-bottom: 14px; }
.wb-ln-t { display: grid; gap: 4px; text-align: left; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; cursor: pointer; }
.wb-ln-t:hover, .wb-ln-t:focus-visible { border-color: var(--ink); }
.wb-ln-t b { font-size: 14px; }
.wb-ln-t small { font-size: 12.5px; color: var(--mute); line-height: 1.35; }
.wb-ln-t i { font-style: normal; font-size: 11.5px; color: var(--mute); }

/* where circles meet (board.js regionFit / regionSvg): the box itself takes no presses, only the clipped part does */
.wb-shape.region { border: 0 !important; background: none !important; padding: 0; pointer-events: none; }
.wb-shape.region::before { content: none !important; }
.wb-shape.region.gone { visibility: hidden; }
.wb-shape.region .wb-reg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wb-shape.region .wb-reg rect { pointer-events: all; fill: var(--paper); }
.wb-shape.region[data-c="green"] .wb-reg rect { fill: var(--note-green); } .wb-shape.region[data-c="blue"] .wb-reg rect { fill: var(--note-blue); }
.wb-shape.region[data-c="red"] .wb-reg rect { fill: var(--note-pink); } .wb-shape.region[data-c="violet"] .wb-reg rect { fill: var(--note-violet); }
.wb-shape.region[data-c="amber"] .wb-reg rect { fill: var(--note-yellow); }
.wb-shape.region.soft .wb-reg rect { fill-opacity: .55; }
.wb-shape.region.hollow .wb-reg rect { fill: transparent; }
.wb-shape.region .wb-text { position: relative; pointer-events: none; }
.wb-shape.region.editing .wb-text { pointer-events: auto; }
/* the words of a Venn beside it, with a line to their part (smartPreview `lead`) */
.wb-sm-svg path.lg { stroke: var(--ink); stroke-width: 1.2px; } .wb-sm-svg circle.lg { fill: var(--ink); stroke: none; }
/* Bedah PDF: the dialog that lays a PDF's pages on the board (board.js pdfPages) */
.wb-pdf form { max-width: 520px; }
.wb-pdf-f { margin: 4px 0 12px; overflow-wrap: anywhere; }
.wb-pdf-g { display: grid; gap: 10px; }
.wb-pdf-g label { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); }
.wb-pdf-g label > span { display: flex; align-items: center; gap: 6px; }
.wb-pdf-g input[type="number"] { width: 72px; }
.wb-pdf-g .wb-pdf-ck { justify-content: flex-start; align-items: flex-start; }
.wb-pdf-ck input { margin-top: 3px; }
.wb-pdf-bar { height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; margin: 6px 0 2px; }
.wb-pdf-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.wb-pdfpick form { max-width: 480px; }
.wb-pk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 4px 0 8px; }
.wb-pk-top label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); flex: 1 1 200px; min-width: 0; }
.wb-pk-top input { flex: 1 1 auto; min-width: 0; }
.wb-pk-q { display: flex; gap: 4px; }
.wb-pk-l { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: max-content; gap: 2px; max-height: min(52vh, 420px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.wb-pk-l label { display: grid; grid-template-columns: auto 22px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.wb-pk-l label:hover { background: var(--wash); }
.wb-pk-l b { font-variant-numeric: tabular-nums; color: var(--mute); font-weight: 600; text-align: right; }
.wb-pk-l canvas { width: 72px; height: 43px; max-width: 72px; max-height: 43px; object-fit: contain; border-radius: 4px; background: var(--wash); }
.wb-pk-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-pk-l input:not(:checked) ~ canvas, .wb-pk-l input:not(:checked) ~ span { opacity: .45; }
.wb-pdfpick .btn.primary svg { width: 16px; height: 16px; }
/* label lines: the label button asks where (board.js tagPickStart); a picked label shows its dot as a handle */
.wb-stage.wb-picking, .wb-stage.wb-picking .wb-item { cursor: crosshair !important; }
.wb-sel .wb-h.tagdot { border-radius: 50%; background: var(--paper); border-color: var(--ink); }
/* checklists in a note, a shape or a text (owner, 9 Oct 2026): the box is drawn here, the words stay the item's own text ("[ ] " / "[x] ") */
.wb-cl { display: inline-flex; align-items: baseline; gap: .38em; width: 100%; max-width: 100%; vertical-align: top; text-align: left; }
/* lists and a title in a note (owner, 31 Oct 2026: "i write some titles, and press 1. item 1 ... it rendered badly"; board.js textRows): the mark
   in its own column, the words wrapping under the words, a little room between items; the stored words keep their marks */
.wb-li { display: inline-flex; align-items: baseline; gap: .42em; width: 100%; max-width: 100%; vertical-align: top; text-align: left; }
.wb-lim { flex: none; text-align: right; font-variant-numeric: tabular-nums; white-space: pre; }
.wb-li:not(.num) .wb-lim { min-width: .62em; text-align: center; }
.wb-lit { flex: 1 1 auto; min-width: 0; white-space: inherit; }
.wb-li + .wb-li, .wb-cl + .wb-cl { margin-top: .18em; }
.wb-lh { display: inline-block; width: 100%; max-width: 100%; vertical-align: top; font-weight: 700; letter-spacing: .01em; padding-bottom: .12em; }
.wb-li + .wb-lh, .wb-cl + .wb-lh { margin-top: .4em; }
/* WhatsApp's marks in the words (board.js fmtRuns): *bold* _italic_ ~struck~ `code`; the marks stay in the stored words */
.wb-text b { font-weight: 700; } .wb-text i { font-style: italic; } .wb-text s { text-decoration: line-through; }
.wb-text code.wb-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; padding: 0 .2em; border-radius: .2em; background: color-mix(in srgb, currentColor 10%, transparent); }
.wb-text.tight .wb-li, .wb-text.tight .wb-cl, .wb-text.tight .wb-lh { margin-top: 0; padding-bottom: 0; }
.wb-ck { flex: none; display: inline-grid; place-items: center; width: .9em; height: .9em; border: max(1.5px, .08em) solid currentColor; border-radius: .16em; transform: translateY(.1em); cursor: pointer; font-size: inherit; line-height: 1; }
.wb-cl.done .wb-ck { background: currentColor; }
.wb-cl.done .wb-ck::after { content: ""; width: .28em; height: .5em; border: solid var(--paper); border-width: 0 .12em .12em 0; transform: translateY(-.06em) rotate(45deg); }
.wb-cl.done .wb-clt { text-decoration: line-through; opacity: .58; }
.wb-clt { min-width: 0; white-space: inherit; }
.wb-item.editing .wb-ck { pointer-events: none; }
.wb-ck { position: relative; } .wb-ck::before { content: ""; position: absolute; inset: -.4em; } /* a finger needs more than the box */

/* Trace (traceDialog in board.js, public/trace.js): a filled outline is a pen item with `area`; its colour is the
   picture's own (`--sc` set from data.hex) or a board ink */
.wb-stroke.area .vis { fill: var(--sc, var(--ink)); stroke: var(--sc, var(--ink)); stroke-width: .8px; marker-end: none; }
.wb-stroke.area .hit { fill: transparent; stroke-width: 2px; }
.wb-trace form { max-width: 560px; }
.wb-tr-mode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 10px 0; }
.wb-tr-mode label { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.wb-tr-mode label.on { border-color: var(--ink); background: var(--wash); }
.wb-tr-mode input { margin-top: 3px; flex: none; accent-color: var(--ink); }
.wb-tr-mode span { min-width: 0; }
.wb-tr-mode b { display: block; font-size: 14px; color: var(--ink); }
.wb-tr-mode small { display: block; color: var(--mute); font-size: 12px; line-height: 1.35; }
.wb-tr-view { position: relative; display: flex; justify-content: center; align-items: center; min-height: 160px; padding: 8px; border-radius: 8px; background: var(--wash); }
.wb-tr-view canvas { display: block; max-width: 100%; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.wb-tr-wait { position: absolute; inset: auto 8px 8px auto; margin: 0; padding: 2px 8px; border-radius: 6px; background: var(--paper); color: var(--mute); font-size: 12px; }
.wb-tr-say { min-height: 1.4em; margin: 6px 0 8px; }
.wb-tr-g { display: grid; gap: 8px; margin-bottom: 10px; }
.wb-tr-g label { display: grid; flex-direction: row; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.wb-tr-g input[type="range"] { width: 100%; accent-color: var(--ink); }
.wb-tr-g output { min-width: 2ch; text-align: right; color: var(--ink); font-weight: 600; }
.wb-tr-g .wb-tr-ck { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 14px; }
.wb-tr-ck input { margin-top: 3px; accent-color: var(--ink); }
.wb-tr-pic { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 520px) { .wb-tr-mode { grid-template-columns: minmax(0, 1fr); } }

/* a callout: words in a thin box (data.box); a label line leaves from the box's side. The padding sits on the words, so a text's own
   measuring (growText: scrollWidth / scrollHeight) and the picture export (textOf reads the padding) both include it */
.wb-item.wb-text.boxed { border: 1.5px solid var(--tc, var(--ink)); background: var(--paper); border-radius: 2px; }
.wb-item.wb-text.boxed .wb-text { padding: 6px 12px; box-sizing: border-box; }

/* the list: a section's head carries its rename; cards drag into sections (fine pointers) */
.wb-sechrow { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 8px; }
.wb-sechrow .wb-sech { border-bottom: 0; margin: 0; flex: 1; min-width: 0; }
.wb-secren { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; background: none; color: var(--mute); cursor: pointer; opacity: 0; }
.wb-sechrow:hover .wb-secren, .wb-secren:focus-visible { opacity: 1; }
/* the order of the sections: a grip to drag (mouse), two arrows on the heading, and Sort sections in the bar (owner, 26 Oct 2026) */
.wb-secgrip { flex: none; display: grid; place-items: center; width: 22px; height: 30px; color: var(--mute); cursor: grab; touch-action: none; opacity: .35; }
.wb-sechrow:hover .wb-secgrip { opacity: 1; }
.wb-secmv { flex: none; display: inline-flex; gap: 2px; opacity: 0; }
.wb-sechrow:hover .wb-secmv, .wb-secmv:focus-within { opacity: 1; }
.wb-secmv button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; background: none; color: var(--ink-2, var(--mute)); cursor: pointer; }
.wb-secmv button:hover, .wb-secmv button:focus-visible { border-color: var(--ink); color: var(--ink); }
.wb-secmv button:disabled { opacity: .25; cursor: default; border-color: transparent; }
@media (hover: none) { .wb-secmv { opacity: 1; } .wb-secmv button { width: 36px; height: 36px; } }
.wb-sec.wb-secmoving { opacity: .45; }
.wb-sec.drop-b { box-shadow: 0 -3px 0 var(--gold); }
.wb-sec.drop-a { box-shadow: 0 3px 0 var(--gold); }
body.wb-secdragging, body.wb-secdragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.wb-sec.wb-secflash > .wb-sechrow { background: var(--wash); transition: background .6s; }
.wb-secsortb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.wb-secsortb:hover, .wb-secsortb:focus-visible { border-color: var(--ink); }
@media (max-width: 560px) { .wb-secsortb span { display: none; } .wb-secsortb { width: 34px; justify-content: center; padding: 0; } }
.wb-secren:hover { color: var(--ink); background: var(--wash); }
@media (hover: none) { .wb-secren { opacity: 1; } }
.wb-secin { font: inherit; font-size: 14px; font-weight: 600; width: min(320px, 100%); margin: 0 0 8px; }
.wb-card.wb-dragging { opacity: .4; }
.wb-dnd [data-wb-drop] { transition: background-color .12s, outline-color .12s; }
.wb-dnd .wb-sec, .wb-dnd .wb-list[data-wb-drop] { outline: 1.5px dashed transparent; outline-offset: 4px; }
.wb-dnd .wb-drop-on { outline-color: var(--gold) !important; background: color-mix(in srgb, var(--gold) 8%, transparent); }
.wb-secnew { margin: 14px 0 0; padding: 18px 12px; border: 1.5px dashed var(--line); color: var(--mute); text-align: center; font-size: 13.5px; }
.wb-secnew.wb-drop-on { border-color: var(--gold); color: var(--ink); outline: none; }

/* the highlighter: a box in a highlighter colour that blends with what lies under it (the words stay sharp, as with a highlighter pen) */
.wb-shape.mark { border: 0 !important; border-radius: 3px; padding: 0; mix-blend-mode: multiply; background: var(--hl-yellow) !important; }
.wb-shape.mark[data-c="green"] { background: var(--hl-green) !important; }
.wb-shape.mark[data-c="blue"] { background: var(--hl-blue) !important; }
.wb-shape.mark[data-c="red"] { background: var(--hl-pink) !important; }
.wb-shape.mark[data-c="violet"] { background: var(--hl-violet) !important; }
/* emphasis: a bold ring and a soft glow in the item's colour (red by default); three pulses when it appears */
.wb-item.glow { box-shadow: 0 0 0 3px var(--gc, var(--red)), 0 0 22px 5px color-mix(in srgb, var(--gc, var(--red)) 50%, transparent); }
.wb-item.glow.pulse { animation: wbPulse 1.2s ease-in-out 3; }
@keyframes wbPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--gc, var(--red)), 0 0 22px 5px color-mix(in srgb, var(--gc, var(--red)) 50%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--gc, var(--red)) 75%, transparent), 0 0 40px 16px color-mix(in srgb, var(--gc, var(--red)) 38%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .wb-item.glow.pulse { animation: none; } }
.wb-sm-svg.mind g.on rect { stroke: var(--gold) !important; stroke-width: 3px !important; }

/* a card for something else of the project (public/refs.js): paper, the kind on the bar, the card fills the rest; the bar drags it */
.wb-video.rfc { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; grid-template-rows: 26px minmax(0, 1fr); }
.wb-video.rfc .wb-vid-bar { background: var(--wash); }
.wb-video.rfc .wb-vid-t, .wb-video.rfc .wb-vid-b { color: var(--mute); }
.wb-video.rfc .wb-vid-t { line-height: 26px; font-size: 12px; }
.wb-video.rfc [data-vid="open"] { display: none; }
.wb-video.rfc .wb-vid-body { background: var(--paper); display: flex; align-items: center; padding: 6px 8px; min-height: 0; }
.wb-rfc { width: 100%; }
.wb-rfc .rf-card { max-width: none; border: 0; padding: 4px; box-shadow: none; }
.wb-rfc .rf-card .rf-ic { width: 44px; height: 44px; }

/* the project's Notes beside the board (13 Oct 2026): pages, a page to read, put it or a part of it on the board */
.wb-np { top: 58px; right: 8px; width: 380px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.wb-npq { width: 100%; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.wb-npl { display: grid; gap: 1px; }
.wb-npi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 6px 7px calc(6px + var(--d, 0) * 14px); border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.wb-npi:hover, .wb-npi:focus-visible { background: var(--wash); outline: none; }
.wb-npi i { flex: none; width: 18px; font-style: normal; text-align: center; }
.wb-npi i.pg svg { width: 15px; height: 15px; color: var(--mute); }
.wb-npi span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-npi small { color: var(--mute); font-size: 11.5px; }
.wb-nph { display: flex; align-items: center; gap: 6px; position: sticky; top: -10px; z-index: 1; margin: -10px -12px 0; padding: 8px 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
.wb-nph b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-npput { display: grid; gap: 6px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.wb-npput > span { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); }
.wb-npput > div { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-npput .btn { display: inline-flex; align-items: center; gap: 5px; }
.wb-npput .btn svg { width: 15px; height: 15px; }
.wb-npput label { font-size: 12.5px; color: var(--mute); gap: 6px; align-items: center; }
.wb-npdoc { display: grid; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.wb-nps { display: grid; gap: 2px; }
.wb-npt { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.wb-npt b { flex: 1; min-width: 0; font-size: 14px; }
.wb-npl1 { display: flex; align-items: center; gap: 6px; padding: 3px 0 3px calc(var(--d, 0) * 14px); border-radius: 3px; }
.wb-npl1 span { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.wb-npl1 .wb-ib, .wb-npt .wb-ib { flex: none; opacity: .35; }
.wb-npl1:hover, .wb-npl1:focus-within { background: var(--wash); }
.wb-npl1:hover .wb-ib, .wb-npt:hover .wb-ib, .wb-npl1 .wb-ib:focus-visible, .wb-npt .wb-ib:focus-visible { opacity: 1; }
@media (hover: none) { .wb-npl1 .wb-ib, .wb-npt .wb-ib { opacity: .8; } }
.wb-nptb { display: grid; gap: 4px; overflow-x: auto; }
.wb-nptb table { border-collapse: collapse; font-size: 12px; }
.wb-nptb td, .wb-nptb th { border: 1px solid var(--line); padding: 3px 6px; text-align: left; vertical-align: top; }
.wb-nptb small { color: var(--mute); font-size: 11.5px; }
.wb-nptb .btn { justify-self: start; display: inline-flex; gap: 5px; align-items: center; }
.wb-nptb .btn svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .wb-np { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-width: none; max-height: 70dvh; border-width: 1px 0 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }

/* the map in the corner: everything on the board small, the screen as a frame; a press goes there, a drag moves (owner, 14 Oct 2026) */
.wb-nav { position: absolute; right: 12px; bottom: 12px; z-index: 6; width: var(--mw, 188px); height: var(--mh, 100px); background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.wb-nav[hidden] { display: none; }
.wb-nav canvas { display: block; }
.wb-nav-v { position: absolute; border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--gold) 14%, transparent); pointer-events: none; box-sizing: border-box; }
.wb-nav.dragging { cursor: grabbing; }
.wb-nav-t { position: absolute; top: -1px; right: -1px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--mute); cursor: pointer; opacity: 0; transition: opacity .15s; }
.wb-nav:hover .wb-nav-t, .wb-nav-t:focus-visible, .wb-nav.off .wb-nav-t { opacity: 1; }
.wb-nav-t svg { width: 14px; height: 14px; }
.wb-nav.off { width: 34px; height: 34px; background: none; border: 0; box-shadow: none; }
.wb-nav.off canvas, .wb-nav.off .wb-nav-v { display: none; }
.wb-nav.off .wb-nav-t { top: 0; right: 0; width: 34px; height: 34px; color: var(--ink); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .45); }
.wb-nav.off .wb-nav-t svg { width: 16px; height: 16px; }
.ck-wb.presenting .wb-nav { display: none; }
@media (hover: none) { .wb-nav-t, .wb-nav-c { opacity: 1; } }
/* the map's corner (data-at, per device) and its size (.big) */
.wb-nav-c { position: absolute; top: -1px; right: 22px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--mute); cursor: pointer; opacity: 0; transition: opacity .15s; }
.wb-nav-c svg { width: 14px; height: 14px; }
.wb-nav:hover .wb-nav-c, .wb-nav-c:focus-visible, .wb-nav:has(.wb-nav-pk) .wb-nav-c { opacity: 1; }
.wb-nav.off .wb-nav-c { display: none; }
.wb-nav[data-at="bl"], .wb-nav[data-at="tl"] { right: auto; left: 12px; }
.wb-nav[data-at="tl"], .wb-nav[data-at="tr"] { bottom: auto; top: 12px; }
.wb-nav[data-at$="l"] .wb-nav-t { right: auto; left: -1px; }
.wb-nav[data-at$="l"] .wb-nav-c { right: auto; left: 22px; }
.wb-nav.off[data-at$="l"] .wb-nav-t { left: 0; }
.wb-nav-pk { position: absolute; right: -1px; bottom: calc(100% + 8px); z-index: 2; display: grid; gap: 8px; width: 176px; padding: 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5); cursor: default; }
.wb-nav[data-at^="t"] .wb-nav-pk { bottom: auto; top: calc(100% + 8px); }
.wb-nav[data-at$="l"] .wb-nav-pk { right: auto; left: -1px; }
.wb-nav-pk p { margin: 0; font-size: 12.5px; font-weight: 600; }
.wb-nav-pg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px dashed var(--line); }
.wb-nav-pg button { position: relative; height: 40px; padding: 0; border: 1px solid var(--line); background: var(--wash); cursor: pointer; }
.wb-nav-pg button i { position: absolute; width: 18px; height: 12px; border: 1.5px solid var(--mute); background: var(--paper); }
.wb-nav-pg .c-tl i { left: 4px; top: 4px; } .wb-nav-pg .c-tr i { right: 4px; top: 4px; } .wb-nav-pg .c-bl i { left: 4px; bottom: 4px; } .wb-nav-pg .c-br i { right: 4px; bottom: 4px; }
.wb-nav-pg button.on { border-color: var(--ink); background: var(--paper); }
.wb-nav-pg button.on i { border-color: var(--ink); background: color-mix(in srgb, var(--gold) 30%, var(--paper)); }
.wb-nav-ps { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.wb-nav-ps button { height: 32px; padding: 0 6px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 12.5px; cursor: pointer; }
.wb-nav-ps button + button { border-left: 1px solid var(--line); }
.wb-nav-ps button.on { background: var(--ink); color: var(--on-ink); font-weight: 600; }
@media (pointer: coarse) { .wb-nav-pg button { height: 48px; } .wb-nav-ps button { height: 40px; } .wb-nav-c, .wb-nav-t { width: 30px; height: 30px; } .wb-nav-c { right: 28px; } .wb-nav[data-at$="l"] .wb-nav-c { left: 28px; } }
/* The view buttons beside the map (owner, 15 Oct 2026: "On phone ... we need like 1,2,3,4 features on laptop. But elegantly"): a slim pill on
   touch screens and narrow windows, under the map when it is open, beside its button when folded. A computer has the keys and the zoom popover. */
.wb-vd { display: none; }
@media (hover: none), (max-width: 700px) {
  .wb-vd { position: absolute; display: flex; align-items: center; gap: 0; padding: 2px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .45); cursor: default; }
  .wb-vd button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .wb-vd button svg { width: 18px; height: 18px; }
  .wb-vd button:active { background: var(--wash); }
  .wb-vd .wb-vd-z { width: auto; min-width: 44px; padding: 0 6px; font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--mute); border-right: 1px solid var(--line); }
  .wb-vd .wb-vd-p { color: var(--mute); }
  .wb-vd .wb-vd-p.on { color: var(--ink); }
  .wb-nav:not(.off):not([data-at^="t"]) { bottom: 58px; }
  .wb-nav:not(.off) .wb-vd { top: calc(100% + 6px); right: -1px; }
  .wb-nav.off .wb-vd { right: 40px; bottom: 0; }
  .wb-nav[data-at$="l"]:not(.off) .wb-vd { right: auto; left: -1px; }
  .wb-nav.off[data-at$="l"] .wb-vd { right: auto; left: 40px; }
  .wb-nav.off[data-at^="t"] .wb-vd { bottom: auto; top: 0; }
  .wb-nav:not(.off)[data-at^="b"] .wb-nav-pk { bottom: calc(100% + 8px); }
}
.ck-wb.wb-peek-stay .wb-stage { cursor: zoom-in; }
/* locked in place: picked, it shows a lock in the corner and solid edges; it never shows handles */
.wb-sel.locked { border-style: solid; border-color: var(--mute); }
.wb-lockmk { position: absolute; top: calc(-11px / var(--wbs, 1)); right: calc(-11px / var(--wbs, 1)); width: calc(22px / var(--wbs, 1)); height: calc(22px / var(--wbs, 1)); padding: calc(3px / var(--wbs, 1)); box-sizing: border-box; border-radius: 50%; background: var(--paper); color: var(--ink); border: calc(1px / var(--wbs, 1)) solid var(--mute); display: grid; place-items: center; }
.wb-lockmk svg { width: 100%; height: 100%; }
.ck-wb[data-mode="select"] .wb-item.locked { cursor: default; }
/* a schedule: times worked out from the minutes are muted, a day's line carries its total, over the minutes a day in red */
.wb-tbl td.clk { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-tbl td.clk.clkday { color: var(--ink); font-weight: 600; white-space: normal; }
.wb-tbl td.clk.clkover { color: var(--ft-red); }
/* a sum ending in "=": its answer right after it, drawn, never stored */
.wb-eq { margin-left: .2em; font-weight: 700; color: var(--ft-green); font-variant-numeric: tabular-nums; }
/* a tally: the foot of a receipt under the lines (a dashed rule, Total, the number); in a text it scales with the words */
.wb-note.calc { padding-bottom: calc(var(--ts, 16px) * 2.6); }
.wb-calc { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; align-items: baseline; gap: .45em; padding-top: .35em;
  border-top: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent); color: inherit; font-size: calc(var(--ts, 16px) * .9); line-height: 1.2;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; pointer-events: none; }
.wb-calc .k { font-size: .72em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.wb-calc .v { margin-left: auto; font-weight: 700; font-size: 1.15em; }
.wb-calc .d { font-size: .72em; opacity: .75; overflow: hidden; text-overflow: ellipsis; }
.wb-calc .d:empty { display: none; }
.wb-calc.over .v, .wb-calc.over .d { color: var(--ft-red); opacity: 1; }
.wb-item.wb-text.calc > .wb-calc { top: 100%; bottom: auto; left: 0; right: auto; min-width: 100%; margin-top: .25em; font-size: max(12px, calc(var(--ts, 22px) * .42)); color: var(--tc, var(--ink)); }

/* a Google file in a frame: one quiet line about why it may be blank, and a QR to open it on a phone */
.wb-doc-help { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; background: color-mix(in srgb, var(--stage) 92%, transparent); color: var(--on-stage); font-size: 12px; line-height: 1.35; border-top: 1px solid color-mix(in srgb, var(--on-stage) 18%, transparent); z-index: 1; }
.wb-doc-help span { flex: 1; min-width: 0; opacity: .85; }
.wb-doc-help button { flex: none; border: 1px solid color-mix(in srgb, var(--on-stage) 40%, transparent); background: none; color: var(--on-stage); border-radius: 6px; padding: 4px 8px; font: inherit; font-weight: 600; cursor: pointer; }
.wb-doc-help button[data-vid="nohelp"] { border: 0; padding: 2px; display: grid; place-items: center; }
.wb-doc-help button svg { width: 14px; height: 14px; }
.wb-doc-qr { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--stage); color: var(--on-stage); z-index: 2; cursor: pointer; text-align: center; padding: 16px; }
.wb-doc-qr canvas { width: 220px; height: 220px; border-radius: 8px; }
.wb-doc-qr p { margin: 0; max-width: 30ch; font-size: 13px; }
.ck-wb[data-mode]:not([data-mode="select"]) .wb-doc-help, .ck-wb[data-mode]:not([data-mode="select"]) .wb-doc-qr { pointer-events: none; }
.wb-bar .wb-vz { min-width: 38px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--mute); }

/* the grip of a thing that stays put (a big page, a table): a drag inside it moves the board, this moves the thing */
.wb-h.mv { left: calc(-36px / var(--wbs, 1)); top: calc(2px / var(--wbs, 1)); width: calc(28px / var(--wbs, 1)); height: calc(28px / var(--wbs, 1)); padding: calc(4px / var(--wbs, 1)); box-sizing: border-box; border-radius: calc(6px / var(--wbs, 1)); display: grid; place-items: center; color: var(--ink); cursor: move; touch-action: none; }
.wb-h.mv svg { width: 100%; height: 100%; pointer-events: none; }
@media (pointer: coarse) { .wb-h.mv { left: calc(-46px / var(--wbs, 1)); width: calc(38px / var(--wbs, 1)); height: calc(38px / var(--wbs, 1)); padding: calc(7px / var(--wbs, 1)); } }
/* a mind map: a folded branch is not drawn; the round button beside a box folds or opens what lies under it (like NotebookLM) */
.wb-hid { display: none !important; }
.wb-mf { position: absolute; top: 50%; right: -13px; width: 24px; height: 24px; margin-top: -12px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; touch-action: manipulation; }
.wb-mf.l { right: auto; left: -13px; }
.wb-mf::before { content: ""; width: 6px; height: 6px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateX(1.5px) rotate(45deg); }
.wb-mf.l::before { transform: translateX(-1.5px) rotate(-135deg); }
.wb-mf.folded { background: var(--ink); color: var(--on-ink); min-width: 24px; width: auto; padding: 0 6px; border-radius: 12px; right: -16px; }
.wb-mf.folded.l { right: auto; left: -16px; }
.wb-mf.folded::before { display: none; }
.wb-mf:disabled { cursor: default; }
.wb-mf:not(:disabled):hover, .wb-mf:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); outline: none; }
@media (pointer: coarse) { .wb-mf { width: 30px; height: 30px; margin-top: -15px; right: -16px; } .wb-mf.l { left: -16px; } .wb-mf.folded { min-width: 30px; } }
.wb-sm-note { margin: -4px 0 8px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--wash); font-size: 13px; color: var(--ink); }

/* Google files open by themselves, edit inside the card, where the keys go, and Call teammates (15 Oct 2026) */
.wb-vid-b.wb-vid-ed { width: auto; gap: 5px; padding: 0 8px; display: inline-flex; align-items: center; font: inherit; font-size: 12px; font-weight: 600; border-radius: 6px; }
.wb-vid-b.wb-vid-ed svg { width: 14px; height: 14px; }
.wb-vid-b.wb-vid-ed.on { background: var(--gold); color: var(--on-gold); opacity: 1; }
.wb-video.docedit { outline: calc(3px / var(--wbs, 1)) solid var(--gold); outline-offset: 0; }
.wb-video.infocus { box-shadow: 0 0 0 calc(6px / var(--wbs, 1)) color-mix(in srgb, var(--gold) 45%, transparent), 0 10px 20px -14px rgba(0, 0, 0, .45); }
.wb-doc-help { top: auto; }
.wb-infr { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 16; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; max-width: calc(100% - 24px);
  background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.35; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); }
.wb-infr[hidden] { display: none; }
.wb-infr span { min-width: 0; }
.wb-infr .btn { flex: none; background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.wb-call { width: min(640px, calc(100vw - 32px)); }
.wb-call-pic { display: grid; place-items: center; min-height: 120px; max-height: 46vh; overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
.wb-call-cv { display: block; max-width: 100%; max-height: 46vh; width: auto; height: auto; }
.wb-call-f { display: flex; flex-direction: column; gap: 6px; }
.wb-call-f textarea { width: 100%; font: inherit; resize: vertical; }
.wb-call-acts { flex-wrap: wrap; gap: 8px; }
.wb-call-exact { align-self: flex-start; }
.wb-call-why { margin-top: -8px; }
.wb-call.wb-away { opacity: 0; }
.wb-call.wb-away::backdrop { opacity: 0; }
@media (max-width: 700px) { .wb-infr { top: 8px; font-size: 12px; } }

/* review marks (21 Oct 2026): a ring with a mark, from the theme's tokens; the review list and the bar that steps through them */
.wb-math.wb-stamp { background: none; border: 0; box-shadow: none; overflow: visible; }
.wb-stamp .wb-box, .wb-stamp .wb-box svg { display: block; width: 100%; height: 100%; }
.wb-stamp .wb-box svg { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .28)); }
.wb-stamp.wb-flash { animation: wbStampFlash .9s ease-in-out 2; }
@keyframes wbStampFlash { 50% { scale: 1.6; } }
@media (prefers-reduced-motion: reduce) { .wb-stamp.wb-flash { animation: none; outline: 3px solid var(--gold); outline-offset: 3px; } }
.ck-wb[data-mode="stamp"] .wb-stage { cursor: crosshair; }
.wb-stp { width: 30px; height: 30px; padding: 2px; display: grid; place-items: center; background: none; border: 1.5px solid transparent; border-radius: 50%; cursor: pointer; }
.wb-stp svg { width: 24px; height: 24px; }
.wb-stp[aria-pressed="true"] { border-color: var(--ink); background: var(--wash); }
.wb-stpb svg { width: 22px; height: 22px; }
.wb-stpb[aria-pressed="true"] { background: var(--wash); box-shadow: inset 0 0 0 1.5px var(--ink); }
.wb-rv { width: min(560px, calc(100vw - 32px)); }
.wb-rv-k { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.wb-rv-k button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 3px 10px 3px 4px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer; }
.wb-rv-k button svg { width: 22px; height: 22px; }
.wb-rv-k button[aria-pressed="false"] { opacity: .45; }
.wb-rv-k button[aria-pressed="true"] { border-color: var(--ink); }
.wb-rv-list { max-height: min(52vh, 460px); overflow-y: auto; margin-bottom: 10px; }
.wb-rv-list section { margin-bottom: 10px; }
.wb-rv-list h3 { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; font-size: 13px; }
.wb-rv-list h3 button { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-width: 0; overflow-wrap: anywhere; }
.wb-rv-list h3 button:hover { text-decoration: underline; }
.wb-rv-list h3 span { margin-left: auto; color: var(--mute); font-weight: 500; white-space: nowrap; }
.wb-rv-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; font: inherit; font-size: 13.5px; text-align: left; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.wb-rv-row:hover, .wb-rv-row:focus-visible { background: var(--wash); }
.wb-rv-row svg { width: 22px; height: 22px; }
.wb-rv-row span { overflow-wrap: anywhere; }
.wb-rv-row small { color: var(--mute); font-size: 12px; white-space: nowrap; }
.wb-rv-none { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.wb-rv-none:empty { display: none; }
.wb-rv-none p { margin: 0; color: var(--mute); }
.wb-rv-none button { font: inherit; font-size: 12.5px; padding: 3px 9px; border: 1px dashed var(--mute); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer; }
.wb-rvbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 4px; padding: 4px; max-width: calc(100% - 24px); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .55); }
.wb-rvbar-i svg { width: 26px; height: 26px; display: block; }
.wb-rvbar-t { display: grid; min-width: 0; max-width: 340px; padding: 0 6px; }
.wb-rvbar-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-rvbar-t small { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .wb-rvbar { left: 12px; right: 12px; transform: none; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); } .wb-rvbar-t { flex: 1; max-width: none; } } /* left: 50% would hold it to half the width */
@media (max-width: 700px) { .ck-wb[data-mode="stamp"] .wb-colors .wb-erhint { display: none; } }
/* boards without a connection (BQ in board.js) */
.wb-save[data-s="local"] { color: var(--ft-blue); font-weight: 600; }
.wb-save[data-s="local"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ft-blue); vertical-align: 1px; }
.wb-wait { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ft-blue); margin-right: 6px; align-self: center; }
.wb-wait.stuck { background: var(--ft-red); }
.wb-off { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--ft-blue); background: var(--wash); color: var(--ink); font-size: 13px; }

/* words on the table's bar (owner, 22 Oct 2026): the schedule's start time, "Make it a schedule" when a table looks like one, and the column menu */
.wb-bar .wb-chipb { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; margin: 0 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.wb-bar .wb-chipb svg { width: 15px; height: 15px; flex: none; }
.wb-bar .wb-chipb:hover { background: var(--wash); }
.wb-bar .wb-chipb.sug { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.wb-bar .wb-chipb.on { border-color: var(--ink); }
.wb-colm { min-width: 260px; max-width: min(340px, calc(100vw - 16px)); }
.wb-colm-h { display: grid; gap: 2px; padding: 8px 12px 9px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wb-colm-h b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-colm-h span { font-size: 12.5px; color: var(--mute); }
/* a rundown typed, pasted or read from a picture, checked before it becomes a table */
.wb-rdn form { display: grid; gap: 10px; }
.wb-rdn-t { width: 100%; min-height: 180px; resize: vertical; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.wb-rdn-pv { max-height: 34vh; overflow: auto; border: 1px solid var(--line); padding: 8px 10px; }
.wb-rdn-pv ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wb-rdn-pv li { display: grid; grid-template-columns: 112px 64px minmax(0, 1fr); gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.wb-rdn-pv li span:first-child { font-weight: 600; }
.wb-rdn-pv li span:nth-child(2) { color: var(--mute); white-space: nowrap; }
.wb-rdn-pv li.day { margin-top: 6px; font-weight: 600; }
.wb-rdn-pv li.day span:first-child { font-weight: 400; color: var(--mute); }
.wb-rdn-sum { margin: 0 0 6px; font-weight: 600; font-size: 13px; }
@media (max-width: 760px) { .wb-rdn-t { font-size: 16px; min-height: 140px; } .wb-rdn-pv li { grid-template-columns: 100px 66px minmax(0, 1fr); } } /* 16 px: iOS zooms into smaller boxes */

/* a grid that scrolls inside a max-height keeps each row at its full height (owner, 27 Oct 2026: the Move to list squeezed its rows and cut the words in half) */
.wb-gal-grid, .wb-scl, .wb-vmenu, .wb-vlinks, .wc-side, .wb-ln-list { grid-auto-rows: max-content; }
/* a table grouped by a column, like categories, and a pivot that follows a table (27 Oct 2026) */
.wb-tbl tr.wb-gh td { background: var(--wash); border-top: 2px solid var(--ink); height: auto; font-variant-numeric: tabular-nums; }
.wb-tbl td.wb-ghl b { font-weight: 700; }
.wb-tbl td.wb-ghl small { color: var(--mute); font-size: .86em; margin-left: 6px; white-space: nowrap; }
.wb-tbl td.wb-ghs { text-align: right; font-weight: 700; }
.wb-gf { font: inherit; line-height: 1; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 2px 6px 2px 0; min-width: 20px; touch-action: manipulation; }
.wb-gf:focus-visible { outline: 2px solid var(--gold); }
.wb-math.wb-pv { border: 1px solid var(--line); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .35); overflow: visible; }
.wb-pvt { width: auto; table-layout: auto; font-size: var(--pvs, 15px); }
.wb-pvt td { height: auto; white-space: normal; overflow-wrap: break-word; max-width: 18em; }
.wb-pvt td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-pvt td.h { white-space: normal; min-width: 5em; }
.wb-pvt td.k { text-align: right; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-pvt td.k.h { min-width: 0; }
.wb-pvt.wide td { max-width: none; }
.wb-pvw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; color: var(--mute); }
.wb-pvt tr.pv-cap td { border-color: transparent; padding: 9px 10px 7px; font-size: .95em; font-weight: 600; max-width: none; }
.wb-pvt tr.pv-cap small { display: block; color: var(--mute); font-size: .8em; font-weight: 400; }
.wb-pvt tr.wb-th td { background: var(--wash); }
.wb-pvt tr.pv-tot td { font-weight: 700; border-top: 2px solid var(--ink); background: var(--wash); }
.wb-pvd form { max-width: 560px; }
.wb-pvd .wb-pdf-g label > span { flex-wrap: wrap; justify-content: flex-end; }
.wb-pvd select { max-width: 100%; min-width: 0; }
.wb-pvp { margin: 12px 0 4px; max-height: min(40vh, 320px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--paper); }
.wb-pvp .wb-pvt { font-size: 13px; }
/* Arrange the pages (28 Oct 2026): a small panel over the board; every press moves the pages at once */
.wb-arr { position: absolute; z-index: 30; right: 12px; top: 12px; width: min(330px, calc(100% - 24px)); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .5); padding: 12px 14px 12px; display: grid; gap: 10px; font-size: 14px; }
.wb-arr-h { display: grid; gap: 2px; }
.wb-arr-h b { font-size: 15px; }
.wb-arr-h span, .wb-arr-say { color: var(--mute); font-size: 12.5px; margin: 0; line-height: 1.4; }
.wb-arr-r { display: grid; gap: 6px; }
.wb-arr-r > span { font-size: 12.5px; color: var(--mute); }
.wb-arr-cols { display: flex; flex-wrap: wrap; gap: 4px; }
.wb-arr-cols button { font: inherit; font-size: 13px; min-width: 34px; min-height: 32px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.wb-arr-cols button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.wb-arr-cols button:disabled { opacity: .35; cursor: default; }
.wb-arr-ck { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.wb-arr-ck input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.wb-arr-acts { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 700px) { .wb-arr { left: 8px; right: 8px; top: auto; bottom: 74px; width: auto; gap: 8px; padding: 10px 12px; max-height: 60vh; overflow: auto; } }
.ck-wb.arranging .wb-bar, .ck-wb.arranging .wb-sel { display: none !important; }
/* the scenes in order (28 Oct 2026): a number to type, a short list, To the start / To the end */
.wb-scn .wb-mh { display: flex; align-items: center; gap: 6px; }
.wb-scshort { margin-left: auto; font: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.wb-scshort[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.wb-scno { flex: none; width: 2.6em; font: inherit; font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; padding: 1px 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.wb-scno:hover { border-color: var(--mute); }
.wb-scno:focus { border-color: var(--gold); outline: none; }
.wb-scjump { margin-left: auto; display: inline-flex; flex: none; }
.wb-scjump .wb-ib { width: 28px; height: 28px; }
.wb-scjump .wb-ib svg { width: 15px; height: 15px; }
.wb-scl.short { gap: 0; }
.wb-scl.short li { padding: 2px 4px; gap: 6px; border-bottom-color: var(--line); }
.wb-scl.short .wb-scgo { width: 54px; height: 34px; }
.wb-scl.short .wb-scth { max-width: 52px; max-height: 32px; }
.wb-scl.short .wb-scmo, .wb-scl.short .wb-scbtns { display: none; }
.wb-scl.short .wb-scnm { align-items: center; }
.wb-scl li.moved { animation: wb-scmoved 1.2s ease-out; }
@keyframes wb-scmoved { from { background: color-mix(in srgb, var(--gold) 28%, var(--paper)); } to { background: var(--paper); } }
@media (prefers-reduced-motion: reduce) { .wb-scl li.moved { animation: none; border-color: var(--gold); } }
@media (hover: none) { .wb-scl.short li { padding: 4px; } .wb-scjump .wb-ib { width: 34px; height: 34px; } }
