/* Supporting roles: distinct BDR books + SE overlay */

.bbi-sr-terr__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 0;
}

.bbi-sr-terr__head .bbi-avatar { width: 40px; height: 40px; }
.bbi-sr-terr__head b { display: block; font-size: 15px; font-weight: 800; color: var(--bbi-ink); line-height: 1.2; }
.bbi-sr-terr__head small { display: block; font-size: 12px; font-weight: 600; color: var(--bbi-muted); }
.bbi-sr-terr__role { margin-left: auto; }

.bbi-sr-frame {
  position: absolute;
  top: 72px;
  left: 14px;
  width: 376px;
  height: 248px;
  border: 2px dashed #b9a2f5;
  border-radius: 16px;
  background: rgba(130, 94, 228, 0.04);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bbi-sr-frame.is-on { opacity: 1; }

.bbi-sr-frame__tab {
  position: absolute;
  top: -14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px 0 3px;
  border-radius: 999px;
  background: #825ee4;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(130, 94, 228, 0.7);
}

.bbi-sr-frame__tab .bbi-avatar { width: 20px; height: 20px; box-shadow: none; }

.bbi-sr-frame__tab em {
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-style: normal;
}

.bbi-sr-shared {
  position: absolute;
  top: 98px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.bbi-sr-bookhead {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding-bottom: 4px;
  border-bottom: 3px solid currentColor;
  font-size: 13px;
  font-weight: 800;
  transition: opacity 0.3s ease;
}

.bbi-sr-bookhead b { color: var(--bbi-ink); }
.bbi-sr-bookhead .bbi-avatar { width: 22px; height: 22px; box-shadow: none; }
.bbi-sr-bookhead--alex { color: #11a7c4; }
.bbi-sr-bookhead--nina { color: #fc7c3c; }

.bbi-sr-bookhead__n {
  margin-left: auto;
  min-width: 26px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: currentColor;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bbi-sr-bookhead__n { color: #fff; }
.bbi-sr-bookhead--alex .bbi-sr-bookhead__n { background: #11a7c4; }
.bbi-sr-bookhead--nina .bbi-sr-bookhead__n { background: #fc7c3c; }

.bbi-sr-chip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 170px;
  height: 27px;
  padding: 0 10px 0 6px;
  border-radius: 9px;
  border: 1px solid var(--bbi-line);
  background: #fff;
  box-shadow: var(--bbi-shadow-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--bbi-ink);
  white-space: nowrap;
  transition: background-color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.bbi-sr-chip i {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 5px;
  background: var(--bbi-faint);
  transition: background 0.35s ease;
}

.bbi-sr-chip.is-alex { background: #f0fafc; border-color: #b4e3ee; }
.bbi-sr-chip.is-alex i { background: linear-gradient(135deg, #2dcecc, #11a7c4); }
.bbi-sr-chip.is-nina { background: #fff6f0; border-color: #ffd3b8; }
.bbi-sr-chip.is-nina i { background: linear-gradient(135deg, #fc8453, #fc5f08); }
.bbi-sr-chip.is-flying { z-index: 4; box-shadow: 0 14px 24px -10px rgba(50, 50, 93, 0.45); }

/* Roles card */

.bbi-sr-roles__body { padding: 0 16px; }

.bbi-sr-group {
  display: flex;
  align-items: center;
  margin: 14px 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bbi-muted);
}

.bbi-sr-group:first-child { margin-top: 0; }

.bbi-sr-group span {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bbi-indigo);
}

.bbi-sr-role {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
}

.bbi-sr-role .bbi-avatar { width: 30px; height: 30px; box-shadow: 0 0 0 2px #fff; }
.bbi-sr-role__who b { display: block; font-size: 14px; font-weight: 800; color: var(--bbi-ink); line-height: 1.2; }
.bbi-sr-role__who small { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--bbi-muted); }
.bbi-sr-role__who small b { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--bbi-good); }
.bbi-sr-role__who small svg { width: 11px; height: 11px; }

.bbi-sr-switch {
  margin-left: auto;
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: var(--bbi-grad-brand);
  transition: filter 0.3s ease;
}

.bbi-sr-switch.is-off { filter: grayscale(1) brightness(1.45); }

.bbi-sr-switch i {
  position: absolute;
  top: 3px;
  left: 19px;
  transition: left 0.3s var(--bbi-spring);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bbi-sr-switch.is-off i { left: 3px; }

.bbi-sr-overlay { margin-left: auto; background: #f1ebff; color: #6b46d6; }

.bbi-sr-sf {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef8fe;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #0b6fa8;
}

.bbi-sr-go {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px;
  font-size: 13px;
}

.bbi-sr-go svg { width: 16px; height: 16px; flex: none; }

/* BDR book table */

.bbi-sr-grid {
  display: grid;
  grid-template-columns: 104px 70px 84px 1fr;
  gap: 7px 10px;
  align-items: center;
  padding: 0 16px;
}

.bbi-sr-th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bbi-muted);
  white-space: nowrap;
}

.bbi-sr-who {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--bbi-ink);
  white-space: nowrap;
}

.bbi-sr-who i { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.bbi-sr-who--alex i { background: #11a7c4; }
.bbi-sr-who--nina i { background: #fc7c3c; }

.bbi-sr-cell {
  justify-content: center;
  height: 38px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.bbi-sr-bal { display: flex; align-items: center; gap: 8px; }
.bbi-sr-bal .bbi-bar { flex: 1; overflow: visible; }
.bbi-sr-bal .bbi-bar__fill { transition: background 0.4s ease; }

.bbi-sr-table .bbi-card__head { padding: 14px 18px 10px; }

.bbi-sr-bal em {
  width: 34px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
  color: var(--bbi-ink);
  font-variant-numeric: tabular-nums;
}
