.sb-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--plum);
}

.sb-switch a {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sb-switch a:hover {
  color: var(--text);
}

.sb-switch a[aria-current="page"] {
  background: var(--volt);
  color: var(--ink);
}

.sb .hunt-settings {
  margin-top: 28px;
}

.sb .sb-add {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
}

.sb-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sb-empty {
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-l);
  color: var(--muted);
  text-align: center;
}

.sb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(130px, 1fr);
  gap: 10px 12px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--plum);
}

.sb-row.is-lead {
  border-color: var(--volt);
}

.sb-row label span,
.sb-profit span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.sb-now input {
  border-color: rgba(214, 255, 58, 0.45);
}

.sb-who {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sb-rank {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--plum-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
}

.sb-row.is-lead .sb-rank {
  background: var(--volt);
  color: var(--ink);
}

.sb-face {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--plum-2);
}

.sb-face.is-blank {
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
}

.sb-who strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.sb-del {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.sb-del:hover {
  background: var(--plum-2);
  color: var(--text);
}

.sb-row.is-confirm .sb-del {
  background: #ff7a8a;
  color: var(--ink);
}

.sb-profit {
  text-align: right;
}

.sb-profit b {
  display: block;
  font-stretch: 112%;
  font-weight: 900;
  font-size: 20px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sb-profit b.is-up {
  color: var(--volt);
}

.sb-profit b.is-down {
  color: #ff7a8a;
}

.sb-profit small {
  display: block;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--plum);
}

.sb-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.sb-timer > i {
  color: var(--muted);
  font-size: 18px;
}

.sb-timer strong {
  min-width: 96px;
  font-variant-numeric: tabular-nums;
}

.sb-timer strong.is-low {
  color: #ff7a8a;
}

.sb-mins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sb .sb-mins input {
  width: 56px;
  height: 34px;
  padding: 0 8px;
  text-align: center;
}

.sb-bar .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sb-bar > .btn {
  gap: 6px;
}

@media (max-width: 1100px) {
  .sb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sb-profit {
    text-align: left;
  }
}

@media (max-width: 1100px) {
  .sb .hunt-settings {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .sb .sb-add {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb .sb-add > * {
    grid-column: auto;
  }

  .sb .hunt-settings label:first-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .sb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sb-bar > .btn {
    width: 100%;
    justify-content: center;
  }
}
