/* ============================================================
   27-Infinite-Marquee — וייב קוד ניוז · מרקע אינסופי
   News flows horizontally in lanes. Each lane = one category.
   CSS @keyframes continuous scroll, hover pauses, click expands.
   Chat = top horizontal bar (fixed; top: 0).
   Deep slate background, electric blue + warm gold accents.
   Heebo + JetBrains Mono + Frank Ruhl Libre. RTL Hebrew.
   ============================================================ */

:root {
  /* Palette: deep slate + electric blue + warm gold (no neon) */
  --bg:           #0e141c;          /* deep slate */
  --bg-2:         #161e28;          /* raised */
  --bg-3:         #1f2832;          /* card surface */
  --surface:      #243140;          /* hover surface */
  --rule:         rgba(255,255,255,0.06);
  --rule-2:       rgba(255,255,255,0.12);
  --ink:          #f1ede2;          /* warm cream */
  --ink-2:        #d4cebd;          /* softer cream */
  --ink-dim:      #8a8a8e;          /* dimmed */
  --ink-mute:     #5a5e64;          /* very faint */

  /* Lane accent colors — no neon, no cyberpunk */
  --lane-1:       #2d6cdf;          /* electric blue */
  --lane-1-d:     #1e4ea6;
  --lane-2:       #c8a96e;          /* warm gold */
  --lane-2-d:     #8e7841;
  --lane-3:       #4a8a8a;          /* muted teal */
  --lane-3-d:     #2f6060;
  --lane-4:       #b07a7a;          /* warm rose */
  --lane-4-d:     #7a4f4f;

  --warn:         #d97757;          /* breaking/urgent */
  --high:         #c8a96e;          /* high urgency */
  --good:         #6d9b78;          /* calm good */

  /* Chat skins */
  --wa-bg:        #efe7df;
  --wa-green:     #25D366;
  --wa-green-d:   #128C7E;
  --tg-bg:        #17212b;
  --tg-blue:      #2AABEE;
  --tg-blue-d:    #1c7eb8;
  --ms-bg:        #ffffff;

  /* Type */
  --font-body:    'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title:   'Frank Ruhl Libre', 'Heebo', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  --chat-h:       176px; /* POLISHED: less huge */
  --header-h:     56px; /* POLISHED: tighter */
  --lane-h:       130px; /* POLISHED: less huge */
  --lane-gap:     12px;
  --border:       1px solid var(--rule);
  --border-strong:1px solid var(--rule-2);
}

/* ─── Reset ─── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45,108,223,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(200,169,110,0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  direction: rtl;
  overflow-x: hidden;
  /* Push page-header below the fixed chat-bar */
  padding-top: calc(var(--chat-h) + 12px);
}

a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─── Page header (top of page) — POLISHED: tighter ─── */
.page-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(14,20,28,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--lane-1) 0%, var(--lane-2) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  margin-top: 3px;
  text-transform: uppercase;
}

.page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.page-title-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-inline-start: 10px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 12.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-nav a:hover { background: rgba(255,255,255,0.04); text-decoration: none; }
.page-nav a.active {
  background: var(--ink);
  color: var(--bg);
}

/* ─── CHAT — TOP HORIZONTAL BAR (mandatory) ─── */
.chat-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--wa-bg);
  border-bottom: 1px solid var(--rule-2);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.40),
    0 10px 32px rgba(0,0,0,0.30);
  direction: rtl;
}

.chat-bar.skin-wa { background: var(--wa-bg); --chat-accent: var(--wa-green); --chat-accent-d: var(--wa-green-d); color: var(--bg); }
.chat-bar.skin-tg { background: var(--tg-bg); --chat-accent: var(--tg-blue); --chat-accent-d: var(--tg-blue-d); color: white; }
.chat-bar.skin-ms { background: var(--ms-bg); --chat-accent: #A033FF; --chat-accent-d: #0099FF; color: var(--bg); }

.chat-bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  min-height: var(--chat-h);
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chat-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-family: var(--font-title);
  font-size: 16px;
  flex-shrink: 0;
}
.chat-bar.skin-ms .chat-avatar { background: linear-gradient(135deg, #0099FF, #A033FF); }

.chat-head-info { line-height: 1.2; }
.chat-head-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.chat-head-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}
.chat-bar.skin-tg .chat-head-status { color: rgba(255,255,255,0.7); }
.chat-head-status .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--chat-accent);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  animation: pulseLive 1.8s infinite;
}
.chat-bar.skin-ms .chat-head-status .live-dot { background: linear-gradient(135deg, #0099FF, #A033FF); }

@keyframes pulseLive {
  0%   { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0);    }
}

.chat-messages-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  height: 100%;
  padding: 4px 0;
}
.chat-messages-strip::before,
.chat-messages-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 24px;
  z-index: 2;
  pointer-events: none;
}
.chat-messages-strip::before {
  right: 0;
  background: linear-gradient(to left, var(--wa-bg), transparent);
}
.chat-messages-strip::after {
  left: 0;
  background: linear-gradient(to right, var(--wa-bg), transparent);
}
.chat-bar.skin-tg .chat-messages-strip::before { background: linear-gradient(to left, var(--tg-bg), transparent); }
.chat-bar.skin-tg .chat-messages-strip::after { background: linear-gradient(to right, var(--tg-bg), transparent); }
.chat-bar.skin-ms .chat-messages-strip::before { background: linear-gradient(to left, var(--ms-bg), transparent); }
.chat-bar.skin-ms .chat-messages-strip::after { background: linear-gradient(to right, var(--ms-bg), transparent); }

.bubble-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border-radius: 10px;
  padding: 7px 12px 6px;
  max-width: 280px;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  position: relative;
  flex-shrink: 0;
}
.chat-bar.skin-tg .bubble-strip { background: #182533; color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.04); }
.chat-bar.skin-ms .bubble-strip { background: white; }
.bubble-strip.urgent {
  background: var(--chat-accent);
  color: white;
}
.chat-bar.skin-ms .bubble-strip.urgent { background: linear-gradient(135deg, #0099FF, #A033FF); }

.bubble-strip-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.10);
  color: inherit;
  flex-shrink: 0;
}
.bubble-strip.urgent .bubble-strip-tag { background: rgba(255,255,255,0.22); color: white; }
.bubble-strip-text {
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.bubble-strip-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  opacity: 0.65;
  flex-shrink: 0;
}
.urgent-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  background: white;
  color: var(--warn);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.bubble-strip.urgent .urgent-badge {
  background: rgba(255,255,255,0.95);
  color: var(--warn);
}

.typing-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  border-radius: 10px;
  padding: 8px 14px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.chat-bar.skin-tg .typing-strip { background: #182533; box-shadow: 0 1px 0 rgba(255,255,255,0.04); }
.typing-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chat-accent);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-bar.skin-ms .typing-strip-dot { background: #A033FF; }
.typing-strip-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-strip-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-field {
  background: white;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--ink-dim);
  min-width: 200px;
  border: 1px solid rgba(0,0,0,0.04);
}
.chat-bar.skin-tg .chat-input-field { background: #182533; color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.04); }
.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--chat-accent);
  color: white;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-bar.skin-ms .chat-send-btn { background: linear-gradient(135deg, #0099FF, #A033FF); }

.chat-skin-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border-inline-start: 1px solid rgba(0,0,0,0.06);
  padding-inline-start: 12px;
}
.chat-bar.skin-tg .chat-skin-strip { border-color: rgba(255,255,255,0.06); }
.skin-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1.5px solid rgba(0,0,0,0.10);
  background: white;
  color: var(--ink);
  font-weight: 900;
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chat-bar.skin-tg .skin-btn { background: #182533; color: white; border-color: rgba(255,255,255,0.10); }
.chat-bar.skin-ms .skin-btn { background: white; }
.skin-btn:hover { border-color: var(--chat-accent); }
.skin-btn.active {
  background: var(--chat-accent);
  color: white;
  border-color: var(--ink);
}
.chat-bar.skin-ms .skin-btn.active { background: linear-gradient(135deg, #0099FF, #A033FF); }
.chat-bar.skin-tg .skin-btn.active { background: var(--tg-blue); }

/* ─── Lanes container ─── */
.lanes-wrap {
  padding: calc(var(--header-h) + 16px) 24px 80px;
  display: flex;
  flex-direction: column;
  gap: var(--lane-gap);
  max-width: 100vw;
  overflow: hidden;
  min-height: 100vh;
}

.lanes-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}
.lanes-intro-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lanes-intro-eyebrow .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lane-1);
  box-shadow: 0 0 0 0 rgba(45,108,223,0.6);
  animation: pulseLive 1.8s infinite;
}
.lanes-intro-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.lanes-intro-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-align: end;
}
.lanes-intro-meta strong {
  display: block;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 3px;
}

/* ─── Each lane ─── */
.lane {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  height: var(--lane-h);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lane::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--lane-accent, var(--lane-1));
}
.lane[data-lane="0"] { --lane-accent: var(--lane-1); --lane-accent-d: var(--lane-1-d); }
.lane[data-lane="1"] { --lane-accent: var(--lane-2); --lane-accent-d: var(--lane-2-d); }
.lane[data-lane="2"] { --lane-accent: var(--lane-3); --lane-accent-d: var(--lane-3-d); }
.lane[data-lane="3"] { --lane-accent: var(--lane-4); --lane-accent-d: var(--lane-4-d); }

.lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent);
  flex-shrink: 0;
  z-index: 3;
  position: relative;
}
.lane-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lane-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lane-accent);
}
.lane-label-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.lane-label-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.lane-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--rule);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.lane-count strong {
  color: var(--lane-accent);
  font-weight: 700;
  margin-inline-end: 4px;
}

.lane-track-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.lane-track-wrap:active { cursor: grabbing; }

.lane-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 0;
  width: max-content;
  animation-name: marqueeRTL;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}
.lane-track.paused { animation-play-state: paused; }

/* RTL: scroll content right-to-left in viewer frame (translateX -50% over the doubled track) */
@keyframes marqueeRTL {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

/* Different durations = different speeds */
.lane[data-lane="0"] .lane-track { animation-duration: 50s; }
.lane[data-lane="1"] .lane-track { animation-duration: 70s; }
.lane[data-lane="2"] .lane-track { animation-duration: 90s; }
.lane[data-lane="3"] .lane-track { animation-duration: 65s; }

.lane-card {
  flex-shrink: 0;
  width: 280px; /* POLISHED: tighter */
  background: var(--bg-3);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px 9px; /* POLISHED: tighter */
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lane-card:hover {
  background: var(--surface);
  border-color: var(--lane-accent);
}
.lane-track-wrap.paused .lane-card:hover {
  transform: translateY(-1px);
}

.lane-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lane-accent);
  font-weight: 800;
}
.lane-card-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lane-accent);
}
.lane-card.urgent .lane-card-tag {
  color: var(--warn);
}
.lane-card.urgent .lane-card-tag-dot {
  background: var(--warn);
  animation: pulseLive 1.4s infinite;
}

.lane-card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14.5px; /* POLISHED: tighter */
  color: var(--ink);
  line-height: 1.30;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lane-card-excerpt {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lane-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px dashed var(--rule);
}
.lane-card-meta strong {
  color: var(--ink-2);
  font-weight: 600;
}
.lane-card-arrow {
  color: var(--lane-accent);
  font-weight: 700;
}

/* ─── Inline expanded reading view (overlay) ─── */
.reader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--chat-h) + var(--header-h) + 32px) 24px 24px;
  overflow-y: auto;
  direction: rtl;
}
.reader-overlay.open { display: flex; }

.reader-card {
  width: min(820px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: 16px;
  padding: 32px 36px 36px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.50),
    0 24px 60px rgba(0,0,0,0.50);
}
.reader-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  background: var(--bg-3);
  color: var(--ink);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.reader-close:hover {
  background: var(--surface);
  border-color: var(--lane-1);
}

.reader-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lane-1);
  margin-bottom: 14px;
  font-weight: 800;
}
.reader-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lane-1);
}

.reader-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-bottom: 10px;
}

.reader-dek {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 18px;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.reader-meta strong {
  color: var(--ink-2);
  font-weight: 600;
}
.reader-meta .pill {
  background: var(--lane-1);
  color: white;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.reader-meta .pill.urgent { background: var(--warn); }
.reader-meta .pill.high   { background: var(--high); color: var(--bg); }

.reader-body p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0 0 14px 0;
}

.reader-tldr {
  margin-top: 22px;
  padding: 16px 18px;
  border-inline-start: 3px solid var(--lane-2);
  background: rgba(200,169,110,0.06);
  border-radius: 0 10px 10px 0;
}
.reader-tldr-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lane-2);
  font-weight: 800;
  margin-bottom: 6px;
}
.reader-tldr-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.reader-takeaways {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(45,108,223,0.06);
  border: 1px solid rgba(45,108,223,0.18);
  border-radius: 10px;
}
.reader-takeaways-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lane-1);
  font-weight: 800;
  margin-bottom: 8px;
}
.reader-takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.reader-takeaways li {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  padding: 4px 0 4px 18px;
  position: relative;
}
.reader-takeaways li::before {
  content: '▸';
  position: absolute;
  inset-inline-start: 0;
  color: var(--lane-1);
  font-weight: 700;
}

.reader-sources {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.reader-sources a {
  color: var(--lane-1);
  border-bottom: 1px dashed var(--lane-1);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .lane-track { animation: none !important; }
  .live-dot, .lane-card.urgent .lane-card-tag-dot { animation: none !important; }
  .typing-strip-dot { animation: none !important; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  :root {
    --chat-h: 168px;
    --lane-h: 140px;
    --header-h: 56px;
  }
  body { padding-top: calc(var(--chat-h) + 10px); }
  .chat-bar-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand skin"
      "msgs  msgs"
      "input input";
    gap: 8px 12px;
    padding: 10px 14px;
  }
  .chat-brand { grid-area: brand; }
  .chat-messages-strip { grid-area: msgs; }
  .chat-input-strip { grid-area: input; }
  .chat-skin-strip { grid-area: skin; justify-self: end; padding: 0; border: 0; }
  .chat-input-field { min-width: 0; flex: 1; }
  .lanes-wrap { padding: calc(var(--header-h) + 12px) 14px 80px; }
  .lane-card { width: 260px; }
  .lanes-intro { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lanes-intro-meta { text-align: start; }
}

@media (max-width: 540px) {
  .page-header { padding: 0 14px; }
  .page-title { font-size: 14px; }
  .page-nav a { padding: 6px 10px; font-size: 12px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }
  .lanes-intro-title { font-size: 18px; }
  .lane-card { width: 220px; padding: 10px 12px; }
  .lane-card-title { font-size: 14px; }
  .reader-card { padding: 22px 22px 26px; }
  .reader-title { font-size: 22px; }
  .reader-body p { font-size: 14px; }
}
