:root {
  --wb-purple: #6246ea;
  --wb-purple-dark: #4b35b5;
  --wb-bg: #f7f8fc;
  --wb-card: #fff;
  --wb-text: #1a1a2e;
  --wb-muted: #6b7280;
  --wb-border: #e5e7eb;
  --wb-danger: #dc2626;
  --wb-radius: 12px;
  --wb-shadow: 0 4px 24px rgba(98, 70, 234, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--wb-bg);
  color: var(--wb-text);
  line-height: 1.5;
}
.site-header {
  background: var(--wb-card);
  border-bottom: 1px solid var(--wb-border);
  padding: 0.75rem 1.25rem;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-header__brand {
  font-weight: 800;
  color: var(--wb-text);
  text-decoration: none;
  font-size: 1.05rem;
}
.site-header__brand span { color: var(--wb-purple); }
.site-header__nav { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.wb-shell { max-width: 1200px; margin: 0 auto; padding: 1.25rem; }
.wb-h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.wb-h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.wb-lead { color: var(--wb-muted); margin: 0 0 1rem; }
.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.wb-btn--primary { background: var(--wb-purple); color: #fff; }
.wb-btn--primary:hover { background: var(--wb-purple-dark); }
.wb-btn--ghost { background: transparent; color: var(--wb-purple); border: 1px solid var(--wb-border); }
.wb-btn--ghost:hover { background: rgba(98, 70, 234, 0.06); }
.wb-btn--danger { background: transparent; color: var(--wb-danger); border: 1px solid #fecaca; }
.wb-btn--danger:hover { background: #fef2f2; }
.wb-btn--sm { padding: 0.35rem 0.65rem; font-size: 0.85rem; }
.wb-input, .wb-select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  font-size: 1rem;
}
.wb-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.wb-form-stack > * + * { margin-top: 0.75rem; }
.wb-alert { padding: 0.75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.wb-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.wb-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.wb-muted { color: var(--wb-muted); font-size: 0.9rem; }
.wb-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 800px) {
  .wb-layout { grid-template-columns: 1fr; }
}
.wb-sidebar {
  background: var(--wb-card);
  border-radius: var(--wb-radius);
  border: 1px solid var(--wb-border);
  padding: 0.75rem;
  box-shadow: var(--wb-shadow);
}
.wb-sidebar__title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wb-muted); margin: 0 0 0.5rem; }
.wb-folder-list { list-style: none; margin: 0; padding: 0; }
.wb-folder-list button {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.wb-folder-list button:hover { background: rgba(98, 70, 234, 0.08); }
.wb-folder-list button.is-active { background: rgba(98, 70, 234, 0.15); font-weight: 600; }
.wb-panel {
  background: var(--wb-card);
  border-radius: var(--wb-radius);
  border: 1px solid var(--wb-border);
  padding: 1rem 1.25rem;
  box-shadow: var(--wb-shadow);
}
.wb-board-card {
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.wb-board-card__title { font-weight: 600; text-decoration: none; color: var(--wb-text); }
.wb-board-card__title:hover { color: var(--wb-purple); }
.wb-board-card__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
dialog.wb-dialog { border: none; border-radius: var(--wb-radius); padding: 0; box-shadow: 0 12px 40px rgba(0,0,0,0.15); max-width: min(420px, 94vw); }
dialog.wb-dialog::backdrop { background: rgba(0,0,0,0.35); }
.wb-dialog__inner { padding: 1.25rem; }
.wb-dialog__actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
