/* =============================================
   AI News — Stylesheet
   ============================================= */

:root {
  --navy:       #0F2444;
  --navy-mid:   #1A3A6B;
  --blue:       #2563EB;
  --blue-lt:    #EFF6FF;
  --gold:       #F59E0B;
  --gold-lt:    #FEF3C7;
  --red:        #DC2626;
  --green:      #059669;
  --white:      #FFFFFF;
  --off:        #F8FAFC;
  --g50:        #F9FAFB;
  --g100:       #F3F4F6;
  --g200:       #E5E7EB;
  --g300:       #D1D5DB;
  --g400:       #9CA3AF;
  --g500:       #6B7280;
  --g600:       #4B5563;
  --g700:       #374151;
  --g900:       #111827;

  --r-sm:  4px;
  --r:     8px;
  --r-lg:  12px;
  --r-full: 9999px;

  --sh-sm: 0 1px 3px rgba(0,0,0,.06);
  --sh:    0 4px 12px rgba(0,0,0,.10);
  --sh-lg: 0 8px 24px rgba(0,0,0,.14);

  --hh: 60px;
  --sl: 220px;
  --sr: 280px;
  --tx: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off);
  color: var(--g700);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--hh);
  background: var(--navy);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.logo {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: #F97316;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: white;
}
.logo-text {
  font-weight: 700; font-size: 15px; color: white; white-space: nowrap;
}

.search-trigger {
  flex: 1; max-width: 500px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  padding: 8px 14px;
  cursor: pointer;
  transition: background var(--tx), border-color var(--tx);
}
.search-trigger:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.search-trigger svg { color: var(--g400); flex-shrink: 0; }
.search-placeholder { flex: 1; color: rgba(255,255,255,.45); font-size: 14px; text-align: left; }
.search-kbd {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.4); border-radius: 4px;
  padding: 1px 6px; font-size: 11px; font-family: inherit; flex-shrink: 0;
}

.header-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }
.nav-tab {
  padding: 7px 16px; color: rgba(255,255,255,.55);
  font-size: 14px; font-weight: 500; border-radius: var(--r);
  transition: all var(--tx);
}
.nav-tab:hover { color: white; background: rgba(255,255,255,.1); }
.nav-tab.active { color: white; background: rgba(255,255,255,.16); }

/* =============================================
   LAYOUT
   ============================================= */
.app { padding-top: var(--hh); height: 100vh; display: flex; flex-direction: column; }

.tab-panel { display: none; flex: 1; overflow: hidden; }
.tab-panel.active { display: flex; }

/* =============================================
   LEFT SIDEBAR
   ============================================= */
.sidebar-left {
  width: var(--sl); flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--g200);
  overflow-y: auto; overflow-x: hidden;
  padding: 16px 0 24px;
}

.sidebar-section {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g100);
  margin-bottom: 4px;
}
.sidebar-section:last-child { border-bottom: none; }

.sidebar-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--g400); padding: 8px 16px 6px;
}

.filter-list { padding: 0 8px; }

.filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: 6px;
  cursor: pointer; font-size: 13.5px; color: var(--g600);
  transition: all var(--tx); user-select: none; gap: 6px;
}
.filter-item:hover { background: var(--g50); color: var(--navy); }
.filter-item.active { background: var(--blue-lt); color: var(--blue); font-weight: 600; }
.filter-item.dim { opacity: .42; }

.filter-count {
  font-size: 11.5px; color: var(--g400); background: var(--g100);
  border-radius: var(--r-full); padding: 1px 7px;
  font-weight: 500; min-width: 26px; text-align: center; flex-shrink: 0;
}
.filter-item.active .filter-count { background: rgba(37,99,235,.12); color: var(--blue); }

.src-row { display: flex; align-items: center; gap: 6px; }
.src-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.expert-list { padding: 0 8px; }
.expert-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  cursor: pointer; transition: all var(--tx); user-select: none;
}
.expert-item:hover { background: var(--g50); }
.expert-item.active { background: var(--blue-lt); }
.expert-item.dim { opacity: .38; }

.av-sm {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; flex-shrink: 0;
}

.expert-item-name {
  flex: 1; font-size: 13px; color: var(--g700);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.expert-item.active .expert-item-name { color: var(--blue); font-weight: 600; }

/* =============================================
   FEED WRAPPER
   ============================================= */
.feed-wrapper {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 20px 60px; min-width: 0;
}

.filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 0 0; min-height: 0;
}

.chip {
  display: flex; align-items: center; gap: 5px;
  background: var(--blue); color: white;
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: var(--r-full);
}
.chip-x { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1; transition: color var(--tx); }
.chip-x:hover { color: white; }

.feed-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 10px;
}

.feed-title { font-size: 18px; font-weight: 700; color: var(--navy); display: flex; align-items: baseline; gap: 8px; }
.feed-count { font-size: 13px; font-weight: 400; color: var(--g400); }

.feed-sort {
  display: flex; gap: 3px;
  background: var(--g100); border-radius: var(--r); padding: 3px;
}
.sort-btn {
  font-size: 13px; font-weight: 500; color: var(--g500);
  padding: 5px 12px; border-radius: 6px; transition: all var(--tx);
}
.sort-btn.active { background: white; color: var(--navy); box-shadow: var(--sh-sm); }

.section-day {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--g400);
  padding: 4px 0 12px;
  border-top: 1px solid var(--g200); margin-top: 2px;
}

.post-list { display: flex; flex-direction: column; gap: 10px; }

/* =============================================
   POST CARD
   ============================================= */
.post-card {
  background: white; border: 1px solid var(--g200);
  border-radius: var(--r); padding: 14px 16px;
  box-shadow: var(--sh-sm);
  transition: border-color var(--tx), box-shadow var(--tx), transform var(--tx);
  position: relative;
}
.post-card:hover { border-color: #A5B4FC; box-shadow: var(--sh); transform: translateY(-1px); }
.post-card.is-saved { border-left: 3px solid var(--gold); padding-left: 13px; }

.card-top {
  display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
}
.card-av {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; flex-shrink: 0;
  width: 30px; height: 30px; font-size: 11px;
}
.card-expert { font-size: 13px; font-weight: 600; color: var(--navy); }
.src-badge {
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; flex-shrink: 0;
}
.sb-blog       { background:#FEF3C7; color:#92400E; }
.sb-arxiv      { background:#EDE9FE; color:#5B21B6; }
.sb-youtube    { background:#FEE2E2; color:#991B1B; }
.sb-newsletter { background:#ECFDF5; color:#065F46; }
.sb-github     { background:#F1F5F9; color:#334155; }

.card-time { font-size: 11.5px; color: var(--g400); margin-left: auto; white-space: nowrap; }

.card-badges { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.b-new { font-size: 9.5px; font-weight: 700; letter-spacing:.5px; color:white; background:var(--red); padding:2px 5px; border-radius:3px; }
.b-hot { font-size: 9.5px; font-weight: 700; letter-spacing:.5px; color:white; background:var(--gold); padding:2px 5px; border-radius:3px; }

.btn-bm {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 5px; color: var(--g300); font-size: 15px;
  transition: all var(--tx); flex-shrink: 0;
}
.btn-bm:hover { background: var(--gold-lt); color: var(--gold); }
.btn-bm.saved { color: var(--gold); }

.card-title {
  display: block; font-size: 15px; font-weight: 700; color: var(--navy);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--tx); cursor: pointer;
}
.card-title:hover { color: var(--blue); }

.card-bullets { margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.card-bullet {
  font-size: 13px; color: var(--g600); line-height: 1.55;
  display: flex; gap: 7px; align-items: flex-start;
}
.card-bullet::before {
  content: '•'; color: var(--blue); flex-shrink: 0;
  font-size: 9px; margin-top: 5px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.card-tag {
  font-size: 11.5px; color: var(--g500);
  background: var(--g100); padding: 2px 9px; border-radius: var(--r-full);
  transition: background var(--tx); cursor: pointer;
}
.card-tag:hover { background: var(--g200); }

/* =============================================
   SKELETON
   ============================================= */
@keyframes shimmer {
  0%   { background-position: -400% 0; }
  100% { background-position:  400% 0; }
}
.sk {
  background: linear-gradient(90deg, #F1F5F9 25%, #E8ECF0 50%, #F1F5F9 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
.sk-card {
  background: white; border: 1px solid var(--g200); border-radius: var(--r);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.sk-row { display: flex; gap: 8px; align-items: center; }

/* =============================================
   RIGHT SIDEBAR
   ============================================= */
.sidebar-right {
  width: var(--sr); flex-shrink: 0;
  background: white; border-left: 1px solid var(--g200);
  overflow-y: auto; padding: 20px 14px;
  display: flex; flex-direction: column; gap: 24px;
}

.widget-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--g400);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}

.digest-date { font-size: 12.5px; color: var(--g500); margin-bottom: 10px; line-height: 1.4; }

.digest-hl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.digest-hl {
  font-size: 12.5px; color: var(--navy); line-height: 1.4; cursor: pointer;
  border-left: 2px solid transparent; padding-left: 8px;
  transition: all var(--tx);
}
.digest-hl:hover { border-color: var(--blue); color: var(--blue); }
.digest-hl::before { content: '›'; margin-right: 4px; color: var(--g400); }

.btn-open-digest {
  width: 100%; padding: 8px; background: var(--navy); color: white;
  border-radius: var(--r); font-size: 13px; font-weight: 500;
  transition: background var(--tx); text-align: center;
}
.btn-open-digest:hover { background: var(--navy-mid); }

.trending-list { display: flex; flex-direction: column; gap: 9px; }
.trending-item { display: flex; align-items: center; gap: 8px; }
.t-rank { font-size: 11px; color: var(--g400); font-weight: 700; width: 14px; flex-shrink: 0; }
.t-tag  { font-size: 12.5px; color: var(--navy); font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-bar-wrap { width: 50px; height: 4px; background: var(--g100); border-radius: 2px; flex-shrink: 0; }
.t-bar { height: 100%; background: var(--blue); border-radius: 2px; }
.t-count { font-size: 11.5px; color: var(--g400); font-weight: 500; width: 28px; text-align: right; flex-shrink: 0; }

/* =============================================
   DIGEST TAB
   ============================================= */
#tab-digest {
  flex-direction: column; overflow-y: auto;
  align-items: center; padding: 32px 20px 60px;
  background: var(--off);
}

.digest-nav {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.digest-nav-btn {
  font-size: 13.5px; color: var(--blue); font-weight: 500;
  padding: 6px 14px; border-radius: var(--r);
  transition: background var(--tx);
}
.digest-nav-btn:hover { background: var(--blue-lt); }
.digest-nav-btn:disabled { color: var(--g300); pointer-events: none; }

.digest-nav-title {
  font-size: 15px; font-weight: 600; color: var(--navy);
  min-width: 200px; text-align: center;
}

.digest-hdr { text-align: center; margin-bottom: 28px; width: 100%; max-width: 680px; }
.digest-hdr-title { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.digest-hdr-date  { font-size: 15px; color: var(--g500); margin-top: 4px; }
.digest-hdr-meta  { font-size: 12.5px; color: var(--g400); margin-top: 2px; }

.digest-body { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 14px; }

.digest-card {
  background: white; border: 1px solid var(--g200); border-radius: var(--r-lg);
  padding: 20px 24px 18px 32px; box-shadow: var(--sh-sm); position: relative;
}
.digest-num {
  position: absolute; top: 20px; left: -15px;
  width: 30px; height: 30px; background: var(--navy);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.digest-card-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 11px;
}
.digest-av {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; flex-shrink: 0;
  width: 38px; height: 38px; font-size: 14px;
}
.digest-card-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.digest-card-src  { font-size: 11.5px; color: var(--g400); margin-top: 1px; }
.digest-card-title {
  font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.4;
  margin-bottom: 10px; cursor: pointer; transition: color var(--tx);
}
.digest-card-title:hover { color: var(--blue); }
.digest-card-bullets { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.digest-actions { display: flex; align-items: center; gap: 10px; }
.btn-src {
  font-size: 13px; font-weight: 500; color: var(--blue);
  padding: 6px 14px; border: 1px solid var(--blue); border-radius: var(--r);
  transition: all var(--tx);
}
.btn-src:hover { background: var(--blue); color: white; }
.btn-bm-lg {
  font-size: 13px; color: var(--g400); padding: 6px 10px;
  border-radius: var(--r); transition: all var(--tx);
}
.btn-bm-lg:hover { background: var(--gold-lt); color: var(--gold); }
.btn-bm-lg.saved { color: var(--gold); font-weight: 600; }

/* =============================================
   EXPERTS TAB
   ============================================= */
#tab-experts {
  flex-direction: column; overflow-y: auto;
  padding: 28px 36px 60px; background: var(--off); position: relative;
}

.experts-hdr { margin-bottom: 20px; }
.experts-hdr h2 { font-size: 20px; font-weight: 800; color: var(--navy); }
.experts-hdr p  { font-size: 13px; color: var(--g400); margin-top: 3px; }

.experts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}

.expert-card {
  background: white; border: 1px solid var(--g200); border-radius: var(--r);
  padding: 16px; cursor: pointer; transition: all var(--tx); box-shadow: var(--sh-sm);
}
.expert-card:hover { border-color: var(--blue); box-shadow: var(--sh); transform: translateY(-2px); }
.expert-card.has-today { border-top: 3px solid; }
.expert-card.no-posts  { opacity: .55; }

.ec-av {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; margin-bottom: 10px;
  width: 46px; height: 46px; font-size: 16px;
}
.ec-name  { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.ec-title {
  font-size: 11.5px; color: var(--g400); line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ec-footer { display: flex; align-items: center; justify-content: space-between; }
.ec-count  { font-size: 12px; font-weight: 600; color: var(--blue); }
.ec-count.zero { color: var(--g300); }
.ec-srcs   { display: flex; gap: 3px; }
.ec-src-dot {
  font-size: 10px; background: var(--g100); border-radius: 3px;
  padding: 1px 5px; color: var(--g500);
}

/* Expert slide panel */
.expert-panel {
  position: fixed; top: var(--hh); right: 0; bottom: 0;
  width: 460px; background: white;
  border-left: 1px solid var(--g200); box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform 280ms ease;
  overflow-y: auto; z-index: 50;
}
.expert-panel.open { transform: translateX(0); }
.expert-panel-inner { padding: 24px; }

.btn-back { font-size: 13.5px; color: var(--blue); font-weight: 500; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 4px; }
.btn-back:hover { text-decoration: underline; }

.ep-hdr {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 18px; border-bottom: 1px solid var(--g100); margin-bottom: 18px;
}
.ep-av {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; flex-shrink: 0;
  width: 60px; height: 60px; font-size: 20px;
}
.ep-name  { font-size: 17px; font-weight: 700; color: var(--navy); }
.ep-title { font-size: 12.5px; color: var(--g400); margin-top: 4px; line-height: 1.4; }

.ep-posts-hdr { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.ep-posts { display: flex; flex-direction: column; gap: 10px; }

/* =============================================
   SEARCH MODAL
   ============================================= */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; display: none; align-items: flex-start;
  justify-content: center; padding-top: 72px;
  backdrop-filter: blur(3px);
}
.modal-bg.open { display: flex; }

.search-box {
  background: white; border-radius: var(--r-lg);
  width: 560px; max-width: 92vw;
  box-shadow: var(--sh-lg); overflow: hidden;
  animation: modalIn 200ms ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(-8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.search-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--g200);
}
.search-input-row svg { color: var(--g400); flex-shrink: 0; }
#searchQ {
  flex: 1; font: 15px/1 inherit; border: none; outline: none;
  color: var(--navy); background: none;
}
#searchQ::placeholder { color: var(--g400); }

.search-body { max-height: 420px; overflow-y: auto; padding: 8px 0; }
.search-sec  { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--g400); padding: 6px 18px 4px; }

.s-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; cursor: pointer; transition: background var(--tx);
}
.s-item:hover { background: var(--g50); }
.s-item-av {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; flex-shrink: 0;
  width: 30px; height: 30px; font-size: 11px;
}
.s-item-lbl { font-size: 14px; color: var(--navy); font-weight: 500; }
.s-item-sub { font-size: 11.5px; color: var(--g400); }
.s-item-arr { margin-left: auto; color: var(--g300); font-size: 12px; }

.s-post {
  padding: 10px 18px; cursor: pointer; transition: background var(--tx);
  border-bottom: 1px solid var(--g100);
}
.s-post:hover { background: var(--g50); }
.s-post-title  { font-size: 13px; color: var(--navy); font-weight: 600; margin-bottom: 2px; }
.s-post-expert { font-size: 11.5px; color: var(--g400); }

.s-empty { padding: 24px 18px; font-size: 14px; color: var(--g400); text-align: center; }

/* =============================================
   TOAST
   ============================================= */
.toast-wrap {
  position: fixed; bottom: 22px; right: 22px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
  background: var(--g900); color: white; font-size: 13.5px;
  padding: 10px 16px; border-radius: var(--r);
  box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 8px;
  animation: toastIn 250ms ease; max-width: 300px;
}
.toast.ok  { background: #065F46; }
.toast.err { background: #991B1B; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   POST DETAIL PANEL
   ============================================= */
.post-panel-bg {
  display: none;
  position: fixed; inset: 0; z-index: 49;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}
body.panel-open .post-panel-bg { display: block; }

.post-panel {
  position: fixed; top: var(--hh); right: 0; bottom: 0;
  width: 480px; max-width: 94vw;
  background: white;
  border-left: 1px solid var(--g200);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto; z-index: 50;
}
.post-panel.open { transform: translateX(0); }

.pp-hdr {
  position: sticky; top: 0; z-index: 2;
  background: white;
  border-bottom: 1px solid var(--g100);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.pp-close {
  margin-left: auto; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--g400); font-size: 16px;
  transition: all var(--tx); flex-shrink: 0;
}
.pp-close:hover { background: var(--g100); color: var(--g700); }
.pp-meta { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.pp-av   { flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; }
.pp-expert { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.pp-sub    { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pp-time   { font-size: 11.5px; color: var(--g400); }

.pp-title {
  font-size: 18px; font-weight: 800; color: var(--navy);
  line-height: 1.4; padding: 20px 20px 8px;
  letter-spacing: -.2px;
}
.pp-title-orig {
  font-size: 12.5px; color: var(--g400); padding: 0 20px 14px;
  font-style: italic; line-height: 1.4;
}

.pp-body {
  padding: 4px 20px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.pp-para {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--g700); line-height: 1.65;
}
.pp-bullet {
  color: var(--blue); font-size: 8px; flex-shrink: 0; margin-top: 7px;
}
.pp-empty { font-size: 13.5px; color: var(--g400); font-style: italic; }

.pp-tags {
  padding: 0 20px 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}

.pp-actions {
  position: sticky; bottom: 0;
  background: white; border-top: 1px solid var(--g100);
  padding: 14px 20px;
  display: flex; gap: 10px; align-items: center;
}
.pp-btn-src {
  flex: 1; text-align: center;
  padding: 10px 18px;
  background: var(--blue); color: white;
  border-radius: var(--r); font-size: 14px; font-weight: 600;
  transition: background var(--tx);
}
.pp-btn-src:hover { background: var(--navy); }
.pp-btn-bm {
  padding: 10px 14px; border-radius: var(--r);
  font-size: 13.5px; color: var(--g500); font-weight: 500;
  border: 1px solid var(--g200);
  transition: all var(--tx);
}
.pp-btn-bm:hover { background: var(--gold-lt); color: var(--gold); border-color: var(--gold); }
.pp-btn-bm.saved { color: var(--gold); border-color: var(--gold); background: var(--gold-lt); font-weight: 600; }

/* =============================================
   SCROLL LOADING
   ============================================= */
.load-more-indicator { text-align: center; padding: 20px; color: var(--g400); font-size: 13px; }

/* =============================================
   EMPTY / ERROR
   ============================================= */
.empty-state {
  padding: 48px 20px; text-align: center;
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state-msg  { font-size: 14px; color: var(--g400); line-height: 1.5; }
.btn-retry {
  margin-top: 16px; padding: 8px 20px;
  background: var(--blue); color: white;
  border-radius: var(--r); font-size: 14px;
  transition: background var(--tx);
}
.btn-retry:hover { background: var(--navy); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1280px) { :root { --sr: 250px; } }
@media (max-width: 1100px) { .sidebar-right { display: none; } :root { --sl: 200px; } }
@media (max-width: 1024px) { .experts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  {
  .sidebar-left { display: none; }
  .feed-wrapper { padding: 0 14px 60px; }
  #tab-experts { padding: 20px 16px 60px; }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
  #tab-digest { padding: 20px 14px 60px; }
  .digest-card { padding: 16px 16px 14px 20px; }
  .digest-num { display: none; }
}
@media (max-width: 560px)  {
  .search-trigger { display: none; }
  .logo-text { display: none; }
  .experts-grid { grid-template-columns: 1fr 1fr; }
  .expert-panel { width: 100%; }
}
