/* ── ONBOARDING SCREEN ─────────────────────────────── */
#onboardingScreen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
}

.onb-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.onb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--b2);
  transition: all .2s;
}

.onb-dot.active { background: var(--accent); transform: scale(1.3); }
.onb-dot.done   { background: var(--green); }

.onb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(440px, 92vw);
}

.onb-step-icon { font-size: 52px; margin-bottom: 20px; line-height: 1; }

.onb-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--tx);
  margin: 0 0 12px;
  line-height: 1.2;
}

.onb-sub {
  font-size: 15px;
  color: var(--t2);
  margin: 0 0 28px;
  line-height: 1.5;
  max-width: 380px;
}

.onb-input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.onb-char-hint {
  font-size: 12px;
  color: var(--t3);
  align-self: flex-end;
  margin-bottom: 20px;
}

.onb-back-btn {
  background: none;
  border: none;
  color: var(--t3);
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
  padding: 6px 12px;
}
.onb-back-btn:hover { color: var(--tx); }

.onb-skip-btn {
  background: none;
  border: none;
  color: var(--t3);
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: underline;
  padding: 6px;
}
.onb-skip-btn:hover { color: var(--tx); }

.onb-done .onb-title { color: var(--green); }

/* Workspace switcher dropdown */
.ws-switcher-wrap {
  position: relative;
}

.ws-name-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--tx);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--r);
  width: 100%;
  text-align: left;
}
.ws-name-btn:hover { background: var(--b1); }

.ws-plan-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.plan-free       { background: var(--b2); color: var(--t2); }
.plan-pro        { background: #1a4aff22; color: #5b8fff; }
.plan-enterprise { background: #7c3aed22; color: #a78bfa; }

.ws-switcher-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-md);
  z-index: 100;
  overflow: hidden;
  min-width: 220px;
}
.ws-switcher-dropdown.open { display: block; }

.ws-switch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  color: var(--tx);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.ws-switch-item:hover { background: var(--b1); }
.ws-switch-item.active { background: var(--accent-d); }

.ws-switch-avi {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.ws-switch-name { font-weight: 600; font-size: 13px; }
.ws-switch-role { font-size: 11px; color: var(--t3); }

.ws-switch-sep {
  height: 1px;
  background: var(--b2);
  margin: 4px 0;
}

/* Workspace search in switcher */
.ws-search-wrap {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 4px 8px 0;
  background: var(--s3);
  border: 1px solid var(--b1);
  border-radius: 6px;
}
.ws-search-wrap.visible { display: flex; }
.ws-search-wrap svg { color: var(--t3); flex-shrink: 0; }
.ws-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--tx);
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}
.ws-search-input::placeholder { color: var(--t3); }
.ws-item.hidden { display: none; }
.ws-no-results { padding: 12px 16px; font-size: 13px; color: var(--t3); text-align: center; }
