.sb-codex {
  background: #121722;
  border: 1px solid #2a364d;
  border-radius: 14px;
  padding: 18px;
}
.sb-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.sb-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sb-lbl {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #9aa7bd;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sb-input, .sb-select {
  width: 100%;
  padding: 9px 11px;
  background: #0b0e14;
  border: 1px solid #35445f;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.92rem;
  font-family: inherit;
}
.sb-input:focus, .sb-select:focus {
  outline: none;
  border-color: #eab308;
}
.sb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.sb-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #2b3850;
  background: #161e2d;
  color: #cbd5e1;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}
.sb-chip.is-on, .sb-chip:hover {
  background: rgba(234, 179, 8, 0.16);
  border-color: #eab308;
  color: #fde047;
}
.sb-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #232d40;
}
.sb-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #9aa7bd;
}
.sb-reset {
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.sb-reset:hover { border-color: #eab308; color: #fde047; }
.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 12px;
}
.sb-card {
  background: #0e131d;
  border: 1px solid #243045;
  border-radius: 11px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sb-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #f8fafc;
}
.sb-tier {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.sb-tier-S { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.45); }
.sb-tier-A { background: rgba(234, 179, 8, 0.16); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.45); }
.sb-tier-B { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.sb-tier-Utility { background: rgba(167, 139, 250, 0.16); color: #ddd6fe; border: 1px solid rgba(167, 139, 250, 0.45); }
.sb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sb-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 5px;
  background: #182132;
  color: #cbd5e1;
  border: 1px solid #2a3750;
}
.sb-tag--ok {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}
.sb-desc {
  margin: 0;
  font-size: 0.87rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.sb-patch {
  margin: 0;
  font-size: 0.8rem;
  color: #9aa7bd;
  padding-top: 6px;
  border-top: 1px dashed #253147;
}
.sb-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #9aa7bd;
  border: 1px dashed #334155;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .sb-bar { grid-template-columns: 1fr; }
  .sb-selects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .sb-selects { grid-template-columns: 1fr; }
  .sb-grid { grid-template-columns: 1fr; }
}
