/* REQ-126: onboarding (the stepper, Simulate onboarding). The colour tokens (:root) and shared components are in ../styles.css; this file never defines :root variables. */

/* REQ-85.1: the onboarding stepper, over the whole page. */
.ob { position: fixed; inset: 0; z-index: 2000; overflow-y: auto; background: var(--bg); color: var(--ink); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.ob[hidden] { display: none; }
.ob-card { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.ob-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 0; border: 0; }
.ob-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 4px 0 0; }
.ob-head h2:focus { outline: none; }
.ob-step { margin: 6px 0 0; color: var(--mute); font-weight: 600; }
.ob-body { min-height: 160px; }
.ob-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 0; }
.ob-foot .btn { min-height: 44px; min-width: 96px; }
.ob-foot .link-btn { min-height: 44px; margin-left: auto; }
.ob-why { font-weight: 600; }
.ob-norules { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 600px) { .ob { padding: 20px 16px; } .ob-foot .link-btn { margin-left: 0; } }
/* REQ-85.5: Simulate onboarding. The SIMULATION chip and End simulation sit
   on top of every step; the name and summary dialogs are small and centred. */
.ob-simbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.ob-sim { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f59e0b; color: #1c1917; font: 800 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.ob-end { min-height: 44px; }
.sob-dlg { width: min(440px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); }
.sob-dlg::backdrop { background: rgba(0, 0, 0, 0.45); }
.sob-dlg h2 { margin: 0 0 8px; font: 800 22px/1.2 var(--font-display); }
.sob-dlg h2:focus { outline: none; }
.sob-note { margin: 0 0 12px; color: var(--mute); }
.sob-label { display: block; font-weight: 700; margin-bottom: 6px; }
.sob-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.sob-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sob-btns .btn { min-height: 44px; min-width: 96px; }
.sob-text { margin: 0; font-weight: 600; }
/* REQ-85.3: the house-rules step steps aside so the office shows the walk to
   the King's office: a panel at the right (the office centres in what it
   leaves free), a sheet at the bottom on a phone. Compact while the figure
   walks and bows; the rules scroll inside, I accept and Not now stay in view. */
.ob.ob-stage { background: transparent; pointer-events: none; align-items: flex-end; justify-content: flex-end; padding: 16px; overflow: hidden; }
.ob.ob-stage .ob-card { pointer-events: auto; max-width: 460px; max-height: calc(100vh - 32px); box-sizing: border-box; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.ob.ob-stage .ob-head h2 { font-size: 22px; }
.ob.ob-stage .ob-body { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ob.ob-busy .ob-foot { display: none; }
.ob-walk { margin: 0; font-weight: 600; }
.ob-rules { min-height: 0; overflow: auto; max-height: 50vh; }
.ob-rules .hr-panel { margin: 0; }
.ob-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ob-actions .btn { min-height: 44px; min-width: 120px; }
@media (max-width: 600px) {
  .ob.ob-stage { padding: 0; }
  .ob.ob-stage .ob-card { max-width: none; max-height: 64vh; border-radius: 14px 14px 0 0; }
  .ob-rules { max-height: 30vh; }
}

/* REQ-85.4: System settings → Onboarding (Pablo's note 9: chips with icons and words). */
.ob-filters { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ob-f { min-height: 44px; }
.ob-count { color: var(--mute); margin: 8px 0; }
.ob-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ob-who { display: flex; flex-direction: column; min-width: 160px; }
.ob-email { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.ob-chip.done i, .ob-chip.current i { color: var(--done); }
.ob-chip.older { border-style: dashed; }
.ob-when { color: var(--mute); font-size: 13px; }
/* REQ-114.3.2: what already waits for an invited person, at the top of the onboarding */
.ob-waiting { margin: 10px 0 0; padding: 10px 12px; border: 2px dashed var(--line); border-radius: 10px; background: var(--sunken); }
.ob-waiting-line { margin: 0 0 4px; font-weight: 700; }
.ob-waiting ul { margin: 0; padding-left: 20px; font-size: 14px; overflow-wrap: anywhere; }
