/* Live impact: move accounts, the BoogieBoard re-counts on the spot */

/* ---------- Board ---------- */

.bbi-li-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid var(--bbi-line);
}

.bbi-li-head > .bbi-tile { width: 36px; height: 36px; border-radius: 11px; }
.bbi-li-head > .bbi-tile svg { width: 19px; height: 19px; }
.bbi-li-title b { display: block; font-size: 16px; font-weight: 800; color: var(--bbi-ink); }
.bbi-li-title small { display: block; font-size: 12px; font-weight: 600; color: var(--bbi-muted); white-space: nowrap; }

.bbi-li-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bbi-surface-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--bbi-muted);
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.bbi-li-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bbi-good);
  box-shadow: 0 0 0 0 rgba(26, 174, 111, 0.5);
  animation: bbi-li-beat 1.8s ease-out infinite;
}

.bbi-li-live.is-hot { box-shadow: 0 0 0 2px rgba(26, 174, 111, 0.35); }
.bbi-li-live.is-done { background: var(--bbi-good-bg); color: var(--bbi-good); }

@keyframes bbi-li-beat {
  0% { box-shadow: 0 0 0 0 rgba(26, 174, 111, 0.5); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(26, 174, 111, 0); }
}

.bbi-li-score { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bbi-li-score b { display: block; font-size: 13px; font-weight: 800; color: var(--bbi-ink); white-space: nowrap; }
.bbi-li-score small { display: block; font-size: 12px; font-weight: 600; color: var(--bbi-muted); white-space: nowrap; }

.bbi-li-ring {
  --li-score: 67;
  --li-color: var(--bbi-good);
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--li-color) calc(var(--li-score) * 1%), var(--bbi-line) 0);
}

.bbi-li-ring.is-bad { --li-color: var(--bbi-bad); }

.bbi-li-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.bbi-li-ring b {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 800;
  color: var(--bbi-ink);
  font-variant-numeric: tabular-nums;
}

.bbi-li-grid {
  display: grid;
  grid-template-columns: 196px repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  align-items: center;
  padding: 0 18px;
}

.bbi-li-cols {
  height: 32px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bbi-muted);
  white-space: nowrap;
}

.bbi-li-row { height: 50px; }

.bbi-li-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bbi-li-who .bbi-avatar { width: 32px; height: 32px; }
.bbi-li-who b { display: block; font-size: 14px; font-weight: 800; color: var(--bbi-ink); line-height: 1.25; white-space: nowrap; }
.bbi-li-who small { display: block; font-size: 12px; font-weight: 600; color: var(--bbi-muted); white-space: nowrap; }

.bbi-li-cell {
  height: 38px;
  padding: 0 10px 0 12px;
  font-size: 16px;
  font-weight: 800;
}

/* What the move changed, riding on the cell's top edge */
.bbi-li-chg {
  position: absolute;
  top: -9px;
  right: 8px;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--bbi-grad-brand);
  box-shadow: 0 4px 10px -4px rgba(94, 114, 228, 0.6);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(4px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.45s var(--bbi-spring);
}

.bbi-li-chg.is-on { opacity: 1; transform: none; }

/* ---------- Account List ---------- */

.bbi-li-list__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 12px 0 16px;
  font-size: 15px;
  color: var(--bbi-ink);
}

.bbi-li-list__head > b { font-weight: 800; }

.bbi-li-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px 0 3px;
  border-radius: 8px;
  background: var(--bbi-surface-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--bbi-navy);
  white-space: nowrap;
}

.bbi-li-node .bbi-avatar { width: 20px; height: 20px; box-shadow: none; }

.bbi-li-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  margin-left: auto;
  padding: 0 4px 0 12px;
  border-radius: 11px;
  background: var(--bbi-surface-2);
}

.bbi-li-sel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bbi-muted);
  white-space: nowrap;
}

.bbi-li-sel b { color: var(--bbi-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.bbi-li-sel svg { width: 13px; height: 13px; }
.bbi-li-sel.is-done { color: var(--bbi-good); font-weight: 800; }

.bbi-li-bulk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--bbi-line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--bbi-indigo);
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}

.bbi-li-bulk.is-ready { opacity: 1; border-color: rgba(94, 114, 228, 0.35); }
.bbi-li-bulk.is-pressed { transform: scale(0.95); }
.bbi-li-chev { width: 12px; height: 12px; flex: none; }

.bbi-li-acols,
.bbi-li-arow {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 90px 120px 170px;
  align-items: center;
  column-gap: 12px;
}

.bbi-li-acols {
  height: 28px;
  margin: 0 16px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bbi-muted);
  white-space: nowrap;
}

.bbi-li-arows { padding: 0 16px; }

.bbi-li-arow {
  height: 40px;
  padding: 0 8px;
  border-top: 1px solid var(--bbi-line);
  border-radius: 10px;
  transition: background-color 0.4s ease;
}

.bbi-li-arow.is-selected { background: rgba(94, 114, 228, 0.05); }

.bbi-li-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cfd6ea;
  background: #fff;
  color: #fff;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.bbi-li-check svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.4); transition: opacity 0.2s ease, transform 0.3s var(--bbi-spring); }
.bbi-li-check.is-on { background: var(--bbi-indigo); border-color: var(--bbi-indigo); }
.bbi-li-check.is-on svg { opacity: 1; transform: none; }
.bbi-li-check.is-pressed { transform: scale(0.85); }

.bbi-li-acct {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--bbi-ink);
  white-space: nowrap;
}

.bbi-li-dot { width: 14px; height: 14px; flex: none; border-radius: 5px; background: var(--bbi-grad-brand); }
.bbi-li-dot--teal { background: linear-gradient(135deg, #2dcecc, #11a7c4); }
.bbi-li-dot--orange { background: linear-gradient(135deg, #fc8453, #fc5f08); }

.bbi-li-num { font-size: 13px; font-weight: 600; color: var(--bbi-muted); font-variant-numeric: tabular-nums; }

.bbi-li-rep {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px 0 3px;
  border-radius: 9px;
  border: 1px solid var(--bbi-line);
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.bbi-li-rep .bbi-avatar { width: 22px; height: 22px; box-shadow: none; }
.bbi-li-rep b { font-weight: 700; color: var(--bbi-ink); }
.bbi-li-rep.is-changed { border-color: var(--bbi-good-edge); background: #f3fcf7; }

/* Bulk Actions menu and rep picker */

.bbi-li-menu { padding: 6px; }

.bbi-li-menu__item {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 34px;
  color: var(--bbi-ink);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.bbi-li-menu__item.is-target { background: rgba(94, 114, 228, 0.08); color: var(--bbi-indigo); }
.bbi-li-menu__item.is-pressed { transform: scale(0.97); }

.bbi-li-pick { padding: 6px; }

.bbi-li-pick__head {
  padding: 8px 10px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bbi-muted);
}

.bbi-li-opt {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.bbi-li-opt .bbi-avatar { grid-row: 1 / span 2; width: 28px; height: 28px; box-shadow: none; }
.bbi-li-opt b { font-size: 13px; font-weight: 800; color: var(--bbi-ink); line-height: 1.25; }
.bbi-li-opt small { font-size: 11px; font-weight: 600; color: var(--bbi-muted); line-height: 1.25; }
.bbi-li-opt.is-target { background: rgba(94, 114, 228, 0.06); }
.bbi-li-opt.is-on { background: rgba(94, 114, 228, 0.14); }
.bbi-li-opt.is-pressed { transform: scale(0.97); }
