/* Portal White Board */
.wb-portal-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1rem;
}
@media (max-width: 800px) {
  .wb-portal-layout { grid-template-columns: 1fr; }
}
.wb-portal-list { display: flex; flex-direction: column; gap: 0.5rem; }
.wb-portal-item {
  text-align: left;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wb-portal-item strong { font-size: 0.95rem; }
.wb-portal-item span { font-size: 0.78rem; color: var(--muted, #9aa3b2); }
.wb-portal-item.is-active { border-color: var(--teal, #5ec4b0); }
.wb-badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal, #5ec4b0);
}
.wb-badge-view { color: var(--muted, #9aa3b2); }
.wb-portal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.wb-portal-meta strong { font-size: 1.1rem; }
.wb-portal-meta span { font-size: 0.82rem; color: var(--muted, #9aa3b2); }
.wb-privacy-note { color: var(--teal, #5ec4b0) !important; }
.wb-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.wb-tools .btn.is-active {
  border-color: var(--teal, #5ec4b0);
  color: var(--teal, #5ec4b0);
}
.wb-tools .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wb-tool-sep {
  width: 1px;
  height: 1.4rem;
  background: var(--border, rgba(255,255,255,0.15));
  margin: 0 0.15rem;
}
.wb-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #9aa3b2);
}
.wb-swatches {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.wb-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0;
  cursor: pointer;
}
.wb-assign-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  margin: 0.35rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: rgba(94, 196, 176, 0.08);
  font-size: 0.88rem;
}
.wb-assign-banner.wb-assign-you {
  border-color: var(--teal, #5ec4b0);
}
.wb-assign-label {
  color: var(--muted, #9aa3b2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wb-inline-text {
  position: absolute;
  z-index: 5;
  min-width: 140px;
  max-width: 60%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--teal, #5ec4b0);
  border-radius: 6px;
  background: rgba(8, 10, 14, 0.92);
  font: 600 15px Stack Sans Notch, system-ui, sans-serif;
  outline: none;
  resize: none;
  transform: translateY(-50%);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  color: #c9917c;
}
.wb-stage-host { min-height: 140px; }
.wb-portal-main.wb-fs {
  position: fixed !important;
  inset: 0;
  z-index: 2000;
  margin: 0 !important;
  padding: 0.75rem;
  overflow: auto;
  background: var(--bg, #06080d);
}
body.wb-fs-open { overflow: hidden; }
.wb-canvas-host { width: 100%; }
.wb-stage {
  position: relative;
  width: 100%;
  background: #0a0c10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  touch-action: none;
}
.wb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.wb-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.wb-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wb-author-tag {
  position: absolute;
  transform: translate(-50%, -120%);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #f5ebe0;
  white-space: nowrap;
}
.wb-portal-body { padding: 0 0 2rem; }
.portal-empty { color: var(--muted, #9aa3b2); font-size: 0.9rem; }
