@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #87A878;
  --primary-light: #A8C69F;
  --primary-dark: #C4DEB5;
  --accent: #E8F0E3;
  --accent-light: #4A5D4A;
  --accent-glow: rgba(201, 169, 110, 0.15);
  --bg: #2B3F82;
  --bg-warm: #35509A;
  --surface: #3F63B0;
  --surface-hover: #4B78C7;
  --text: #5A8FDB;
  --text-secondary: #6FA6E8;
  --text-muted: #8ABCF2;
  --border: #A9D0F8;
  --border-light: #C7E3FD;
  --success: #E6F3FF;
  --danger: #F7FBFF;
  --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.04);
  --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.06);
  --shadow-lg: 0 8px 24px rgba(45, 42, 38, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.header-content {
  animation: fadeDown 0.5s ease;
}

.app-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

/* Tab Bar */
.tab-bar {
  display: flex;
  gap: 0.25rem;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

.tab-btn:hover {
  background: var(--bg-warm);
  color: var(--text-secondary);
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.tab-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Main */
.app-main {
  flex: 1;
  padding: 0 1.5rem 2rem;
}

/* Loading */
.loading-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-card {
  height: 120px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-warm) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-md);
  animation: shimmer 1.5s infinite;
}

.skeleton-card.short { height: 60px; }
.skeleton-card.tall { height: 320px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: fadeInUp 0.4s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Entry Card */
.entry-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.15s;
}

.entry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.entry-date {
  font-family: 'DM Serif Display', serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
}

.completed-badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--success);
  background: rgba(107, 143, 94, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

.entry-prompt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* Gratitude Inputs */
.gratitude-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gratitude-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.field-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.gratitude-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: all 0.2s ease;
  outline: none;
  min-height: 44px;
}

.gratitude-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.gratitude-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Save Button */
.save-btn {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.save-btn:hover:not(.disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.save-btn.saved {
  background: var(--success);
}

/* Recent Section */
.recent-section {
  margin-top: 2rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  animation: fadeInUp 0.4s ease both;
}

.recent-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.5rem;
}

.recent-gratitudes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.recent-gratitudes li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.recent-gratitudes li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Calendar View */
.calendar-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.month-stats-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  animation: fadeInUp 0.4s ease both;
}

.month-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.month-stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.month-stat-value {
  font-size: 0.8125rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.progress-bar-track {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 3px;
  transition: width 0.5s ease;
  min-width: 0;
}

.month-pct {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Calendar Card */
.calendar-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
  animation-delay: 0.08s;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: 'DM Sans', sans-serif;
}

.nav-btn:hover {
  background: var(--bg-warm);
  border-color: var(--border);
}

.month-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text);
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.day-header {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.15s ease;
  gap: 1px;
}

.day-cell.empty { background: transparent; }
.day-cell.future { opacity: 0.3; }

.day-cell.clickable {
  cursor: pointer;
}

.day-cell.clickable:hover {
  background: var(--bg-warm);
  transform: scale(1.05);
}

.day-num {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1;
}

.day-check {
  font-size: 0.5rem;
  color: var(--accent);
  line-height: 1;
}

.day-cell.completed {
  background: var(--accent-glow);
}

.day-cell.completed .day-num {
  color: var(--primary-dark);
  font-weight: 600;
}

.day-cell.today {
  border: 1.5px solid var(--primary-light);
}

.day-cell.today .day-num {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Entry Modal */
.entry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 38, 0.3);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.entry-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleIn 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-warm);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: 'DM Sans', sans-serif;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-date {
  font-family: 'DM Serif Display', serif;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.modal-gratitudes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.modal-gratitude-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.modal-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-gratitude-item span:last-child {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Reflect View */
.reflect-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  animation: fadeInUp 0.4s ease both;
}

.quote-text {
  font-family: 'DM Serif Display', serif;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.reflect-action {
  text-align: center;
  padding: 1rem 0;
  animation: fadeInUp 0.4s ease both;
  animation-delay: 0.08s;
}

.reflect-prompt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 300;
}

.reflect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--surface);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
  min-height: 48px;
}

.reflect-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.reflect-btn:active {
  transform: translateY(0);
}

.reflect-btn-icon {
  font-size: 1rem;
}

/* Reflection Card */
.reflection-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  animation: scaleIn 0.35s ease;
}

.reflection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reflection-date {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--text);
}

.reflection-ago {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-glow);
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

.reflection-divider {
  height: 1px;
  background: var(--border-light);
  margin-bottom: 1rem;
}

.reflection-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.reflection-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: fadeInUp 0.4s ease both;
}

.reflection-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.reflection-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeInUp 0.5s ease both;
}

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

.empty-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.total-entries-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .app-header {
    padding: 1.5rem 1rem 0.75rem;
  }

  .app-title {
    font-size: 1.75rem;
  }

  .tab-bar {
    padding: 0 1rem;
  }

  .app-main {
    padding: 0 1rem 2rem;
  }

  .stats-row {
    gap: 0.5rem;
  }

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

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

  .entry-card {
    padding: 1.25rem;
  }

  .entry-modal {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
}

@media (max-width: 360px) {
  .entry-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .reflection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}


<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Grateful — your daily gratitude journal. Let's write today's entry.", "view": "user", "highlight_selector": ".entry-card", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Type three things you're grateful for in these fields. They can be big or small.", "view": "user", "highlight_selector": ".gratitude-inputs", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Tap Save Entry to record your gratitude. You can update it anytime today.", "view": "user", "highlight_selector": ".save-btn", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Your stats show your current streak, total entries, and gratitudes written.", "view": "user", "highlight_selector": ".stats-row", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Switch to the Calendar tab to see which days you've completed entries.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Completed days are highlighted. Tap any completed day to read that entry.", "view": "user", "highlight_selector": ".calendar-grid", "wait_for": "tap_to_continue"},
  {"step": 7, "narration": "The Reflect tab shows a random past entry — perfect for revisiting good memories.", "view": "user", "highlight_selector": ".tab-btn:nth-child(3)", "wait_for": "user_interaction"},
  {"step": 8, "narration": "Tap 'Show Random Entry' to pull up a past gratitude moment for reflection.", "view": "user", "highlight_selector": ".reflect-btn", "wait_for": "user_interaction"}
]
-->

.reflect-auth-btn {
  width: 100%;
  justify-content: center;
}

.auth-error {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--danger);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stats-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
}

.stats-card:nth-child(1) { animation-delay: 0s; }
.stats-card:nth-child(2) { animation-delay: 0.05s; }
.stats-card:nth-child(3) { animation-delay: 0.1s; }
.stats-card:nth-child(4) { animation-delay: 0.15s; }

.stats-card-wide {
  grid-column: 1 / -1;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--primary-dark);
  line-height: 1;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 360px) {
  .stats-panel {
    grid-template-columns: 1fr;
  }
}

.charts-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.charts-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.charts-toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.charts-toggle-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.charts-toggle-btn.active {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.chart-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.chart-canvas {
  width: 100%;
  height: 240px;
  display: block;
}

.chart-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

@media (max-width: 360px) {
  .charts-toggle {
    flex-direction: column;
  }

  .charts-toggle-btn {
    width: 100%;
  }

  .chart-meta {
    flex-direction: column;
  }
}

.recent-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.share-btn,
.share-menu-btn,
.pdf-month-select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover,
.share-menu-btn:hover,
.pdf-month-select:hover {
  background: var(--bg-warm);
  color: var(--text);
}

.share-menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-menu-btn {
  background: var(--bg-warm);
}

.pdf-export-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdf-export-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.pdf-month-select {
  min-height: 44px;
}

.pdf-export-btn {
  min-width: 160px;
}

.monthly-pdf-preview {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.monthly-pdf-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
}

.monthly-pdf-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.monthly-pdf-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.monthly-pdf-item {
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.monthly-pdf-item-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.monthly-pdf-item ul {
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

.monthly-pdf-item li {
  margin-bottom: 0.35rem;
}

.monthly-pdf-mood {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 360px) {
  .recent-item-row,
  .pdf-export-controls,
  .monthly-pdf-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
