/* ═══════════════════════════════════════════════
   SCREEN: TOPICS BROWSER
   ═══════════════════════════════════════════════ */

.app-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  padding-top: calc(var(--safe-top) + var(--space-md));
  background: transparent;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

.app-header.scrolled {
  background: rgba(8, 12, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.btn-icon.small {
  width: 32px;
  height: 32px;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

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

.header-title {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

.header-stats {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transform-origin: top;
  transition: max-height 300ms var(--ease-premium),
              opacity 220ms var(--ease-premium),
              transform 300ms var(--ease-premium),
              padding 300ms var(--ease-premium),
              border-color 300ms var(--ease-premium);
}

.search-bar.hidden {
  display: flex !important;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: max-height 230ms var(--ease-out),
              opacity 180ms var(--ease-out),
              transform 230ms var(--ease-out),
              padding 230ms var(--ease-out),
              border-color 230ms var(--ease-out);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

/* Progress overview */
.progress-overview {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  margin: var(--space-md) var(--space-lg) 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.progress-ring-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.progress-ring {
  width: 64px;
  height: 64px;
}

.progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-accent);
}

.progress-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.progress-main {
  font-size: 0.95rem;
  font-weight: 600;
}

.progress-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* View mode toggle */
.view-mode-bar {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg) var(--space-sm);
}

.view-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.view-btn.active {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.view-btn svg {
  width: 15px;
  height: 15px;
}

/* Topics list */
.topics-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-sm) var(--space-lg) calc(var(--safe-bottom) + var(--space-xl));
  -webkit-overflow-scrolling: touch;
}

.topic-group {
  margin-bottom: var(--space-lg);
  animation: slideUp var(--duration-slow) var(--ease-out) both;
}

.topic-group:nth-child(2) { animation-delay: 50ms; }
.topic-group:nth-child(3) { animation-delay: 100ms; }
.topic-group:nth-child(4) { animation-delay: 150ms; }
.topic-group:nth-child(5) { animation-delay: 200ms; }
.topic-group:nth-child(6) { animation-delay: 250ms; }

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

.topic-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: var(--space-md) 0 var(--space-sm);
}

.topic-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--duration-fast);
  margin-bottom: var(--space-sm);
  -webkit-user-select: none;
  user-select: none;
  animation: listItemFloatIn 420ms var(--ease-premium) both;
}

.topic-card:hover {
  background: var(--bg-card-elevated);
  border-color: var(--border-active);
  transform: translateX(5px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22), 0 0 22px rgba(245,158,11,0.05);
}

.topic-card:active {
  transform: scale(0.98);
}

.topic-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
}

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

.topic-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.topic-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.topic-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.topic-badge.new {
  background: rgba(20, 184, 166, 0.14);
  color: #5eead4;
}

.topic-badge.progress {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.topic-badge.done {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
}

.topic-due-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
  animation: due-pulse 2s ease-in-out infinite;
}

@keyframes due-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

.topic-arrow {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.topic-arrow svg {
  width: 16px;
  height: 16px;
}

/* "All Cards" list view */
.all-card-item {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.all-card-item:hover {
  border-color: var(--border-active);
  background: var(--bg-card-elevated);
}

.all-card-item .card-type-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
}

.all-card-item .card-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ═══════════════════════════════════════════════
   SCREEN: FLASHCARD VIEWER
   ═══════════════════════════════════════════════ */

.card-header {
  background: rgba(8, 12, 12, 0.92);
  backdrop-filter: blur(12px);
}

.header-card-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.header-card-controls::-webkit-scrollbar {
  display: none;
}

#btn-read-aloud.active {
  color: var(--accent-2);
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-1);
}

.card-progress-bar {
  height: 3px;
  background: var(--bg-surface);
  position: relative;
}

.card-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
  width: 0%;
}

.cards-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: -30px; /* Optically center it on screen, ignoring header */
  padding: var(--space-md) var(--space-lg);
  overflow: hidden;
  /* Deeper perspective for more tactile 3D */
  perspective: 1200px;
  perspective-origin: 50% 45%;
}

.card-container {
  width: 100%;
  max-width: 440px;
  height: clamp(300px, 55vh, 480px);
  position: relative;
  transform-style: preserve-3d;
  /* Spring-bounce flip — feels physical */
  transition: transform var(--duration-flip) var(--ease-flip);
  cursor: pointer;
  will-change: transform, opacity;
}

.card-container.flipped {
  transform: none;
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Card front: clean slate, physical paper feel */
.card-front {
  background: var(--gradient-card-front);
  border: 1px solid rgba(255,255,255,0.07);
  transform: translateZ(0.1px);
  transition: transform var(--duration-flip) var(--ease-flip);
  /* Layered shadow = physical depth */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 4px 0 rgba(0,0,0,0.2),
    0 8px 32px rgba(0,0,0,0.5);
}

/* Card back: revealed answer, amber accent glow */
.card-back {
  background: var(--gradient-card-back);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(245,158,11,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 4px 0 rgba(0,0,0,0.2),
    0 8px 32px rgba(0,0,0,0.5),
    0 0 64px rgba(245,158,11,0.06);
  transform: rotateY(180deg) translateZ(0.1px);
  transition: transform var(--duration-flip) var(--ease-flip);
}

.card-container.flipped .card-front {
  transform: rotateY(180deg) translateZ(0.1px);
}

.card-container.flipped .card-back {
  transform: rotateY(360deg) translateZ(0.1px);
}

/* Swipe-to-rate color overlay */
.card-back::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--swipe-tint, transparent);
  pointer-events: none;
  transition: background var(--duration-fast);
  z-index: 10;
}

/* Dragging state visual feedback */
.card-container.dragging .card-front,
.card-container.dragging .card-back {
  /* Lift up effect: stronger shadow, subtle scale down is handled by transform in JS if needed, but shadow does the trick */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 32px 80px rgba(0,0,0,0.8),
    0 0 64px rgba(20, 184, 166, 0.15); /* Subtle teal glow */
  border-color: rgba(20, 184, 166, 0.4);
}

.card-type-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  align-self: flex-start;
}

/* Card type labels — teal-anchored palette */
.card-type-label.concept {
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
}

.card-type-label.recall {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.card-type-label.cloze {
  background: rgba(20, 184, 166, 0.14);
  color: #2dd4bf;
}

.card-type-label.command {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
}

.card-type-label.diagram {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.card-type-label.scenario {
  background: rgba(251, 113, 133, 0.13);
  color: #fda4af;
}

.card-type-label.interview {
  background: rgba(52, 211, 153, 0.13);
  color: #6ee7b7;
}

.card-type-label.reference {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.card-type-label.qa {
  background: rgba(245, 158, 11, 0.13);
  color: #fcd34d;
}

.card-type-label.mistake {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.card-type-label.advanced {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.card-title {
  /* Display font + bigger size for question prominence */
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: var(--space-md);
  letter-spacing: 0;
  color: var(--text-primary);
}

/* Card front question gets even bigger treatment */
.card-front .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e8efef;
}

.card-body.card-question {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw + 0.4rem, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: #e0e7e7;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-body.card-question p {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  margin-bottom: var(--space-sm);
}
.card-body.card-question p:last-child {
  margin-bottom: 0;
}

.card-question-reminder {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.card-question-reminder p {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  margin-bottom: var(--space-xs);
}
.card-question-reminder p:last-child {
  margin-bottom: 0;
}

.card-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
}

.card-back .card-body {
  overflow-x: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.card-body p {
  margin-bottom: var(--space-md);
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.card-body code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(20, 184, 166, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.15);
}

.card-body pre {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(20, 184, 166, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  overflow-x: auto;
  max-width: 100%;
  touch-action: pan-x;
  margin: var(--space-md) 0;
  font-size: 0.78rem;
  line-height: 1.65;
}

.card-body pre code {
  background: none;
  padding: 0;
  border: none;
  color: #99f6e4;
  font-size: inherit;
}

.card-body ul, .card-body ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.card-body li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.card-body table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.8rem;
  touch-action: pan-x;
}

.card-body th, .card-body td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.card-body th {
  background: rgba(20, 184, 166, 0.08);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body blockquote {
  border-left: 3px solid var(--accent-1);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ── RTL language support (Urdu, Arabic, etc.) ──────────────────────────
   dir="auto" on .card-body handles text flow automatically.
   These overrides correct structural decorations that don't auto-flip. */
.card-body[dir="rtl"] ul,
.card-body[dir="rtl"] ol {
  padding-left: 0;
  padding-right: var(--space-lg);
}

.card-body[dir="rtl"] th,
.card-body[dir="rtl"] td {
  text-align: right;
}

.card-body[dir="rtl"] blockquote {
  border-left: none;
  border-right: 3px solid var(--accent-1);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* dir="auto" is used for non-Urdu languages — text direction follows
   the script automatically without needing explicit RTL overrides. */

.card-flip-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: var(--space-lg);
  opacity: 0.6;
}

.card-flip-hint svg {
  width: 14px;
  height: 14px;
}

.card-flip-hint.pulse-hint {
  animation: pulseHint 2s infinite;
  color: var(--accent-1);
  opacity: 1;
  font-weight: 600;
}

.card-flip-hint.pulse-hint svg {
  animation: tapBounce 2s infinite;
  transform-origin: center;
}

@keyframes pulseHint {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes tapBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(0.9) translateY(4px); }
}

/* Swipe animation states */
.card-container.swipe-left {
  animation: swipeLeft 0.38s var(--ease-premium) forwards;
}
.card-container.swipe-right {
  animation: swipeRight 0.38s var(--ease-premium) forwards;
}

@keyframes swipeLeft {
  100% { transform: translate3d(-118%, -6px, 0) rotate(-10deg) scale(0.96); opacity: 0; }
}
@keyframes swipeRight {
  100% { transform: translate3d(118%, -6px, 0) rotate(10deg) scale(0.96); opacity: 0; }
}

.card-container.enter-from-left {
  animation: enterFromLeft 0.48s var(--ease-spring) forwards;
}
.card-container.enter-from-right {
  animation: enterFromRight 0.48s var(--ease-spring) forwards;
}

@keyframes enterFromLeft {
  0% { transform: translate3d(-74%, 16px, 0) rotate(-7deg) scale(0.94); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes enterFromRight {
  0% { transform: translate3d(74%, 16px, 0) rotate(7deg) scale(0.94); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
}


/* ═══════════════════════════════════════════════
   CARD RATING BAR — emoji pills after flip
   ═══════════════════════════════════════════════ */
.card-rating-bar {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  background: rgba(8, 12, 12, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: ratingSlideUp 0.42s var(--ease-spring) both;
}
.card-rating-bar.hidden { display: none; }

@keyframes ratingSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.92); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.btn-rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
  min-width: auto;
  font-family: inherit;
}
.btn-rating:active { transform: scale(0.9); }

.rating-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.btn-rating.again { color: var(--color-error, #ef4444); }
.btn-rating.again:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.35); box-shadow: 0 0 12px rgba(239,68,68,0.15); }
.btn-rating.hard { color: var(--color-hard); }
.btn-rating.hard:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.35); box-shadow: 0 0 12px rgba(239,68,68,0.15); }
.btn-rating.good { color: var(--color-good); }
.btn-rating.good:hover { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); box-shadow: 0 0 12px rgba(245,158,11,0.15); }
.btn-rating.easy { color: var(--color-easy); }
.btn-rating.easy:hover { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.35); box-shadow: 0 0 12px rgba(16,185,129,0.15); }


@media (max-width: 600px) {
  .app-header.card-header {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .header-card-controls {
    width: 100%;
    justify-content: space-between;
    padding-top: var(--space-xs);
    overflow-x: auto;
    padding-bottom: 4px; /* for scrollbar */
  }
}
