:root {
  --paper: #f7f6f2;
  --ink: #151515;
  --muted: #716f69;
  --rule: #d8d6cf;
  --blue: #1d43d8;
  --card: #fff;
  --panel: #151515;
  --display: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sans: 'Avenir Next', Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html.dark-mode, body.dark-mode {
  --paper: #121212;
  --ink: #f3f3ef;
  --muted: #aaa9a2;
  --rule: #363636;
  --card: #1b1b1b;
  --panel: #1b1b1b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body.wheel-open { overscroll-behavior: none; touch-action: none; }
html { background: var(--paper); color: var(--ink); scroll-behavior: auto; overflow-anchor: none; }
html.manual-feed-scroll { scroll-behavior: auto !important; }
body { margin: 0; min-height: 100vh; font-family: var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
.login-view { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.login-card { width: min(100%, 360px); display: grid; gap: 9px; padding: 28px; border: 1px solid var(--ink); background: var(--card); box-shadow: 9px 9px 0 rgba(29,67,216,.14); }
.login-card h1 { margin: 0 0 18px; font-size: 2rem; line-height: 1; }
.login-card label { margin-top: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.login-card input { width: 100%; min-height: 44px; border: 1px solid #aaa; background: white; padding: 0 12px; font: inherit; }
body.dark-mode .login-card input { background: #242424; color: var(--ink); }
.login-card button { min-height: 44px; margin-top: 10px; border: 0; background: var(--blue); color: white; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.login-card .login-secondary { margin-top: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.login-card .login-secondary:hover { background: var(--ink); color: var(--paper); }
.login-card button:disabled { opacity: .55; cursor: wait; }
.login-status { min-height: 1.2em; margin: 3px 0 0; color: #a51d1d; font-size: .72rem; }
body.article-open { overflow: hidden; }
button { font: inherit; color: inherit; }
button:focus-visible { outline: 3px solid rgba(29,67,216,.35); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.app-shell { width: min(100%, 820px); min-height: 100vh; margin: 0 auto; padding: 0 28px 80px; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); }
.wordmark { border: 0; background: none; padding: 8px 0; font-weight: 900; letter-spacing: -.055em; font-size: 1.08rem; cursor: pointer; }
.wordmark span { color: var(--blue); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.eyebrow { font-size: .69rem; line-height: 1.3; letter-spacing: .14em; font-weight: 800; }
.username { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .04em; }
.user-menu-button { height: 33px; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; cursor: pointer; font-size: .7rem; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: white; font-size: .68rem; font-weight: 850; }
.feed-icon-button { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; padding: 8px; border: 1px solid transparent; border-radius: 0; background: transparent; color: #111; cursor: pointer; }
.feed-icon-button svg { width: 19px; height: 19px; display: block; overflow: visible; fill: currentColor; stroke: none; }
.bookmark-icon { width: 12px; height: 17px; display: block; background: currentColor; clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.feed-icon-button#refreshFeeds svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; stroke-linejoin: miter; }
.feed-icon-button:hover { background: rgba(0,0,0,.07); }
.feed-icon-button:disabled { opacity: .48; cursor: wait; }
.feed-icon-button[aria-pressed="true"] { background: rgba(0,0,0,.1); }
.feed-icon-button.is-loading svg { animation: spin .8s linear infinite; }
.filter-button { position: relative; }
.filter-button.active { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.sort-button.active { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
body.dark-mode .feed-icon-button { background: transparent; color: white; }
body.dark-mode .feed-icon-button:hover { background: rgba(255,255,255,.12); color: white; }
body.dark-mode .feed-icon-button[aria-pressed="true"],
body.dark-mode .feed-icon-button[aria-expanded="true"],
body.dark-mode .filter-button.active,
body.dark-mode .sort-button.active { border-color: white; background: white; color: #111; box-shadow: inset 0 0 0 1px white; }
body.dark-mode .source-link:hover { color: #121212; }
.filter-strip { position: sticky; top: 68px; z-index: 18; min-height: 51px; margin: 0 -1px; padding: 9px 1px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(16px); }
.filter-controls { display: flex; align-items: center; gap: 8px; }
.filter-controls.is-page-hidden { visibility: hidden; pointer-events: none; }
.feed-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.clear-filter { height: 31px; padding: 0 7px; border: 0; background: transparent; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .63rem; font-weight: 850; cursor: pointer; }
.clear-filter:hover { text-decoration: underline; text-underline-offset: 3px; }
.sort-option { grid-template-columns: 24px 1fr; }
.sort-option-mark { color: var(--blue); font-size: .8rem; }
.filter-strip .hint { margin: 0; }
.hint { margin: 0; color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: 9px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(29,67,216,.25); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(29,67,216,0); } 100% { box-shadow: 0 0 0 0 rgba(29,67,216,0); } }
.feed-rule { height: 5px; background: var(--ink); }
.story { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 17px; padding: 14px 0 15px; border-bottom: 1px solid var(--rule); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; overflow-anchor: none; }
.story:hover .story-title { color: var(--blue); }
.story.is-holding { background: rgba(29,67,216,.07); }
.story-title { font-family: var(--display); font-size: clamp(1rem, 2.1vw, 1.22rem); line-height: 1.22; letter-spacing: -.018em; margin: 0; font-weight: 500; transition: color .15s; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .68rem; font-weight: 650; }
.story-meta .source { color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.meta-dot { width: 3px; height: 3px; background: #aaa7a0; border-radius: 50%; }
.story-image-wrap { position: relative; align-self: center; aspect-ratio: 1 / 1; overflow: hidden; background: #ddd; }
.story-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-rank { width: 1.15em; min-height: 1em; display: inline-flex; align-items: center; justify-content: center; margin-left: 2px; font-size: .9rem; line-height: 1; }
.story-rank.is-empty { visibility: hidden; }
.story-saved { display: inline-block; width: 8px; height: 11px; margin-left: 1px; background: var(--ink); clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.source-filter-mark { color: var(--ink); font-size: .62rem; transform: rotate(90deg); }
.filter-option.active .source-filter-mark { color: currentColor; }
.feed-sentinel { min-height: 1px; display: flex; align-items: center; justify-content: center; padding: 0; }
.feed-sentinel.is-loading, .feed-sentinel.is-end { min-height: 90px; padding: 24px 0; }
.feed-loading-dots { display: none; align-items: center; gap: 6px; }
.feed-sentinel.is-loading .feed-loading-dots { display: flex; }
.feed-loading-dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); animation: bounce 1s infinite alternate; }
.feed-loading-dots span:nth-child(2) { animation-delay: .18s; } .feed-loading-dots span:nth-child(3) { animation-delay: .36s; }
.feed-end-message { display: none; margin: 0; color: var(--muted); font-size: .78rem; letter-spacing: .04em; text-align: center; }
.feed-sentinel.is-end .feed-end-message { display: block; }
.back-to-top { position: fixed; z-index: 35; right: max(18px, calc((100vw - 820px) / 2 + 18px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.back-to-top:hover { background: var(--blue); color: white; }
.back-to-top:active { transform: translateY(1px); }
.app-page { min-height: calc(100vh - 150px); margin: 0; padding: 34px 38px 56px; background: var(--panel); color: white; }
.app-page > .eyebrow { margin-top: 0; }
.app-page .panel-copy { max-width: 560px; }
.app-page .ranking-breakdown { max-width: 620px; }
.app-page .source-reaction-breakdown { max-width: 720px; }
.app-page .feed-directory { max-height: 300px; }
.app-page .add-feed-form { max-width: 620px; }
@keyframes bounce { to { transform: translateY(-6px); opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
.reaction-wheel { --wheel-size: 288px; position: fixed; width: min(var(--wheel-size), calc(100vw - 20px)); height: min(var(--wheel-size), calc(100vw - 20px)); border: 1px solid rgba(255,255,255,.32); border-radius: 50%; z-index: 100; background: rgba(18,18,18,.56); box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: translate(-50%, -50%); opacity: 0; touch-action: none; }
.reaction-wheel.is-open { opacity: 1; }
.reaction { position: absolute; width: calc(min(var(--wheel-size), calc(100vw - 20px)) * .18); height: calc(min(var(--wheel-size), calc(100vw - 20px)) * .18); margin: calc(min(var(--wheel-size), calc(100vw - 20px)) * -.09); display: grid; place-items: center; border-radius: 50%; background: rgba(18,18,18,.34); font-size: calc(min(var(--wheel-size), calc(100vw - 20px)) * .086); text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.reaction.is-clear { color: #aaa; opacity: .62; font-size: 1.35rem; }
.reaction.active { background: white; outline: 2px solid white; outline-offset: 2px; }
.reaction.is-clear.active { color: #666; opacity: 1; }
.wheel-center { position: absolute; inset: 35.8%; background: rgba(18,18,18,.62); color: #aaa; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; display: grid; place-content: center; text-align: center; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.wheel-center .wheel-preview-emoji { color: white; font-size: 1.45rem; line-height: 1; margin-bottom: 4px; }
.wheel-center strong { color: white; font-size: .48rem; line-height: 1.1; }
.article-view { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; padding: 18px max(18px, calc((100vw - 820px) / 2)) 70px; background: rgba(18,18,18,.48); backdrop-filter: blur(5px); }
.article-view > .article-action-strip, .article-view > article { width: min(100%, 820px); margin-left: auto; margin-right: auto; background: var(--paper); }
.article-view > article { min-height: calc(100vh - 88px); padding: 0 28px 60px; box-shadow: 0 24px 75px rgba(0,0,0,.28); }
.article-action-strip { position: sticky; top: 0; z-index: 18; min-height: 51px; padding: 9px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(16px); box-shadow: 0 -18px 0 var(--paper); }
.article-actions { display: flex; align-items: center; gap: 7px; }
.article-icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--ink); padding: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .article-icon-button:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); } }
.article-save, .article-save:hover, .article-save:active, .article-save[aria-pressed="true"] { background: transparent; }
.article-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; }
.article-save svg { width: 15px; height: 20px; fill: #fff; stroke: #111; stroke-width: 1.7; }
.article-save[aria-pressed="true"] svg { fill: #111; stroke: #111; }
.article-reaction-display { width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.15rem; }
.article-view article.is-holding { background: color-mix(in srgb, var(--blue) 5%, var(--paper)); }
.article-header { max-width: 660px; padding: 16px 0 17px; }
.article-header .eyebrow { color: var(--blue); margin: 0 0 10px; }
.article-header h1 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 540; margin: 0; }
.article-byline { padding-top: 13px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .7rem; }
.article-hero { width: 100%; max-height: 280px; aspect-ratio: 16/6; object-fit: cover; display: block; margin: 0 0 22px; filter: saturate(.8); }
.article-body { max-width: 620px; margin: 0 auto; font-family: var(--display); font-size: 1.04rem; line-height: 1.66; }
.article-body p { margin: 0 0 1.15em; }
.article-body p:first-child::first-letter { float: left; font-size: 3.2rem; line-height: .82; padding: 10px 8px 0 0; color: var(--blue); }
.source-link { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 20px; padding: 13px 17px; border: 1px solid var(--ink); color: var(--ink); font-family: var(--sans); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.source-link:hover { background: var(--ink); color: white; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 70; backdrop-filter: blur(4px); }
.info-panel, .filter-panel, .sources-panel { position: fixed; z-index: 80; right: max(20px, calc((100vw - 820px)/2)); top: 82px; width: min(390px, calc(100vw - 40px)); max-height: calc(100vh - 102px); overflow-y: auto; background: var(--panel); color: white; padding: 38px; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.info-panel h2, .filter-panel h2, .sources-panel h2 { font-family: var(--display); font-size: 2.25rem; line-height: 1; margin: 12px 0 20px; }
.info-panel > p:not(.eyebrow) { color: #c9c7c0; line-height: 1.6; font-size: .9rem; }
.info-panel .profile-handle { margin: -12px 0 23px; color: #9e9e9e; font-size: .75rem; }
.settings-list { display: grid; border-top: 1px solid #414141; margin: 0 0 25px; }
.settings-list button, .settings-list .settings-link { min-height: 45px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid #414141; background: transparent; color: white; padding: 0; cursor: pointer; font-size: .72rem; text-decoration: none; }
.settings-list button:hover span, .settings-list .settings-link:hover span { color: #8da2ff; }
.settings-list strong { color: #969696; font-size: .62rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.help-list { border-top: 1px solid #414141; }
.help-list section { padding: 15px 0; border-bottom: 1px solid #414141; }
.help-list strong { display: block; font-size: .76rem; margin-bottom: 5px; }
.help-list p { margin: 0; color: #aaa; font-size: .72rem; line-height: 1.5; }
.wheel-slots { --customizer-wheel-size: 288px; --customizer-slot-size: 42px; --customizer-emoji-size: 18px; position: relative; width: min(var(--customizer-wheel-size), 100%); aspect-ratio: 1; margin: 4px auto 22px; border: 1px solid #414141; border-radius: 50%; background: radial-gradient(circle, #1b1b1b 0 34%, transparent 35%), #202020; transition: width 160ms ease; }
.wheel-size-controls { width: min(286px, 100%); margin: 8px auto 14px; display: grid; grid-template-columns: 46px 1fr 46px; border: 1px solid #4c4c4c; }
.wheel-size-controls button { min-height: 42px; border: 0; background: transparent; color: white; font-size: 1.25rem; cursor: pointer; }
.wheel-size-controls button:first-child { border-right: 1px solid #4c4c4c; }
.wheel-size-controls button:last-child { border-left: 1px solid #4c4c4c; }
.wheel-size-controls button:disabled { color: #666; cursor: default; }
.wheel-size-controls span { display: grid; place-content: center; text-align: center; gap: 2px; }
.wheel-size-controls small { color: #8c8c8c; font-size: .55rem; letter-spacing: .1em; }
.wheel-size-controls strong { color: white; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.reset-data { border-color: #8f3b32 !important; color: #ffb2a8 !important; }
.bug-report-form { display: grid; gap: 12px; margin-top: 24px; }
.bug-report-form label { color: white; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bug-report-form textarea { width: 100%; min-height: 180px; resize: vertical; border: 1px solid #555; border-radius: 0; background: #202020; color: white; padding: 12px; font: inherit; line-height: 1.45; }
.bug-report-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.bug-report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bug-report-actions button { min-height: 44px; border: 1px solid #666; background: transparent; color: white; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.bug-report-actions button[type="submit"] { border-color: var(--blue); background: var(--blue); }
.bug-report-actions button:disabled { opacity: .55; cursor: wait; }
.wheel-slots::after { content: ''; position: absolute; inset: 34%; border: 1px solid #414141; border-radius: 50%; pointer-events: none; }
.wheel-slot { position: absolute; width: var(--customizer-slot-size); height: var(--customizer-slot-size); transform: translate(-50%, -50%); border: 1px solid #4c4c4c; border-radius: 50%; background: #242424; color: white; font-size: var(--customizer-emoji-size); cursor: pointer; z-index: 1; transition: width 160ms ease, height 160ms ease, font-size 160ms ease; }
.wheel-slot.active { border-color: white; background: var(--blue); box-shadow: 0 0 0 1px white; }
.wheel-slot.empty { color: #696969; font-size: 1rem; }
.wheel-slot.is-clear { opacity: .55; color: #aaa; cursor: default; }
.remove-wheel-emoji { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #666; background: transparent; color: white; padding: 8px 12px; font-size: .64rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.remove-wheel-emoji:hover, .remove-wheel-emoji:focus-visible { border-color: white; background: #2b2b2b; }
.remove-wheel-emoji:disabled { opacity: .35; cursor: not-allowed; }
.emoji-library { height: 292px; display: grid; grid-template-columns: repeat(7, 1fr); align-content: start; gap: 3px; overflow-y: auto; padding: 7px 5px 7px 0; border-top: 1px solid #414141; border-bottom: 1px solid #414141; }
.emoji-choice { aspect-ratio: 1; min-height: 37px; border: 0; background: transparent; color: white; font-size: 1.28rem; cursor: pointer; border-radius: 5px; }
.emoji-choice:hover, .emoji-choice:focus-visible { background: #343434; }
.emoji-choice:disabled { opacity: .22; cursor: not-allowed; filter: grayscale(1); }
.data-summary { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 8px 0 24px; border-top: 1px solid #414141; }
.data-summary dt, .data-summary dd { margin: 0; padding: 12px 0; border-bottom: 1px solid #414141; font-size: .7rem; }
.data-summary dt { color: #aaa; }
.data-summary dd { color: white; font-weight: 750; text-align: right; }
.data-status { margin: 8px 0 20px !important; color: #aaa !important; font-size: .72rem !important; }
.data-section-label { margin: 4px 0 8px !important; color: #777 !important; font-size: .56rem !important; font-weight: 850; letter-spacing: .12em; }
.ranking-breakdown { margin: 4px 0 27px; padding: 15px; background: #202020; border: 1px solid #414141; }
.ranking-breakdown h3 { margin: 0; font-size: .76rem; }
.ranking-breakdown > p { margin: 4px 0 15px !important; color: #888 !important; font-size: .6rem !important; }
.ranking-bars { display: grid; gap: 10px; }
.ranking-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.ranking-bar-head span { min-width: 0; overflow: visible; white-space: nowrap; color: #ddd; padding: 2px 0 1px; font-size: 1.12rem; line-height: 1.25; }
.ranking-bar-head strong { flex: 0 0 auto; color: white; font-size: .74rem; line-height: 1; }
.ranking-track { height: 7px; overflow: hidden; border-radius: 99px; background: #3b3b3b; }
.ranking-fill { height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #5d78ef, var(--blue)); }
.analytics-section { margin: 25px 0 0; }
.analytics-section h3 { margin: 0 0 9px; font-size: .72rem; letter-spacing: .04em; }
.analytics-list { border-top: 1px solid #414141; }
.analytics-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #414141; font-size: .66rem; line-height: 1.35; }
.analytics-row span { color: #aaa; }
.analytics-row strong { color: white; text-align: right; }
.analytics-row small { display: block; margin-top: 3px; color: #777; font-size: .56rem; }
.analytics-empty { margin: 0; padding: 12px 0; border-top: 1px solid #414141; border-bottom: 1px solid #414141; color: #777; font-size: .65rem; }
.source-reaction-breakdown { margin-top: 22px; }
.source-reaction-breakdown h3 { margin: 0 0 9px; font-size: .76rem; }
.source-reaction-table { border-top: 1px solid #414141; }
.source-reaction-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.5fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid #414141; }
.source-reaction-row > strong { overflow-wrap: anywhere; font-size: .68rem; }
.source-reaction-row > span { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.source-reaction-count { color: #aaa; font-size: .64rem; white-space: nowrap; }
.source-reaction-count b { font-size: .9rem; }
.source-reaction-row > em { color: #888; font-size: .62rem; font-style: normal; }
.event-history { display: grid; gap: 6px; }
.event-entry { border: 1px solid #414141; background: #1d1d1d; }
.event-entry summary { padding: 10px; cursor: pointer; list-style-position: inside; font-size: .64rem; line-height: 1.4; }
.event-entry time { display: block; margin: 4px 0 0 18px; color: #777; font-size: .54rem; }
.event-details { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 6px 10px; margin: 0; padding: 0 10px 11px 28px; }
.event-details dt, .event-details dd { margin: 0; overflow-wrap: anywhere; font-size: .57rem; line-height: 1.35; }
.event-details dt { color: #777; }
.event-details dd { color: #bbb; }
.data-actions { display: grid; gap: 8px; margin-top: 22px; }
.data-actions button, .data-actions a { width: 100%; min-height: 42px; display: grid; place-items: center; border: 1px solid #555; background: transparent; color: white; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.data-actions button:hover, .data-actions a:hover { border-color: white; }
.data-actions a:focus-visible { outline: 3px solid rgba(29,67,216,.35); outline-offset: 3px; }
.data-actions button:disabled { opacity: .55; cursor: wait; }
.ranking-label { color: #969696 !important; font-size: .58rem !important; font-weight: 800; letter-spacing: .12em; margin: 0; }
.panel-back { border: 0; background: transparent; color: #9ea9db; padding: 0 0 16px; text-transform: uppercase; letter-spacing: .09em; font-size: .6rem; font-weight: 800; cursor: pointer; }
.panel-copy { color: #aaa; margin: -8px 0 24px; font-size: .78rem; line-height: 1.5; }
.source-section-label { display: block; margin: 0 0 9px; color: #aaa; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.source-section-label { margin-top: 25px; }
.source-list { border-top: 1px solid #414141; }
.directory-search input { width: 100%; height: 42px; border: 1px solid #555; background: #242424; color: white; padding: 0 12px; font: .75rem var(--sans); }
.directory-search input:focus { outline: 2px solid #8da2ff; outline-offset: -2px; }
.feed-directory { max-height: 250px; overflow-y: auto; border-top: 1px solid #414141; border-bottom: 1px solid #414141; }
.directory-feed { display: grid; grid-template-columns: 1fr 36px; gap: 10px; align-items: center; min-height: 72px; padding: 10px 0; border-bottom: 1px solid #353535; }
.directory-feed:last-child { border-bottom: 0; }
.directory-feed-copy { min-width: 0; }
.directory-feed strong { display: block; margin-bottom: 3px; color: white; font-size: .74rem; }
.directory-feed p { margin: 0 0 5px; color: #aaa; font-size: .66rem; line-height: 1.35; }
.directory-feed small { display: block; overflow: hidden; color: #8da2ff; font-size: .58rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.directory-feed-toggle { width: 34px; height: 34px; border: 1px solid #666; background: transparent; color: white; font-size: 1.15rem; cursor: pointer; }
.directory-feed-toggle.is-added { border-color: #8da2ff; color: #8da2ff; }
.directory-feed-toggle:disabled { opacity: .45; cursor: wait; }
.directory-empty { margin: 0; padding: 18px 0; color: #aaa; font-size: .72rem; }
.source-section-toggle { margin-top: 18px; }
.source-item { min-height: 51px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; border-bottom: 1px solid #414141; }
.source-toggle { min-width: 0; border: 0; background: transparent; color: white; padding: 9px 0; display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.source-check { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #686868; color: transparent; font-size: .65rem; }
.source-toggle.active .source-check { background: var(--blue); border-color: var(--blue); color: white; }
.source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.source-total { color: #828282; font-size: .6rem; white-space: nowrap; }
.remove-source { border: 0; background: transparent; color: #929292; padding: 8px 0 8px 6px; cursor: pointer; font-size: .65rem; text-transform: uppercase; }
.remove-source:hover { color: white; }
.add-feed-form { margin-top: 20px; }
.add-feed-form label { display: block; margin-bottom: 9px; color: #aaa; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feed-input-row { display: flex; }
.feed-input-row input { min-width: 0; flex: 1; height: 40px; border: 1px solid #555; border-right: 0; background: #242424; color: white; padding: 0 11px; font: .72rem var(--sans); }
.feed-input-row input:focus { outline: 2px solid #8da2ff; outline-offset: -2px; }
.feed-input-row button { min-width: 56px; border: 0; background: var(--blue); color: white; padding: 0 10px; font-size: .62rem; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.feed-input-row button:disabled { opacity: .45; cursor: wait; }
.feed-status { min-height: 18px; margin: 8px 0 0; color: #aaa; font-size: .65rem; }

/* Full app pages use the feed's paper, rules, typography, and spacing. */
.app-page { min-height: calc(100vh - 124px); padding: 24px 0 56px; background: transparent; color: var(--ink); }
.app-page > .eyebrow { margin: 0; padding: 0 0 14px; color: var(--blue); }
.app-page .panel-copy { max-width: none; margin: 18px 0 28px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.app-page .source-section-label { margin: 24px 0 10px; color: var(--muted); font-size: .68rem; }
.app-page .data-status, .app-page .feed-status { color: var(--muted); }
.app-page .ranking-breakdown, .app-page .source-reaction-breakdown { max-width: none; margin: 0; padding: 12px 0; border: 0; background: transparent; }
.app-page .ranking-breakdown h3, .app-page .source-reaction-breakdown h3 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; font-weight: 750; }
.app-page .ranking-breakdown > p { margin: 0 0 20px !important; color: var(--muted) !important; font-size: .72rem !important; }
.app-page .ranking-bars { gap: 14px; }
.app-page .ranking-bar-head span { color: var(--ink); }
.app-page .ranking-bar-head strong { color: var(--ink); font-size: .72rem; }
.app-page .ranking-track { height: 5px; background: var(--rule); }
.app-page .source-reaction-table, .app-page .source-list { border-top: 0; }
.app-page .source-reaction-row { min-height: 56px; align-items: center; border-bottom-color: var(--rule); }
.app-page .source-reaction-row > strong { color: var(--ink); font-size: .76rem; }
.app-page .source-reaction-count, .app-page .source-reaction-row > em { color: var(--muted); }
.app-page .analytics-empty { border-color: var(--rule); color: var(--muted); }
.app-page .directory-search input, .app-page .feed-input-row input { border-color: var(--ink); background: var(--paper); color: var(--ink); font-size: .82rem; }
.app-page .directory-search input:focus, .app-page .feed-input-row input:focus { outline-color: var(--blue); }
.app-page .feed-directory { max-height: 300px; border: 1px solid var(--ink); }
.app-page .directory-feed { min-height: 78px; border-bottom-color: var(--rule); }
.app-page .directory-feed strong { color: var(--ink); font-size: .84rem; font-weight: 650; }
.app-page .directory-feed p { color: var(--muted); font-size: .72rem; }
.app-page .directory-feed small { color: var(--blue); }
.app-page .directory-feed-toggle { border-color: var(--ink); color: var(--ink); background: transparent; }
.app-page .directory-feed-toggle.is-added { border-color: var(--blue); background: var(--blue); color: white; }
.app-page .directory-empty { color: var(--muted); }
.app-page .source-item { min-height: 58px; border-bottom-color: var(--rule); }
.app-page .source-toggle { color: var(--ink); }
.app-page .source-check { border-color: var(--muted); }
.app-page .source-total, .app-page .remove-source { color: var(--muted); }
.app-page .remove-source:hover { color: var(--ink); }
.app-page .add-feed-form { max-width: none; margin-top: 24px; padding-top: 0; border: 0; }
.app-page .add-feed-form label { color: var(--muted); font-size: .68rem; }
.stats-disclosure-toggle { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; background: transparent; color: var(--ink); padding: 0; text-align: left; cursor: pointer; }
.stats-disclosure-toggle > span { display: grid; gap: 4px; }
.stats-disclosure-toggle strong { font-size: 1rem; font-weight: 750; }
.stats-disclosure-toggle small { color: var(--muted); font-size: .72rem; }
.stats-disclosure-toggle > b { color: var(--blue); font-size: 1.05rem; }
.stats-disclosure > div[hidden] { display: none !important; }
.app-settings-list { margin: 0; border-top: 1px solid var(--rule); }
.app-settings-list button { min-height: 62px; border-bottom-color: var(--rule); color: var(--ink); padding: 0; font-size: .86rem; }
.app-settings-list button:hover span { color: var(--blue); }
.account-panel { width: min(310px, calc(100vw - 40px)); background: var(--paper); color: var(--ink); padding: 28px; border: 1px solid var(--ink); box-shadow: 10px 12px 0 rgba(29,67,216,.13); }
.account-panel .close-button { color: var(--ink); }
.account-panel h2 { margin: 9px 0 18px; color: var(--ink); font-size: 1.55rem; }
.account-panel .profile-handle { margin: -10px 0 22px; color: var(--muted); }
.account-panel .account-actions { margin-bottom: 0; border-top-color: var(--rule); }
.account-panel .account-actions button { min-height: 48px; border-bottom-color: var(--rule); color: var(--ink); }
.account-panel .account-actions strong { color: var(--muted); }
.account-panel .account-actions button:hover span { color: var(--blue); }
.page-back { min-height: 36px; margin: 0 0 18px; border: 0; background: transparent; color: var(--blue); padding: 0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.page-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.settings-detail-page > h2 { margin: 12px 0 24px; font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.settings-detail-page .help-list { border-top-color: var(--rule); }
.settings-detail-page .help-list section { border-bottom-color: var(--rule); }
.settings-detail-page .help-list strong { color: var(--ink); font-size: .86rem; }
.settings-detail-page .help-list p { color: var(--muted); font-size: .8rem; }
.settings-detail-page .wheel-size-controls { border-color: var(--rule); }
.settings-detail-page .wheel-size-controls button { color: var(--ink); }
.settings-detail-page .wheel-size-controls button:first-child { border-right-color: var(--rule); }
.settings-detail-page .wheel-size-controls button:last-child { border-left-color: var(--rule); }
.settings-detail-page .wheel-size-controls small { color: var(--muted); }
.settings-detail-page .wheel-size-controls strong { color: var(--ink); }
.settings-detail-page .wheel-slots { border-color: var(--rule); background: radial-gradient(circle, color-mix(in srgb, var(--ink) 6%, transparent) 0 34%, transparent 35%), color-mix(in srgb, var(--ink) 3%, transparent); }
.settings-detail-page .wheel-slots::after { border-color: var(--rule); }
.settings-detail-page .wheel-slot { border-color: var(--rule); background: var(--paper); color: var(--ink); }
.settings-detail-page .wheel-slot.active { border-color: var(--ink); background: var(--blue); color: white; box-shadow: 0 0 0 1px var(--ink); }
.settings-detail-page .remove-wheel-emoji { border-color: var(--muted); color: var(--ink); }
.settings-detail-page .remove-wheel-emoji:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.settings-detail-page .emoji-library { border-color: var(--rule); }
.settings-detail-page .emoji-choice { color: var(--ink); }
.settings-detail-page .emoji-choice:hover, .settings-detail-page .emoji-choice:focus-visible { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.settings-detail-page .data-actions { max-width: 520px; }
.settings-detail-page .data-actions button, .settings-detail-page .data-actions a { border-color: var(--ink); color: var(--ink); }
.settings-detail-page .data-actions button:hover, .settings-detail-page .data-actions a:hover { background: var(--ink); color: var(--paper); }
.settings-detail-page .bug-report-form { max-width: 620px; }
.settings-detail-page .bug-report-form label { color: var(--ink); }
.settings-detail-page .bug-report-form textarea { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.settings-detail-page .bug-report-actions button { border-color: var(--ink); color: var(--ink); }
.settings-detail-page .bug-report-actions button[type="submit"] { border-color: var(--blue); color: white; }
.settings-detail-page .bug-report-actions { grid-template-columns: 1fr; }
.close-button { position: absolute; right: 18px; top: 14px; border: 0; background: none; color: white; font-size: 1.8rem; cursor: pointer; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px 5px; margin-top: 22px; }
.legend-item { text-align: center; font-size: 1.3rem; }
.legend-item span { display: block; color: #aaa; font-size: .5rem; text-transform: uppercase; margin-top: 5px; }
.filter-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.filter-option { border: 1px solid #494949; background: #242424; color: white; min-height: 54px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; cursor: pointer; text-align: left; }
.filter-option:hover { border-color: #8e8e8e; }
.filter-option.active { border-color: white; background: var(--card); color: var(--ink); }
.filter-option:disabled { border-color: #353535; background: #1d1d1d; color: #5f5f5f; opacity: .48; cursor: not-allowed; }
.filter-option:disabled .filter-count { color: #555; }
.filter-option .emoji { width: 26px; font-size: 1.2rem; text-align: center; }
.filter-option .filter-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.filter-option .filter-count { margin-left: auto; color: #8e8e8e; font-size: .65rem; }
.filter-option.active .filter-count { color: var(--blue); }
.filter-category { grid-column: 1 / -1; width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; background: transparent; color: white; padding: 0; text-align: left; cursor: pointer; }
.filter-category > span { display: grid; gap: 4px; }
.filter-category strong { color: white; font-size: 1rem; font-weight: 750; }
.filter-category small { color: #8e8e8e; font-size: .72rem; }
.filter-category > b { color: #8da2ff; font-size: 1.05rem; }
.filter-option-group { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-option-group[hidden] { display: none; }
.filter-section-empty { grid-column: 1 / -1; margin: 4px 0 8px; color: #8e8e8e; font-size: .72rem; }
.feed-empty { padding: 54px 20px; text-align: center; border-bottom: 1px solid var(--rule); }
.feed-empty .empty-emoji { font-size: 2.4rem; margin-bottom: 12px; }
.feed-empty h2 { font-family: var(--display); font-size: 1.65rem; margin: 0 0 7px; }
.feed-empty p { color: var(--muted); font-size: .8rem; margin: 0; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); background: var(--panel); color: white; padding: 11px 16px; font-size: .76rem; opacity: 0; pointer-events: none; z-index: 120; transition: .24s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .app-shell { padding: 0 18px 64px; }
  .topbar { height: 59px; }
  .username { display: none; }
  .filter-strip { top: 59px; min-height: 48px; }
  .article-view { padding: 0; background: var(--paper); backdrop-filter: none; }
  .article-view > article { min-height: calc(100vh - 48px); padding: 0 18px 48px; box-shadow: none; }
  .article-action-strip { top: 0; min-height: 48px; padding: 8px 18px; box-shadow: none; }
  .filter-strip .hint { font-size: .68rem; }
  .story { grid-template-columns: minmax(0,1fr) 62px; gap: 11px; padding: 11px 0 12px; }
  .story-title { font-size: .98rem; }
  .story-meta { margin-top: 8px; font-size: .64rem; }
  .reaction { width: 44px; height: 44px; margin: -22px; font-size: 1.3rem; }
  .filter-strip { gap: 8px; }
  .filter-controls, .feed-actions { gap: 4px; }
  .feed-icon-button { width: 32px; height: 32px; flex-basis: 32px; padding: 6px; }
  .clear-filter { width: 24px; padding: 0; overflow: hidden; font-size: 0; }
  .clear-filter::after { content: '×'; font-size: 1rem; }
  .hint { line-height: 1.35; }
  .info-panel, .filter-panel, .sources-panel { top: 70px; padding: 30px; }
  .feed-directory { max-height: 210px; }
  .app-page { min-height: calc(100vh - 112px); padding: 20px 0 48px; }
  .app-page .feed-directory { max-height: 250px; }
  .app-page .source-reaction-row { grid-template-columns: minmax(90px, 1fr) auto; }
  .app-page .source-reaction-row > span { grid-column: 1 / -1; }
  .emoji-library { grid-template-columns: repeat(7, 1fr); }
  .article-header { padding-top: 13px; }
  .article-byline { gap: 20px; }
  .article-body { font-size: 1rem; }
  .article-hero { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
