/* ==========================================================================
   Sign in, sign up and first-run onboarding
   One centered card: the form on the left, a sketch of the app on the right
   that fills in as people type. The same shell is reused for the "Invite
   your team" step after a workspace is created (onboarding.js).
   ========================================================================== */

.ob-screen {
  --ob-page: #ffffff;
  --ob-card: #ffffff;
  --ob-side: #f7f8fa;
  --ob-border: #e5e7eb;
  --ob-ink: #0d0f11;
  --ob-muted: #5f6672;
  --ob-faint: #9097a1;
  --ob-soft: #f2f3f5;
  --ob-input-bg: #ffffff;
  --ob-input-border: #dcdfe4;
  --ob-input-border-hover: #c7cbd2;
  --ob-ring: rgba(47, 95, 208, 0.16);
  --ob-primary-hover: #2753bd;
  --ob-danger: #c93c3c;
  --ob-danger-ring: rgba(201, 60, 60, 0.14);
  --pv-surface: #ffffff;
  --pv-border: #eceef1;
  --pv-border-strong: #dfe2e6;
  --pv-bar: #e9ebee;
  --pv-active: #f1f2f4;
  --pv-shadow: 0 24px 60px rgba(16, 24, 40, 0.10), 0 2px 6px rgba(16, 24, 40, 0.04);
  --ob-side-bg: linear-gradient(160deg, #fafbfc 0%, #f1f4f9 100%);
  --rt-road: #e9ebef;
  --rt-street: #f1f2f5;
  --rt-park: #eef2ec;
  --rt-plan: #b4bac3;
  --rt-ink: #15171b;
  --rt-you: #2563eb;

  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px 32px;
  background: var(--ob-page);
  color: var(--ob-ink);
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .ob-screen {
  --ob-page: #0b0c0e;
  --ob-card: #121317;
  --ob-side: #0f1013;
  --ob-border: #23252b;
  --ob-ink: #f0f2f4;
  --ob-muted: #a0a8b3;
  --ob-faint: #6d7480;
  --ob-soft: #1b1d22;
  --ob-input-bg: #16181c;
  --ob-input-border: #2b2e35;
  --ob-input-border-hover: #3a3e46;
  --ob-ring: rgba(96, 140, 240, 0.22);
  --ob-primary-hover: #3a6ae0;
  --ob-danger: #ef6b6b;
  --ob-danger-ring: rgba(239, 107, 107, 0.18);
  --pv-surface: #15171b;
  --pv-border: #23262c;
  --pv-border-strong: #2f333a;
  --pv-bar: #262930;
  --pv-active: #1d2025;
  --pv-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --ob-side-bg: linear-gradient(160deg, #101114 0%, #12151c 100%);
  --rt-road: #23262d;
  --rt-street: #1b1e23;
  --rt-park: #172019;
  --rt-plan: #4a505a;
  --rt-ink: #eef0f3;
  --rt-you: #5b8cff;
}

.ob-screen [hidden] {
  display: none !important;
}

.ob-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Frame ─────────────────────────────────────────────────────────────── */

.ob-brand {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-logo {
  display: block;
  height: 26px;
  width: auto;
  filter: brightness(0);
}

[data-theme="dark"] .ob-logo {
  filter: brightness(0) invert(1);
}

.ob-card {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  min-height: 540px;
  max-height: 860px;
  display: grid;
  grid-template-columns: minmax(440px, 0.8fr) 1.2fr;
  background: var(--ob-card);
  border: 1px solid var(--ob-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.ob-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 40px 64px 32px;
  overflow-y: auto;
}

/* Fade only: a transform here would become the back button's positioning box */
.ob-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: ob-fade 0.24s ease both;
}

.ob-pane-body,
.ob-steps {
  width: 100%;
  max-width: 380px;
  margin-top: clamp(32px, 11vh, 120px);
}

.ob-step {
  display: flex;
  flex-direction: column;
  animation: ob-in 0.24s ease both;
}

.ob-step.is-back {
  animation-name: ob-in-back;
}

/* ── Type ──────────────────────────────────────────────────────────────── */

.ob-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ob-ink);
}

.ob-sub {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ob-muted);
}

.ob-sub strong {
  color: var(--ob-ink);
  font-weight: 600;
  word-break: break-all;
}

.ob-foot {
  margin: auto 0 0;
  padding-top: 32px;
  font-size: 14px;
  color: var(--ob-muted);
}

.ob-fineprint {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ob-faint);
}

.ob-fineprint a {
  color: inherit;
  text-underline-offset: 2px;
}

/* ── Fields ────────────────────────────────────────────────────────────── */

.ob-form {
  display: flex;
  flex-direction: column;
}

.ob-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ob-label {
  font-size: 13px;
  font-weight: 550;
  color: var(--ob-muted);
}

.ob-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ob-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--ob-input-border);
  border-radius: 9px;
  background: var(--ob-input-bg);
  color: var(--ob-ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ob-input::placeholder {
  color: var(--ob-faint);
}

.ob-input:hover {
  border-color: var(--ob-input-border-hover);
}

.ob-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--ob-ring);
}

.ob-input[readonly] {
  background: var(--ob-soft);
  border-color: var(--ob-input-border);
  color: var(--ob-muted);
  box-shadow: none;
  cursor: default;
}

.ob-input[aria-invalid="true"] {
  border-color: var(--ob-danger);
}

.ob-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px var(--ob-danger-ring);
}

.ob-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ob-danger);
}

.ob-input-wrap {
  position: relative;
}

.ob-input-wrap .ob-input {
  padding-right: 46px;
}

.ob-screen .toggle-password {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ob-faint);
  cursor: pointer;
  transform: translateY(-50%);
}

.ob-screen .toggle-password:hover {
  color: var(--ob-ink);
  background: var(--ob-soft);
}

.toggle-password .icon-eye-off,
.toggle-password[aria-pressed="true"] .icon-eye {
  display: none;
}

.toggle-password[aria-pressed="true"] .icon-eye-off {
  display: block;
}

/* ── Buttons & links ───────────────────────────────────────────────────── */

.ob-btn {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.ob-btn-primary {
  margin-top: 8px;
  background: var(--color-primary);
  color: #fff;
}

.ob-btn-primary:hover:not(:disabled) {
  background: var(--ob-primary-hover);
}

.ob-btn-secondary {
  background: var(--ob-card);
  border-color: var(--ob-input-border);
  color: var(--ob-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.ob-btn-secondary:hover:not(:disabled) {
  background: var(--ob-soft);
}

.ob-btn-quiet {
  margin-top: 8px;
  background: transparent;
  color: var(--ob-muted);
  font-weight: 550;
}

.ob-btn-quiet:hover:not(:disabled) {
  color: var(--ob-ink);
  background: var(--ob-soft);
}

.ob-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.ob-btn.is-busy::before {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ob-spin 0.7s linear infinite;
}

.ob-google {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.ob-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ob-ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.ob-link:hover {
  text-decoration-color: currentColor;
}

.ob-link-muted {
  font-size: 13px;
  font-weight: 500;
  color: var(--ob-muted);
}

/* Sits in the card's top-left corner, its arrow lined up with the form's edge */
.ob-back {
  position: absolute;
  top: 28px;
  left: 55px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ob-muted);
  cursor: pointer;
}

.ob-back:hover {
  background: var(--ob-soft);
  color: var(--ob-ink);
}

.ob-screen :is(.ob-btn, .ob-link, .ob-back, .toggle-password, .ob-role, .ob-add-row):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.ob-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ob-faint);
}

.ob-divider::before,
.ob-divider::after {
  content: '';
  flex: 1;
  border-top: 1px dashed var(--ob-input-border);
}

/* ── Notices ───────────────────────────────────────────────────────────── */

.ob-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 60, 60, 0.28);
  border-radius: 9px;
  background: rgba(201, 60, 60, 0.07);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ob-ink);
}

.ob-alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke-width: 1.75;
}

.ob-alert-success {
  border-color: rgba(22, 150, 90, 0.28);
  background: rgba(22, 150, 90, 0.08);
}

.ob-alert-info {
  border-color: rgba(47, 95, 208, 0.25);
  background: rgba(47, 95, 208, 0.07);
}

.ob-alert-warn {
  border-color: rgba(198, 132, 26, 0.32);
  background: rgba(198, 132, 26, 0.09);
}

.ob-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--ob-border);
  border-radius: 12px;
  background: var(--ob-soft);
  color: var(--ob-ink);
}

.ob-mark .ob-icon {
  width: 20px;
  height: 20px;
}

.ob-pane-body > .ob-btn-secondary + .ob-alert,
#email-verify-pane .ob-btn-secondary {
  margin-top: 4px;
}

/* ── Invite your team (onboarding.js) ──────────────────────────────────── */

.ob-invite-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-invite-row {
  position: relative;
}

.ob-invite-row.is-open {
  z-index: 10;
}

.ob-invite-row .ob-input {
  padding-right: 136px;
}

.ob-role-picker {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

.ob-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  color: var(--ob-ink);
  cursor: pointer;
}

.ob-role .ob-icon {
  color: var(--ob-faint);
}

.ob-role:hover,
.ob-role[aria-expanded="true"] {
  background: var(--ob-soft);
}

.ob-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 168px;
  padding: 4px;
  background: var(--ob-card);
  border: 1px solid var(--ob-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.06);
  animation: ob-fade 0.12s ease both;
}

.ob-menu-item {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ob-ink);
  text-align: left;
  cursor: pointer;
}

.ob-menu-item:hover,
.ob-menu-item:focus-visible {
  background: var(--ob-soft);
  outline: none;
}

.ob-menu-check {
  visibility: hidden;
  color: var(--color-primary);
}

.ob-menu-item[aria-selected="true"] .ob-menu-check {
  visibility: visible;
}

.ob-invite-row + .ob-error {
  margin-top: -4px;
}

.ob-invite-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 20px;
}

.ob-add-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px dashed var(--ob-input-border);
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--ob-muted);
  cursor: pointer;
}

.ob-add-row:hover:not(:disabled) {
  color: var(--ob-ink);
  background: var(--ob-soft);
}

.ob-add-row:disabled {
  opacity: 0.5;
  cursor: default;
}

.ob-seats {
  font-size: 13px;
  color: var(--ob-faint);
}

/* Shown over the app while it loads underneath */
.ob-screen.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  overflow-y: auto;
  animation: ob-fade 0.25s ease both;
}

.ob-screen.ob-overlay.is-leaving {
  animation: ob-fade-out 0.25s ease both;
}

/* ── App sketch ────────────────────────────────────────────────────────── */

.ob-side {
  position: relative;
  min-width: 0;
  container-type: size;
  overflow: hidden;
  background: var(--ob-side-bg);
  border-left: 1px solid var(--ob-border);
}

.pv {
  position: absolute;
  top: 14%;
  left: 12%;
  width: 780px;
  /* Fits the panel, so the name row at the bottom never drops out of view */
  height: min(620px, calc(86cqh - 72px));
  font-size: 13px;
  user-select: none;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* One line about SafiTrack, for screens with nothing to sketch yet */
.ob-statement {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px clamp(32px, 10%, 120px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.ob-statement-line {
  max-width: 520px;
  margin: 0;
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ob-ink);
}

.ob-statement-by {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  color: var(--ob-muted);
}

/* A rep's day drawing itself above the statement (app-sketch.js) */
.rt {
  width: min(440px, 78cqw);
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--pv-surface);
  border: 1px solid var(--pv-border-strong);
  border-radius: 14px;
  box-shadow: var(--pv-shadow);
  text-align: left;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.rt.is-fading {
  opacity: 0;
}

.rt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pv-border);
}

.rt-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pv-active);
  font-size: 10.5px;
  font-weight: 650;
  color: var(--ob-muted);
}

.rt-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ob-ink);
}

.rt-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--ob-faint);
}

.rt-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ob-muted);
  font-variant-numeric: tabular-nums;
}

.rt-count b {
  font-weight: 650;
  color: var(--ob-ink);
}

.rt-map {
  aspect-ratio: 2 / 1;
  border-bottom: 1px solid var(--pv-border);
}

.rt-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rt-park {
  fill: var(--rt-park);
}

.rt-road,
.rt-street,
.rt-plan,
.rt-done {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rt-road {
  stroke: var(--rt-road);
  stroke-width: 9;
}

.rt-street {
  stroke: var(--rt-street);
  stroke-width: 4;
}

.rt-plan {
  stroke: var(--rt-plan);
  stroke-width: 2;
  stroke-dasharray: 0.5 6;
}

.rt-done {
  stroke: var(--rt-ink);
  stroke-width: 3;
}

.rt-start {
  fill: var(--rt-ink);
}

.rt-stop {
  fill: var(--pv-surface);
  stroke: var(--rt-plan);
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.rt-stop.is-reached {
  fill: var(--rt-ink);
  stroke: var(--rt-ink);
}

.rt-label {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--ob-muted);
  stroke: var(--pv-surface);
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rt-label.is-on {
  opacity: 1;
}

.rt-you-dot {
  fill: var(--rt-you);
  stroke: var(--pv-surface);
  stroke-width: 2;
}

.rt-you-ring {
  fill: var(--rt-you);
  opacity: 0.16;
  transform-box: fill-box;
  transform-origin: center;
  animation: rt-pulse 1.8s ease-out infinite;
}

@keyframes rt-pulse {
  from { transform: scale(0.5); opacity: 0.3; }
  to { transform: scale(1.4); opacity: 0; }
}

/* What got logged, newest on top; --rt-rows of them show */
.rt {
  --rt-rows: 3;
}

.rt-feed {
  position: relative;
  height: calc(var(--rt-rows) * 46px + 12px);
  padding: 0 14px;
}

.rt-event {
  position: absolute;
  top: 8px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  opacity: 0;
  transform: translateY(calc(var(--place, 0) * 46px - 8px));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.rt-event.is-in {
  opacity: 1;
  transform: translateY(calc(var(--place, 0) * 46px));
}

.rt-event-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ob-faint);
}

.rt-event-text b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ob-ink);
}

.rt-tile {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  color: #fff;
}

.rt-tile svg {
  width: 13px;
  height: 13px;
}

.rt-tile--company {
  background: #2563eb;
}

.rt-tile--deal {
  background: #c95809;
}

.rt-tile--task {
  background: var(--pv-active);
  color: var(--ob-ink);
}

/* Short panels: the byline and a row of the feed go first, then the route */
@container (max-height: 720px) {
  .ob-statement-by {
    display: none;
  }

  .rt {
    --rt-rows: 2;
  }
}

@container (max-height: 540px) {
  .rt {
    display: none;
  }
}

.ob-side[data-show="statement"] .ob-statement {
  opacity: 1;
  visibility: visible;
}

.ob-side .pv {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.ob-side[data-show="statement"] .pv {
  opacity: 0;
  transform: translateY(16px);
}

/* The team corner is at the sketch's far right: slide it into view */
.pv[data-focus="team"] {
  transform: translateX(min(0px, calc(88cqw - 780px - 12cqw)));
}

.pv-app {
  display: grid;
  grid-template-columns: 212px 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  background: var(--pv-surface);
  border: 1px solid var(--pv-border-strong);
  border-radius: 14px;
  box-shadow: var(--pv-shadow);
}

.pv-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 10px;
  border-right: 1px solid var(--pv-border);
}

.pv-bar {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: var(--pv-bar);
  vertical-align: middle;
}

.pv-bar-sm {
  height: 6px;
}

.pv-ws,
.pv-user,
.pv-team {
  position: relative;
  z-index: 1;
  border-radius: 9px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background-color 0.4s ease;
}

.pv-ws {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  transform-origin: left center;
}

.pv-ws-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pv-ws-mark:empty {
  background: var(--pv-bar);
}

.pv-ws-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  color: var(--ob-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pv-chevron {
  width: 14px;
  height: 14px;
  color: var(--ob-faint);
}

.pv-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin: 8px 0 10px;
  padding: 0 8px;
  border: 1px solid var(--pv-border);
  border-radius: 7px;
  color: var(--ob-faint);
}

.pv-search .ob-icon {
  width: 14px;
  height: 14px;
}

.pv-kbd {
  margin-left: auto;
  padding: 0 4px;
  border: 1px solid var(--pv-border);
  border-radius: 4px;
  font-size: 10px;
  line-height: 16px;
  color: var(--ob-faint);
}

.pv-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
}

.pv-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--ob-muted);
}

.pv-nav-item.is-active {
  background: var(--pv-active);
  color: var(--ob-ink);
}

.pv-nav-label {
  padding: 14px 8px 6px;
}

.pv-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  transform-origin: left center;
}

.pv-avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pv-bar);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pv-avatar:not(:empty) {
  background: var(--color-primary);
}

.pv-user-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pv-user-name {
  max-width: 140px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ob-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pv-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--pv-border);
}

.pv-page {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ob-muted);
}

.pv-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  transform-origin: right center;
}

.pv-team-avatars {
  display: flex;
}

.pv-team-avatars .pv-avatar {
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border: 2px solid var(--pv-surface);
  font-size: 10px;
}

.pv-team-avatars .pv-avatar:first-child {
  margin-left: 0;
}

.pv-invite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.pv-invite .ob-icon {
  width: 14px;
  height: 14px;
}

.pv-toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--pv-border);
}

.pv-chip {
  height: 24px;
  border: 1px dashed var(--pv-border-strong);
  border-radius: 7px;
}

.pv-table {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.pv-row {
  display: grid;
  grid-template-columns: 14px 1.4fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--pv-border);
}

.pv-row-head {
  height: 34px;
}

.pv-check {
  width: 13px;
  height: 13px;
  border: 1px solid var(--pv-border-strong);
  border-radius: 4px;
}

.pv-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-dot {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pv-bar);
}

/* The part of the app the current step is about lifts out; the rest recedes */
.pv-sidebar > *,
.pv-main > *,
.pv-page {
  transition: opacity 0.4s ease;
}

.pv[data-focus="workspace"] [data-pv="workspace"],
.pv[data-focus="profile"] [data-pv="profile"],
.pv[data-focus="team"] [data-pv="team"] {
  z-index: 3;
  background: var(--pv-surface);
  box-shadow: 0 0 0 1.5px var(--color-primary), 0 0 0 6px var(--ob-ring), 0 18px 40px rgba(16, 24, 40, 0.16);
  transform: scale(1.14);
}

.pv[data-focus="workspace"] :is(.pv-search, .pv-nav, .pv-user, .pv-main > *),
.pv[data-focus="profile"] :is(.pv-ws, .pv-search, .pv-nav, .pv-main > *),
.pv[data-focus="team"] :is(.pv-sidebar > *, .pv-page, .pv-toolbar, .pv-table) {
  opacity: 0.4;
}

/* ── Motion ────────────────────────────────────────────────────────────── */

@keyframes ob-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes ob-in-back {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes ob-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ob-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ob-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ob-pane,
  .ob-step,
  .ob-screen.ob-overlay,
  .pv *,
  .rt,
  .rt * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Smaller screens: the sketch drops away, the form takes the page ──── */

@media (max-width: 960px) {
  .ob-card {
    grid-template-columns: 1fr;
    max-width: 520px;
    max-height: none;
    min-height: 0;
  }

  .ob-side {
    display: none;
  }

  .ob-main {
    padding: 32px 40px 28px;
  }

  .ob-back {
    left: 31px;
  }
}

@media (max-width: 560px) {
  .ob-screen {
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: var(--ob-card);
  }

  .ob-brand {
    height: 64px;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .ob-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ob-main {
    padding: 8px 20px 24px;
  }

  .ob-back {
    position: static;
    margin: 0 0 4px -8px;
  }

  .ob-pane-body,
  .ob-steps {
    margin-top: 16px;
  }

  /* 16px text stops iOS zooming into the field on focus */
  .ob-input {
    height: 46px;
    font-size: 16px;
  }

  .ob-btn {
    height: 46px;
  }
}

/* Record tiles in the sketch: the same blue / orange squares as the app's
   sidebar (styles.css isn't loaded on the invite page, so they're here) */
.pv-tile {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 4px;
  color: #fff;
}

.pv-tile svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.pv-tile--company,
.pv-tile--person {
  background: #2563eb;
}

.pv-tile--deal {
  background: #c95809;
}
