/* Sports & Templates section: shared tab bar plus the Sports page (sports.html). */

.st-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid #dbe4f0;
}

.st-tabs a {
  padding: 9px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.st-tabs a:hover { color: #244b70; }
.st-tabs a.active { color: #244b70; border-bottom-color: #244b70; }

.st-notice {
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
}

.st-notice a { color: #92400e; font-weight: 800; }

.st-defaults { margin-bottom: 14px; padding: 14px 16px; }

.st-panel-head h3 { margin: 0 0 2px; font-size: 14px; color: #1e293b; }
.st-panel-head p { margin: 0 0 12px; }

.st-subhead { margin: 4px 0 8px; font-size: 13px; color: #334155; }

.st-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.st-slot {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
  min-width: 0;
}

.st-slot-title { font-size: 12px; font-weight: 800; color: #334155; }
.st-slot-size { font-size: 11px; color: #64748b; }

.st-slot-preview {
  display: grid;
  place-items: center;
  height: 84px;
  overflow: hidden;
  border: 1px dashed #b8c5d8;
  border-radius: 8px;
  background: #fff repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 14px 14px;
  color: #94a3b8;
  font-size: 11px;
}

.st-slot-preview img { width: 100%; height: 100%; object-fit: contain; }
.st-slot[data-slot="round"] .st-slot-preview img { border-radius: 50%; object-fit: cover; aspect-ratio: 1; width: auto; }

.st-slot-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.st-slot-actions .split-btn { padding: 4px 8px; font-size: 11px; }

.st-tile {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe4f0;
  background: #f1f5f9;
}

.st-tile.empty {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 16px;
}

.st-sport-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }

.st-flag-row { display: grid; gap: 8px; }

.st-flag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}

.st-flag input { margin-top: 3px; flex: 0 0 auto; }
.st-flag span { display: grid; gap: 3px; min-width: 0; }
.st-flag strong { font-size: 12px; color: #334155; }
.st-flag small { color: #64748b; font-size: 12px; }

/* Homepage cards picker (edit sport modal) */
.st-cards { display: grid; gap: 12px; }
.st-cards-field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #334155; }
.st-cards select { width: 100%; min-width: 0; }
.st-cards-list { display: grid; gap: 6px; max-height: 220px; overflow: auto; padding: 8px; border: 1px solid #dbe4f0; border-radius: 10px; background: #f8fafc; }
.st-cards-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #334155; cursor: pointer; }
.st-cards-item small { color: #64748b; }
.st-cards-item.is-off { color: #94a3b8; cursor: not-allowed; }
