/* Metadata card */
.note-meta {
  margin-bottom: 0.75em;
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
}

.note-meta .cover-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25em;
}

.note-meta .meta-row {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 0.75em;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-ui);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.note-meta .title {
  /* Playfair Display for editorial article title feel */
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: 0.3em;
  color: var(--text);
  letter-spacing: -0.015em;
  /* OpenType ligatures for elegance */
  font-feature-settings: 'liga' 1, 'calt' 1;
}

.note-meta .author {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75em;
}

.note-meta .summary {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1em;
  padding: 0.85em 1.1em;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  /* Subtle inner shadow for depth */
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: 0.75em;
}

.tag-pill {
  display: inline-block;
  padding: 0.2em 0.65em;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: default;
}

.view-original {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.45em 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background var(--transition),
              border-color var(--transition),
              transform var(--duration-feedback) var(--ease-out-quint);
  cursor: pointer;
}

.view-original:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
}

.view-original:active {
  transform: scale(0.97);
}

/* Callouts */
.callout {
  margin: 1.5em 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--callout-color, var(--accent));
  background: var(--bg-surface);
  overflow: hidden;
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6em 1em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.callout-content {
  padding: 0 1em 0.75em;
  font-size: 0.95rem;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Multi-column callout: flex row container */
.callout-multicolumn {
  display: flex;
  gap: 0.75em;
  margin: 1.5em 0;
  align-items: flex-start;
}
.callout-multicolumn > .callout {
  flex: 1;
  margin: 0;
}
@media (max-width: 600px) {
  .callout-multicolumn { flex-direction: column; }
}

/* Wikilinks */
.wikilink {
  color: var(--accent);
  padding: 0 0.1em;
  border-radius: var(--radius-sm);
  cursor: default;
}

/* Timestamp badges */
.timestamp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-surface);
  color: var(--accent);
  padding: 0.1em 0.5em;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
  vertical-align: baseline;
}

.timestamp-badge:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* YouTube embed */
.youtube-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5em 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 1.5em 0;
}

/* After carousel.js runs, empty image-grid divs get left behind — suppress them */
.image-grid:empty {
  display: none;
}

.image-grid img,
.image-grid video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.embed-image,
.embed-video {
  border-radius: var(--radius-md);
  display: block;
  margin: 1em auto;
  max-width: 100%;
  height: auto;
}

.embed-audio {
  display: block;
  margin: 1em auto;
  width: 100%;
}

/* Note list */
.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-card {
  display: flex;
  gap: 1em;
  padding: 1em;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  margin-bottom: 1.25em;
  cursor: pointer;
  transition: border-color var(--transition),
              background var(--transition),
              box-shadow var(--transition),
              transform var(--duration-state) var(--ease-out-quint);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  /* Entrance animation */
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
}

/* Stagger first 12 cards */
.note-list .note-card:nth-child(1)  { animation-delay: 0ms; }
.note-list .note-card:nth-child(2)  { animation-delay: 40ms; }
.note-list .note-card:nth-child(3)  { animation-delay: 80ms; }
.note-list .note-card:nth-child(4)  { animation-delay: 120ms; }
.note-list .note-card:nth-child(5)  { animation-delay: 160ms; }
.note-list .note-card:nth-child(6)  { animation-delay: 200ms; }
.note-list .note-card:nth-child(7)  { animation-delay: 240ms; }
.note-list .note-card:nth-child(8)  { animation-delay: 270ms; }
.note-list .note-card:nth-child(9)  { animation-delay: 300ms; }
.note-list .note-card:nth-child(10) { animation-delay: 330ms; }
.note-list .note-card:nth-child(11) { animation-delay: 355ms; }
.note-list .note-card:nth-child(12) { animation-delay: 380ms; }

.note-card:active {
  transform: translateY(0) scale(0.99);
}

.note-card:hover {
  border-color: var(--border);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) rotate(-0.3deg);
}

.note-card .card-cover {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}

/* Gradient cover fallback with white brand badge (demo design) */
.note-card .cover-grad {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-grad[data-grad="g1"] { background: linear-gradient(135deg, var(--peach), var(--coral)); }
.cover-grad[data-grad="g2"] { background: linear-gradient(135deg, var(--skyblue), #D6E9FF); }
.cover-grad[data-grad="g3"] { background: linear-gradient(135deg, var(--mint), #DFF6E9); }
.cover-grad[data-grad="g4"] { background: linear-gradient(135deg, var(--lavender), #E4DBFC); }

.cover-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(88, 60, 200, 0.16);
}
.cover-badge[data-platform="youtube"]::before,
.cover-badge[data-platform="tiktok"]::before,
.cover-badge[data-platform="instagram"]::before {
  content: '';
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.cover-badge[data-platform="youtube"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF0000'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}
.cover-badge[data-platform="tiktok"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E");
}
.cover-badge[data-platform="instagram"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E4405F'%3E%3Cpath d='M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z'/%3E%3C/svg%3E");
}

.note-card .card-body {
  flex: 1;
  min-width: 0;
}

.note-card .card-top {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.35em;
}

/* Colored platform chips (demo design) */
.chip {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  color: var(--text);
}
.chip-yt      { background: #FFE0DB; color: #B23324; }
.chip-art     { background: #DFF3E4; color: #237B4B; }
.chip-tt      { background: #FDE6F0; color: #B0356E; }
.chip-ig      { background: #EDE3FB; color: #6D48C7; }
.chip-default { background: var(--bg-surface); color: var(--text-secondary); }

.note-card .card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.25em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.note-card .card-meta {
  font-family: var(--font-ui);
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Daily Review */
.review-header {
  display: flex;
  align-items: baseline;
  gap: 1em;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
}

.review-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}

.review-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.review-shuffle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4em 0.85em;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--duration-feedback) var(--ease-out-quint);
  margin-left: auto;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}

.review-shuffle:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.review-shuffle:active {
  transform: scale(0.96);
}

.review-card {
  position: relative;
  padding: 1.25em 1.25em 1em;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 1em;
  background: var(--bg-card);
  transition: border-color var(--transition),
              box-shadow var(--transition);
  cursor: default;
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
}

/* Stagger first 8 review cards */
.review-card:nth-child(1) { animation-delay: 0ms; }
.review-card:nth-child(2) { animation-delay: 60ms; }
.review-card:nth-child(3) { animation-delay: 120ms; }
.review-card:nth-child(4) { animation-delay: 180ms; }
.review-card:nth-child(5) { animation-delay: 240ms; }
.review-card:nth-child(6) { animation-delay: 290ms; }
.review-card:nth-child(7) { animation-delay: 330ms; }
.review-card:nth-child(8) { animation-delay: 360ms; }

.review-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.review-card[data-color="yellow"] { border-left: 4px solid var(--hl-yellow-strong); }
.review-card[data-color="green"]  { border-left: 4px solid var(--hl-green-strong); }
.review-card[data-color="blue"]   { border-left: 4px solid var(--hl-blue-strong); }
.review-card[data-color="pink"]   { border-left: 4px solid var(--hl-pink-strong); }
.review-card[data-color="orange"] { border-left: 4px solid var(--hl-orange-strong); }

.review-card-num {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.review-quote {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 0.75em;
  padding: 0;
  border: none;
  font-style: normal;
  /* OpenType features */
  font-kerning: normal;
  font-feature-settings: 'liga' 1;
}

.review-annotation {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.75em;
  padding-left: 0.75em;
  border-left: 2px solid var(--border);
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--accent);
  cursor: pointer;
  transition: color var(--transition);
}

.review-source:hover {
  color: var(--accent-hover);
}

.review-section {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.25em;
}

.review-actions {
  margin-top: 0.5em;
}

@media (max-width: 768px) {
  .review-header h1 {
    font-size: 1.3rem;
  }

  .review-card {
    padding: 1em;
  }

  .review-quote {
    font-size: 0.95rem;
  }
}

/* ===== Vocabulary Cards ===== */

.vocab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid rgba(155, 125, 245, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.25em 1.25em 1em;
  margin-bottom: 1em;
  animation: cardIn 0.35s var(--ease-out-quint) both;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.vocab-card:hover {
  box-shadow: var(--shadow-sm);
  border-left-color: rgba(155, 125, 245, 0.7);
}

.vocab-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75em;
}

.vocab-word-row {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  flex-wrap: wrap;
}

.vocab-word {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.vocab-phonetic {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}

.vocab-card-num {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.5;
  flex-shrink: 0;
}

.vocab-body {
  margin-bottom: 0.75em;
}

.vocab-pos {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.2em;
  margin-top: 0.6em;
}

[data-theme="dark"] .vocab-pos { color: var(--accent); }

.vocab-pos:first-child { margin-top: 0; }

.vocab-defs {
  margin: 0;
  padding-left: 1.2em;
  list-style: decimal;
}

.vocab-def-item {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.3em;
}

.vocab-example {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.1em;
}

.vocab-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--accent);
  cursor: pointer;
  transition: color var(--transition);
  margin-top: 0.25em;
}

.vocab-source:hover { color: var(--accent-hover); }

/* ===== Resume Reading Toast ===== */

.resume-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75em 1em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5em;
  font-family: var(--font-ui);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  z-index: 150;
  opacity: 0;
  width: 220px;
  transition: opacity 0.35s var(--ease-out-quart),
              transform 0.4s var(--ease-out-quint);
}

.resume-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.resume-toast.exiting {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.25s var(--ease-out-quart),
              transform 0.3s var(--ease-out-quart);
}

.resume-toast-top {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.resume-toast-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.resume-toast-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.resume-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5em 1em;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: background var(--transition-fast),
              transform var(--duration-feedback) var(--ease-out-quint);
}

.resume-btn:hover {
  background: var(--accent-hover);
}

.resume-btn:active {
  transform: scale(0.96);
}

.resume-dismiss {
  position: absolute;
  top: 0.4em;
  right: 0.4em;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.25em;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.resume-dismiss:hover {
  color: var(--text);
}

/* ===== Tag Cloud Filter ===== */

.tag-cloud-wrap {
  margin-top: 0.65em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  max-height: 4.2em;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-quint);
}

.tag-cloud.expanded {
  max-height: 600px;
}

.tag-cloud:empty {
  display: none;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.22em 0.55em;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--duration-feedback) var(--ease-out-quint),
              box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
}

/* Stagger first 20 tag chips */
.tag-chip:nth-child(1)  { animation-delay: 0ms; }
.tag-chip:nth-child(2)  { animation-delay: 20ms; }
.tag-chip:nth-child(3)  { animation-delay: 40ms; }
.tag-chip:nth-child(4)  { animation-delay: 55ms; }
.tag-chip:nth-child(5)  { animation-delay: 70ms; }
.tag-chip:nth-child(6)  { animation-delay: 85ms; }
.tag-chip:nth-child(7)  { animation-delay: 95ms; }
.tag-chip:nth-child(8)  { animation-delay: 105ms; }
.tag-chip:nth-child(9)  { animation-delay: 115ms; }
.tag-chip:nth-child(10) { animation-delay: 125ms; }
.tag-chip:nth-child(n+11) { animation-delay: 140ms; }

.tag-chip:hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.tag-chip:active {
  transform: scale(0.93);
}

.tag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(155, 125, 245, 0.3);
}

[data-theme="dark"] .tag-chip.active {
  box-shadow: 0 2px 8px rgba(185, 167, 245, 0.3);
}

.tag-chip-label {
  line-height: 1.3;
}

.tag-chip-count {
  font-size: 0.6rem;
  opacity: 0.65;
  font-weight: 600;
}

.tag-chip.active .tag-chip-count {
  opacity: 0.85;
}

.tag-cloud-controls {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.2em;
}

.tag-cloud-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35em 0.2em;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.tag-cloud-toggle:hover {
  color: var(--accent-hover);
}

.tag-toggle-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-quint);
  font-size: 0.65rem;
}

.tag-cloud-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25em 0.7em;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--duration-feedback) var(--ease-out-quint);
}

.tag-cloud-clear:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.tag-cloud-clear:active {
  transform: scale(0.93);
}

.tag-chip-x {
  font-size: 0.6rem;
  opacity: 0.8;
  margin-left: 0.1em;
}

/* ===== Section Nav (TOC) ===== */

.section-nav {
  margin-bottom: 1.25em;
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
}

.section-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.85em;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--duration-feedback) var(--ease-out-quint);
  -webkit-tap-highlight-color: transparent;
}

.section-nav-toggle:hover {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.section-nav-toggle:active {
  transform: scale(0.96);
}

.section-nav-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-out-quint);
}

.section-nav.open .section-nav-icon {
  transform: rotate(90deg);
}

.section-nav-label {
  letter-spacing: 0.02em;
}

.section-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: max-height 0.35s var(--ease-out-quint),
              opacity 0.25s var(--ease-out-quart),
              margin-top 0.3s var(--ease-out-quint),
              border-color 0.25s var(--ease-out-quart);
}

.section-nav.open .section-nav-menu {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.4em;
  border-color: var(--border-light);
}

.toc-item {
  display: block;
  width: 100%;
  padding: 0.5em 0.85em;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              padding-left var(--transition-fast);
  border-left: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.toc-item:hover {
  background: var(--bg-card);
  color: var(--text);
}

.toc-item.sub {
  padding-left: 1.5em;
  font-size: 0.73rem;
}

.toc-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--bg-card);
  font-weight: 600;
}

.toc-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.toc-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ===== Platform Logos ===== */

/* Icon-only badge — compact, square-ish pill */
.platform-badge.icon-only {
  gap: 0;
  padding: 0.22em 0.4em;
  min-width: 22px;
  justify-content: center;
}

/* SVG logo via ::before on logo-platform badges */
.platform-badge[data-platform="youtube"]::before,
.platform-badge[data-platform="tiktok"]::before,
.platform-badge[data-platform="instagram"]::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* YouTube logo (white on red bg) */
.platform-badge[data-platform="youtube"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.6 12 3.6 12 3.6s-7.5 0-9.4.5A3 3 0 0 0 .5 6.2 31 31 0 0 0 0 12a31 31 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.5 9.4.5 9.4.5s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-5.8zM9.8 15.5V8.5l6.2 3.5-6.2 3.5z'/%3E%3C/svg%3E");
}

/* TikTok logo (white on black bg) */
.platform-badge[data-platform="tiktok"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M19.6 3.3A4.9 4.9 0 0 1 14.7 0h-3.4v16.4a2.9 2.9 0 0 1-2.9 2.5 2.9 2.9 0 0 1-2.9-2.9 2.9 2.9 0 0 1 2.9-2.9c.3 0 .5 0 .8.1V9.6a6.5 6.5 0 0 0-.8-.1A6.4 6.4 0 0 0 2 16a6.4 6.4 0 0 0 6.4 6.4A6.4 6.4 0 0 0 14.7 16V8.2a8.2 8.2 0 0 0 4.9 1.6V6.4a5 5 0 0 1-3.3-3.1h3.3z'/%3E%3C/svg%3E");
}

/* Instagram logo (white on brand bg) */
.platform-badge[data-platform="instagram"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2.2c3.2 0 3.6 0 4.9.1 3.3.1 4.8 1.6 4.9 4.9.1 1.3.1 1.7.1 4.9s0 3.6-.1 4.9c-.1 3.2-1.6 4.8-4.9 4.9-1.3.1-1.6.1-4.9.1s-3.6 0-4.9-.1C3.8 21.8 2.3 20.2 2.1 17 2 15.7 2 15.3 2 12s0-3.6.1-4.9C2.3 3.8 3.8 2.3 7.1 2.1 8.4 2 8.8 2 12 2zm0-2.2c-3.3 0-3.7 0-5 .1C2.7.3.3 2.7.1 7 0 8.3 0 8.7 0 12s0 3.7.1 5c.2 4.3 2.6 6.7 6.9 6.9 1.3.1 1.7.1 5 .1s3.7 0 5-.1c4.3-.2 6.7-2.6 6.9-6.9.1-1.3.1-1.7.1-5s0-3.7-.1-5C23.7 2.7 21.3.3 17 .1 15.7 0 15.3 0 12 0zm0 5.8a6.2 6.2 0 1 0 0 12.4A6.2 6.2 0 0 0 12 5.8zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.4-11.9a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88z'/%3E%3C/svg%3E");
}

/* ===== Status Tabs ===== */

.status-tabs {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1em;
  padding: 0.3em;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.status-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.6em 0.5em;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--duration-feedback) var(--ease-out-quint);
  -webkit-tap-highlight-color: transparent;
}

.status-tab:hover {
  background: var(--bg-card);
  color: var(--text);
}

.status-tab:active {
  transform: scale(0.97);
}

.status-tab.active {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

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

.status-tab-label {
  letter-spacing: 0.01em;
}

.status-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 0.35em;
  background: var(--border-light);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.status-tab.active .status-tab-count {
  background: var(--accent);
  color: white;
}

/* ===== Card Progress (for reading tab) ===== */

.card-progress {
  flex: 1;
  max-width: 60px;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.card-progress-bar {
  height: 100%;
  background: var(--grad-progress);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out-quart);
}

.card-progress-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Completed card badge */
.card-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.card-status-badge.completed {
  background: linear-gradient(135deg, var(--success) 0%, #4BAE7C 100%);
  box-shadow: 0 2px 6px rgba(95, 197, 143, 0.35);
}

.note-card {
  position: relative;
}

.note-completed .card-cover {
  opacity: 0.7;
}

.note-completed .card-title {
  opacity: 0.75;
}

/* ===== Complete Button (reader) ===== */

.reader-actions {
  display: flex;
  justify-content: center;
  padding: 2em 0 1em;
  animation: fadeSlideUp 0.4s var(--ease-out-quart) both;
  animation-delay: 0.3s;
}

.complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.4em;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-quint);
  -webkit-tap-highlight-color: transparent;
}

.complete-btn:hover {
  border-color: var(--success);
  color: var(--success);
  background: rgba(95, 197, 143, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(95, 197, 143, 0.18);
}

.complete-btn:active {
  transform: scale(0.96);
}

.complete-btn.completed {
  background: linear-gradient(135deg, var(--success) 0%, #4BAE7C 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(95, 197, 143, 0.3);
}

.complete-btn.completed:hover {
  background: linear-gradient(135deg, #4BAE7C 0%, #3E966A 100%);
  box-shadow: 0 4px 16px rgba(95, 197, 143, 0.35);
  color: white;
}

.complete-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.complete-btn-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== Status Toast ===== */

.status-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.6em 1.2em;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.3s var(--ease-out-quart),
              transform 0.3s var(--ease-out-quint);
}

.status-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Filter button — icon-only ===== */

.filter-btn.icon-only {
  min-width: 32px;
  padding: 0.25em 0.45em;
  font-size: 0.9rem; /* emoji render size */
}

/* SVG logo via ::before for logo-platform filter buttons */
.filter-btn[data-filter="youtube"]::before,
.filter-btn[data-filter="tiktok"]::before,
.filter-btn[data-filter="instagram"]::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

/* YouTube filter: red logo */
.filter-btn[data-filter="youtube"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF0000' d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.6 12 3.6 12 3.6s-7.5 0-9.4.5A3 3 0 0 0 .5 6.2 31 31 0 0 0 0 12a31 31 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.5 9.4.5 9.4.5s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-5.8zM9.8 15.5V8.5l6.2 3.5-6.2 3.5z'/%3E%3C/svg%3E");
}

/* TikTok filter: black logo on white circle — consistent with other platforms */
.filter-btn[data-filter="tiktok"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M19.6 3.3A4.9 4.9 0 0 1 14.7 0h-3.4v16.4a2.9 2.9 0 0 1-2.9 2.5 2.9 2.9 0 0 1-2.9-2.9 2.9 2.9 0 0 1 2.9-2.9c.3 0 .5 0 .8.1V9.6a6.5 6.5 0 0 0-.8-.1A6.4 6.4 0 0 0 2 16a6.4 6.4 0 0 0 6.4 6.4A6.4 6.4 0 0 0 14.7 16V8.2a8.2 8.2 0 0 0 4.9 1.6V6.4a5 5 0 0 1-3.3-3.1h3.3z'/%3E%3C/svg%3E");
}

/* TikTok filter: white logo in dark mode */
[data-theme="dark"] .filter-btn[data-filter="tiktok"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19.6 3.3A4.9 4.9 0 0 1 14.7 0h-3.4v16.4a2.9 2.9 0 0 1-2.9 2.5 2.9 2.9 0 0 1-2.9-2.9 2.9 2.9 0 0 1 2.9-2.9c.3 0 .5 0 .8.1V9.6a6.5 6.5 0 0 0-.8-.1A6.4 6.4 0 0 0 2 16a6.4 6.4 0 0 0 6.4 6.4A6.4 6.4 0 0 0 14.7 16V8.2a8.2 8.2 0 0 0 4.9 1.6V6.4a5 5 0 0 1-3.3-3.1h3.3z'/%3E%3C/svg%3E");
}

/* ===== Garden Pop — Greeting + Gamification ===== */

.list-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.25em;
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
}

.list-hero .hero-text h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.15em;
  letter-spacing: -0.01em;
}

.list-hero .hero-sub {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.hero-widgets {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
}

/* Streak pill */
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35em 0.8em;
  background: var(--grad-streak);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  color: #6B5310;
  box-shadow: 0 3px 10px rgba(255, 217, 61, 0.35);
  white-space: nowrap;
}

[data-theme="dark"] .streak-pill { color: #FFF3C4; }

.streak-pill .flame {
  display: inline-block;
  animation: flicker 1.6s ease-in-out infinite;
}

/* Daily goal card (demo design: glass card with conic ring + copy) */
.goal-card {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em 1.2em;
  margin-bottom: 1.25em;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
}

.goal-card .g-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.goal-card .g-sub {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.goal-ring {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--leaf) 0deg, var(--leaf) calc(var(--goal-pct, 0) * 3.6deg), rgba(140, 120, 200, 0.15) calc(var(--goal-pct, 0) * 3.6deg));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.goal-ring::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg-card-solid);
}

.goal-ring .goal-emoji {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  line-height: 1;
}

.goal-ring.goal-done {
  background: conic-gradient(var(--leaf) 0deg 360deg);
  animation: popIn 0.5s var(--ease-out-quint) both;
}

/* Daily pick ribbon */
.daily-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.8em 1.1em;
  margin-bottom: 1.25em;
  background: var(--grad-hero);
  border-radius: var(--radius-xl);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(155, 125, 245, 0.3);
  transition: transform var(--duration-state) var(--ease-out-quint),
              box-shadow var(--transition);
  animation: fadeSlideUp var(--duration-entrance) var(--ease-out-quart) both;
  -webkit-tap-highlight-color: transparent;
}

.daily-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(155, 125, 245, 0.4);
}

.daily-pick:active {
  transform: scale(0.98);
}

.daily-pick::after {
  content: '✨';
  position: absolute;
  top: 0.5em;
  right: 0.9em;
  font-size: 0.85rem;
  animation: twinkle 2.8s ease-in-out infinite;
  pointer-events: none;
}

.daily-pick .pick-dice {
  font-size: 1.3rem;
  line-height: 1;
  animation: rollIn 4.5s ease-in-out infinite;
  flex-shrink: 0;
}

.daily-pick .pick-body {
  flex: 1;
  min-width: 0;
}

.daily-pick .pick-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 0.1em;
}

.daily-pick .pick-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-pick .pick-arrow {
  font-size: 1rem;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Confetti celebration (goal completion) */
.confetti-burst {
  position: fixed;
  bottom: 30%;
  left: 50%;
  z-index: 2000;
  pointer-events: none;
}

.confetti-burst span {
  position: absolute;
  font-size: 1.3rem;
  animation: rise 1.1s var(--ease-out-quart) both;
}

@media (max-width: 768px) {
  .list-hero { flex-wrap: wrap; }
  .list-hero .hero-text h1 { font-size: 1.25rem; }
  .streak-pill { font-size: 0.72rem; padding: 0.3em 0.65em; }
  .goal-ring { width: 48px; height: 48px; }
  .goal-card { padding: 0.85em 1em; }
  .daily-pick { padding: 0.7em 0.9em; }
}

/* Instagram filter: solid brand-pink logo */
.filter-btn[data-filter="instagram"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E4405F' d='M12 2.2c3.2 0 3.6 0 4.9.1 3.3.1 4.8 1.6 4.9 4.9.1 1.3.1 1.7.1 4.9s0 3.6-.1 4.9c-.1 3.2-1.6 4.8-4.9 4.9-1.3.1-1.6.1-4.9.1s-3.6 0-4.9-.1C3.8 21.8 2.3 20.2 2.1 17 2 15.7 2 15.3 2 12s0-3.6.1-4.9C2.3 3.8 3.8 2.3 7.1 2.1 8.4 2 8.8 2 12 2zm0-2.2c-3.3 0-3.7 0-5 .1C2.7.3.3 2.7.1 7 0 8.3 0 8.7 0 12s0 3.7.1 5c.2 4.3 2.6 6.7 6.9 6.9 1.3.1 1.7.1 5 .1s3.7 0 5-.1c4.3-.2 6.7-2.6 6.9-6.9.1-1.3.1-1.7.1-5s0-3.7-.1-5C23.7 2.7 21.3.3 17 .1 15.7 0 15.3 0 12 0zm0 5.8a6.2 6.2 0 1 0 0 12.4A6.2 6.2 0 0 0 12 5.8zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.4-11.9a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88z'/%3E%3C/svg%3E");
}

/* ===== Offline-first: pending-sync pill + offline badge ===== */
#outbox-pill {
  position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); left: 14px;
  z-index: 60; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--accent, #6C5CE7); color: #fff; opacity: 0.85;
  pointer-events: none;
}
#outbox-pill[hidden] { display: none !important; }  /* explicit display would defeat [hidden] */
.offline-badge {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--surface-2, rgba(128,128,128,0.15)); color: var(--text-muted, #888);
}
