/* mood.css — Zodaiya Mood Tracker styles */

/* ── Variables (inherit from global, define fallbacks) ──────────────────────── */
:root {
  --accent: var(--color-accent, #a78bfa);
  --accent-glow: var(--color-accent-glow, rgba(167, 139, 250, 0.35));
  --bg: var(--color-bg, #0d0d1a);
  --surface: var(--color-surface, rgba(255, 255, 255, 0.04));
  --border: var(--color-border, rgba(255, 255, 255, 0.1));
  --text: var(--color-text, #e2e8f0);
  --text-muted: var(--color-text-muted, #94a3b8);
  --success: var(--color-success, #34d399);
  --error: var(--color-error, #f87171);
  --radius: 12px;
}

/* ── Page Layout ────────────────────────────────────────────────────────────── */
.mood-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Glass Card ─────────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
}

/* ── Tab Navigation ─────────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

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

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Mood Form ──────────────────────────────────────────────────────────────── */
.mood-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-emoji {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}

/* ── Custom Range Sliders ───────────────────────────────────────────────────── */
.slider-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 1rem;
}

.mood-slider,
.energy-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 8px;
  padding: 12px 0; /* Larger touch area */
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #f87171 0%,
    #fbbf24 50%,
    #34d399 100%
  );
  position: relative;
}

/* Thumb */
.mood-slider::-webkit-slider-thumb,
.energy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.mood-slider::-moz-range-thumb,
.energy-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.mood-slider:hover::-webkit-slider-thumb,
.energy-slider:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--accent), 0 0 12px var(--accent-glow);
}

.slider-value-display {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.slider-value {
  display: inline-block;
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
  color: var(--accent-light, #d4a843);
  font-size: 1.1rem;
}

/* ── Emotion Tags ───────────────────────────────────────────────────────────── */
.emotion-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.emotion-tag {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.emotion-tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

.emotion-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d1a;
  font-weight: 600;
}

/* ── Journal Textarea ───────────────────────────────────────────────────────── */
.journal-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.journal-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.journal-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px var(--accent-glow);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-submit {
  align-self: flex-end;
}

.btn-icon {
  font-size: 1.1rem;
}

/* ── Timeline ───────────────────────────────────────────────────────────────── */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.moon-phase-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.timeline-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.timeline-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timeline-scores {
  display: flex;
  gap: 0.5rem;
}

.mood-score-badge,
.energy-score-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}

.timeline-emotions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.emotion-pill {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  color: var(--accent);
}

.timeline-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

.timeline-loading,
.insights-loading,
.dreams-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

/* ── Insights ───────────────────────────────────────────────────────────────── */
.insights-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
}

.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.stat-value.positive {
  color: var(--success);
}

.stat-value.negative {
  color: var(--error);
}

.ai-narrative {
  font-size: 0.95rem;
  line-height: 1.7;
}

.narrative-text {
  color: var(--text);
  margin: 0;
  font-style: italic;
}

.chart-container {
  overflow: hidden;
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-label {
  font-size: 10px;
  fill: var(--text-muted);
}

.chart-value {
  font-size: 10px;
  fill: var(--text);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.legend-retro {
  display: inline-block;
  width: 16px;
  height: 12px;
  background: rgba(255, 80, 80, 0.25);
  border: 1px solid rgba(255, 80, 80, 0.5);
  border-radius: 2px;
  flex-shrink: 0;
}

.insights-progress {
  text-align: center;
  padding: 2rem;
}

.insights-progress h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.insights-progress p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.progress-bar-outer {
  background: var(--border);
  border-radius: 4px;
  height: 8px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.upgrade-cta {
  text-align: center;
  padding: 2.5rem 2rem;
}

.upgrade-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.upgrade-cta h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

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

.upgrade-btn {
  margin: 0 auto;
}

/* ── Dream Section ──────────────────────────────────────────────────────────── */
.dream-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dream-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dream-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.pro-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dream-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tag-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tag-input:focus {
  outline: none;
  border-color: var(--accent);
}

.tag-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.dream-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dream-card {
  border-left: 3px solid rgba(167, 139, 250, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dream-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dream-moon-icon {
  font-size: 1.25rem;
}

.dream-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dream-description {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.dream-emotions,
.dream-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dream-interpretation {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.interpretation-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s;
}

.interpretation-toggle:hover {
  opacity: 0.8;
}

.interpretation-content {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: rgba(167, 139, 250, 0.06);
  border-radius: 8px;
}

.interpretation-content p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ── Pro Gate Overlay ───────────────────────────────────────────────────────── */
.pro-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 26, 0.85);
  z-index: 1000;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.pro-gate-content {
  text-align: center;
  max-width: 360px;
  padding: 2.5rem 2rem;
}

.pro-gate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pro-gate-content h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.pro-gate-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Toast Notifications ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}

.toast.toast-visible {
  transform: translateX(0);
}

.toast.toast-success {
  border-color: var(--success);
}

.toast.toast-error {
  border-color: var(--error);
}

/* ── Focus Visible (Accessibility) ──────────────────────────────────────────── */
.mood-slider:focus-visible,
.energy-slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.mood-slider:focus-visible::-webkit-slider-thumb,
.energy-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--accent), 0 0 16px var(--accent-glow);
}

.mood-slider:focus-visible::-moz-range-thumb,
.energy-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px var(--accent), 0 0 16px var(--accent-glow);
}

/* ── Responsive: Tablet (max-width: 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  .mood-page {
    padding: 1.5rem 1rem 3rem;
  }

  .page-header h1 {
    font-size: 1.65rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  /* Tabs: horizontal scroll */
  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }

  .tab-btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* Form elements stack vertically */
  .mood-form {
    gap: 1.5rem;
  }

  .slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .mood-slider,
  .energy-slider {
    width: 100%;
    flex: none;
  }

  .slider-label {
    min-width: unset;
  }

  .slider-value-display {
    text-align: left;
  }

  /* Stats grid: 2 columns on tablet */
  .stat-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem 0.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  /* Glass card reduced padding */
  .glass-card {
    padding: 1.25rem;
  }

  /* Buttons full width */
  .btn-submit {
    align-self: stretch;
    width: 100%;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
  }

  /* Pro gate */
  .pro-gate-content {
    padding: 2rem 1.5rem;
  }

  /* Toast positioning */
  .toast-container {
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
  }

  .toast {
    max-width: 100%;
  }

  /* Upgrade CTA */
  .upgrade-cta {
    padding: 2rem 1.5rem;
  }
}

/* ── Responsive: Mobile (max-width: 480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .mood-page {
    padding: 1rem 0.65rem 2.5rem;
  }

  .page-header {
    margin-bottom: 1.25rem;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .page-subtitle {
    font-size: 0.82rem;
  }

  /* Tabs: wrap or scroll */
  .tab-nav {
    flex-wrap: wrap;
    gap: 0;
    overflow-x: auto;
  }

  .tab-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  /* Form spacing */
  .mood-form {
    gap: 1.25rem;
  }

  .form-label {
    font-size: 0.88rem;
  }

  /* Smaller slider thumbs on small screens */
  .mood-slider::-webkit-slider-thumb,
  .energy-slider::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }

  .mood-slider::-moz-range-thumb,
  .energy-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
  }

  .mood-slider,
  .energy-slider {
    height: 6px;
    padding: 10px 0;
  }

  .slider-emoji {
    font-size: 1.2rem;
  }

  /* Emotion tags: horizontal scroll */
  .emotion-tags-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    position: relative;
  }

  .emotion-tags-grid::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    bottom: 0;
    min-width: 2rem;
    min-height: 100%;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    flex-shrink: 0;
  }

  .emotion-tags-grid::-webkit-scrollbar {
    display: none;
  }

  .emotion-tag {
    flex-shrink: 0;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
  }

  /* Glass card minimal padding */
  .glass-card {
    padding: 1rem;
    border-radius: 10px;
  }

  /* Journal textarea */
  .journal-textarea {
    min-height: 100px;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Stats: single column */
  .stat-cards-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.875rem 0.75rem;
  }

  .stat-icon {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  /* Timeline */
  .timeline-card-header {
    gap: 0.5rem;
  }

  .moon-phase-icon {
    font-size: 1.4rem;
  }

  .timeline-date {
    font-size: 0.82rem;
  }

  .timeline-excerpt {
    font-size: 0.82rem;
  }

  /* Dream section */
  .dream-header h2 {
    font-size: 1.1rem;
  }

  .dream-description {
    font-size: 0.85rem;
  }

  /* Buttons */
  .btn-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
  }

  .btn-secondary {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }

  /* Toast full-width on mobile */
  .toast-container {
    bottom: 0.75rem;
    right: 0.5rem;
    left: 0.5rem;
  }

  .toast {
    max-width: none;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
  }

  .toast, .mood-toast {
    bottom: env(keyboard-inset-bottom, 0.75rem);
  }

  /* Loading spinner slightly larger for tap targets */
  .loading-spinner {
    width: 36px;
    height: 36px;
  }

  /* Pro gate */
  .pro-gate-content {
    padding: 1.5rem 1rem;
  }

  .pro-gate-icon {
    font-size: 2.25rem;
  }

  .pro-gate-content h3 {
    font-size: 1.1rem;
  }

  .pro-gate-content p {
    font-size: 0.88rem;
  }

  /* Upgrade CTA */
  .upgrade-cta {
    padding: 1.5rem 1rem;
  }

  .upgrade-icon {
    font-size: 2rem;
  }

  .upgrade-cta h3 {
    font-size: 1.1rem;
  }

  /* Chart */
  .chart-title {
    font-size: 0.9rem;
  }

  /* Insights narrative */
  .ai-narrative {
    font-size: 0.88rem;
  }
}
