:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: rgba(17, 24, 39, 0.85);
  --border-color: #374151;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-sub: #6b7280;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  --accent-violet: #8b5cf6;

  --grade-5: #10b981;
  --grade-4: #38bdf8;
  --grade-3: #fbbf24;
  --grade-2: #f87171;
  --grade-debt: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* Верхняя панель */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.group-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f9fafb, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

/* Кнопки */
button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa, var(--accent-blue));
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: #374151;
}

.full-width {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

/* Навигация по вкладкам */
.main-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}
.main-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.tab-btn.active {
  background: var(--bg-tertiary);
  color: #fff;
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge {
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 700;
}

/* Контейнер контента */
.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Заголовки секций */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Контролы дат в расписании */
.date-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.85rem;
}
.chip.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.custom-date-input {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.current-date-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Сетка карточек */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Карточка пары / предмета */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: #4b5563;
  transform: translateY(-2px);
}

.lesson-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lesson-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--accent-cyan);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.lesson-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}

.lesson-teacher {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.lesson-topic-box {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid var(--accent-blue);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.lesson-hw-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-amber);
  color: #fde68a;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Пустое расписание (выходной) */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  grid-column: 1 / -1;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Выбор студента */
.student-selector-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .student-selector-bar {
    flex-direction: row;
    align-items: center;
  }
}

.custom-select {
  width: 100%;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}
.custom-select:focus {
  border-color: var(--accent-blue);
}

/* Профиль студента (Hero Card) */
.profile-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .profile-hero-card {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Алерт долгов */
.debts-alert-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-rose);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}
.debts-alert-title {
  color: #fca5a5;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Оценки (бейдж) */
.marks-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mark-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mark-pill .mark-date {
  font-size: 0.68rem;
  opacity: 0.7;
}

.mark-5 { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.mark-4 { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.mark-3 { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.mark-2 { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.5); }
.mark-debt { background: rgba(225, 29, 72, 0.3); color: #fda4af; border: 1px solid rgba(225, 29, 72, 0.6); }
.mark-absent { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.4); }
.mark-late { background: rgba(107, 114, 128, 0.3); color: #d1d5db; border: 1px solid rgba(107, 114, 128, 0.5); }
.mark-present { background: rgba(30, 41, 59, 0.6); color: #94a3b8; border: 1px solid #334155; }

/* Таблица рейтинга */
.rating-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .rating-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-input {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  width: 100%;
  max-width: 320px;
}

.table-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
.rating-table th {
  background: var(--bg-tertiary);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.rating-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
}
.rating-table tr:hover {
  background: rgba(31, 41, 55, 0.6);
  cursor: pointer;
}

.rank-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.rank-1 { color: #facc15; }
.rank-2 { color: #cbd5e1; }
.rank-3 { color: #f97316; }

.text-center { text-align: center; }

/* Секция Долги */
.debts-header-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.debts-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-rose);
}
.debts-stat-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Вкладка Событий / Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.timeline-item.grade { border-left-color: var(--accent-emerald); }
.timeline-item.absence { border-left-color: var(--accent-rose); }
.timeline-item.hw { border-left-color: var(--accent-amber); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.timeline-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.timeline-time {
  font-size: 0.75rem;
  color: var(--text-sub);
}
.timeline-body {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 4px 8px;
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.instruction-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  align-items: flex-start;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.host-url-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 20px;
}
.url-label {
  font-size: 0.75rem;
  color: var(--text-sub);
}
.url-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  word-break: break-all;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  color: #fff;
  border: 1px solid var(--accent-blue);
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 300;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
}

/* Дополнительные стили для графиков и аудиторий */
.tab-source-pill {
  font-size: 0.65rem;
  background: rgba(45, 140, 255, 0.2);
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 4px;
}

.schedule-meta-badge {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.room-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.time-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Сетка графиков */
.analytics-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .analytics-charts-grid {
    grid-template-columns: 1fr 1.4fr;
  }
}

.chart-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.chart-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
}
.chart-badge.group-benchmark {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  width: fit-content;
}
.status-pill.gold { background: rgba(250, 204, 21, 0.2); color: #fde047; border: 1px solid rgba(250, 204, 21, 0.4); }
.status-pill.success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-pill.primary { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-pill.danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

/* Аналитическая сетка */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .analytics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.radar-card {
  display: flex;
  flex-direction: column;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.radar-legend {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.student-dot { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.group-dot { background: var(--accent-amber); opacity: 0.8; }

.radar-chart-wrap {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Статус успеваемости */
.academic-status-banner {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.academic-status-banner.gold { background: rgba(250, 204, 21, 0.15); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.4); }
.academic-status-banner.green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.academic-status-banner.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.academic-status-banner.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }

/* Полоса распределения оценок */
.grade-distribution-bar {
  display: flex;
  height: 14px;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: 14px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
.dist-segment {
  height: 100%;
  transition: width 0.3s ease;
}
.dist-5 { background: var(--grade-5); }
.dist-4 { background: var(--grade-4); }
.dist-3 { background: var(--grade-3); }
.dist-2 { background: var(--grade-2); }

/* Плитки оценок */
.grade-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.grade-stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
}
.grade-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 800;
}
.grade-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.grade-stat-pct {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Блок посещаемости */
.attendance-stats-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-around;
  font-size: 0.85rem;
}
.att-item {
  text-align: center;
}
.att-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
}
.att-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Бейджи расписания */
.time-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.room-badge {
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.skp-source-badge {
  font-size: 0.7rem;
  color: var(--text-sub);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
}
