/* Setting up an outreach account, and the locked sidebar that goes with it.
   Prefixed sbo- throughout: brand/onboarding.css is the client-facing Meta
   onboarding and already owns .onb-. */

.sbo {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.sbo-head { margin-bottom: 28px; }
.sbo-head h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.sbo-head p { margin: 0; color: var(--text-dim); }

/* ---- the step rail ---- */

.sbo-rail {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.sbo-rail::-webkit-scrollbar { display: none; }
.sbo-rail li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 0 auto;
  min-width: 68px;
  position: relative;
  color: var(--text-faint);
  font-size: .76rem;
}
.sbo-rail li::before {
  content: '';
  position: absolute;
  top: 11px;
  left: -2px;
  right: 50%;
  height: 1px;
  background: var(--border-strong);
}
.sbo-rail li:first-child::before { display: none; }
.sbo-rail-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text-faint);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.sbo-rail .is-now { color: var(--text); }
.sbo-rail .is-now .sbo-rail-mark {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.sbo-rail .is-done { color: var(--text-dim); }
.sbo-rail .is-done .sbo-rail-mark {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}
.sbo-rail .is-done::before { background: var(--good); }

/* ---- the one open step ---- */

.sbo-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sbo-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.sbo-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.sbo-card-step {
  display: block;
  font-size: .72rem;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.sbo-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.sbo-card-body { padding: 24px; }

.sbo-ask {
  margin: 0 0 16px;
  color: var(--text-dim);
}

/* ---- yes / no ---- */

.sbo-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sbo-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: auto;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.sbo-opt:hover { border-color: var(--accent-line); }
.sbo-opt:active { transform: translateY(1px); }
.sbo-opt.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.sbo-opt-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-faint);
  background: var(--panel);
}
.sbo-opt.is-on .sbo-opt-mark {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.sbo-opt b { font-weight: 500; }

/* ---- the make-an-address panel ---- */

.sbo-guide {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sbo-guide h3 {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 600;
}

.sbo-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.sbo-providers li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .92rem;
}
.sbo-providers svg { color: var(--good); flex: 0 0 auto; }

/* SBM is the part they have to get right, so it is the part that is marked.
   The space before it is set here rather than left to the markup, where it
   collapsed away. */
.sbo-sbm {
  font-style: normal;
  color: var(--accent);
  margin-left: .3em;
}
/* Inside the address there is no space to hold open. */
.sbo-sbm-tight { margin-left: 0; }

.sbo-rules {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sbo-rules > div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.sbo-rules > div:last-child { border-bottom: 0; }
.sbo-rules dt { color: var(--text-dim); font-size: .86rem; }
.sbo-rules dd { margin: 0; font-weight: 500; font-size: .92rem; }

.sbo-rule { margin-top: 20px; }
.sbo-rule h4 {
  margin: 0 0 12px;
  font-size: .92rem;
  font-weight: 600;
}

/* ---- fields ---- */

.sbo-field { margin-bottom: 16px; }
.sbo-field:last-child { margin-bottom: 0; }
.sbo-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .86rem;
  color: var(--text-dim);
}
.sbo-field input,
.sbo-field select {
  width: 100%;
  box-sizing: border-box;
}
.sbo-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: .8rem;
}
/* ---- daily numbers ---- */

/* One card, a row per kind of work. The number is the biggest thing in the
   row, set with a stepper either side of it, and the cap sits quietly at the
   end of the row instead of as a warning underneath. */
.sbo-nums {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.sbo-num {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 56px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.sbo-num + .sbo-num { border-top: 1px solid var(--border); }
.sbo-num-icon { color: var(--text-faint); display: grid; place-items: center; }
.sbo-num-text { min-width: 0; }
.sbo-num-text label {
  display: block;
  margin: 0;
  font-size: .94rem;
  font-weight: 500;
  color: var(--text);
}
.sbo-num-text small {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sbo-num-set {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--input-bg);
}
.sbo-num-step {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.sbo-num-step:hover { background: var(--panel-2); color: var(--text); }
.sbo-num-set input {
  width: 56px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
}
.sbo-num-set input::-webkit-outer-spin-button,
.sbo-num-set input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sbo-num-set input:focus { outline: none; }
.sbo-num-set:focus-within { border-color: var(--accent); }

.sbo-num-cap {
  font-size: .78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sbo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sbo-grid .sbo-field { margin-bottom: 0; }

.sbo-preview {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-inner);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: .9rem;
}
.sbo-preview b { color: var(--text); font-weight: 500; }

.sbo-note {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.55;
}

.sbo-error {
  margin: 16px 0 0;
  color: var(--danger);
  font-size: .88rem;
}

/* ---- outreach methods ---- */

.sbo-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sbo-method {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
.sbo-method.is-on { border-color: var(--accent-line); }
.sbo-method-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: auto;
  padding: 14px 16px;
  border: 0;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
}
.sbo-method-main:active { transform: none; }
.sbo-method.is-on .sbo-method-main { background: var(--accent-soft); }
.sbo-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: #fff;
}
.sbo-method.is-on .sbo-check {
  background: var(--accent);
  border-color: var(--accent);
}
.sbo-method-icon { color: var(--text-faint); display: grid; place-items: center; }
.sbo-method.is-on .sbo-method-icon { color: var(--accent); }
.sbo-method-text { min-width: 0; }
.sbo-method-text b {
  display: block;
  font-weight: 500;
  font-size: .95rem;
}
.sbo-tier {
  display: block;
  font-size: .8rem;
  margin-top: 1px;
}
/* Green down to grey: email converting less well than the phone does not
   make it a bad thing to be doing, so nothing here is red. */
.sbo-tier-1 { color: #157f44; font-weight: 500; }
.sbo-tier-2 { color: #5a8420; }
.sbo-tier-3 { color: #8a7314; }
.sbo-tier-4 { color: var(--warn); }
.sbo-tier-5 { color: var(--text-faint); }

.sbo-comfort {
  display: flex;
  gap: 6px;
  padding: 0 16px 14px 60px;
  background: var(--accent-soft);
  flex-wrap: wrap;
}
.sbo-chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text-dim);
  font-size: .8rem;
  cursor: pointer;
}
.sbo-chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--panel);
}

/* ---- recap ---- */

.sbo-recap {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sbo-recap > div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.sbo-recap > div:last-child { border-bottom: 0; }
.sbo-recap dt { color: var(--text-dim); font-size: .88rem; }
.sbo-recap dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  font-size: .92rem;
}

/* ---- actions ---- */

.sbo-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sbo-actions button { min-width: 104px; }

/* ---- the staged wait ---- */

.sbo-wait {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 0 40px;
  text-align: center;
}
.sbo-wait-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  animation: sbo-pulse 1.8s var(--ease) infinite;
}
@keyframes sbo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 10px transparent; }
}
.sbo-wait h2 {
  margin: 0 0 24px;
  font-size: 1.1rem;
  font-weight: 600;
}
.sbo-wait-bar {
  height: 3px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
  margin-bottom: 24px;
}
.sbo-wait-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .4s var(--ease);
}
.sbo-wait-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.sbo-wait-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-faint);
  font-size: .9rem;
  transition: color .2s var(--ease);
}
.sbo-wait-list .is-active { color: var(--text); }
.sbo-wait-list .is-done { color: var(--text-dim); }
.sbo-wait-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background .2s var(--ease);
}
.sbo-wait-list .is-active .sbo-wait-dot { background: var(--accent); }
.sbo-wait-list .is-done .sbo-wait-dot { background: var(--good); }

/* ---- the locked sidebar ---- */

.drawer-item.is-locked {
  opacity: .5;
  cursor: not-allowed;
}
.drawer-item.is-locked .nav-label { color: var(--text-faint); }
.sbo-lock { margin-left: auto; color: var(--text-faint); display: inline-flex; }
.sbo-pin {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-fg);
  font-size: .68rem;
  font-weight: 500;
  white-space: nowrap;
}
.drawer-item.is-onboarding.active .sbo-pin { background: var(--accent-dark); }

@media (max-width: 640px) {
  .sbo-choice,
  .sbo-grid,
  .sbo-num {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    row-gap: 6px;
  }
  .sbo-num-text small { white-space: normal; }
  .sbo-num-cap { grid-column: 2 / -1; text-align: left; }
  .sbo-card-head,
  .sbo-card-body { padding: 16px; }
  .sbo-actions { flex-direction: column-reverse; }
  .sbo-actions button { width: 100%; }
  .sbo-comfort { padding-left: 16px; }
}

/* The Meta Ads panel belongs to whoever runs the agency. An outreach account
   has the eight screens in its sidebar and nothing else, so the launcher that
   brand/meta-placeholder.js injects does not appear for them. */
body.is-outreach #agencyMetaLauncher,
body.is-outreach #agencyMetaSubnav { display: none !important; }

/* The reason a field will not go higher, said next to the field. */
