:root {
  --wbl-navy: #052950;
  --wbl-navy-2: #0e3768;
  --wbl-blue: #dceeff;
  --wbl-blue-strong: #75b9ff;
  --wbl-yellow: #ffd450;
  --wbl-yellow-strong: #ffc52f;
  --wbl-ivory: #fbf9f3;
  --wbl-white: #fff;
  --wbl-text: #44536a;
  --wbl-muted: #69778b;
  --wbl-line: rgba(5, 41, 80, 0.14);
  --wbl-danger: #a92d2d;
  --wbl-success: #187047;
  --wbl-shadow: 0 22px 64px rgba(5, 41, 80, 0.11);
  --wbl-radius: 20px;
  --wbl-motion: 180ms;
}

.wbl,
.wbl *,
.wbl-app,
.wbl-app * {
  box-sizing: border-box;
}

.wbl,
.wbl-app {
  position: relative;
  width: 100%;
  color: var(--wbl-navy);
  font-family: "e-Ukraine", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.wbl button,
.wbl input,
.wbl select,
.wbl textarea,
.wbl-app button,
.wbl-app input,
.wbl-app select,
.wbl-app textarea {
  font: inherit;
}

.wbl button,
.wbl summary,
.wbl select,
.wbl-app button,
.wbl-app summary,
.wbl-app select {
  -webkit-tap-highlight-color: transparent;
}

.wbl button:focus-visible,
.wbl a:focus-visible,
.wbl input:focus-visible,
.wbl select:focus-visible,
.wbl textarea:focus-visible,
.wbl [tabindex]:focus-visible,
.wbl-app button:focus-visible,
.wbl-app a:focus-visible,
.wbl-app input:focus-visible,
.wbl-app select:focus-visible,
.wbl-app textarea:focus-visible,
.wbl-app [tabindex]:focus-visible {
  outline: 3px solid rgba(117, 185, 255, 0.82);
  outline-offset: 3px;
}

.wbl .screen-reader-text,
.wbl-app .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wbl svg,
.wbl-app svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The dedicated board route replaces the theme shell with the product UI. */
body.wings-board-lite-page .site-header,
body.wings-board-lite-page .site-footer,
body.wings-board-lite-page #enroll-modal {
  display: none !important;
}

body.wings-board-lite-page #main.section {
  min-height: 100svh;
  margin: 0;
  padding: 0;
}

body.wings-board-lite-page #main > .container,
body.wings-board-lite-page .page-content,
body.wings-board-lite-page .page-content > .text {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.wings-board-lite-page .wbl-app {
  width: 100%;
  min-height: 100svh;
}

body.wings-board-workspace-page {
  overflow: hidden;
}

body.wings-board-workspace-page .wbl-workspace__body {
  min-height: 0;
}

body.admin-bar.wings-board-lite-page #main.section,
body.admin-bar.wings-board-lite-page .wbl-app,
body.admin-bar.wings-board-lite-page .wbl-workspace,
body.admin-bar.wings-board-lite-page .wbl__shell {
  min-height: calc(100svh - 32px);
}

body.admin-bar.wings-board-lite-page .wbl-workspace__body {
  height: calc(100svh - 178px);
}

.wbl-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 52px;
  flex: none;
}

.wbl-brand img {
  display: block;
  width: 58px;
  height: 52px;
  object-fit: contain;
}

.wbl-brand--text {
  flex-direction: column;
  line-height: 1;
}

.wbl-brand--text strong {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.wbl-brand--text small {
  margin-top: 6px;
  color: var(--wbl-yellow-strong);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.wbl-button,
.wbl-icon-button,
.wbl-tool,
.wbl-zoom button {
  appearance: none;
  border: 0;
  color: var(--wbl-navy);
  cursor: pointer;
}

.wbl-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--wbl-line);
  border-radius: 14px;
  background: var(--wbl-white);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--wbl-motion) ease, background-color var(--wbl-motion) ease, border-color var(--wbl-motion) ease;
}

.wbl-button:hover {
  border-color: rgba(5, 41, 80, 0.28);
  background: var(--wbl-blue);
}

.wbl-button--primary,
.wbl-button--accent {
  border-color: var(--wbl-yellow-strong);
  background: var(--wbl-yellow);
}

.wbl-button--primary:hover,
.wbl-button--accent:hover {
  border-color: var(--wbl-navy);
  background: var(--wbl-navy);
  color: var(--wbl-white);
}

.wbl-button--quiet {
  background: rgba(255, 255, 255, 0.72);
}

.wbl-button--danger,
.wbl-button--danger-quiet:hover {
  border-color: var(--wbl-danger);
  background: var(--wbl-danger);
  color: var(--wbl-white);
}

.wbl-button--danger-quiet {
  border-color: rgba(169, 45, 45, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: var(--wbl-danger);
}

.wbl-button:disabled,
.wbl-icon-button:disabled,
.wbl-tool:disabled,
.wbl-zoom button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.wbl-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wbl-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color var(--wbl-motion) ease, background-color var(--wbl-motion) ease;
}

.wbl-icon-button:hover {
  border-color: rgba(5, 41, 80, 0.28);
  background: var(--wbl-blue);
}

/* Account/product navigation */
.wbl-account-nav,
.wbl-product-nav {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  min-height: 78px;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(18px, 3.2vw, 58px);
  border-bottom: 1px solid var(--wbl-line);
  background: rgba(255, 255, 255, 0.96);
}

.wbl-account-nav__brand,
.wbl-product-nav__brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 14px;
  color: var(--wbl-navy);
  font-weight: 700;
  text-decoration: none;
}

.wbl-account-nav__links,
.wbl-product-nav__links {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-self: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--wbl-line);
  border-radius: 999px;
}

.wbl-account-nav__links a,
.wbl-product-nav__links a {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--wbl-navy);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color var(--wbl-motion) ease, color var(--wbl-motion) ease;
}

.wbl-account-nav__links a:hover,
.wbl-product-nav__links a:hover {
  background: var(--wbl-blue);
}

.wbl-account-nav__links a[aria-current="page"],
.wbl-product-nav__links a[aria-current="page"] {
  background: var(--wbl-navy);
  color: var(--wbl-white);
}

.wbl-account-nav__user,
.wbl-product-nav__user {
  display: flex;
  width: max-content;
  justify-self: end;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
}

.wbl-account-nav__user a,
.wbl-product-nav__user a {
  margin-left: 5px;
  color: var(--wbl-muted);
  font-size: 11px;
  text-decoration: none;
}

.wbl-account-nav__avatar,
.wbl-product-nav__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wbl-yellow), var(--wbl-blue));
  color: var(--wbl-navy);
  object-fit: cover;
}

/* Board picker */
.wbl-picker {
  min-height: 100svh;
  background: var(--wbl-ivory);
}

.wbl-picker__main {
  width: min(1320px, calc(100% - clamp(32px, 6vw, 96px)));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 0 88px;
}

.wbl-picker__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
  margin-bottom: 44px;
}

.wbl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.wbl-eyebrow i {
  width: 12px;
  height: 12px;
  border: 3px solid var(--wbl-yellow-strong);
  border-radius: 50%;
  box-shadow: 5px 0 0 -2px var(--wbl-blue-strong);
}

.wbl-picker__hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--wbl-navy);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.wbl-picker__hero > div > p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--wbl-muted);
  font-size: 16px;
  line-height: 1.65;
}

.wbl-picker__hint {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--wbl-line);
  border-radius: 18px 18px 42px 18px;
  background: var(--wbl-white);
}

.wbl-picker__hint > svg {
  width: 24px;
  color: var(--wbl-navy);
}

.wbl-picker__hint p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.wbl-picker__hint span {
  color: var(--wbl-muted);
  font-size: 12px;
  line-height: 1.55;
}

.wbl-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wbl-board-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--wbl-line);
  border-radius: 24px;
  background: var(--wbl-white);
  transition: border-color var(--wbl-motion) ease, background-color var(--wbl-motion) ease;
}

.wbl-board-card:hover,
.wbl-board-card:focus-within {
  border-color: var(--wbl-blue-strong);
  background: #fcfeff;
}

.wbl-board-card.is-featured {
  box-shadow: inset 0 0 0 1px var(--wbl-yellow-strong);
}

.wbl-board-card__link {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.wbl-board-card__preview {
  position: relative;
  height: 190px;
  margin: 10px;
  overflow: hidden;
  border-radius: 17px 48px 17px 17px;
  background-color: #f5faff;
  background-image: linear-gradient(rgba(117, 185, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(117, 185, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
}

.wbl-board-card__preview span {
  position: absolute;
  display: block;
  border-radius: 12px;
  background: var(--wbl-white);
  box-shadow: 0 8px 24px rgba(5, 41, 80, 0.09);
}

.wbl-board-card__preview span:nth-child(1) { top: 32px; left: 34px; width: 46%; height: 44px; }
.wbl-board-card__preview span:nth-child(2) { top: 94px; left: 34px; width: 66%; height: 60px; background: #fff5c9; }
.wbl-board-card__preview span:nth-child(3) { top: 42px; right: 26px; width: 21%; height: 38%; background: var(--wbl-blue); }
.wbl-board-card__preview i { position: absolute; right: 18%; bottom: 15px; width: 72px; height: 3px; border-radius: 99px; background: var(--wbl-yellow-strong); transform: rotate(-8deg); }

.wbl-board-card__body {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.wbl-board-card__meta,
.wbl-board-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--wbl-muted);
  font-size: 10.5px;
}

.wbl-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--wbl-success);
  font-weight: 650;
}

.wbl-status-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.wbl-board-card h2 {
  margin: 18px 0 10px;
  color: var(--wbl-navy);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.wbl-board-card p {
  margin: 0;
  color: var(--wbl-muted);
  font-size: 12px;
}

.wbl-board-card__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--wbl-line);
}

.wbl-board-card__action {
  color: var(--wbl-navy);
  font-weight: 700;
}

.wbl-picker__empty {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 30px;
  text-align: center;
}

.wbl-picker__empty-art {
  position: relative;
  width: 170px;
  height: 112px;
  margin: 0 auto 28px;
  border: 1px solid var(--wbl-line);
  border-radius: 26px 54px 26px 26px;
  background: var(--wbl-blue);
}

.wbl-picker__empty h2 { margin: 0 0 12px; font-size: 26px; }
.wbl-picker__empty p { max-width: 540px; margin: 0 auto; color: var(--wbl-muted); }

/* Workspace */
.wbl-workspace,
.wbl__shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #edf6ff;
}

.wbl-workspace__topbar,
.wbl-topbar {
  position: relative;
  z-index: 32;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(360px, 1fr);
  min-height: 68px;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 2.2vw, 34px);
  border-bottom: 1px solid var(--wbl-line);
  background: rgba(255, 255, 255, 0.97);
}

.wbl-workspace__brand,
.wbl-topbar__identity,
.wbl-topbar__actions,
.wbl-workspace__actions,
.wbl-workspace__status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wbl-workspace__status { justify-content: center; }
.wbl-workspace__actions,
.wbl-topbar__actions { justify-self: end; }

.wbl-board-switcher,
.wbl-board-picker {
  position: relative;
  display: flex;
  align-items: center;
}

.wbl-board-switcher select,
.wbl-board-picker select {
  width: min(320px, 29vw);
  min-height: 44px;
  padding: 10px 42px 10px 15px;
  border: 1px solid var(--wbl-line);
  border-radius: 14px;
  appearance: none;
  background: var(--wbl-white);
  color: var(--wbl-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.wbl-board-switcher > svg,
.wbl-board-picker > svg {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.wbl-connection,
.wbl-save-status,
.wbl-permission-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wbl-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.wbl-connection > i,
.wbl-save-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wbl-success);
}

.wbl-connection[data-state="saving"] > i,
.wbl-save-status[data-state="saving"] > span { background: var(--wbl-yellow-strong); }
.wbl-connection[data-state="offline"] > i,
.wbl-save-status[data-state="offline"] > span,
.wbl-connection[data-state="error"] > i,
.wbl-save-status[data-state="error"] > span { background: var(--wbl-danger); }

.wbl-app.is-read-only .wbl-stage,
.wbl-app.is-read-only .wbl-canvas { cursor: grab; }

.wbl-presence,
.wbl-avatars {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.wbl-presence__avatar,
.wbl-avatars span {
  display: grid;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid var(--wbl-white);
  border-radius: 50%;
  background: var(--avatar-color, var(--wbl-blue));
  color: var(--wbl-navy);
  font-size: 9px;
  font-weight: 750;
}

.wbl-material-menu {
  position: relative;
}

.wbl-material-menu summary {
  list-style: none;
}

.wbl-material-menu summary::-webkit-details-marker { display: none; }

.wbl-material-menu__panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  width: 330px;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--wbl-line);
  border-radius: 18px;
  background: var(--wbl-white);
  box-shadow: var(--wbl-shadow);
}

.wbl-material-menu__panel button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--wbl-navy);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.wbl-material-menu__panel button:hover { background: var(--wbl-blue); }

.wbl-workspace__body,
.wbl-workspace {
  --wbl-toolbar-space: 82px;
  --wbl-participant-space: 282px;
}

.wbl-workspace__body,
.wbl-workspace:not(.wbl-app) .wbl-workspace {
  position: relative;
  min-height: 640px;
}

.wbl-workspace__body {
  height: calc(100svh - 146px);
  min-height: 610px;
  overflow: hidden;
}

.wbl-stage,
.wbl-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  background-color: #f7fbff;
  background-image: radial-gradient(circle, rgba(83, 146, 208, 0.24) 1px, transparent 1.3px);
  background-position: var(--wbl-grid-x, 0) var(--wbl-grid-y, 0);
  background-size: var(--wbl-grid-size, 32px) var(--wbl-grid-size, 32px);
  cursor: default;
}

.wbl-stage[data-tool="hand"],
.wbl-canvas[data-tool="hand"] { cursor: grab; }
.wbl-stage.is-panning,
.wbl-canvas.is-panning { cursor: grabbing; }
.wbl-stage[data-tool="pen"],
.wbl-stage[data-tool="highlighter"],
.wbl-stage[data-tool="eraser"],
.wbl-canvas[data-tool="pen"],
.wbl-canvas[data-tool="highlighter"],
.wbl-canvas[data-tool="eraser"] { cursor: crosshair; }

.wbl-world,
.wbl-canvas__world {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 12000px;
  height: 8000px;
  transform-origin: 0 0;
  will-change: transform;
}

.wbl-canvas__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wbl-object-layer,
.wbl-canvas__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wbl-canvas__layer--teacher { z-index: 2; }
.wbl-canvas__layer--student { z-index: 3; }

.wbl-drawing-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.wbl-canvas__drawing { display: none; }

.wbl-toolbar {
  position: absolute;
  z-index: 25;
  top: 50%;
  left: 16px;
  display: flex;
  width: 58px;
  max-height: calc(100% - 40px);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--wbl-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(5, 41, 80, 0.12);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.wbl-toolbar__group {
  display: grid;
  gap: 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--wbl-line);
}

.wbl-toolbar__group:last-child { padding-bottom: 0; border-bottom: 0; }
.wbl-toolbar__separator { width: 30px; height: 1px; margin: 2px 0; background: var(--wbl-line); }

.wbl-tool {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  transition: color var(--wbl-motion) ease, background-color var(--wbl-motion) ease;
}

.wbl-tool > span { display: none; }
.wbl-tool:hover { background: var(--wbl-blue); }
.wbl-tool.is-active { background: var(--wbl-navy); color: var(--wbl-white); }
.wbl-tool--add { background: var(--wbl-yellow); }
.wbl-tool kbd { position: absolute; right: 3px; bottom: 2px; color: currentColor; font-family: inherit; font-size: 7px; opacity: 0.65; }

.wbl-object {
  position: absolute;
  pointer-events: auto;
  border: 1px solid rgba(5, 41, 80, 0.15);
  border-radius: 18px;
  background: var(--wbl-white);
  box-shadow: 0 10px 28px rgba(5, 41, 80, 0.09);
  color: var(--wbl-navy);
  transform-origin: center;
}

.wbl-object[data-editable="true"] { cursor: move; }
.wbl-object.is-dragging { opacity: 0.9; box-shadow: 0 18px 44px rgba(5, 41, 80, 0.18); }
.wbl-object.is-selected { box-shadow: 0 0 0 3px var(--wbl-blue-strong), 0 14px 36px rgba(5, 41, 80, 0.14); }

.wbl-object__content {
  min-height: inherit;
  overflow: hidden;
  border-radius: inherit;
}

.wbl-object--text .wbl-object__content,
.wbl-object--list .wbl-object__content,
.wbl-object--note .wbl-object__content,
.wbl-object--comment .wbl-object__content,
.wbl-object--test .wbl-object__content { padding: 26px 28px; }

.wbl-object h3 { margin: 0 0 13px; color: var(--wbl-navy); font-size: 22px; line-height: 1.2; }
.wbl-object p { margin: 0 0 10px; }
.wbl-object p:last-child { margin-bottom: 0; }
.wbl-rich-text { color: var(--wbl-text); font-size: 17px; line-height: 1.62; }
.wbl-object ul,
.wbl-object ol { display: grid; gap: 10px; margin: 0; padding-left: 24px; color: var(--wbl-text); font-size: 16px; }
.wbl-object li::marker { color: var(--wbl-yellow-strong); font-weight: 700; }

.wbl-object--note { border-color: rgba(235, 176, 22, 0.4); border-radius: 8px 22px 22px 22px; background: #fff6cf; transform: rotate(-0.5deg); }
.wbl-object--comment { border-color: rgba(117, 185, 255, 0.45); background: #edf7ff; }
.wbl-object--comment .wbl-object__content > svg { margin-bottom: 14px; color: var(--wbl-blue-strong); }

.wbl-object--image .wbl-object__content { display: grid; }
.wbl-object--image img { display: block; width: 100%; height: auto; min-height: 180px; max-height: 680px; object-fit: contain; background: #f7fbff; }
.wbl-object--image h3,
.wbl-object--image p { padding: 0 20px; }
.wbl-object--image h3 { margin-top: 16px; }
.wbl-object--image p { margin-bottom: 18px; color: var(--wbl-muted); }

.wbl-video,
.wbl-object-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #d8e8f6; }
.wbl-video iframe,
.wbl-object-video__frame iframe { position: absolute; width: 100%; height: 100%; inset: 0; border: 0; }
.wbl-object--youtube h3,
.wbl-object--video h3 { margin: 17px 22px; }

.wbl-link-card,
.wbl-object-link {
  display: flex;
  min-height: inherit;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  color: var(--wbl-navy);
  text-decoration: none;
}

.wbl-link-card > span { min-width: 0; }
.wbl-link-card h3,
.wbl-link-card strong { display: block; margin: 0 0 8px; font-size: 18px; }
.wbl-link-card small { display: block; overflow: hidden; color: var(--wbl-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wbl-link-card svg { color: var(--wbl-blue-strong); transition: transform var(--wbl-motion) ease; }
.wbl-link-card:hover svg { transform: translate(3px, -3px); }

.wbl-shape { width: 100%; height: 100%; min-height: inherit; border: var(--shape-width) solid var(--shape-stroke); background: var(--shape-fill); opacity: var(--shape-opacity); }
.wbl-shape--ellipse { border-radius: 50%; }
.wbl-shape--line,
.wbl-shape--arrow { height: var(--shape-width); min-height: 0; margin-top: calc(50% - var(--shape-width)); border: 0; background: var(--shape-stroke); }

.wbl-object__owner {
  position: absolute;
  top: 10px;
  left: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--wbl-line);
  border-radius: 50%;
  background: var(--wbl-white);
  color: var(--wbl-muted);
  opacity: 0;
  transition: opacity var(--wbl-motion) ease;
}

.wbl-object:hover .wbl-object__owner { opacity: 1; }
.wbl-object__owner svg { width: 12px; }

.wbl-object__menu {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wbl-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wbl-navy);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--wbl-motion) ease, background-color var(--wbl-motion) ease;
}

.wbl-object:hover .wbl-object__menu,
.wbl-object.is-selected .wbl-object__menu,
.wbl-object__menu:focus-visible { opacity: 1; }
.wbl-object__menu:hover { background: var(--wbl-blue); }

.wbl-object-actions {
  position: absolute;
  z-index: 10;
  top: 50px;
  right: 10px;
  display: grid;
  width: 142px;
  padding: 6px;
  border: 1px solid var(--wbl-line);
  border-radius: 12px;
  background: var(--wbl-white);
  box-shadow: var(--wbl-shadow);
}

.wbl-object-actions[hidden] { display: none; }
.wbl-object-actions button { min-height: 34px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--wbl-navy); font-size: 11px; text-align: left; cursor: pointer; }
.wbl-object-actions button:hover { background: var(--wbl-blue); }
.wbl-object-actions button:last-child { color: var(--wbl-danger); }

.wbl-mini-test__label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--wbl-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wbl-mini-test__options { display: grid; gap: 9px; }
.wbl-mini-test__options label { position: relative; display: block; cursor: pointer; }
.wbl-mini-test__options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wbl-mini-test__options span { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--wbl-line); border-radius: 12px; background: var(--wbl-white); color: var(--wbl-navy); font-size: 13px; }
.wbl-mini-test__options span::before { width: 17px; height: 17px; flex: none; border: 2px solid rgba(5, 41, 80, 0.45); border-radius: 50%; content: ""; }
.wbl-mini-test__options input[type="checkbox"] + span::before { border-radius: 5px; }
.wbl-mini-test__options input:checked + span { border-color: var(--wbl-blue-strong); background: #eef7ff; box-shadow: inset 0 0 0 1px var(--wbl-blue-strong); }
.wbl-mini-test__options input:checked + span::before { border: 5px solid var(--wbl-navy); background: var(--wbl-yellow); }
.wbl-mini-test__submit { margin-top: 16px; }
.wbl-mini-test__status { min-height: 20px; margin-top: 10px !important; color: var(--wbl-muted); font-size: 11px; font-weight: 650; }
.wbl-mini-test__status.is-correct { color: var(--wbl-success); }
.wbl-mini-test__status.is-incorrect { color: var(--wbl-danger); }

.wbl-mini-test__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wbl-mini-test__results { font-size: 11.5px; }

.wbl-test-results { display: grid; gap: 10px; padding: 0 30px 28px; }
.wbl-test-results__empty { margin: 0; padding: 8px 0 4px; color: var(--wbl-muted); font-size: 13px; }
.wbl-test-results__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border: 1px solid rgba(5, 41, 80, 0.1); border-radius: 14px;
  background: #fff;
}
.wbl-test-results__row strong { display: block; font-size: 13.5px; }
.wbl-test-results__row small { display: block; margin-top: 2px; color: var(--wbl-muted); font-size: 11.5px; }
.wbl-test-results__meta { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 13px; font-weight: 700; }
/* Словарь курса. */
.wbl-vocab { display: grid; gap: 8px; padding: 0 30px 28px; }
.wbl-vocab__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid rgba(5, 41, 80, .1);
  border-radius: 12px; background: #fff;
}
.wbl-vocab__say {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(5, 41, 80, .12); background: #f7fafd;
  cursor: pointer; font-size: 15px; line-height: 1;
}
.wbl-vocab__say:hover { background: #eaf2fb; }
.wbl-vocab__text { flex: 1; min-width: 0; }
.wbl-vocab__text strong { font-size: 14.5px; }
.wbl-vocab__text span { margin-left: 8px; color: var(--wbl-muted); font-size: 13px; }
.wbl-vocab__text small { display: block; margin-top: 2px; color: var(--wbl-muted); font-size: 12px; font-style: italic; }
.wbl-vocab__who {
  flex: none; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: #fff3d6; color: #8a6100;
}
.wbl-vocab__who.is-group { background: #eaf2fb; color: #2a5c9e; }
.wbl-vocab__form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px;
  padding: 14px; border-radius: 12px; background: var(--wbl-ivory, #fcfbf7);
  border: 1px dashed rgba(5, 41, 80, .18); margin-top: 6px;
}
.wbl-vocab__form input[name="example"] { grid-column: 1 / -1; }
.wbl-vocab__form input, .wbl-vocab__form select {
  padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(5, 41, 80, .15); font: inherit;
}
@media (max-width: 640px) { .wbl-vocab__form { grid-template-columns: 1fr; } }

.wbl-vocab__homework {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  padding: 14px; margin-top: 8px; border-radius: 12px;
  background: #f2f7fd; border: 1px solid rgba(42, 92, 158, .18);
}
.wbl-vocab__homework-title { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: #2a5c9e; }
.wbl-vocab__homework small { grid-column: 1 / -1; color: var(--wbl-muted); font-size: 11.5px; }
.wbl-vocab__homework select, .wbl-vocab__homework input {
  padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(5, 41, 80, .15); font: inherit;
}
@media (max-width: 640px) { .wbl-vocab__homework { grid-template-columns: 1fr; } }

/* «Дивіться сюди»: круг расходится в цвете того, кто показал. */
.wbl-ping {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 11;
  pointer-events: none;
}
.wbl-ping::before, .wbl-ping::after {
  content: ""; position: absolute; left: -30px; top: -30px;
  width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid var(--ping-color); opacity: 0;
  animation: wbl-ping 1.3s ease-out forwards;
}
.wbl-ping::after { animation-delay: .22s; }
@keyframes wbl-ping {
  0%   { transform: scale(.25); opacity: .95; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wbl-ping::before, .wbl-ping::after { animation-duration: .01s; opacity: .8; }
}

/* Таймер урока. */
.wbl-timer {
  position: absolute; top: 16px; right: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(5, 41, 80, .12);
  box-shadow: 0 8px 24px rgba(3, 24, 47, .12);
  font-variant-numeric: tabular-nums;
}
.wbl-timer strong { font-size: 17px; font-weight: 700; }
.wbl-timer.is-soon { border-color: var(--wbl-gold, #ffc52f); background: #fffaea; }
.wbl-timer.is-out  { border-color: var(--wbl-danger, #c92a2a); background: #fdecec; }
.wbl-timer button {
  border: 0; background: none; cursor: pointer; font-size: 16px;
  color: var(--wbl-muted); line-height: 1; padding: 0 2px;
}

.wbl-lesson-bar__tool { font-size: 12.5px; white-space: nowrap; }
.wbl-lesson-bar__tool.is-on {
  background: var(--wbl-navy, #052950); color: #fff; border-color: transparent;
}
.wbl-lesson-bar__hands, .wbl-lesson-bar__following {
  font-size: 12px; font-weight: 700; color: var(--wbl-muted); white-space: nowrap;
}

/* Курсоры участников: живут в координатах мира, поэтому не отрываются от материала. */
.wbl-cursors { position: absolute; inset: 0; pointer-events: none; z-index: 9; }
.wbl-cursor {
  position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; gap: 4px;
  will-change: transform; transition: transform .09s linear;
}
.wbl-cursor span {
  margin-top: 10px; padding: 2px 7px; border-radius: 999px;
  background: var(--cursor-color); color: #fff;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(3, 24, 47, .25);
}
@media (prefers-reduced-motion: reduce) { .wbl-cursor { transition: none; } }

/* Индикатор долгих операций: загрузка доски, дозагрузка материалов. */
.wbl-busy {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(5, 41, 80, .92); color: #fff;
  font-size: 12.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(3, 24, 47, .22);
}
.wbl-busy__spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: wbl-spin .7s linear infinite;
}
@keyframes wbl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wbl-busy__spinner { animation-duration: 2s; } }

/* Настройки пера — рядом с панелью инструментов, только когда перо активно. */
.wbl-ink-panel {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 96px; z-index: 26;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(5, 41, 80, .1);
  box-shadow: 0 10px 30px rgba(3, 24, 47, .13);
}
.wbl-ink-panel__label { font-size: 12px; font-weight: 700; color: var(--wbl-muted); }
.wbl-ink-panel__colors, .wbl-ink-panel__widths { display: flex; align-items: center; gap: 6px; }
.wbl-ink-swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  background: var(--swatch); border: 2px solid transparent; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(5, 41, 80, .12);
}
.wbl-ink-swatch.is-active { border-color: var(--wbl-navy, #052950); transform: scale(1.12); }
.wbl-ink-width {
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(5, 41, 80, .12); background: #fff; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.wbl-ink-width.is-active { border-color: var(--wbl-navy, #052950); background: #f2f6fb; }
.wbl-ink-width span {
  display: block; width: var(--dot); height: var(--dot);
  border-radius: 50%; background: var(--wbl-navy, #052950);
}

@media (max-width: 780px) { .wbl-ink-panel { bottom: 150px; gap: 10px; padding: 7px 10px; } }

/* Где я нахожусь: курс / урок — и вход в список уроков. */
.wbl-lesson-bar {
  position: absolute; top: 16px; left: 16px; z-index: 24;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(5, 41, 80, .1);
  box-shadow: 0 8px 26px rgba(3, 24, 47, .1);
  backdrop-filter: blur(8px);
  max-width: calc(100vw - 36px);
}
.wbl-lesson-bar__crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; min-width: 0;
}
.wbl-lesson-bar__crumb strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbl-lesson-bar__sep { color: var(--wbl-muted); }
.wbl-lesson-bar__up {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--wbl-muted); font: inherit; text-decoration: underline;
  text-underline-offset: 3px; white-space: nowrap; max-width: 26ch;
  overflow: hidden; text-overflow: ellipsis;
}
.wbl-lesson-bar__up:hover { color: var(--wbl-navy); }
.wbl-lesson-bar__list { font-size: 12.5px; white-space: nowrap; }
.wbl-lesson-bar__list span {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; background: rgba(5, 41, 80, .08); font-size: 11px;
}
.wbl-test-results__row.is-current { border-color: var(--wbl-gold, #ffc52f); background: #fffdf4; }

@media (max-width: 780px) {
  .wbl-lesson-bar { top: auto; bottom: 96px; left: 12px; right: 12px; justify-content: space-between; }
}

.wbl-test-results__note { margin: 0 0 4px; color: var(--wbl-muted); font-size: 12px; }
.wbl-trash-actions { display: flex; justify-content: flex-end; padding-top: 6px; }
.wbl-test-results__meta .is-correct { color: var(--wbl-success); }
.wbl-test-results__meta .is-incorrect { color: var(--wbl-danger); }

/* Axis scrollbars reflecting the viewport inside the used board area. */
.wbl-scrollbar { position: absolute; z-index: 30; pointer-events: none; }
.wbl-scrollbar--x { left: 14px; right: 14px; bottom: 6px; height: 8px; }
.wbl-scrollbar--y { top: 14px; bottom: 14px; right: 6px; width: 8px; }
.wbl-scrollbar.is-hidden { display: none; }
.wbl-scrollbar__thumb {
  pointer-events: auto; touch-action: none; cursor: grab;
  border-radius: 999px; background: rgba(5, 41, 80, 0.28);
  transition: background .15s ease;
}
.wbl-scrollbar__thumb:hover, .wbl-scrollbar__thumb:active { background: rgba(5, 41, 80, 0.5); cursor: grabbing; }
.wbl-scrollbar--x .wbl-scrollbar__thumb { height: 100%; }
.wbl-scrollbar--y .wbl-scrollbar__thumb { width: 100%; }

/* Resize corner on editable objects. */
.wbl-object__resize {
  position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px;
  cursor: nwse-resize; touch-action: none; opacity: 0; transition: opacity .15s ease;
  background: linear-gradient(135deg, transparent 50%, rgba(5, 41, 80, 0.45) 50%);
  border-bottom-right-radius: 10px;
}
.wbl-object:hover .wbl-object__resize,
.wbl-object.is-selected .wbl-object__resize { opacity: 1; }

/* Активный штрих живёт на своём холсте поверх готовых — чтобы не перерисовывать всё на каждом движении. */
.wbl-drawing-layer--active { pointer-events: none; }

/* Блок, выбранный с клавиатуры, должен быть видно так же ясно, как выбранный мышью. */
.wbl-object:focus-visible {
  outline: 3px solid var(--wbl-gold, #ffc52f);
  outline-offset: 3px;
}

.wbl-shape-colors { display: flex; gap: 18px; }
.wbl-shape-colors label { flex: 1; }
.wbl-shape-colors input[type="color"] { width: 100%; height: 42px; border: 1px solid rgba(5, 41, 80, 0.15); border-radius: 10px; padding: 3px; background: #fff; }

.wbl-empty,
.wbl-canvas__empty,
.wbl-canvas__loading {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100% - 48px));
  padding: 34px;
  border: 1px solid var(--wbl-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(5, 41, 80, 0.09);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.wbl-empty[hidden],
.wbl-canvas__empty[hidden],
.wbl-canvas__loading[hidden] { display: none; }
.wbl-empty__mark,
.wbl-canvas__empty > span { display: grid; width: 52px; height: 52px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: var(--wbl-yellow); color: var(--wbl-navy); font-size: 24px; }
.wbl-empty strong,
.wbl-canvas__empty h2 { display: block; margin: 0 0 8px; font-size: 20px; }
.wbl-empty p,
.wbl-canvas__empty p,
.wbl-canvas__loading p { margin: 0 0 18px; color: var(--wbl-muted); font-size: 12px; line-height: 1.6; }
.wbl-canvas__loading span { display: block; width: 30px; height: 30px; margin: 0 auto 14px; border: 3px solid var(--wbl-blue); border-top-color: var(--wbl-navy); border-radius: 50%; animation: wbl-spin 0.8s linear infinite; }

@keyframes wbl-spin { to { transform: rotate(360deg); } }

.wbl-stage__notice {
  position: absolute;
  z-index: 24;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--wbl-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(5, 41, 80, 0.08);
  color: var(--wbl-muted);
  font-size: 11px;
  transform: translateX(-50%);
}

.wbl-stage__notice[hidden] { display: none; }
.wbl-stage.is-blocked::after { position: absolute; z-index: 20; inset: 0; background: rgba(238, 247, 255, 0.58); content: ""; backdrop-filter: blur(2px); }

.wbl-zoom {
  position: absolute;
  z-index: 27;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--wbl-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(5, 41, 80, 0.09);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.wbl-zoom button {
  display: grid;
  min-width: 38px;
  height: 36px;
  place-items: center;
  padding: 0 8px;
  border-radius: 10px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}
.wbl-zoom button:hover { background: var(--wbl-blue); }

.wbl-minimap {
  position: absolute;
  z-index: 22;
  right: 298px;
  bottom: 18px;
  width: 194px;
  padding: 5px;
  border: 1px solid var(--wbl-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(5, 41, 80, 0.08);
}

.wbl-minimap__canvas { display: block; width: 184px; height: 116px; border-radius: 9px; }

.wbl-board-help {
  position: absolute;
  z-index: 20;
  right: 298px;
  bottom: 150px;
  display: grid;
  gap: 3px;
  color: var(--wbl-muted);
  font-size: 9px;
  text-align: right;
  pointer-events: none;
}

/* Participant rail */
.wbl-participants {
  position: absolute;
  z-index: 28;
  top: 14px;
  right: 14px;
  display: flex;
  width: 266px;
  max-height: calc(100% - 28px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wbl-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(5, 41, 80, 0.11);
  transition: width var(--wbl-motion) ease, opacity var(--wbl-motion) ease;
}

.wbl-participants.is-collapsed { width: 0; border-width: 0; opacity: 0; pointer-events: none; }
.wbl-participants > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 13px; border-bottom: 1px solid var(--wbl-line); }
.wbl-participants > header > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
.wbl-participants > header strong { font-size: 14px; }
.wbl-participants > header span { display: inline-flex; align-items: center; gap: 5px; color: var(--wbl-muted); font-size: 10px; }
.wbl-participants > header .wbl-icon-button { width: 30px; height: 30px; margin-left: 8px; border: 0; }

.wbl-participants__section { display: grid; gap: 5px; padding: 14px; overflow: auto; }
.wbl-participants__section + .wbl-participants__section { border-top: 1px solid var(--wbl-line); }
.wbl-participants__label { margin-bottom: 4px; color: var(--wbl-muted); font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }

.wbl-participant {
  display: grid;
  gap: 8px;
  padding: 9px;
  border-radius: 13px;
  background: transparent;
}

.wbl-participant:hover,
.wbl-participant.is-managing { background: #f4f9ff; }
.wbl-participant__main { display: flex; min-width: 0; align-items: center; gap: 9px; }
.wbl-participant__avatar { display: grid; width: 34px; height: 34px; flex: none; overflow: hidden; place-items: center; border-radius: 50%; background: var(--wbl-blue); font-size: 10px; font-style: normal; font-weight: 750; }
.wbl-participant__avatar img { width: 100%; height: 100%; object-fit: cover; }
.wbl-participant__main > span { display: grid; min-width: 0; gap: 2px; }
.wbl-participant__main strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wbl-participant__main strong small { color: var(--wbl-muted); font-size: 8px; }
.wbl-participant__main em { display: flex; align-items: center; gap: 5px; color: var(--wbl-muted); font-size: 8.5px; font-style: normal; }
.wbl-participant__main em i { width: 6px; height: 6px; border-radius: 50%; background: var(--wbl-success); }
.wbl-participant__main .wbl-icon-button { width: 30px; height: 30px; margin-left: auto; border: 0; }
.wbl-participant__permissions { display: none; gap: 7px; padding-left: 43px; }
.wbl-participant.is-managing .wbl-participant__permissions { display: grid; }
.wbl-participant__permissions label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--wbl-muted); font-size: 9px; }
.wbl-participant__permissions label > span { display: inline-flex; align-items: center; gap: 5px; }
.wbl-participant__permissions select { min-height: 28px; padding: 4px 7px; border: 1px solid var(--wbl-line); border-radius: 8px; background: var(--wbl-white); color: var(--wbl-navy); font-size: 9px; }
.wbl-participant__approve { width: 100%; min-height: 36px; }

.wbl-participants__note { display: flex; gap: 9px; margin-top: auto; padding: 14px; border-top: 1px solid var(--wbl-line); background: #f7fbff; color: var(--wbl-muted); }
.wbl-participants__note svg { color: var(--wbl-blue-strong); }
.wbl-participants__note p { margin: 0; font-size: 9px; line-height: 1.55; }

/* Dialogs */
.wbl-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(820px, calc(100svh - 32px));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--wbl-navy);
}

.wbl-dialog::backdrop { background: rgba(5, 25, 49, 0.58); backdrop-filter: blur(6px); }

.wbl-dialog > form,
.wbl-dialog > .wbl-dialog__surface {
  max-height: inherit;
  overflow: auto;
  border: 1px solid rgba(5, 41, 80, 0.12);
  border-radius: 26px;
  background: var(--wbl-ivory);
  box-shadow: 0 34px 100px rgba(3, 24, 47, 0.28);
}

.wbl-dialog header,
.wbl-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 30px 20px;
}

.wbl-dialog header > div > span { display: block; margin-bottom: 7px; color: var(--wbl-muted); font-size: 9px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.wbl-dialog h2 { margin: 0; font-size: 27px; line-height: 1.12; letter-spacing: -0.03em; }
.wbl-dialog header p { margin: 8px 0 0; color: var(--wbl-muted); font-size: 11px; }

.wbl-dialog form > label,
.wbl-dialog form > fieldset,
.wbl-dialog .wbl-dialog__body,
.wbl-dialog .wbl-members,
.wbl-dialog .wbl-member-add,
.wbl-dialog .wbl-menu-actions,
.wbl-dialog .wbl-form-note {
  margin-right: 30px;
  margin-left: 30px;
}

.wbl-dialog form > label,
.wbl-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.wbl-dialog form label > span,
.wbl-field > span,
.wbl-dialog legend { color: var(--wbl-navy); font-size: 11px; font-weight: 650; }
.wbl-dialog label small,
.wbl-field small { margin-left: 5px; color: var(--wbl-muted); font-size: 9px; font-weight: 450; }

.wbl-dialog input[type="text"],
.wbl-dialog input[type="url"],
.wbl-dialog input[type="number"],
.wbl-dialog input[type="file"],
.wbl-dialog select,
.wbl-dialog textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--wbl-line);
  border-radius: 13px;
  background: var(--wbl-white);
  color: var(--wbl-navy);
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.wbl-dialog textarea { min-height: 110px; }
.wbl-dialog input:focus,
.wbl-dialog select:focus,
.wbl-dialog textarea:focus { border-color: var(--wbl-blue-strong); outline: 3px solid rgba(117, 185, 255, 0.18); }

.wbl-dialog form > footer,
.wbl-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding: 18px 30px 26px;
  border-top: 1px solid var(--wbl-line);
}

.wbl-material-types {
  display: flex;
  gap: 5px;
  margin: 0 30px 20px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--wbl-line);
  border-radius: 14px;
  background: var(--wbl-white);
}

.wbl-material-types button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--wbl-navy);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}
.wbl-material-types button.is-active { background: var(--wbl-navy); color: var(--wbl-white); }

.wbl-check { display: flex !important; align-items: center; gap: 10px; }
.wbl-check input,
.wbl-dialog input[type="checkbox"],
.wbl-dialog input[type="radio"] { width: 18px; height: 18px; flex: none; accent-color: var(--wbl-navy); }

.wbl-segmented { display: flex; padding: 0; border: 1px solid var(--wbl-line); border-radius: 13px; background: var(--wbl-white); }
.wbl-segmented legend { width: 100%; margin-bottom: 7px; }
.wbl-segmented label { position: relative; flex: 1; text-align: center; }
.wbl-segmented label + label { border-left: 1px solid var(--wbl-line); }
.wbl-segmented input { position: absolute; opacity: 0; }
.wbl-segmented label span { display: grid; min-height: 42px; place-items: center; padding: 8px; border-radius: 11px; font-size: 10px; cursor: pointer; }
.wbl-segmented input:checked + span { background: var(--wbl-blue); box-shadow: inset 0 0 0 2px var(--wbl-yellow-strong); }

.wbl-test-options { display: grid; gap: 8px; margin: 0 30px 16px; }
.wbl-test-options > p { margin: 0 0 4px; font-size: 11px; font-weight: 650; }
.wbl-test-option { display: grid !important; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; margin: 0 !important; }

.wbl-upload-zone { display: grid; width: calc(100% - 60px); min-height: 180px; place-items: center; gap: 8px; margin: 0 30px 18px; padding: 24px; border: 1px dashed var(--wbl-blue-strong); border-radius: 18px; background: #f7fbff; color: var(--wbl-navy); cursor: pointer; }
.wbl-upload-zone > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--wbl-blue); }
.wbl-upload-zone strong { font-size: 13px; }
.wbl-upload-zone small { color: var(--wbl-muted); font-size: 9px; }
.wbl-upload-zone img { max-width: 100%; max-height: 180px; border-radius: 12px; object-fit: contain; }

.wbl-form-note { color: var(--wbl-muted); font-size: 10px; line-height: 1.55; }
.wbl-form-error { margin: 0; color: var(--wbl-danger); font-size: 11px; font-weight: 650; }

.wbl-members { display: grid; gap: 8px; }
.wbl-member { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--wbl-line); border-radius: 13px; background: var(--wbl-white); }
.wbl-member__avatar { display: grid; width: 38px; height: 38px; overflow: hidden; place-items: center; border-radius: 50%; background: var(--wbl-blue); font-size: 11px; font-weight: 750; }
.wbl-member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.wbl-member > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.wbl-member strong { font-size: 11px; }
.wbl-member small { color: var(--wbl-muted); font-size: 9px; }
.wbl-member > button { margin-left: auto; border: 0; background: transparent; color: var(--wbl-danger); cursor: pointer; }
.wbl-member-add { display: grid; gap: 16px; margin-top: 20px !important; padding-top: 20px; border-top: 1px solid var(--wbl-line); }
.wbl-member-add fieldset { display: flex; gap: 16px; padding: 0; border: 0; }
.wbl-member-add fieldset legend { margin-bottom: 7px; }
.wbl-member-add fieldset label { display: inline-flex; align-items: center; gap: 7px; color: var(--wbl-muted); font-size: 10px; }

.wbl-menu-actions { display: grid; gap: 8px; padding-bottom: 26px; }
.wbl-menu-actions > button { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--wbl-line); border-radius: 13px; background: var(--wbl-white); color: var(--wbl-navy); text-align: left; cursor: pointer; }
.wbl-menu-actions > button:hover { background: var(--wbl-blue); }
.wbl-menu-actions > button > span { display: grid; gap: 3px; }
.wbl-menu-actions strong { font-size: 11px; }
.wbl-menu-actions small { color: var(--wbl-muted); font-size: 9px; }

.wbl-confirm-dialog { width: min(510px, calc(100vw - 32px)); }
.wbl-confirm-dialog .wbl-dialog__surface { padding-top: 4px; }

.wbl-toasts {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.wbl-toast {
  max-width: min(380px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid var(--wbl-line);
  border-left: 4px solid var(--wbl-success);
  border-radius: 12px;
  background: var(--wbl-white);
  box-shadow: var(--wbl-shadow);
  color: var(--wbl-navy);
  font-size: 11px;
  font-weight: 600;
}
.wbl-toast.is-error { border-left-color: var(--wbl-danger); }
.wbl-toast[hidden] { display: none; }

.wbl__shell:fullscreen,
.wbl-workspace:fullscreen { width: 100vw; height: 100vh; background: #edf6ff; }

@media (max-width: 1180px) {
  .wbl-account-nav,
  .wbl-product-nav { grid-template-columns: auto 1fr auto; gap: 14px; }
  .wbl-account-nav__brand > span:not(.wbl-brand),
  .wbl-product-nav__brand > span:not(.wbl-brand),
  .wbl-account-nav__user > span,
  .wbl-product-nav__user > span { display: none; }
  .wbl-account-nav__links a,
  .wbl-product-nav__links a { padding-inline: 13px; }
  .wbl-workspace__topbar,
  .wbl-topbar { grid-template-columns: minmax(210px, 1fr) auto; }
  .wbl-workspace__status,
  .wbl-save-status { position: absolute; bottom: -20px; left: 50%; padding: 4px 10px; border: 1px solid var(--wbl-line); border-radius: 999px; background: var(--wbl-white); transform: translateX(-50%); }
  .wbl-workspace__actions .wbl-button span,
  .wbl-topbar__actions .wbl-button span { display: none; }
  .wbl-workspace__actions .wbl-button { width: 42px; padding: 0; }
  .wbl-minimap,
  .wbl-board-help { right: 16px; }
  .wbl-participants { top: 82px; right: 16px; max-height: calc(100% - 100px); transform: translateX(calc(100% + 30px)); transition: transform var(--wbl-motion) ease; }
  .wbl-participants.is-open { transform: translateX(0); }
}

@media (max-width: 900px) {
  body.admin-bar.wings-board-lite-page .wbl-workspace__body { height: calc(100svh - 162px); }
  .wbl-account-nav,
  .wbl-product-nav { min-height: 68px; padding: 7px 14px; }
  .wbl-brand { width: 48px; height: 46px; }
  .wbl-brand img { width: 46px; height: 44px; }
  .wbl-account-nav__links,
  .wbl-product-nav__links { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .wbl-account-nav__links::-webkit-scrollbar,
  .wbl-product-nav__links::-webkit-scrollbar { display: none; }
  .wbl-account-nav__links a,
  .wbl-product-nav__links a { min-height: 36px; padding: 8px 12px; font-size: 11px; white-space: nowrap; }
  .wbl-account-nav__user a,
  .wbl-product-nav__user a,
  .wbl-product-nav__user > svg { display: none; }
  .wbl-picker__hero { grid-template-columns: 1fr; gap: 24px; }
  .wbl-picker__hint { max-width: 520px; }
  .wbl-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbl-workspace__topbar,
  .wbl-topbar { min-height: 62px; padding: 8px 12px; }
  .wbl-board-switcher select,
  .wbl-board-picker select { width: min(300px, 45vw); }
  .wbl-material-menu__panel { right: -100px; }
  .wbl-workspace__body { height: calc(100svh - 130px); min-height: 560px; }
  .wbl-toolbar { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; max-width: calc(100% - 180px); height: 58px; max-height: none; flex-direction: row; justify-content: flex-start; overflow-x: auto; transform: none; }
  .wbl-toolbar__group { display: flex; padding: 0 6px 0 0; border-right: 1px solid var(--wbl-line); border-bottom: 0; }
  .wbl-toolbar__group:last-child { border-right: 0; }
  .wbl-toolbar__separator { width: 1px; height: 30px; margin: 0 2px; }
  .wbl-zoom { right: 12px; bottom: 12px; left: auto; transform: none; }
  .wbl-minimap,
  .wbl-board-help { display: none; }
  .wbl-object__menu,
  .wbl-object__owner { opacity: 1; }
}

@media (max-width: 782px) {
  body.admin-bar.wings-board-lite-page #main.section,
  body.admin-bar.wings-board-lite-page .wbl-app,
  body.admin-bar.wings-board-lite-page .wbl-workspace,
  body.admin-bar.wings-board-lite-page .wbl__shell { min-height: calc(100svh - 46px); }
  body.admin-bar.wings-board-lite-page .wbl-workspace__body { height: calc(100svh - 176px); }
}

@media (max-width: 680px) {
  .wbl { font-size: 13px; }
  .wbl-account-nav,
  .wbl-product-nav { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; }
  .wbl-account-nav__links a,
  .wbl-product-nav__links a { padding-inline: 10px; font-size: 10px; }
  .wbl-account-nav__avatar,
  .wbl-product-nav__avatar { width: 34px; height: 34px; }
  .wbl-picker__main { width: min(100% - 28px, 560px); padding-top: 42px; }
  .wbl-picker__hero h1 { font-size: 38px; }
  .wbl-picker__hero > div > p { font-size: 14px; }
  .wbl-board-grid { grid-template-columns: 1fr; }
  .wbl-board-card__preview { height: 170px; }
  .wbl-workspace__topbar,
  .wbl-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .wbl-board-switcher select,
  .wbl-board-picker select { width: min(58vw, 270px); padding-left: 11px; font-size: 11px; }
  .wbl-workspace__brand > .wbl-button,
  .wbl-presence,
  .wbl-topbar__actions .wbl-save-status,
  .wbl-permission-status { display: none; }
  .wbl-material-menu > summary { width: 42px; padding: 0; }
  .wbl-material-menu > summary span,
  .wbl-material-menu > summary svg:last-child { display: none; }
  .wbl-material-menu__panel { position: fixed; top: auto; right: 12px; bottom: 82px; left: 12px; width: auto; grid-template-columns: repeat(2, 1fr); }
  .wbl-workspace__body { height: calc(100svh - 130px); min-height: 500px; }
  .wbl-toolbar { max-width: calc(100% - 128px); }
  .wbl-tool { width: 40px; height: 40px; }
  .wbl-zoom button:nth-child(2) { display: none; }
  .wbl-participants { top: 70px; bottom: 72px; width: calc(100% - 24px); max-height: none; }
  .wbl-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 20px); }
  .wbl-dialog header,
  .wbl-dialog__header { padding: 22px 20px 16px; }
  .wbl-dialog h2 { font-size: 23px; }
  .wbl-dialog form > label,
  .wbl-dialog form > fieldset,
  .wbl-dialog .wbl-dialog__body,
  .wbl-dialog .wbl-members,
  .wbl-dialog .wbl-member-add,
  .wbl-dialog .wbl-menu-actions,
  .wbl-dialog .wbl-form-note { margin-right: 20px; margin-left: 20px; }
  .wbl-dialog form > footer,
  .wbl-dialog__footer { padding: 16px 20px 22px; }
  .wbl-material-types { margin-inline: 20px; }
  .wbl-upload-zone { width: calc(100% - 40px); margin-inline: 20px; }
  .wbl-test-options { margin-inline: 20px; }
  .wbl-object--text .wbl-object__content,
  .wbl-object--list .wbl-object__content,
  .wbl-object--note .wbl-object__content,
  .wbl-object--comment .wbl-object__content,
  .wbl-object--test .wbl-object__content { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .wbl *,
  .wbl *::before,
  .wbl *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
  .wbl { --wbl-line: rgba(5, 41, 80, 0.36); }
  .wbl-object,
  .wbl-button,
  .wbl-icon-button { border-width: 2px; }
}
