.web-content.rss-embed {
    --accent: #5a0dd6;
    --accent-2: #4900c2;
    --accent-soft: rgba(73, 0, 194, 0.22);
    --accent-text: #c4b5fd;
    --bg: #0b0c10;
    --panel: #121218;
    --panel-elevated: #18181f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f2f4f8;
    --text-dim: #a8b0c0;
    --stealth-cut: 12px 2px 2px 2px;
    --stealth-cut-sm: 8px 2px 2px 2px;
    --stealth-cut-lg: 14px 4px 4px 4px;
    --stealth-cut-panel: 22px 4px 4px 4px;
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    --transition: 0.15s ease;
}

.web-content.rss-embed,
.web-content.rss-embed * {
    box-sizing: border-box;
}

.web-content.rss-embed {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.web-content.rss-embed,
.web-content.rss-embed,
.web-content.rss-embed {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Open Sans', sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.web-content.rss-embed {
    --bg: #0a0a0f;
    --panel: #121218;
    --panel-elevated: #18181f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-dim: #a1a1aa;
    --accent: #5a0dd6;
    --accent-2: #4900c2;
    --accent-text: #c4b5fd;
    --accent-soft: rgba(73, 0, 194, 0.22);
}

.web-content.rss-embed[data-docs-unused-light] {
    --bg: #d4cec4;
    --panel: #f0ebe3;
    --panel-elevated: #f7f3ec;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-hover: rgba(255, 255, 255, 0.9);
    --border: rgba(55, 48, 40, 0.16);
    --text: #1c1916;
    --text-dim: #5c574f;
    --accent: #5a0dd6;
    --accent-2: #4900c2;
    --accent-text: #5a0dd6;
    --accent-soft: rgba(90, 13, 214, 0.12);
}

.web-content.rss-embed[data-docs-unused-stealth] {
    --bg: #0e0a16;
    --panel: #140f1c;
    --panel-elevated: #1a1426;
    --surface: rgba(124, 58, 237, 0.08);
    --surface-hover: rgba(124, 58, 237, 0.16);
    --border: rgba(168, 85, 247, 0.22);
    --text: #eae2ff;
    --text-dim: #c7b6f7;
    --accent: #5a0dd6;
    --accent-2: #4900c2;
    --accent-text: #c4b5fd;
    --accent-soft: rgba(90, 13, 214, 0.22);
}

.web-content.rss-embed[data-docs-unused-glass] {
    --bg: #010103;
    --panel: #0c0c12;
    --panel-elevated: #12121a;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.14);
    --text: #f2f4f8;
    --text-dim: #c7cdd8;
    --accent: #5a0dd6;
    --accent-2: #4900c2;
    --accent-text: #c4b5fd;
    --accent-soft: rgba(73, 0, 194, 0.22);
}

.web-content.rss-embed[data-docs-unused-float] {
    --bg: #0b0c10;
    --panel: #10121a;
    --panel-elevated: #161922;
    --surface: rgba(16, 18, 26, 0.92);
    --surface-hover: rgba(28, 32, 44, 0.95);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f2f4f8;
    --text-dim: #a8b0c0;
    --accent: #5a0dd6;
    --accent-2: #4900c2;
    --accent-text: #c4b5fd;
    --accent-soft: rgba(73, 0, 194, 0.22);
}

.rss-app {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 18px 24px;
    color: var(--text);
    box-sizing: border-box;
}

.web-content.rss-embed .rss-app,
.web-content.rss-embed .rss-masthead,
.web-content.rss-embed .network-rail,
.web-content.rss-embed .filter-bar,
.web-content.rss-embed .rss-main,
.web-content.rss-embed .articles-panel,
.web-content.rss-embed .articles-container {
    width: 100%;
    max-width: none;
}

.rss-main,
.articles-panel {
    display: block;
    width: 100%;
    max-width: none;
}

.rss-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.masthead-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.masthead-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--stealth-cut-sm);
    display: block;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(82%) sepia(28%) saturate(1400%) hue-rotate(210deg) brightness(1.05) contrast(98%);
}

.web-content.rss-embed[data-docs-unused-light] .masthead-logo {
    filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(6421%) hue-rotate(270deg) brightness(95%) contrast(120%);
}

.masthead-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-text);
    line-height: 1.15;
}

.masthead-sub {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 2px;
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
}

.search i {
    position: absolute;
    left: 10px;
    color: var(--text-dim);
    font-size: 12px;
    pointer-events: none;
}

.search input {
    width: 220px;
    max-width: 40vw;
    padding: 8px 12px 8px 30px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut);
    background: var(--surface);
    color: var(--text);
    outline: none;
}

.search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.view-mode-group {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    color: var(--text);
    background: var(--surface);
    box-shadow: none;
    transform: none;
}

.btn i {
    font-size: 10px;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-dim);
    font-weight: 500;
}

.btn-ghost:hover,
.view-mode-btn.active {
    color: var(--accent-text);
    border-color: rgba(73, 0, 194, 0.55);
    background: var(--accent-soft);
}

.btn-primary {
    background: rgba(73, 0, 194, 0.85);
    border-color: rgba(73, 0, 194, 0.65);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(73, 0, 194, 0.2);
}

.btn-primary:hover {
    background: rgba(73, 0, 194, 1);
    border-color: rgba(92, 26, 209, 0.9);
    box-shadow: 0 2px 8px rgba(73, 0, 194, 0.3);
    filter: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(73, 0, 194, 0.55);
}

.web-content.rss-embed[data-docs-unused-light] .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(55, 48, 40, 0.16);
    color: var(--text);
}

.web-content.rss-embed[data-docs-unused-light] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(73, 0, 194, 0.45);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-sm.is-added,
.btn-sm:disabled.is-added {
    opacity: 0.85;
    cursor: default;
    color: var(--text-dim);
}

.preset-item.is-added,
.channel-item.is-added {
    border-color: rgba(73, 0, 194, 0.35);
}

.btn-icon {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-sm);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.btn-icon:hover {
    color: var(--accent-text);
    border-color: rgba(73, 0, 194, 0.55);
    background: var(--accent-soft);
}

.view-mode-btn {
    min-width: 28px;
    padding: 5px 8px;
}

#btn-add-feed,
#empty-add-feed {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 550;
}

.error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--stealth-cut-panel);
    background: rgba(239, 68, 68, 0.12);
    color: var(--text);
}

.error-banner[hidden] {
    display: none !important;
}

.network-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 8px;
    scrollbar-width: thin;
}

.network-pill {
    flex: 0 0 auto;
    min-width: 108px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.network-pill:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.network-pill.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    background: linear-gradient(145deg, var(--accent-soft), var(--surface));
}

.network-pill .np-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.network-pill .np-count {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-dim);
}

.network-pill .np-swatch {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.web-content.rss-embed .filter-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.web-content.rss-embed .chip {
    display: inline-flex;
    align-items: center;
    width: auto;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-sm);
    background: var(--surface);
    color: var(--text-dim);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transform: none;
}

.web-content.rss-embed .chip.active,
.web-content.rss-embed .chip:hover {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.articles-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 12px;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* -------- List: classic thumb + copy rows -------- */
.articles-container.view-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-card.list-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    background: var(--surface);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    min-width: 0;
}

.article-card.list-row.no-thumb {
    grid-template-columns: 1fr;
}

/* -------- Compact: dense text ledger, no media -------- */
.articles-container.view-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    overflow: hidden;
    background: var(--surface);
}

.view-compact .article-row {
    display: grid;
    grid-template-columns: 64px minmax(90px, 140px) 1fr auto;
    gap: 10px 14px;
    align-items: baseline;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    min-width: 0;
}

.view-compact .article-row:last-child {
    border-bottom: 0;
}

.view-compact .article-row:hover {
    background: var(--surface-hover);
}

.view-compact .article-row.read .row-title {
    color: var(--text-dim);
}

.view-compact .row-date {
    font-size: 11px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.view-compact .row-source {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-compact .row-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-compact .row-mark {
    color: var(--accent-text);
    font-size: 11px;
}

/* -------- Cards: image-on-top tile grid -------- */
.articles-container.view-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.view-cards .article-card.card-tile {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    background: var(--surface);
    cursor: pointer;
    min-height: 320px;
}

.view-cards .article-card.card-tile:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    transform: translateY(-2px);
}

.view-cards .article-thumb.thumb-card {
    width: 100%;
    height: 160px;
    border-radius: 0;
}

.view-cards .article-body {
    padding: 12px 14px 14px;
    gap: 6px;
    flex: 1;
}

.view-cards .article-title {
    font-size: 16px;
    line-height: 1.25;
}

.view-cards .article-preview {
    -webkit-line-clamp: 3;
}

/* -------- Magazine: hero + feature pair + tile mosaic -------- */
.articles-container.view-magazine {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.view-magazine .mag-hero {
    grid-column: 1 / -1;
    min-height: 340px;
    border-radius: var(--stealth-cut-panel);
    border: 1px solid var(--border);
    background: var(--panel-elevated) center / cover no-repeat;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.view-magazine .mag-hero.no-media {
    background: var(--panel-elevated);
}

.flip-media.no-media {
    background: var(--panel-elevated);
}

.view-magazine .mag-hero-shade {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 28px 32px;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.82) 100%);
}

.view-magazine .mag-hero-title {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.12;
    font-weight: 800;
    color: #fff;
    max-width: 18ch;
}

.view-magazine .mag-hero-preview {
    margin: 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.5;
}

.view-magazine .mag-hero .article-kicker,
.view-magazine .mag-hero .article-meta {
    color: rgba(255, 255, 255, 0.78);
}

.view-magazine .mag-card.mag-feature {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    background: var(--surface);
    cursor: pointer;
}

.view-magazine .mag-card.mag-feature .article-thumb.thumb-feature {
    width: 100%;
    height: 170px;
    border-radius: 0;
}

.view-magazine .mag-card.mag-feature .article-body {
    padding: 14px 16px 16px;
}

.view-magazine .mag-card.mag-feature .article-title {
    font-size: 20px;
    line-height: 1.2;
}

.view-magazine .mag-card.mag-tile {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    background: var(--surface);
    cursor: pointer;
    min-height: 110px;
}

.view-magazine .mag-card.mag-tile .article-thumb.thumb-tile {
    width: 96px;
    height: 72px;
}

.view-magazine .mag-card.mag-tile.no-thumb {
    grid-template-columns: 1fr;
}

.view-magazine .mag-card.mag-tile .article-title {
    font-size: 14px;
}

@media (max-width: 900px) {
    .view-magazine .mag-card.mag-feature,
    .view-magazine .mag-card.mag-tile {
        grid-column: 1 / -1;
    }
}

/* -------- Flipbook: one full story page at a time -------- */
.articles-container.view-flipbook {
    display: block;
    overflow: visible;
    padding-bottom: 0;
}

.flipbook-stage {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: stretch;
    min-height: min(72vh, 640px);
}

.flip-nav {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--stealth-cut);
    cursor: pointer;
    font-size: 18px;
}

.flip-nav:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent-text);
}

.flip-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.flip-page {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    overflow: hidden;
    background: var(--surface);
    min-height: min(72vh, 640px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    animation: flipIn 280ms ease;
}

@keyframes flipIn {
    from {
        opacity: 0.35;
        transform: rotateY(-8deg) translateX(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.flip-media {
    position: relative;
    min-height: 280px;
    background: var(--panel-elevated) center / cover no-repeat;
}

.flip-media .video-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.flip-media-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 42px;
}

.flip-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 28px 24px;
}

.flip-title {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.15;
    font-weight: 800;
}

.flip-preview {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.flip-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--text-dim);
}

.flip-page-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.flip-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 900px) {
    .flipbook-stage {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .flip-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .flip-media {
        min-height: 220px;
    }

    .flip-nav {
        min-height: 44px;
    }
}

.article-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    background: var(--surface);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    min-width: 0;
}

.article-card.no-thumb {
    grid-template-columns: 1fr;
}

.article-card:hover {
    background: var(--surface-hover);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.article-card.unread .article-title {
    color: var(--text);
}

.article-card.read .article-title {
    color: var(--text-dim);
}

.article-thumb {
    width: 120px;
    height: 84px;
    border-radius: var(--stealth-cut-sm);
    background: var(--panel-elevated);
    object-fit: cover;
    overflow: hidden;
    position: relative;
}

.article-thumb img,
.article-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.article-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 18px;
}

.article-thumb .video-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.article-thumb .video-badge i {
    margin-left: 2px;
}

.article-card.is-video .article-kicker,
.mag-card.is-video .article-kicker,
.article-row.is-video .row-source {
    color: var(--accent-text);
}

.article-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.article-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.article-preview {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: auto;
}

.empty-state {
    text-align: center;
    padding: 56px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--stealth-cut-panel);
    color: var(--text-dim);
}

.empty-state i {
    font-size: 28px;
    color: var(--accent-text);
    margin-bottom: 12px;
}

.empty-state h2 {
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 16px;
}

.rss-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    pointer-events: auto;
}

.rss-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.reader-overlay {
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
    padding: 0;
    background: var(--bg);
    overflow: hidden;
    overscroll-behavior: contain;
    pointer-events: auto;
}

.web-content.rss-embed.rss-overlay-open,
.web-content.rss-embed.rss-overlay-open .web-content.rss-embed {
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
}

.rss-drawer {
    width: min(560px, 100%);
    height: 100%;
    background: var(--panel);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border-radius: var(--stealth-cut-panel) 0 0 0;
}

.rss-drawer-sm {
    width: min(440px, 100%);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.drawer-body {
    padding: 16px 18px 28px;
    overflow: auto;
    flex: 1;
}

.drawer-section-title {
    margin: 18px 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

.add-custom label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.add-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.setting-input {
    flex: 1;
    min-width: 180px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut);
    background: var(--surface);
    color: var(--text);
}

.hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-dim);
    min-height: 16px;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.network-tile {
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut-panel);
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    text-align: left;
    color: var(--text);
}

.network-tile:hover {
    border-color: var(--accent);
}

.network-tile .tile-banner {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: #fff;
}

.network-tile .tile-name {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
}

.network-tile .tile-count {
    padding: 0 10px 10px;
    font-size: 11px;
    color: var(--text-dim);
}

.preset-list,
.manage-feeds-list,
.channel-feeds-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-item,
.manage-item,
.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--stealth-cut);
    background: var(--surface);
}

.preset-item .pi-title,
.manage-item .mi-title,
.channel-item .ci-title {
    font-size: 13px;
    font-weight: 600;
}

.preset-item .pi-meta,
.manage-item .mi-meta,
.channel-item .ci-meta {
    font-size: 11px;
    color: var(--text-dim);
}

.drawer-footer-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.reader-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    pointer-events: auto;
}

.reader-toolbar {
    position: sticky;
    top: 0;
    z-index: 100001;
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 12px max(16px, calc((100% - 820px) / 2));
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
    pointer-events: auto !important;
    isolation: isolate;
    -webkit-app-region: no-drag;
    app-region: no-drag;
}

#reader-back,
#reader-close,
.reader-toolbar .btn,
.reader-toolbar .btn-icon {
    position: relative;
    z-index: 100002;
    pointer-events: auto !important;
    cursor: pointer;
    -webkit-app-region: no-drag;
    app-region: no-drag;
    touch-action: manipulation;
}

.reader-toolbar i {
    pointer-events: none;
}

.reader-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.reader-toolbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    pointer-events: auto;
}

.reader-scroll {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.reader-scroll::-webkit-scrollbar {
    width: 10px;
}

.reader-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.reader-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.reader-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
    background-clip: padding-box;
}

.web-content.rss-embed[data-docs-unused-light] .reader-scroll {
    scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}

.web-content.rss-embed[data-docs-unused-light] .reader-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.28);
    background-clip: padding-box;
}

.reader-column {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 40px) 64px;
    box-sizing: border-box;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.reader-network {
    color: var(--accent-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reader-title {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 10px;
}

.reader-byline {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 18px;
}

.reader-hero {
    margin-bottom: 20px;
    border-radius: var(--stealth-cut-panel);
    overflow: hidden;
}

.reader-hero img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.reader-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 20px;
    border-radius: var(--stealth-cut-panel);
    overflow: hidden;
    background: #000;
}

.reader-video iframe,
.reader-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.reader-video video {
    object-fit: contain;
}

.reader-video .reader-video-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reader-video .reader-video-pending {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reader-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}

.reader-body p,
.reader-body li {
    margin: 0 0 1.15em;
}

.reader-body p:last-child,
.reader-body li:last-child {
    margin-bottom: 0;
}

.reader-body > div {
    margin-bottom: 1.15em;
}

.reader-body img,
.reader-body .reader-figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--stealth-cut);
    margin: 12px 0;
    display: block;
}

.reader-body .reader-figure {
    margin: 1.25em 0;
}

.reader-body .reader-figure figcaption {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-dim);
}

.reader-body h2,
.reader-body h3 {
    margin: 1.2em 0 0.5em;
    line-height: 1.25;
}

.reader-body a {
    color: var(--accent-text);
    text-decoration: none;
    pointer-events: none;
}

.reader-loading {
    margin-top: 18px;
    color: var(--accent-text);
    font-size: 13px;
}

@media (max-width: 720px) {
    .article-card {
        grid-template-columns: 1fr;
    }
    .view-magazine .article-card,
    .view-magazine .article-card:nth-child(1) {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }
    .masthead-search input {
        width: 160px;
    }
}
