/* Sign-in, people and the account menu. */

.gate {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(255,176,32,.06), transparent 60%),
    var(--ink-900);
  padding: var(--s5);
  overflow: auto;
}

.gate-card {
  width: 100%; max-width: 420px;
  background: var(--ink-800);
  border: 1px solid var(--rule);
  border-radius: var(--r4);
  box-shadow: var(--shadow-3);
  padding: var(--s6);
}
.gate-card .brand { margin-bottom: var(--s5); font-size: 13px; }
.gate-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.gate-card p.lede { margin: 0 0 var(--s5); color: var(--text-dim); font-size: 13.5px; }
.gate-card form { display: flex; flex-direction: column; gap: var(--s4); }
.gate-card .btn { justify-content: center; }
.gate-error {
  border-left: 3px solid var(--danger);
  background: rgba(255,107,107,.08);
  border-radius: var(--r2);
  padding: 9px 12px;
  font-size: 13px;
  color: #ffc2c2;
}
.gate-foot { margin-top: var(--s5); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); line-height: 1.6; }

/* --- account chip ---------------------------------------------------------- */

.avatar {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: #0f1420;
  flex: 0 0 auto;
}
.avatar.lg { width: 34px; height: 34px; font-size: 12px; }

.account { position: relative; }
.account > button {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 8px 3px 3px;
  background: none; border: 1px solid transparent; border-radius: 20px;
  cursor: pointer;
}
.account > button:hover { background: var(--ink-700); border-color: var(--rule); }
.account .who { text-align: left; line-height: 1.15; }
.account .who b { display: block; font-size: 12.5px; font-weight: 600; }
.account .who span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.account .menu { left: auto; right: 0; min-width: 240px; }

.role-pill {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid var(--rule-strong); color: var(--text-dim);
}
.role-pill.superadmin { color: var(--signal); border-color: var(--signal-dim); }
.role-pill.manager { color: var(--t-update); border-color: #24425f; }
.role-pill.viewer { color: var(--text-faint); }

/* --- people table ---------------------------------------------------------- */

.people { width: 100%; border-collapse: collapse; }
.people th {
  text-align: left; padding: 0 var(--s3) 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 400;
  border-bottom: 1px solid var(--rule);
}
.people td { padding: 10px var(--s3); border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.people tr.inactive td { opacity: .5; }
.people .name { display: flex; align-items: center; gap: 10px; }
.people .email { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.people .actions { text-align: right; white-space: nowrap; }

.member-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.member-row:last-child { border-bottom: 0; }
.member-row .grow { min-width: 0; }
.member-row .grow b { display: block; font-size: 13px; font-weight: 600; }
.member-row .grow span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

/* --- walkthrough ----------------------------------------------------------- */

.tour-veil {
  position: fixed; inset: 0; z-index: var(--z-tour);
  pointer-events: auto;
}
.tour-hole {
  position: absolute;
  border-radius: var(--r3);
  box-shadow: 0 0 0 9999px rgba(7, 10, 17, .78), 0 0 0 2px var(--signal);
  transition: all .28s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } }

.tour-card {
  position: absolute;
  width: min(390px, calc(100vw - 32px));
  background: var(--ink-800);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r3);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transition: all .28s cubic-bezier(.4, 0, .2, 1);
}
.tour-card .inner { padding: var(--s4); }

.tour-card .step {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 7px;
}
.tour-card .step b { color: var(--signal); font-weight: 400; }
.tour-card .step span { color: var(--text-faint); }
.tour-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tour-card p { margin: 0 0 var(--s4); font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.tour-card p kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--text);
  border: 1px solid var(--rule-strong); border-radius: var(--r1); padding: 1px 5px;
}
.tour-card footer { display: flex; align-items: center; gap: 6px; }
.tour-card footer .spacer { flex: 1; }

/* One dot per chapter, so a long walkthrough stays navigable. */
.tour-chapters {
  display: flex; gap: 3px;
  padding: 0 var(--s4) var(--s3);
}
.tour-chapters button {
  flex: 1; height: 3px; padding: 0;
  border: 0; border-radius: 3px;
  background: var(--rule-strong);
  cursor: pointer;
}
.tour-chapters button:hover { background: var(--text-faint); }
.tour-chapters button.seen { background: var(--signal-dim); }
.tour-chapters button.on { background: var(--signal); }

.tour-progress { height: 3px; background: var(--ink-600); }
.tour-progress i { display: block; height: 100%; background: var(--signal); transition: width .28s ease; }

.tour-veil.dim { background: rgba(7, 10, 17, .78); }
