:root, [data-bs-theme="dark"] {
    --bs-body-bg: #000;
    --bs-body-color: #e4e4e7;
    --bs-border-color: rgba(255,255,255,.08);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,.04);
    --bs-card-bg: #0d1117;
    --bs-card-border-color: rgba(255,255,255,.1);
    --bs-secondary-bg: rgba(255,255,255,.04);
    --bs-tertiary-bg: rgba(255,255,255,.06);
}
body { background-color: #000; color: #e4e4e7; }
.card { background-color: #0d1117; border-color: rgba(255,255,255,.1); }
.card.filter-card { background-color: #1c2333; border: 1px solid rgba(88,166,255,0.25); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.table { color: #e4e4e7; --bs-table-bg: transparent !important; }
.table > :not(caption) > * > * { background-color: transparent !important; box-shadow: none !important; }
.badge-long { background-color: #238636; }
.badge-short { background-color: #da3633; }
.badge-avoid { background-color: #d29922; }
.badge-neutral { background-color: #6e7681; }
.analysis-text h3 { color: #58a6ff; font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.8rem; }
.analysis-text h3:first-child { margin-top: 0.4rem; }
.analysis-text h4 { color: #d2a8ff; font-size: 0.95rem; margin-top: 1.2rem; margin-bottom: 0.3rem; padding: 0.3rem 0.6rem; background-color: rgba(255,255,255,.06); border-left: 3px solid #d2a8ff; border-radius: 3px; }
.analysis-text ul { padding-left: 1.2rem; }
.analysis-text li { margin-bottom: 0.4rem; line-height: 1.5; }
.analysis-text p { margin-bottom: 0.5rem; line-height: 1.6; }
.transcript-text { max-height: 400px; overflow-y: auto; font-size: 0.85rem; line-height: 1.6; color: #8b949e; }
a { color: #58a6ff; }
a:visited { color: #58a6ff; }
a:hover { color: #79c0ff; }
.table a:visited { color: #58a6ff !important; }
.speaker-link:visited { color: #d2a8ff !important; }
.timestamp-link:visited { color: #79c0ff !important; }
.navbar { font-family: 'Inter', system-ui, sans-serif; height: 48px; padding: 0 !important; }
.navbar .container-fluid { height: 48px; position: relative; }
.navbar .navbar-brand { margin-right: 0 !important; flex-shrink: 0; }
.navbar .navbar-brand img { height: 32px !important; }
.navbar .navbar-nav.bz-nav-center {
    position: absolute; left: 50%; transform: translateX(-50%);
    gap: 2px; margin: 0; white-space: nowrap;
}
.navbar .nav-link { color: #8b949e; font-size: 13px; font-weight: 500; padding: 8px 10px !important; transition: color 0.15s; min-height: 44px; display: inline-flex; align-items: center; }
.navbar .nav-link:hover { color: #e6edf3; }
.navbar .nav-link.active { color: #f0f6fc; font-weight: 600; }
/* Search pill */
.bz-search-pill {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
    padding: 5px 14px; color: #8b949e; font-size: 12px; font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.bz-search-pill:hover { border-color: #58a6ff; color: #c9d1d9; background: rgba(255,255,255,.08); }
.bz-search-pill kbd {
    font-family: inherit; font-size: 10px; color: #6e7681;
    background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 3px;
    border: 1px solid rgba(255,255,255,.12); margin-left: 8px;
}
/* Sign-in: plain text */
.navbar .btn-outline-primary {
    border: none !important; background: none !important; box-shadow: none !important;
    color: #f0f6fc !important; font-size: 13px !important; font-weight: 600 !important;
    padding: 0 !important; font-family: 'Inter', system-ui, sans-serif;
}
.navbar .btn-outline-primary:hover { color: #8b949e !important; }
.channel-filter { display: inline-flex; align-items: center; gap: 0.3rem; margin-right: 1rem; margin-bottom: 0.5rem; cursor: pointer; font-size: 0.85rem; color: #f0f6fc; }
.channel-filter:hover { color: #fff; }
.channel-filter input { accent-color: #58a6ff; cursor: pointer; }
.timestamp-link { font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace; color: #79c0ff; text-decoration: none; font-size: 0.85rem; }
.timestamp-link:hover { color: #a5d6ff; text-decoration: underline; }
.ticker { color: #58a6ff; font-weight: 600; font-size: 0.85rem; text-decoration: none; white-space: nowrap; background-color: rgba(255,255,255,.06); padding: 0.15rem 0.45rem; border-radius: 4px; border: 1px solid rgba(255,255,255,.08); }
.ticker:hover { color: #79c0ff; background-color: rgba(255,255,255,.06); text-decoration: none; }
.ticker-sep { color: #484f58; margin: 0 0.1rem; align-self: center; }
td .d-flex.flex-wrap { max-width: 100%; }
.table td { overflow: hidden; }
.speaker-link { color: #d2a8ff; text-decoration: none; }
.speaker-link:hover { color: #e8c8ff; text-decoration: underline; }
.speaker-card { transition: border-color 0.2s; }
.speaker-card:hover { border-color: #58a6ff !important; }
.nav-tabs { border-bottom-color: rgba(255,255,255,.08); }
.nav-tabs .nav-link { color: #8b949e; border-color: transparent; }
.nav-tabs .nav-link:hover { color: #e4e4e7; border-color: rgba(255,255,255,.08) rgba(255,255,255,.08) transparent; }
.nav-tabs .nav-link.active { color: #f0f6fc; background-color: #000; border-color: rgba(255,255,255,.08) rgba(255,255,255,.08) #000; }
.nav-tabs .nav-link.disabled { color: #484f58; }
.nav-pills .nav-link {
    color: #8b949e; border-radius: 8px; padding: 0.3rem 1rem; font-size: 0.85rem;
    border: none; transition: all 0.2s;
}
.nav-pills .nav-link:hover {
    color: #f0f6fc;
    background: #2a2a30;
    transform: scale(1.06);
}
.nav-pills .nav-link.active {
    color: #f0f6fc;
    background: #2a2a30;
    border: none;
    box-shadow: none;
}
/* Twitter compound tab: hover covers link + arrow as one unit */
.tw-tab-ctrl { transition: all 0.2s; }
.tw-tab-ctrl:hover {
    transform: scale(1.06);
    background: #2a2a30 !important;
    border-color: transparent !important;
    box-shadow: none;
}
.tw-tab-ctrl:hover .nav-link { color: #f0f6fc; transform: none; background: transparent; border-color: transparent; box-shadow: none; }
.tw-tab-ctrl:hover button { color: #e4e4e7 !important; }
.cat-filter { margin-bottom: 1rem; position: relative; z-index: 10; }
.icon-yt, .icon-substack, .icon-news, .icon-twitter, .icon-reddit, .icon-insider { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px; }
.icon-yt { background: 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.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2C0 8.1 0 12 0 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1c.5-1.9.5-5.8.5-5.8s0-3.9-.5-5.8z'/%3E%3Cpath fill='%23FFF' d='M9.6 15.6V8.4l6.3 3.6z'/%3E%3C/svg%3E") no-repeat center/contain; }
.icon-substack { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF6719' d='M22.5 5.8H1.5V3.5h21zm0 3.6H1.5v2.3h21zM1.5 13h21v7.5L12 16l-10.5 4.5z'/%3E%3C/svg%3E") no-repeat center/contain; }
.icon-news { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358a6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9h4'/%3E%3Cpath d='M10 6h8m-8 4h8m-8 4h4'/%3E%3C/svg%3E") no-repeat center/contain; }
.icon-twitter { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231DA1F2' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat center/contain; }
.icon-reddit { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF4500' d='M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z'/%3E%3C/svg%3E") no-repeat center/contain; }
.icon-insider { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2a8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") no-repeat center/contain; }
#searchInput:focus { border-color: #58a6ff; box-shadow: 0 0 0 1px #58a6ff, 0 16px 48px rgba(0,0,0,.5); }
#searchDropdown a:last-child { border-bottom: none !important; }
.dropdown-item:hover, .dropdown-item:focus { background-color: rgba(255,255,255,.06) !important; }
.notif-bell { position: relative; cursor: pointer; color: #6e7681; transition: color 0.2s; }
.notif-bell:hover { color: #e4e4e7 !important; }
.notif-bell .notif-dot { position: absolute; top: -1px; right: -3px; width: 7px; height: 7px; background: #3fb950; border-radius: 50%; border: 1.5px solid #000; }
.notif-panel { display: none; position: absolute; top: calc(100% + 8px); right: -60px; width: 300px; background: #000; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); z-index: 1060; padding: 0; }
.notif-panel.open { display: block; }
.notif-panel::before { content: ''; position: absolute; top: -6px; right: 68px; width: 10px; height: 10px; background: #000; border-left: 1px solid rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.notif-panel-header { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; }
.notif-panel-body { padding: 8px 0; }
.notif-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; font-size: 0.8rem; }
.notif-row:hover { background: rgba(255,255,255,.06); }
.notif-row-label { color: #e4e4e7; flex: 1; }
.notif-row-desc { font-size: 0.68rem; color: #484f58; }
.notif-row-toggles { display: flex; gap: 10px; align-items: center; }
.notif-toggle { width: 36px; height: 20px; border-radius: 10px; background: rgba(255,255,255,.08); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.notif-toggle.on { background: #238636; }
.notif-toggle.disabled { opacity: 0.3; cursor: not-allowed; }
.notif-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #e4e4e7; transition: transform 0.2s; }
.notif-toggle.on::after { transform: translateX(16px); }
.notif-ch-label { font-size: 0.65rem; color: #6e7681; text-align: center; min-width: 30px; }
.feed-dropdown-item:hover { background: rgba(255,255,255,.06); }
.dropdown-toggle::after { font-size: 0.7rem; vertical-align: 0.15em; }
/* Collapsible channel filter */
.filter-toggle { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.filter-toggle .arrow { transition: transform 0.15s; font-size: 0.65rem; color: #6e7681; display: inline-block; }
.filter-toggle.open .arrow { transform: rotate(180deg); }
.filter-body { display: none; margin-top: 0.5rem; }
.filter-body.open { display: block; }
.filter-search { background-color: #0d1117; color: #f0f6fc; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; font-size: 0.8rem; padding: 0.25rem 0.5rem; width: 200px; margin-bottom: 0.5rem; }
.filter-search::placeholder { color: #6e7681; }
/* Twitter tab arrow rotation */
.tw-tab-arrow { transition: transform 0.2s; display: inline-block; }
.tw-tab-arrow.open { transform: rotate(180deg); }
/* ── News feed items ── */
.feed-container { display: flex; flex-direction: column; }
.feed-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background 0.15s; color: #e4e4e7;
}
.feed-item:hover { background: rgba(255,255,255,0.03); }
.feed-item-ideas.expanded { background: rgba(255,255,255,.02); }
.feed-time {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.82rem; color: #7a8a9d; white-space: nowrap;
    min-width: 44px; padding-top: 2px; text-align: right;
}
.feed-date { font-size: 0.72rem; color: #6e7681; }
.feed-item-tweet { cursor: pointer; }
.feed-item-tweet .feed-title a.feed-tweet-toggle { cursor: pointer; }
.feed-tweet-embed { display: none; margin-top: 8px; max-width: 500px; overflow: hidden; border-radius: 8px; }
.feed-item-tweet.expanded .feed-tweet-embed { display: block; }
.feed-tweet-embed.loading { min-height: 200px; background: #0a0e16; border-radius: 8px; }
.feed-tweet-embed iframe { border-radius: 8px !important; }
/* ── Expandable ideas panel (YouTube with trade ideas) ── */
.feed-item-ideas { cursor: pointer; }
.feed-ideas-toggle {
    font-size: 0.74rem; color: #7a8a9d; cursor: pointer;
    white-space: nowrap; user-select: none;
    transition: color .15s;
}
.feed-item-ideas:hover .feed-ideas-toggle { color: #8b949e; }
.feed-item-ideas.expanded .feed-ideas-toggle { color: #58a6ff; }
.feed-ideas-panel {
    display: none; margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.06);
}
.feed-item-ideas.expanded .feed-ideas-panel { display: block; }
.fip-idea {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.fip-idea:first-child { padding-top: 0; }
.fip-idea:last-child { border-bottom: none; padding-bottom: 0; }
.fip-header {
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 4px; font-size: 0.84rem;
}
.fip-speaker {
    font-weight: 600; color: #58a6ff;
    text-decoration: none;
}
.fip-speaker:hover { color: #79b8ff; text-decoration: underline; }
.fip-role {
    color: #7a8a9d; font-size: 0.76rem; font-style: italic;
}
.fip-ts {
    margin-left: auto; color: #7a8a9d;
    font-size: 0.78rem;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}
.fip-thesis-short {
    font-size: 0.86rem; color: #e6edf3; font-weight: 600;
    line-height: 1.4; margin-bottom: 4px;
}
.fip-thesis {
    font-size: 0.86rem; color: #b0b8c4; line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden;
}
.fip-tickers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.fip-pill {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 12px; font-weight: 600;
    border-radius: 10px; padding: 1px 6px;
    line-height: 20px; border: none;
    white-space: nowrap;
}
.fip-pill.long  { color: #3fb950; background: rgba(63,185,80,0.1); }
.fip-pill.short { color: #f85149; background: rgba(248,81,73,0.1); }
.fip-pill.avoid { color: #fbbf24; background: rgba(251,191,36,0.1); }
.fip-pill.watch { color: #a78bfa; background: rgba(167,139,250,0.1); }
.fip-dir { font-size: 0.68rem; opacity: 1; letter-spacing: .03em; }
.fip-conf {
    font-size: 9px; font-weight: 600; letter-spacing: 0.4px;
    color: #555D6B; font-family: 'Inter', system-ui, sans-serif;
    line-height: 1; user-select: none;
    margin-left: auto; flex-shrink: 0;
}
.fip-timeframe {
    font-size: 0.72rem; color: #7a8a9d;
    background: rgba(255,255,255,.04); border-radius: 4px;
    padding: 0 5px; white-space: nowrap;
}
.fip-quote {
    font-size: 0.82rem; color: #8b949e; font-style: italic;
    line-height: 1.4; margin-bottom: 6px;
    padding-left: 10px;
    border-left: 2px solid rgba(255,255,255,.08);
}
.fip-key-points {
    margin: 0; padding-left: 18px;
    font-size: 0.84rem; color: #b0b8c4; line-height: 1.55;
    list-style: disc;
}
.fip-key-points li { margin-bottom: 3px; }
.fip-key-points li:last-child { margin-bottom: 0; }
.feed-icon { flex-shrink: 0; padding-top: 2px; }
.feed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* ── Speaker / source line (top) ── */
.feed-speaker-line {
    display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
    margin-bottom: 2px;
}
.feed-author, .feed-author:visited, .feed-author:link {
    font-size: 0.86rem; color: #f0f6fc; text-decoration: none; font-weight: 600;
}
.feed-author:hover { color: #fff; }
/* ── Title / content ── */
.feed-title {
    font-size: 0.86rem; color: #b0b8c4; line-height: 1.45;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    min-height: 2.9em;
}
.feed-body:has(.ticker-pill) .feed-title { min-height: 0; }
.feed-item-ideas.expanded .feed-title { -webkit-line-clamp: unset; min-height: 0; }
.feed-title a { color: inherit; text-decoration: none; }
.feed-title a:hover { color: #c9d1d9; }
/* ── Meta: tickers ── */
.feed-meta { display: flex; align-items: center; gap: 12px; margin-top: 3px; flex-wrap: wrap; }
.feed-source { font-size: 0.78rem; color: #7a8a9d; }
.feed-source a { color: #7a8a9d; text-decoration: none; }
.feed-source a:hover { color: #8b949e; }
.feed-ideas-bulb {
    display: inline-flex; align-items: center; color: #d4a017 !important;
    text-decoration: none !important; opacity: .55; transition: all .15s; vertical-align: middle;
}
.feed-ideas-bulb:hover { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 5px rgba(212,160,23,.5)); }
.feed-ideas-bulb svg { display: block; }
.feed-modal-content {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.03), transparent 26%),
        linear-gradient(180deg, #0f1318 0%, #0b0f14 100%);
    border-color: rgba(255,255,255,.08) !important;
}
.feed-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
}
.feed-modal-search input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(13,17,23,.96);
    color: #f1f5fa;
    font-size: 14px;
    transition: border-color .12s, box-shadow .12s;
}
.feed-modal-search input::placeholder { color: #6e7681; }
.feed-modal-search input:focus {
    outline: none;
    border-color: rgba(88,166,255,.45);
    box-shadow: 0 0 0 3px rgba(88,166,255,.08);
}
.feed-selected-card,
.feed-section {
    --feed-accent: #cfd7e3;
    --feed-accent-soft: rgba(207,215,227,.14);
    --feed-accent-strong: rgba(207,215,227,.18);
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(13,17,23,.7);
    box-shadow: none;
}
.feed-selected-card {
    --feed-accent: #d9e0ea;
    --feed-accent-soft: rgba(217,224,234,.13);
    --feed-accent-strong: rgba(217,224,234,.16);
    padding: 16px 18px;
    background: rgba(13,17,23,.7);
}
.feed-section[data-feed-section="youtube"] {
    --feed-accent: #ff8370;
    --feed-accent-soft: rgba(255,131,112,.14);
    --feed-accent-strong: rgba(255,131,112,.18);
}
.feed-section[data-feed-section="twitter"] {
    --feed-accent: #6fcfff;
    --feed-accent-soft: rgba(111,207,255,.14);
    --feed-accent-strong: rgba(111,207,255,.18);
}
.feed-section[data-feed-section="reddit"] {
    --feed-accent: #ff9a62;
    --feed-accent-soft: rgba(255,154,98,.14);
    --feed-accent-strong: rgba(255,154,98,.18);
}
.feed-section[data-feed-section="newsletter"] {
    --feed-accent: #ffc36c;
    --feed-accent-soft: rgba(255,195,108,.14);
    --feed-accent-strong: rgba(255,195,108,.18);
}
.feed-section[data-feed-section="insider"] {
    --feed-accent: #6ee7b7;
    --feed-accent-soft: rgba(110,231,183,.14);
    --feed-accent-strong: rgba(110,231,183,.18);
}
.feed-section[data-feed-section="news"] {
    --feed-accent: #9dc4ff;
    --feed-accent-soft: rgba(157,196,255,.14);
    --feed-accent-strong: rgba(157,196,255,.18);
}
.feed-selected-card::before,
.feed-section::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 3px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, var(--feed-accent) 0%, var(--feed-accent-soft) 42%, transparent 88%);
}
.feed-selected-head,
.feed-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.feed-section-head {
    border-radius: 8px;
    padding: 4px 0;
    transition: background .12s;
}
.feed-section-head:hover {
    background: rgba(255,255,255,.025);
}
.feed-selected-actions,
.feed-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.feed-selected-title,
.feed-section-title {
    color: var(--feed-accent);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}
.feed-section-arrow {
    display: inline-block;
    width: 14px;
    text-align: center;
    font-size: 10px;
    color: var(--feed-accent);
    opacity: .6;
    transition: transform .2s;
}
.feed-selected-meta,
.feed-section-meta {
    color: #8b949e;
    font-size: 12px;
    margin-top: 3px;
    letter-spacing: .02em;
}
.feed-selected-count {
    color: #8b949e;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 999px;
    padding: 4px 10px;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 11px;
}
.feed-selected-list,
.feed-source-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.feed-selected-list { margin-top: 12px; }
.feed-selected-empty,
.feed-empty-state {
    color: #6e7681;
    font-size: 13px;
}
.feed-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feed-section {
    padding: 14px 18px 16px;
}
.feed-section.hidden { display: none; }
.feed-action-btn,
.feed-section-clear {
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
    color: #8b949e;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    transition: all .12s ease;
}
.feed-selected-card .feed-action-btn:hover,
.feed-section .feed-action-btn:hover,
.feed-section .feed-section-clear:hover {
    color: #ffffff;
    border-color: var(--feed-accent);
    background: var(--feed-accent-soft);
}
.feed-src-btn,
.feed-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(22,27,34,.85);
    color: #c9d1d9;
    transition: border-color .14s ease, background .14s ease, transform .14s ease, color .14s ease;
}
.feed-src-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.feed-src-btn:hover,
.feed-selected-chip:hover {
    transform: translateY(-1px);
    color: #f1f5fa;
    border-color: rgba(255,255,255,.12);
    background: rgba(30,35,44,.9);
}
.feed-section .feed-src-btn.is-active {
    color: #ffffff;
    border-color: var(--feed-accent);
    background: linear-gradient(180deg, var(--feed-accent-strong) 0%, rgba(31,36,42,.99) 100%);
    box-shadow: inset 0 0 0 1px var(--feed-accent-soft);
}
.feed-src-btn.is-legacy {
    border-style: dashed;
    border-color: rgba(251,191,36,.4);
}
.feed-src-btn.is-legacy.is-active {
    background: linear-gradient(180deg, rgba(61,43,12,.96) 0%, rgba(42,28,7,.98) 100%);
    border-color: rgba(251,191,36,.48);
    color: #fff7dd;
}
.feed-src-badge,
.feed-selected-chip-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #8b949e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.feed-section .feed-src-badge {
    color: var(--feed-accent);
}
.feed-section .feed-src-btn.is-active .feed-src-badge {
    background: var(--feed-accent-soft);
    color: var(--feed-accent);
}
.feed-selected-chip {
    --chip-accent: #d9e0ea;
    --chip-accent-soft: rgba(217,224,234,.14);
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #c9d1d9;
    background: rgba(22,27,34,.85);
    border-color: var(--chip-accent-soft);
}
.feed-selected-chip[data-type="youtube"] {
    --chip-accent: #ff8370;
    --chip-accent-soft: rgba(255,131,112,.14);
}
.feed-selected-chip[data-type="twitter"] {
    --chip-accent: #6fcfff;
    --chip-accent-soft: rgba(111,207,255,.14);
}
.feed-selected-chip[data-type="reddit"] {
    --chip-accent: #ff9a62;
    --chip-accent-soft: rgba(255,154,98,.14);
}
.feed-selected-chip[data-type="newsletter"] {
    --chip-accent: #ffc36c;
    --chip-accent-soft: rgba(255,195,108,.14);
}
.feed-selected-chip[data-type="insider"] {
    --chip-accent: #6ee7b7;
    --chip-accent-soft: rgba(110,231,183,.14);
}
.feed-selected-chip[data-type="news"] {
    --chip-accent: #9dc4ff;
    --chip-accent-soft: rgba(157,196,255,.14);
}
.feed-selected-chip .feed-selected-chip-type {
    background: var(--chip-accent-soft);
    color: var(--chip-accent);
}
.feed-selected-chip-more {
    cursor: default;
    border-style: dashed;
    border-color: rgba(255,255,255,.12);
    color: #c7d2df;
}
.feed-selected-chip-legacy {
    background: linear-gradient(180deg, rgba(56,40,10,.96) 0%, rgba(38,27,7,.98) 100%);
    border-color: rgba(251,191,36,.44);
    color: #fff4cf;
}
.feed-empty-state {
    display: none;
    padding: 18px 4px 4px;
}
.feed-empty-state.open { display: block; }
@media (max-width: 768px) {
    .feed-selected-head,
    .feed-section-head {
        flex-direction: column;
        align-items: stretch;
    }
}
.ticker-pill {
    display: inline-block; font-size: 0.74rem; font-weight: 600;
    color: #3fb950; background: none;
    padding: 1px 0; white-space: nowrap;
    text-decoration: none; cursor: pointer;
}
.ticker-pill:hover { filter: brightness(1.25); }
.ticker-pill.tp-short { color: #f87171; }
.ticker-pill.tp-short:hover { color: #f87171; }
.ticker-pill.tp-avoid { color: #fbbf24; }
.ticker-pill.tp-avoid:hover { color: #fbbf24; }
.ticker-pill.tp-watch { color: #a78bfa; }
.ticker-pill.tp-watch:hover { color: #a78bfa; }
/* Floating price tooltip (shared with trade ideas) */
.feed-price-tip {
    position: fixed; z-index: 99999;
    background: #131820; border: 1px solid #2a3a50; border-radius: 8px;
    padding: 10px 14px; min-width: 190px; white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.3);
    pointer-events: none; transition: opacity .12s;
}
.feed-price-tip .tip-arrow {
    position: absolute; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent;
}
.feed-price-tip .tip-arrow.arrow-up { bottom: 100%; border-bottom-color: #2a3a50; }
.feed-price-tip .tip-arrow.arrow-down { top: 100%; border-top-color: #2a3a50; }
.feed-link {
    flex-shrink: 0; color: #6e7681; text-decoration: none;
    font-size: 0.85rem; padding: 6px 8px; min-width: 32px; min-height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
}
.feed-link:hover { color: #8b949e; }
/* ── Feed right column (save + score) ── */
.feed-right {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; flex-shrink: 0; align-self: center;
}
.feed-score-label {
    font-size: 9px; font-weight: 600; letter-spacing: 0.4px;
    color: #555D6B; font-family: 'Inter', system-ui, sans-serif;
    line-height: 1; user-select: none;
}
/* ── Feed save button ── */
.feed-save-btn {
    background: none; border: none; cursor: pointer;
    font-size: 17px; color: #4a5568; padding: 6px 8px;
    line-height: 1; transition: color .15s, transform .1s; position: relative;
}
.feed-save-btn:hover { color: #8b949e; transform: scale(1.15); }
.feed-save-btn.saved { color: #f59e0b; }
/* ── Save picker popup ── */
.feed-save-picker {
    position: fixed; z-index: 50;
    background: #161b22; border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; padding: 8px 0; min-width: 220px; max-width: 320px;
    max-height: 60vh; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.feed-save-picker-item {
    padding: 8px 14px; cursor: pointer; font-size: 12px;
    color: #c9d1d9; transition: background .12s;
}
.feed-save-picker-item:hover { background: rgba(255,255,255,.06); }
.feed-save-picker-syms {
    font-weight: 600; color: #58a6ff; margin-right: 6px;
}
.feed-save-picker-dir { font-size: 10px; font-weight: 600; margin-left: 4px; }
.feed-save-picker-dir.long { color: #3fb950; }
.feed-save-picker-dir.short { color: #f85149; }
.feed-save-picker-thesis {
    color: #8b949e; font-size: 11px; margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* ── Idea rows (sr-* used by ticker page + saved feed) ── */
.sr-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .15s; cursor: pointer;
}
.sr-row:hover { background: rgba(255,255,255,.03); }
.sr-row.expanded { background: rgba(255,255,255,.02); }
.sr-time {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem; color: #7a8a9d; white-space: nowrap;
    min-width: 44px; padding-top: 2px; text-align: right; flex-shrink: 0;
}
.sr-date { display: block; font-size: 0.68rem; color: #6e7681; }
.sr-icon { flex-shrink: 0; padding-top: 2px; }
.sr-body { flex: 1; min-width: 0; }
.sr-speaker-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.sr-author, .sr-author:visited, .sr-author:link {
    font-size: 0.82rem; color: #f0f6fc; text-decoration: none; font-weight: 600;
}
.sr-author:hover { color: #fff; }
.sr-author-role { font-size: 0.72rem; color: #7a8a9d; }
.sr-author-channel { font-size: 0.72rem; }
.sr-author-channel a { color: #58a6ff; text-decoration: none; }
.sr-author-channel a:hover { text-decoration: underline; }
.sr-author-role + .sr-author-channel::before { content: '\00b7'; color: #30363d; margin: 0 4px; }
.sr-thesis {
    font-size: 0.82rem; color: #b0b8c4; line-height: 1.45;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: white-space .15s;
}
.sr-row.expanded .sr-thesis { white-space: normal; }
.sr-meta {
    display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap;
}
.sr-score-dots { display: flex; gap: 2px; align-items: center; }
.sr-dot { width: 5px; height: 5px; border-radius: 50%; background: #21262d; }
.sr-dot.on { background: #58a6ff; }
.sr-save {
    flex-shrink: 0; align-self: center;
    background: none; border: none; cursor: pointer;
    font-size: 16px; color: #3a4a5d; padding: 0 4px; line-height: 1;
}
.sr-save:hover { color: #c0d0e8; }
.sr-save.saved { color: #f59e0b; }
.sr-tweet-embed { display: none; margin-top: 8px; max-width: 500px; overflow: hidden; border-radius: 8px; }
.sr-row.expanded .sr-tweet-embed { display: block; }
/* Ideas slide toggle */
.ideas-switch {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    user-select: none; vertical-align: middle; padding: 8px 4px; min-height: 36px;
}
.ideas-switch input { display: none; }
.ideas-switch .sw-track {
    position: relative; width: 34px; height: 18px; border-radius: 9px;
    background: #8b3a3a; transition: background 0.25s;
    flex-shrink: 0;
}
.ideas-switch input:checked + .sw-track { background: #2ea043; }
.ideas-switch .sw-knob {
    position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #f0f4fa; transition: left 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ideas-switch input:checked + .sw-track .sw-knob { left: 18px; }
.ideas-switch .sw-label {
    font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; line-height: 1.15; color: #7a8a9d;
}
.ideas-switch:hover .sw-label { color: #8b949e; }
/* Feed save star — inherits main .feed-save-btn styles */
/* Feed header buttons */
.feed-header-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72rem; font-weight: 600; color: var(--btn-color, #8b949e);
    text-decoration: none; opacity: 0.7; transition: opacity 0.15s;
}
.feed-header-btn:hover { opacity: 1; color: var(--btn-color, #8b949e); }
.feed-header-badge {
    font-size: 0.62rem; background: rgba(245,158,11,0.15); color: #f59e0b;
    padding: 1px 5px; border-radius: 8px; font-weight: 700;
}
/* Live toggle */
.live-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; padding: 8px 12px; border-radius: 6px;
    cursor: pointer; font-family: inherit; transition: all 0.2s;
    color: #7d8590; background: transparent; border: 1px solid #30363d;
    min-height: 36px;
}
.live-toggle .live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #7d8590; transition: background 0.2s;
}
.live-toggle.active {
    color: #3fb950; background: rgba(63,185,80,0.06);
    border-color: rgba(63,185,80,0.2);
}
.live-toggle.active .live-dot {
    background: #3fb950; animation: livePulse 1.5s infinite;
}
@keyframes livePulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.live-new-badge {
    display: none; font-size: 11px; font-weight: 500; color: #58a6ff;
    background: rgba(56,139,253,0.08); border: 1px solid rgba(56,139,253,0.15);
    padding: 4px 10px; border-radius: 6px; cursor: pointer;
    font-family: inherit; animation: livePulse 2s infinite;
}
.live-new-badge.visible { display: inline-flex; align-items: center; gap: 4px; }
.feed-item-new { animation: feedRowEnter 0.4s ease-out; position: relative; }
.feed-item-new::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(56,139,253,0.08) 0%, transparent 60%);
    animation: feedGlowFade 1.5s ease-out forwards;
}
@keyframes feedRowEnter { from{opacity:0;transform:translateY(-100%)} to{opacity:1;transform:translateY(0)} }
@keyframes feedGlowFade { from{opacity:1} to{opacity:0} }
@media (max-width: 576px) {
    .feed-item { padding: 6px 8px; gap: 8px; }
    .feed-time { font-size: 0.76rem; min-width: 38px; }
    .feed-title { font-size: 0.84rem; }
}
/* ── global focus-visible (a11y: keyboard navigation) ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}
/* Sign-in button: ensure adequate touch target */
.navbar .btn-outline-primary {
    min-height: 44px; display: inline-flex; align-items: center;
}
