#newsfeed-dialog { width: min(640px, calc(100vw - 24px)); }
.feed-intro { margin-bottom: 24px; }
.feed-intro h3 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -.04em; margin: 10px 0; }
.feed-actions { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0; }
#feed-list { display: grid; gap: 12px; }
.feed-card { display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; padding: 22px; border: 1px solid var(--line, #b8b2c9); border-radius: 22px; color: inherit; background: var(--mint, #eeeaf5); cursor: pointer; }
.feed-card strong { font-size: 22px; overflow-wrap: anywhere; }
.feed-card small, .feed-author { opacity: .75; }
.feed-card:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.feed-choice { display: flex !important; align-items: center; gap: 12px; margin: 12px 0; }
.feed-choice input { width: 20px !important; flex: 0 0 20px; }
.feed-policy { padding: 16px 0; border-top: 1px solid var(--line, #b8b2c9); }
.feed-note { font-size: 13px; line-height: 1.5; opacity: .75; margin: 16px 0; }
#feed-reader-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 20px; line-height: 1.6; padding: 20px 0; }
#feed-reader-timer { font-variant-numeric: tabular-nums; }
[data-theme="dark"] .feed-card { background: #302c3e; }

.feed-dialog { width: min(580px, calc(100vw - 24px)); padding: 28px; border: 1px solid var(--line); border-radius: 28px; color: var(--ink); background: var(--paper); max-height: calc(100dvh - 32px); overflow-y: auto; }
.feed-dialog .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.feed-dialog .dialog-heading h2 { margin: 0; font-size: 20px; }
.feed-dialog [data-feed-close] { border: 0; border-radius: 50%; height: 36px; width: 36px; background: var(--mint); color: var(--ink); font-size: 23px; cursor: pointer; }
.feed-dialog label:not(.feed-choice) { display: grid; gap: 8px; margin: 16px 0; }
.feed-dialog input:not([type=checkbox]), .feed-dialog textarea, .feed-dialog select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; background: var(--surface, white); color: var(--ink); }
.feed-dialog input[type=checkbox] { accent-color: var(--green); }
.feed-dialog .feed-policy { padding: 12px 0; }
.feed-dialog .feed-note { margin: 12px 0; }
@media (max-width: 600px) { .feed-dialog { padding: 22px; border-radius: 24px; } }

/* A brief ripple, then a quiet badge. Never animates continuously. */
#open-newsfeed { position:relative; }
.splash-update { display:inline-block; position:absolute; bottom:calc(100% - 3px); left:50%; transform:translateX(-50%); padding:3px 8px; border-radius:12px 12px 12px 3px; background:#d7ef7a; color:#29351a; font-size:11px; font-weight:750; white-space:nowrap; animation:splash-ripple .8s ease-out; }
.splash-update[hidden] { display:none; }
@keyframes splash-ripple { 0%{transform:translateX(-50%) scale(.75) rotate(-8deg);box-shadow:0 0 0 0 #d7ef7a88} 60%{transform:translateX(-50%) scale(1.06) rotate(2deg)} 100%{transform:translateX(-50%) scale(1);box-shadow:0 0 0 10px #d7ef7a00} }
@media(prefers-reduced-motion:reduce){.splash-update{animation:none}}
