/* ============================================================
   feed.css — WiseBeta /app/feed swipe feed  v2
   Mobile-first, 390px target. Desktop centers in 420px column.
   Header = 44px feed-nav + 70px ticker-strip = 114px total.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
}

/* ── Global feed overrides ── */
body.feed-page {
  background: #0a0a0a;
  overflow: hidden; /* prevent body scroll */
  font-family: 'DM Sans', sans-serif;
  color: #fff;
}

/* ── Hide scrollbars everywhere on feed ── */
.feed-page ::-webkit-scrollbar { display: none; }
.feed-page * { scrollbar-width: none; }

/* ── Ticker card strip (80px, sticky below 44px feed-nav) ── */
.feed-ticker-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 16px;
  height: 70px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  scrollbar-width: none;
  position: sticky;
  top: 44px;
  z-index: 99;
  align-items: center;
}
.feed-ticker-strip::-webkit-scrollbar { display: none; }

/* ── Ticker card ── */
.ticker-card {
  flex: 0 0 120px;
  height: 58px;
  background: #111;
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  cursor: default;
}
.ticker-card-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticker-card-name {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.95);
}
.ticker-sparkline {
  width: 45px;
  height: 18px;
  flex-shrink: 0;
}
.ticker-card-price {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.ticker-card-change {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.ticker-card.is-up .ticker-card-change { color: #4ade80; }
.ticker-card.is-down .ticker-card-change { color: #f87171; }
.ticker-strip-empty {
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
}

/* ── Main feed outer + layout ── */
#feed-outer {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #0a0a0a;
  /* dvh handles iOS Safari address bar correctly */
  height: calc(100dvh - 114px); /* 44px feed-nav + 70px ticker-strip */
  position: relative;
}

@supports not (height: 1dvh) {
  /* Fallback for older browsers */
  #feed-outer { height: calc(100vh - 114px); }
}

@media (min-width: 768px) {
  #feed-outer { background: #040404; }
}

#feed-main {
  width: 100%;
  max-width: 420px;
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

/* ── Vertical scroll container ── */
#feed-container {
  width: 100%;
  height: 100%;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

/* ── Each section ── */
.feed-section {
  scroll-snap-align: start;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ── Horizontal card row within section ── */
.feed-section-cards {
  display: flex;
  height: 100%;
  scroll-snap-type: x mandatory;
  overflow-x: scroll;
  gap: 12px;
  padding: 16px 8px 52px 8px; /* bottom for dots */
  align-items: stretch;
  scroll-behavior: smooth;
}

/* ── Individual card ── */
.feed-card {
  scroll-snap-align: center;
  flex: 0 0 calc(100% - 52px); /* leave 52px gap for section icons */
  max-width: 380px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s;
}
.feed-card:hover { border-color: rgba(255,255,255,0.16); }

/* Card hero image area */
.feed-card-image {
  width: 100%;
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 240px;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.feed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-card-image--fallback img { display: none; }

/* Gradient fallbacks by section */
/* MinuteBrief card image area — HTML/CSS visual, no SVG or background-image */
.feed-card-image--minutebrief {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;       /* padding included in width, never overflows card */
  background: linear-gradient(135deg, #0f1419 0%, #1a1f26 100%);
  padding: 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
/* Hero variant — slightly taller */
.feed-card--hero .feed-card-image--minutebrief {
  min-height: 200px;
}
/* MINUTEBRIEF tag — two-tone: MINUTE green, BRIEF white */
.mb-thumb-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.mb-thumb-tag-green { color: #00ff88; }
.mb-thumb-tag-white { color: #ffffff; }
/* Headline — wraps naturally to any card width, clamps at 3 lines */
.mb-thumb-headline {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* WiseBeta wordmark — absolute bottom-right */
.mb-thumb-wordmark {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}
.feed-card-image--news,
.feed-card-image--news.feed-card-image--fallback {
  background: linear-gradient(135deg, #0F6E56 0%, #1D9E75 100%);
}
.feed-card-image--analyst,
.feed-card-image--analyst.feed-card-image--fallback {
  background: linear-gradient(135deg, #185FA5 0%, #378ADD 100%);
}
.feed-card-image--forum,
.feed-card-image--forum.feed-card-image--fallback {
  background: linear-gradient(135deg, #534AB7 0%, #7F77DD 100%);
}
.feed-card-image--research,
.feed-card-image--research.feed-card-image--fallback {
  background: linear-gradient(135deg, #3B6D11 0%, #639922 100%);
}
.feed-card-image--skeleton {
  background: linear-gradient(135deg, #1a1a1a, #222);
}

/* Agent avatar badge on card image */
.feed-card-agent {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #000;
  border: 2px solid rgba(255,255,255,0.3);
}

/* Card content area */
.feed-card-content {
  flex: 0 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.feed-card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.feed-card-headline {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.feed-card-subhead {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: .04em;
  flex-shrink: 0;
}

.feed-card-body {
  font-size: .84rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
/* v2 cards: full-body override (kept for any legacy usage) */
.feed-card-body--full {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  text-overflow: clip;
}
/* v2 cards: summary shown fully (no clamp); tap to open detail drawer */
.feed-card-body--summary {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  text-overflow: clip;
  cursor: pointer;
}

.feed-card-tap-hint {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: lowercase;
}

.feed-card-cta {
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
  align-self: flex-start;
}
.feed-card-cta:hover {
  border-color: #00ff88;
  color: #00ff88;
  background: rgba(0,255,136,0.05);
}

.feed-card-retry {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .2s;
}
.feed-card-retry:hover { border-color: #00ff88; color: #00ff88; }

/* Skeleton cards */
.feed-card--skeleton { pointer-events: none; }
.skel-line {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  animation: skel-shimmer 1.6s ease-in-out infinite;
}
.skel-line--tag   { height: 10px; width: 60%; }
.skel-line--title { height: 18px; width: 90%; margin-top: 4px; }
.skel-line--body  { height: 13px; width: 100%; margin-top: 4px; }
.skel-line--short { width: 70%; }
@keyframes skel-shimmer {
  0%, 100% { opacity: .3; }
  50%       { opacity: .6; }
}

/* Empty / error card */
.feed-card--empty,
.feed-card--error {
  justify-content: center;
}

/* ── Research card meta row (ticker + risk badge) ── */
.feed-card-meta-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.research-card-ticker {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.research-card-risk {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Section nav icons (right edge) ── */
#feed-section-nav {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: auto;
}

.feed-section-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background .2s, border-color .2s;
}
.feed-section-nav-item.is-active {
  background: rgba(20,20,20,0.9);
  border-color: rgba(255,255,255,0.2);
}
.feed-section-nav-item:hover { border-color: rgba(255,255,255,0.25); }

/* Section icon SVG */
.feed-section-icon {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s ease;
  cursor: pointer;
  display: block;
}
.feed-section-icon:hover { color: rgba(255,255,255,0.7); }
.feed-section-icon.is-active { color: rgba(255,255,255,1); }

/* Section label tooltip */
.feed-section-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: rgba(10,10,10,0.9);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.feed-section-nav-item:hover .feed-section-label,
.feed-section-nav-item.is-active.show-label .feed-section-label {
  opacity: 1;
}

/* ── Icon animations ── */

/* Globe meridian shift (MinuteBrief active) */
.feed-section-icon[data-section="minutebrief"].is-active ellipse {
  stroke-dasharray: 60;
  animation: meridian-shift 4s linear infinite;
}
@keyframes meridian-shift {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}

/* Neural net center pulse (Analyst active) */
.feed-section-icon[data-section="analyst"].is-active .neural-center {
  animation: neural-pulse 2s ease-in-out infinite;
  transform-origin: 12px 12px;
}
@keyframes neural-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* ── Bottom dots ── */
#feed-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background .25s, transform .25s;
  display: block;
}
.feed-dot--active {
  background: rgba(255,255,255,0.9);
  transform: scale(1.2);
}

/* ── Bottom sheet ── */
#feed-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#feed-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
#feed-sheet-backdrop.hidden { display: none; }
#feed-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(100%);
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  max-height: 85dvh;
  background: #111;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
}
#feed-sheet-backdrop.is-open #feed-sheet { transform: translateY(0); }
#feed-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  margin: 14px auto 0;
}
#feed-sheet-inner {
  padding: 20px 20px 40px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#feed-sheet-inner * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
#feed-sheet-title,
#feed-sheet-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
#feed-sheet-close {
  float: right;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px 0 0;
  transition: color .2s;
}
#feed-sheet-close:hover { color: #fff; }
#feed-sheet-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #fff;
  padding-right: 32px;
}
#feed-sheet-body {
  font-size: .9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 20px;
  white-space: pre-wrap;
}
#feed-sheet-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #00ff88;
  background: transparent;
  color: #00ff88;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s;
}
#feed-sheet-cta:hover { background: rgba(0,255,136,0.08); }

/* ── v2 MinuteBrief: hero card — image area height handled by min-height on --minutebrief ── */
.feed-card--hero .feed-card-image {
  max-height: 220px;
}
.feed-card--hero .feed-card-headline--hero {
  font-size: 1.15rem;
  font-weight: 700;
  -webkit-line-clamp: 4;
  line-height: 1.3;
}
.feed-card-lookahead {
  font-size: .8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 10px;
  margin-top: 2px;
}

/* ── v2 MinuteBrief: sentiment dot on story card image ── */
.feed-card-sentiment-dot {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  opacity: 0.85;
}

/* ── v2 MinuteBrief: chip pills ── */
.feed-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
}
.feed-card-chip {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.6;
}
.feed-card-chip--ticker {
  background: rgba(0,255,136,0.12);
  color: #4ade80;
  border: 1px solid rgba(0,255,136,0.2);
}
.feed-card-chip--sector {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.feed-card-chip--topic {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.2);
}

/* ── v2 MinuteBrief: sources bottom sheet ── */
.feed-sheet-source {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.feed-sheet-source:last-child { border-bottom: none; }
.feed-sheet-source:hover { opacity: 0.75; }
.feed-sheet-source-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.feed-sheet-source-title {
  font-size: .85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* ── v2 story card: source icon button (top-right corner) ── */
.feed-card { position: relative; }
.feed-card-source-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .15s, color .15s, border-color .15s;
}
.feed-card-source-btn:hover {
  background: rgba(0,255,136,0.1);
  border-color: rgba(0,255,136,0.3);
  color: rgba(0,255,136,0.9);
}

/* ── detail drawer: full body + lookahead ── */
.feed-sheet-detail-body {
  font-size: .9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0 0 16px;
}
.feed-sheet-detail-lookahead {
  font-size: .8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 10px;
  margin-top: 8px;
}

/* ── Phase 4.2.1: News article card chrome ── */
.news-card-chrome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.55) 100%
  );
}
.news-card-ribbon {
  align-self: flex-start;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  border: 1px solid currentColor;
}
.news-card-ribbon--morning-brief  { color: #f59e0b; }
.news-card-ribbon--midday-update  { color: #00ff88; }
.news-card-ribbon--afternoon-wrap { color: #a78bfa; }
.news-card-ribbon--wildcard       { color: #f87171; }
.news-card-wordmark {
  align-self: flex-end;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #00ff88;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ── Phase 4.2.1: MinuteBrief story card — sentiment dot above SVG ── */
/* .feed-card-sentiment-dot already has position:absolute — sits above <img> in stacking order */

/* ── Phase 5.5.6 v2: Bottom sheet sources panel ── */

/* Shared utility classes used by buildSourcesListHTML (inside bottom sheet) */
.source-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.source-item:hover {
  background: rgba(0,255,136,0.05);
  border-color: rgba(0,255,136,0.2);
}
.source-name {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #00ff88;
}
.source-headline {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sources-panel-empty {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* Chevron breathing animation — scoped to bottom sheet */
@keyframes feed-sheet-chevron-breath {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%       { opacity: 1.0;  transform: translateY(-2px); }
}

/* Full-width trigger at bottom of the sheet */
.feed-sheet-sources-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 14px 0 12px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #00ff88;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.feed-sheet-sources-trigger:hover,
.feed-sheet-sources-trigger:focus-visible {
  background: rgba(0,255,136,0.04);
  outline: none;
}

/* Animated chevron */
.feed-sheet-sources-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
  animation: feed-sheet-chevron-breath 3.5s ease-in-out infinite;
}
#feed-sheet-backdrop.sources-expanded .feed-sheet-sources-chevron {
  animation: none;
  opacity: 1;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Collapsible sources panel (inside the sheet) */
.feed-sheet-sources-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.02);
}
#feed-sheet-backdrop.sources-expanded .feed-sheet-sources-panel {
  max-height: 60vh;
  overflow-y: auto;
}

/* Panel inner */
.feed-sheet-sources-panel-inner {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-sheet-sources-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.feed-sheet-sources-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feed-sheet-sources-chevron { animation: none; }
  .feed-sheet-sources-panel   { transition: none; }
}
