/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-bg: #f1f5f9;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --sidebar-bg: #ffffff;
  --sidebar-text: #475569;
  --sidebar-text-muted: #94a3b8;
  --sidebar-hover: #f1f5f9;
  --sidebar-active: #eff6ff;
  --sidebar-width: 260px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --max-width: 860px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

html {
  font-family: var(--font);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none !important;
  letter-spacing: -0.01em;
}

.sidebar-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--sidebar-text-muted);
  margin-top: 0.15rem;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
}

.sidebar-section {
  margin-bottom: 0.25rem;
}

.sidebar-section-label {
  padding: 0.6rem 1.25rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sidebar-text-muted);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.87rem;
  font-weight: 450;
  color: var(--sidebar-text);
  text-decoration: none !important;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--color-text);
  text-decoration: none !important;
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--color-primary);
  font-weight: 500;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  border-radius: 0 2px 2px 0;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-link.active svg {
  opacity: 1;
  stroke: var(--color-primary);
}

.sidebar-icon-emoji {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem;
  color: var(--sidebar-text-muted);
}

/* ===== MOBILE HEADER (hidden on desktop) ===== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  z-index: 150;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

.mobile-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none !important;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 190;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 2rem 2.5rem;
  max-width: calc(var(--max-width) + 5rem);
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 25px rgba(0,0,0,0.3);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 68px 1rem 1.5rem;
    max-width: 100%;
  }
}

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; }

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
}

.card-hover {
  transition: all var(--transition);
}

.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); }

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover:not(:disabled) { background: var(--color-border); }

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* Rating buttons */
.rating-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-again {
  background: var(--color-danger);
  color: white;
}
.btn-again:hover { background: #b91c1c; }

.btn-hard {
  background: var(--color-warning);
  color: white;
}
.btn-hard:hover { background: #d97706; }

.btn-good {
  background: var(--color-primary);
  color: white;
}
.btn-good:hover { background: var(--color-primary-dark); }

.btn-easy {
  background: var(--color-success);
  color: white;
}
.btn-easy:hover { background: #15803d; }

.rating-buttons .btn {
  flex: 1;
  min-width: 80px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-new { background: var(--color-bg); color: var(--color-text-muted); }
.badge-learning { background: var(--color-primary-light); color: var(--color-primary); }
.badge-mastered { background: var(--color-success-light); color: var(--color-success); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-bg);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.progress-bar .segment-mastered {
  background: var(--color-success);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-bar .segment-learning {
  background: var(--color-primary);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-bar .segment-easy {
  background: var(--color-success);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-bar .segment-good {
  background: var(--color-primary);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-bar .segment-hard {
  background: var(--color-warning);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-bar .segment-again {
  background: var(--color-danger);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-bar .segment-new {
  background: var(--color-border);
  height: 100%;
  transition: width 0.3s ease;
}

/* ===== FLASHCARD ===== */
.flashcard-container {
  perspective: 1000px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.flashcard {
  position: relative;
  width: 100%;
  min-height: 300px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  min-height: 300px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  gap: 0.75rem;
  overflow: hidden;
}

.flashcard-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  overflow-y: auto;
}

.flashcard-word {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  word-break: break-word;
  max-width: 100%;
}

.flashcard-definition {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.flashcard-extra {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

.flashcard-image {
  max-width: 100%;
  max-height: 160px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 1;
}

.flashcard-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  font-weight: 600;
}

.flashcard-hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: auto;
}

/* Audio button */
.audio-btn {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.1rem;
}

.audio-btn:hover {
  background: var(--color-primary);
  color: white;
}

.audio-btns {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.audio-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ===== STUDY HEADER ===== */
.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.study-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.study-counter {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Select */
select {
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

/* ===== LESSON LIST ===== */
.lesson-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.lesson-info { flex: 1; min-width: 0; }

.lesson-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.lesson-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.lesson-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ===== PROGRESS LEGEND ===== */
.progress-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.progress-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.lesson-card-block {
  padding: 1rem 1.25rem;
}

/* ===== WRITING CATEGORIES ===== */
.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-icon {
  font-size: 2rem;
  line-height: 1;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.category-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}

.category-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* ===== INFO PAGE ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { margin: 0 0.25rem; }

.info-content h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.info-content h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-primary-dark);
}

.info-content p {
  margin: 0.5rem 0;
  line-height: 1.7;
}

.info-content ul, .info-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.info-content li {
  margin: 0.3rem 0;
  line-height: 1.6;
}

.info-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.info-content th, .info-content td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.info-content th {
  background: var(--color-bg);
  font-weight: 600;
}

.info-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-box-do {
  background: var(--color-success-light);
  border-left: 4px solid var(--color-success);
}

.info-box-dont {
  background: var(--color-danger-light);
  border-left: 4px solid var(--color-danger);
}

.info-box-tip {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
}

.info-box-warn {
  background: var(--color-warning-light);
  border-left: 4px solid var(--color-warning);
}

.info-content details {
  margin: 0.75rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.info-content summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.info-content details[open] summary {
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.info-content details > div {
  padding: 1rem;
}

.pdf-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.pdf-links h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin: 0.25rem;
}

/* ===== PRACTICE EDITOR ===== */
.practice-area {
  margin-top: 1rem;
}

.practice-textarea {
  width: 100%;
  min-height: 250px;
  padding: 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.7;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
}

.practice-textarea:focus {
  border-color: var(--color-primary);
}

.practice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.word-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.practice-actions {
  display: flex;
  gap: 0.5rem;
}

/* AI Feedback */
.ai-feedback {
  margin-top: 1.5rem;
}

.ai-feedback-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.ai-feedback-content h3 {
  color: var(--color-primary-dark);
}

.ai-feedback-content p {
  margin: 0.5rem 0;
}

.ai-feedback-content strong {
  color: var(--color-text);
}

.ai-feedback-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.ai-feedback-content li {
  margin: 0.3rem 0;
}

.ai-feedback-content h2 {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
}

.ai-feedback-content ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.ai-feedback-content code {
  background: var(--color-bg);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.ai-feedback-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.ai-feedback-content th,
.ai-feedback-content td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.ai-feedback-content th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.ai-feedback-content tr:nth-child(even) {
  background: var(--color-bg);
}

.ai-feedback-content .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: var(--color-text-muted);
  justify-content: center;
}

/* ===== HOME PAGE ===== */
.home-hero {
  text-align: center;
  padding: 2rem 0;
}

.home-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-hero p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .home-sections { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 1.5rem; }
}

.home-section-card {
  padding: 1.5rem;
  text-align: center;
}

.home-section-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.home-section-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.home-stat {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.home-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ===== SESSION COMPLETE ===== */
.session-complete {
  text-align: center;
  padding: 3rem 1rem;
}

.session-complete h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.session-complete p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.session-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

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

.session-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.session-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== TOGGLE SWITCH ===== */
.toggle-group {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.toggle-option {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font);
  transition: all var(--transition);
}

.toggle-option.active {
  background: var(--color-primary);
  color: white;
}

.toggle-option:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

/* ===== PROMPT SELECTOR ===== */
.prompt-selector {
  margin-bottom: 1rem;
}

.prompt-selector label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-light); }

.sidebar::-webkit-scrollbar-thumb { background: var(--color-border); }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--color-text-light); }

/* ===== PRACTICE TABS ===== */
.practice-prompt-section {
  margin-bottom: 0.5rem;
}

.practice-prompt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1rem;
}

.practice-tab {
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.practice-tab:hover {
  color: var(--color-text);
}

.practice-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
