/* ============================================================
   Onboarding — the two screens a new account sees once.
   Uses the app's own tokens with a fallback after each, so it
   renders in both themes without a second copy.
   ============================================================ */

.ob-overlay {
  position: fixed; inset: 0; z-index: 700;      /* above the toast (600):
    these screens are modal by intent - nothing should draw over them */
  display: grid; place-items: center; padding: 18px;
  background: rgba(3, 5, 10, .78);
  overflow-y: auto;
}

.ob-sheet {
  width: 100%; max-width: 440px;
  border-radius: 20px;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  background: var(--panel, #0e131d);
  color: var(--text, #f5f7fb);
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.ob-sheet-tall { max-width: 480px; }

.ob-head { margin-bottom: 18px; }
.ob-head h2 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem; font-weight: 600; margin: 0 0 6px; letter-spacing: -.015em;
}
.ob-head p { margin: 0; line-height: 1.55; }

.ob-field { display: block; margin-bottom: 14px; }
.ob-field > span { display: block; margin-bottom: 5px; }
.ob-field .field-input { width: 100%; box-sizing: border-box; }
.ob-field .muted.small { margin-top: 5px; }

.ob-check {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 4px 0 6px; cursor: pointer; line-height: 1.5;
}
.ob-check input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; }

.ob-error:empty { display: none; }
.ob-error {
  margin: 10px 0 0; padding: 10px 12px;
  border-radius: 10px; border-left: 3px solid #e5484d;
  background: rgba(229,72,77,.1);
  font-size: 13px; line-height: 1.5;
}

.ob-actions { display: flex; gap: 10px; margin-top: 18px; }
.ob-primary, .ob-ghost {
  flex: 1 1 auto; border: 0; cursor: pointer; font: inherit;
  font-size: 14.5px; font-weight: 650; padding: 12px; border-radius: 12px;
}
.ob-primary { background: var(--accent-a, #7c5cff); color: #fff; }
.ob-primary:disabled { opacity: .45; cursor: default; }
.ob-ghost { background: rgba(255,255,255,.07); color: var(--text, #f5f7fb); }

/* ── Follow list ── */
.ob-people {
  max-height: 46vh; overflow-y: auto; margin: 0 -4px 12px; padding: 0 4px;
  -webkit-overflow-scrolling: touch;
}
.ob-person {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line, rgba(255,255,255,.07));
}
.ob-person:last-child { border-bottom: 0; }
.ob-person-meta { flex: 1 1 auto; min-width: 0; }
.ob-person-meta .name-row { font-size: 14.5px; font-weight: 600; }
.ob-why { margin-top: 1px; opacity: .85; }
.ob-count { text-align: center; margin-bottom: 2px; }
.ob-empty { text-align: center; padding: 28px 12px; line-height: 1.6; }

[data-theme="light"] .ob-overlay { background: rgba(20,23,40,.55); }
[data-theme="light"] .ob-ghost { background: rgba(0,0,0,.06); }

@media (max-width: 380px) {
  .ob-sheet { padding: 18px 16px; }
  .ob-actions { flex-direction: column-reverse; }
}
