/**
 * AIRN RSS Reader – shared base styles.
 */

:root {
        --AIRNRSS-surface:            #ffffff;
        --AIRNRSS-surface-variant:    #f2f2f4;
        --AIRNRSS-outline:            #d0d0d5;
        --AIRNRSS-primary:            #6750a4;
        --AIRNRSS-on-primary:         #ffffff;
        --AIRNRSS-font-family:        system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
        --AIRNRSS-radius:             12px;
        --AIRNRSS-gap:                1rem;
        --AIRNRSS-shadow:             0 1px 3px rgba(0,0,0,.08), 0 3px 6px rgba(0,0,0,.05);
}

#AIRNRSS-reader-root,
#AIRNRSS-manage-feeds,
.AIRNRSS-archive,
.AIRNRSS-log-table {
        box-sizing: border-box;
        font-family: var(--AIRNRSS-font-family);
        color: #222;
}

.AIRNRSS-loader {
        text-align:center;
        color:#666;
        padding:1rem;
}

/* -------------------------------------------------------------------------
   Manage Feeds – table + controls
   ---------------------------------------------------------------------- */

.AIRNRSS-feed-header      { display:flex; justify-content:flex-end; margin-bottom:.5rem; }

.AIRNRSS-feed-header .AIRNRSS-btn-add,
.AIRNRSS-btn-fetch { background:var(--AIRNRSS-primary); color:var(--AIRNRSS-on-primary); border:none; padding:.5rem 1rem; border-radius:var(--AIRNRSS-radius); cursor:pointer; font-size:.9rem; }

.AIRNRSS-feed-header .AIRNRSS-btn-add:hover,
.AIRNRSS-btn-fetch:hover,
.AIRNRSS-btn-fetch:focus { background:#563d93; }

.AIRNRSS-feed-table { width:100%; border-collapse:collapse; background:var(--AIRNRSS-surface); border:1px solid var(--AIRNRSS-outline); border-radius:var(--AIRNRSS-radius); overflow:hidden; }

.AIRNRSS-feed-table th,
.AIRNRSS-feed-table td { padding:.6rem .75rem; font-size:.875rem; border-bottom:1px solid var(--AIRNRSS-outline); word-break:break-word; }

.AIRNRSS-feed-table th { background:var(--AIRNRSS-surface-variant); text-align:left; font-weight:600; }

.AIRNRSS-feed-table tbody tr:last-child td { border-bottom:none; }

.AIRNRSS-feed-table button { background:transparent; border:none; cursor:pointer; font-size:1rem; line-height:1; padding:.25rem; }

.AIRNRSS-feed-table button:hover { color:var(--AIRNRSS-primary); }

/* -------------------------------------------------------------------------
   Modal
   ---------------------------------------------------------------------- */

.AIRNRSS-modal { position:fixed; inset:0; background:rgba(0,0,0,.4); display:flex; align-items:center; justify-content:center; z-index:10000; }

.AIRNRSS-modal-content { background:var(--AIRNRSS-surface); border-radius:var(--AIRNRSS-radius); box-shadow:var(--AIRNRSS-shadow); padding:1.5rem; min-width:18rem; display:flex; flex-direction:column; gap:.75rem; }

.AIRNRSS-modal-content h3 { margin:0 0 .5rem; font-size:1.1rem; }

.AIRNRSS-modal-content label { display:flex; flex-direction:column; font-size:.85rem; gap:.25rem; }

.AIRNRSS-modal-content input,
.AIRNRSS-modal-content select { padding:.45rem .6rem; border:1px solid var(--AIRNRSS-outline); border-radius:var(--AIRNRSS-radius); font-size:.9rem; }

.AIRNRSS-modal-actions { display:flex; justify-content:flex-end; gap:.5rem; margin-top:.5rem; }

.AIRNRSS-modal-actions button { border:none; padding:.45rem .9rem; border-radius:var(--AIRNRSS-radius); cursor:pointer; font-size:.85rem; }

.AIRNRSS-btn-save   { background:var(--AIRNRSS-primary); color:var(--AIRNRSS-on-primary); }

.AIRNRSS-btn-cancel { background:var(--AIRNRSS-surface-variant); }

/* -------------------------------------------------------------------------
   Manage feeds (refreshed layout)
   ---------------------------------------------------------------------- */

.AIRNRSS-manage-feeds-shell {
        display:flex;
        flex-direction:column;
        gap:1.5rem;
        padding:1rem;
}

.AIRNRSS-manage-feeds-header {
        display:flex;
        flex-wrap:wrap;
        gap:1rem;
        align-items:flex-end;
        justify-content:space-between;
}

.AIRNRSS-manage-feeds-search label,
.AIRNRSS-manage-feeds-filters label {
        display:flex;
        flex-direction:column;
        font-size:.85rem;
        gap:.35rem;
}

.AIRNRSS-manage-feeds-search input,
.AIRNRSS-manage-feeds-filters select {
        background:#f7f7fc;
        border:1px solid rgba(103,80,164,.4);
        border-radius:999px;
        padding:.4rem .9rem;
        font-size:.9rem;
        color:#1f1d2b;
        transition:border .2s ease,box-shadow .2s ease;
        box-shadow:0 0 0 0 transparent;
}

.AIRNRSS-manage-feeds-search input:focus,
.AIRNRSS-manage-feeds-filters select:focus {
        outline:none;
        border-color:#5c35d7;
        box-shadow:0 0 0 4px rgba(103,80,164,.12);
}

.AIRNRSS-manage-feeds-filters {
        display:flex;
        gap:.75rem;
        align-items:flex-end;
}

.AIRNRSS-manage-feeds-actions {
        display:flex;
        gap:.5rem;
}

.AIRNRSS-manage-feeds-body {
        display:grid;
        grid-template-columns:minmax(0,1fr) 320px;
        gap:1rem;
}

.AIRNRSS-manage-feeds-table-panel {
        background:var(--AIRNRSS-surface);
        border:1px solid var(--AIRNRSS-outline);
        border-radius:var(--AIRNRSS-radius);
        padding:1rem;
        box-shadow:var(--AIRNRSS-shadow);
        overflow:hidden;
        font-size:.85rem;
}

.AIRNRSS-manage-feeds-table-panel.is-loading {
        position:relative;
}

.AIRNRSS-manage-feeds-loader {
        padding:.5rem 0;
        text-align:center;
}

.AIRNRSS-manage-feeds-table {
        width:100%;
        border-collapse:collapse;
        margin-top:.5rem;
}

.AIRNRSS-manage-feeds-table th,
.AIRNRSS-manage-feeds-table td {
        text-align:left;
        padding:.5rem .75rem;
        border-bottom:1px solid var(--AIRNRSS-outline);
        vertical-align:top;
}

.AIRNRSS-manage-feeds-table tbody tr.is-active {
        background:var(--AIRNRSS-surface-variant);
}

.AIRNRSS-manage-feed-url a {
        font-size:.8rem;
        color:#586069;
        word-break:break-all;
}

.AIRNRSS-manage-feed-actions {
        display:flex;
        gap:.35rem;
}

.AIRNRSS-icon-btn {
        width:32px;
        height:32px;
        border:none;
        border-radius:50%;
        background:var(--AIRNRSS-surface-variant);
        color:#1f1d2b;
        font-size:1rem;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        transition:background .2s ease, transform .2s ease;
}

.AIRNRSS-icon-btn:hover,
.AIRNRSS-icon-btn:focus {
        background:var(--AIRNRSS-surface);
        outline:none;
        transform:translateY(-1px);
}

.AIRNRSS-icon-btn.is-danger {
        color:#b00020;
        background:rgba(176,0,32,.12);
}

.AIRNRSS-icon-btn.is-danger:hover,
.AIRNRSS-icon-btn.is-danger:focus {
        background:rgba(176,0,32,.2);
}

.AIRNRSS-manage-feeds-pagination {
        display:flex;
        align-items:center;
        justify-content:space-between;
        margin-top:.75rem;
}

.AIRNRSS-manage-feed-detail {
        background:var(--AIRNRSS-surface);
        border:1px solid var(--AIRNRSS-outline);
        border-radius:var(--AIRNRSS-radius);
        padding:1rem;
        display:flex;
        flex-direction:column;
        gap:1rem;
        box-shadow:var(--AIRNRSS-shadow);
        font-size:.88rem;
}

.AIRNRSS-manage-feed-detail-header {
        display:flex;
        justify-content:space-between;
        align-items:flex-start;
        gap:1rem;
}

.AIRNRSS-manage-feed-detail-header > div {
        flex:1;
        min-width:0;
}

.AIRNRSS-manage-feed-detail-header h3,
.AIRNRSS-manage-feed-detail-header p {
        margin:0;
        overflow-wrap:break-word;
        word-break:break-word;
}

.AIRNRSS-manage-feed-detail-body {
        display:flex;
        flex-direction:column;
        gap:1rem;
}

.AIRNRSS-manage-feed-detail-meta {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
        gap:.5rem;
}

.AIRNRSS-manage-feed-detail-meta dt {
        font-size:.8rem;
        color:#666;
}

.AIRNRSS-manage-feed-detail-meta dd {
        margin:0;
        font-weight:600;
}

.AIRNRSS-manage-feed-detail-stats {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
        gap:.75rem;
}

.AIRNRSS-feed-stat {
        background:var(--AIRNRSS-surface-variant);
        border-radius:var(--AIRNRSS-radius);
        padding:.5rem;
        text-align:center;
}

.AIRNRSS-feed-stat span {
        display:block;
        font-size:.75rem;
        color:#666;
}

.AIRNRSS-feed-stat strong {
        font-size:1.2rem;
}

.AIRNRSS-manage-feed-detail-section {
        border-top:1px solid var(--AIRNRSS-outline);
        padding-top:.75rem;
}

.AIRNRSS-manage-feed-detail-section-header {
        display:flex;
        justify-content:space-between;
        align-items:center;
        margin-bottom:.5rem;
}

.AIRNRSS-manage-feed-detail-section ul {
        list-style:none;
        margin:0;
        padding:0;
        display:flex;
        flex-direction:column;
        gap:.5rem;
        max-height:220px;
        overflow:auto;
}

.AIRNRSS-manage-feed-detail-list li {
        background:var(--AIRNRSS-surface-variant);
        border-radius:var(--AIRNRSS-radius);
        padding:.5rem;
}

.AIRNRSS-manage-feed-detail-loader {
        text-align:center;
        font-weight:600;
}

.AIRNRSS-manage-feed-modal-backdrop {
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        display:flex;
        align-items:center;
        justify-content:center;
        z-index:10000;
}

.AIRNRSS-manage-feed-modal {
        background:var(--AIRNRSS-surface);
        border-radius:var(--AIRNRSS-radius);
        padding:1.25rem;
        width:min(420px,90vw);
        box-shadow:var(--AIRNRSS-shadow);
}

.AIRNRSS-manage-feed-form {
        display:flex;
        flex-direction:column;
        gap:.6rem;
}

.AIRNRSS-manage-feed-form-grid {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
        gap:.75rem;
}

.AIRNRSS-manage-feed-form label {
        font-size:.85rem;
        display:flex;
        flex-direction:column;
        gap:.35rem;
}

.AIRNRSS-manage-feed-form input,
.AIRNRSS-manage-feed-form select {
        padding:.45rem .6rem;
        border:1px solid var(--AIRNRSS-outline);
        border-radius:var(--AIRNRSS-radius);
        font-size:.95rem;
}

.AIRNRSS-manage-feed-error {
        color:#b00020;
        font-size:.8rem;
        margin:0 -.45rem;
}

/* ===== My Feeds: readability & density ===== */

.AIRNRSS-myfeeds-backdrop {
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.35);
        z-index:9998;
        display:none;
        pointer-events:none;
        visibility:hidden;
}

.AIRNRSS-myfeeds-panel {
        position:fixed;
        inset:32px;
        z-index:9999;
        max-width:720px;
        width:min(92vw, 720px);
        padding:2rem;
        max-height:calc(100dvh - 8rem);
        overflow:hidden;
        display:none;
        flex-direction:column;
        visibility:hidden;
        opacity:0;
        pointer-events:none;
}

.AIRNRSS-myfeeds-open .AIRNRSS-myfeeds-backdrop,
.AIRNRSS-myfeeds-backdrop.is-open {
        display:block;
        visibility:visible;
        opacity:1;
        pointer-events:auto;
}

.AIRNRSS-myfeeds-panel.is-open {
        display:flex;
        visibility:visible;
        opacity:1;
        pointer-events:auto;
}

.AIRNRSS-myfeeds,
.AIRNRSS-myfeeds * {
        color:var(--AIRNRSS-text, #1c1b1f);
}

.AIRNRSS-myfeeds .AIRNRSS-muted {
        color:var(--AIRNRSS-text-muted, rgba(0,0,0,.60));
}

.AIRNRSS-myfeeds-header {
        display:flex;
        flex-direction:column;
        gap:1.5rem;
        padding-bottom:1.25rem;
        border-bottom:1px solid var(--AIRNRSS-divider, rgba(0,0,0,.08));
        margin-bottom:1.5rem;
}

.AIRNRSS-myfeeds-titlebar {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:1rem;
        margin:0;
}

.AIRNRSS-myfeeds-titlebar h3 {
        margin:0;
}

.AIRNRSS-myfeeds-close {
        border:none;
        background:transparent;
        font-size:1.5rem;
        line-height:1;
        cursor:pointer;
        color:var(--AIRNRSS-text-muted, rgba(0,0,0,.60));
}

.AIRNRSS-myfeeds-subscribe {
        display:flex;
        flex-direction:column;
        gap:1rem;
        width:100%;
}

.AIRNRSS-myfeeds .AIRNRSS-subscribe-row {
        display:grid;
        grid-template-columns:minmax(240px, 1fr) minmax(220px, 1fr) auto;
        gap:.75rem;
        align-items:center;
}

.AIRNRSS-myfeeds-subscribe-field {
        display:flex;
        flex-direction:column;
        gap:.35rem;
}

.AIRNRSS-myfeeds-subscribe-field input {
        width:100%;
}

.AIRNRSS-myfeeds-subscribe-btn {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:.35rem;
        padding:.65rem 1.25rem;
        border-radius:var(--AIRNRSS-radius);
        border:none;
        font-weight:600;
        font-size:.95rem;
        cursor:pointer;
        background:var(--AIRNRSS-primary);
        color:var(--AIRNRSS-on-primary);
        transition:background .2s ease, transform .2s ease;
        min-height:2.75rem;
        min-width:9rem;
}

.AIRNRSS-myfeeds-subscribe-btn:hover,
.AIRNRSS-myfeeds-subscribe-btn:focus {
        background:#563d93;
        transform:translateY(-1px);
}

.AIRNRSS-myfeeds-spinner {
        display:inline-block;
        font-size:1rem;
}

.AIRNRSS-myfeeds-subscribe-hints {
        display:flex;
        flex-direction:column;
        gap:.25rem;
        font-size:.85rem;
        color:var(--AIRNRSS-text-muted, rgba(0,0,0,.60));
}

.AIRNRSS-myfeeds-hint {
        margin:0;
        line-height:1.4;
        font-size:.75rem;
}

.AIRNRSS-myfeeds-error {
        margin:0;
        color:#b3261e;
        font-size:.9rem;
}

.AIRNRSS-myfeeds-body {
        display:grid;
        grid-template-columns:minmax(0, 1fr);
        gap:1.5rem;
        align-items:start;
        flex:1 1 auto;
        min-height:0;
}

.AIRNRSS-myfeeds-status,
.AIRNRSS-myfeeds-empty,
.AIRNRSS-myfeeds-list,
.AIRNRSS-myfeeds-advanced {
        grid-column:1;
}

.AIRNRSS-myfeeds-catalog {
        grid-column:1;
        min-height:0;
}

.AIRNRSS-myfeeds-catalog-body {
        padding-right:.25rem;
}

.AIRNRSS-myfeeds-catalog-group {
        display:flex;
        flex-direction:column;
        gap:.25rem;
}

.AIRNRSS-myfeeds-catalog-hint {
        font-size:.75rem;
        color:var(--AIRNRSS-text-muted, rgba(0,0,0,.6));
        margin:0;
}

.AIRNRSS-myfeeds-catalog-body::-webkit-scrollbar,
.AIRNRSS-myfeeds-catalog::-webkit-scrollbar {
        width:.5rem;
}

.AIRNRSS-myfeeds-catalog-body::-webkit-scrollbar-thumb,
.AIRNRSS-myfeeds-catalog::-webkit-scrollbar-thumb {
        background:rgba(0,0,0,.15);
        border-radius:999px;
}

@media (min-width: 60rem) {
        .AIRNRSS-myfeeds-body {
                grid-template-columns:minmax(0, 1fr) 340px;
        }

        .AIRNRSS-myfeeds-catalog {
                grid-column:2;
                max-height:min(60vh, 720px);
                overflow:auto;
                padding-right:.25rem;
        }

        .AIRNRSS-myfeeds-catalog-body {
                padding-right:0;
        }
}

@media (max-width: 39.99rem) {
        .AIRNRSS-myfeeds .AIRNRSS-subscribe-row {
                grid-template-columns:1fr;
        }

        .AIRNRSS-myfeeds .AIRNRSS-subscribe-btn {
                justify-self:start;
        }
}

.AIRNRSS-myfeeds-status,
.AIRNRSS-myfeeds-empty {
        margin:0;
        color:var(--AIRNRSS-text-muted, rgba(0,0,0,.60));
        font-size:.95rem;
}

.AIRNRSS-myfeeds-list,
.AIRNRSS-myfeeds-catalog-list {
        list-style:none;
        margin:0;
        padding:0;
}

.AIRNRSS-myfeeds-list {
        display:flex;
        flex-direction:column;
}

.AIRNRSS-myfeeds-item {
        display:grid;
        grid-template-columns:1fr auto;
        align-items:center;
        gap:.75rem 1rem;
        padding:.5rem .25rem;
        border-bottom:1px solid var(--AIRNRSS-divider, rgba(0,0,0,.08));
}

.AIRNRSS-myfeeds-item:last-child {
        border-bottom:0;
}

.AIRNRSS-feed-text {
        min-width:0;
        display:flex;
        flex-direction:column;
        gap:2px;
}

.AIRNRSS-feed-title {
        font-weight:600;
        line-height:1.2;
        color:var(--AIRNRSS-text, #1c1b1f);
}

.AIRNRSS-feed-title a {
        color:inherit;
        text-decoration:none;
        word-break:break-word;
}

.AIRNRSS-feed-title a:hover,
.AIRNRSS-feed-title a:focus {
        text-decoration:underline;
}

.AIRNRSS-feed-url {
        display:block;
        margin-top:2px;
        font-size:.92rem;
        color:var(--AIRNRSS-text-muted, rgba(0,0,0,.60));
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
}

.AIRNRSS-feed-groups {
        margin-top:2px;
        display:inline-flex;
        gap:.375rem;
        flex-wrap:wrap;
}

.AIRNRSS-feed-chip {
        font-size:.78rem;
        line-height:1;
        padding:.25rem .45rem;
        border-radius:999px;
        background:var(--AIRNRSS-chip-bg, rgba(0,0,0,.06));
        color:var(--AIRNRSS-text-muted, rgba(0,0,0,.70));
}

/* Force readable palette inside My Feeds modal (no theme switching) */

.AIRNRSS-modal-content.AIRNRSS-myfeeds,
.AIRNRSS-myfeeds-panel {
        --AIRNRSS-text: #1c1b1f;             /* main text */
        --AIRNRSS-text-muted: rgba(0,0,0,.62);
        --AIRNRSS-divider: rgba(0,0,0,.08);
        --AIRNRSS-chip-bg: rgba(0,0,0,.06);

        color: var(--AIRNRSS-text);
}

/* Ensure items don’t inherit accidental opacity or colors */

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-list,
.AIRNRSS-myfeeds .AIRNRSS-myfeeds-item,
.AIRNRSS-myfeeds .AIRNRSS-feed-title,
.AIRNRSS-myfeeds .AIRNRSS-feed-url,
.AIRNRSS-myfeeds .AIRNRSS-feed-groups {
        opacity: 1 !important;
        color: inherit;
}

/* Compact rows and clear layout */

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: .5rem 1rem;
        align-items: center;
        padding: .5rem .25rem;           /* tighter vertical space */
        border-bottom: 1px solid var(--AIRNRSS-divider);
}

.AIRNRSS-myfeeds .AIRNRSS-feed-text { min-width: 0; }

.AIRNRSS-myfeeds .AIRNRSS-feed-title {
        font-weight: 600;
        line-height: 1.2;
        margin: 0;
}

.AIRNRSS-myfeeds .AIRNRSS-feed-url {
        font-size: .92rem;
        color: var(--AIRNRSS-text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}

.AIRNRSS-myfeeds .AIRNRSS-feed-groups .AIRNRSS-chip {
        background: var(--AIRNRSS-chip-bg);
        padding: .15rem .5rem;
        border-radius: 999px;
        font-size: .86rem;
}

/* --- My Feeds: header form layout (fix overlap) --- */

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-header {
        display:flex;
        flex-direction:column;
        gap:1.5rem;
        align-items:stretch;
}

.AIRNRSS-myfeeds .AIRNRSS-url-input,
.AIRNRSS-myfeeds .AIRNRSS-label-input {
        min-width:0; /* prevent overflow */
}

.AIRNRSS-myfeeds .AIRNRSS-subscribe-btn {
        justify-self:flex-start;
}

/* --- Unsubscribe button text stronger --- */

.AIRNRSS-myfeeds .AIRNRSS-unsub {
        color: #2b2b2b;            /* darker text */
        border-color: rgba(0,0,0,.18);
        font-weight: 600;
}

/* --- List row layout tweaks --- */

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-item {
        display: grid;
        grid-template-columns: 1fr auto; /* left text, right button */
        gap: .4rem 1rem;
        align-items: center;
        padding: .55rem .25rem;
        border-bottom: 1px solid var(--AIRNRSS-divider);
}

/* Title line with inline chips (group + interval) */

.AIRNRSS-myfeeds .AIRNRSS-feed-title {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .35rem;
}

.AIRNRSS-myfeeds .AIRNRSS-feed-title-text {
        font-weight: 700;
        line-height: 1.25;
}

/* Group pill + interval badge as small chips */

.AIRNRSS-myfeeds .AIRNRSS-chip {
        background: var(--AIRNRSS-chip-bg);
        border-radius: 999px;
        padding: .15rem .5rem;
        font-size: .86rem;
        line-height: 1.1;
}

.AIRNRSS-myfeeds .AIRNRSS-chip.AIRNRSS-interval {
        opacity: .85;
}

.AIRNRSS-myfeeds .AIRNRSS-group-assign {
        margin: .75rem 0 1rem;
        display: flex;
        gap: .5rem;
        align-items: center;
}

.AIRNRSS-myfeeds .AIRNRSS-group-assign select {
        flex: 1 1 auto;
        min-width: 0;
}

.AIRNRSS-myfeeds .AIRNRSS-group-assign .AIRNRSS-btn {
        white-space: nowrap;
}

.AIRNRSS-myfeeds .AIRNRSS-group-assign .AIRNRSS-group-skip {
        background: none;
        border: 0;
        padding: 0;
        color: var(--AIRNRSS-primary);
        text-decoration: underline;
        font-size: .875rem;
        cursor: pointer;
}

.AIRNRSS-myfeeds .AIRNRSS-group-assign[hidden] {
        display: none;
}

/* URL line under title, muted and ellipsized */

.AIRNRSS-myfeeds .AIRNRSS-feed-url {
        color: var(--AIRNRSS-text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-top: .1rem;
}

/* Keep the scrollable body visible and sized */

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-body {
        max-height: min(70vh, 560px);
}

.AIRNRSS-myfeeds-item .AIRNRSS-btn-unsub {
        justify-self:end;
}

.AIRNRSS-btn {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        font:inherit;
        font-weight:600;
        cursor:pointer;
        border:none;
        border-radius:var(--AIRNRSS-radius, 12px);
        line-height:1.2;
        transition:background-color .2s ease, border-color .2s ease, color .2s ease;
}

.AIRNRSS-btn.AIRNRSS-btn-sm {
        padding:6px 10px;
        font-size:.9rem;
        border-radius:10px;
}

.AIRNRSS-btn-outline {
        background:transparent;
        border:1px solid var(--AIRNRSS-accent, #E1BEE7);
        color:var(--AIRNRSS-accent-text, #7B1FA2);
}

.AIRNRSS-btn-unsub {
        border:1px solid rgba(179,38,30,0.35);
        background:transparent;
        color:#b3261e;
        border-radius:var(--AIRNRSS-radius);
        padding:.45rem .95rem;
        font-size:.9rem;
        cursor:pointer;
        transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.AIRNRSS-btn-unsub:hover,
.AIRNRSS-btn-unsub:focus {
        background:rgba(179,38,30,0.08);
        color:#8c1c17;
        border-color:rgba(179,38,30,0.5);
}

.AIRNRSS-myfeeds-catalog-list {
        display:flex;
        flex-direction:column;
        gap:0;
}

.AIRNRSS-myfeeds-catalog-item {
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:1.25rem;
        padding:1rem 0;
        border-bottom:1px solid var(--AIRNRSS-outline);
}

.AIRNRSS-myfeeds-catalog-item:last-child {
        border-bottom:none;
}

.AIRNRSS-myfeeds-details {
        flex:1 1 auto;
        min-width:0;
        display:flex;
        flex-direction:column;
        gap:.35rem;
}

.AIRNRSS-myfeeds-title {
        font-weight:600;
        font-size:1rem;
        color:#1f1f1f;
        text-decoration:none;
        word-break:break-word;
}

.AIRNRSS-myfeeds-title:hover,
.AIRNRSS-myfeeds-title:focus {
        text-decoration:underline;
        color:var(--AIRNRSS-primary);
}

.AIRNRSS-myfeeds-url {
        font-size:.85rem;
        color:#5e5e5e;
        word-break:break-all;
}

.AIRNRSS-myfeeds-groups {
        display:flex;
        flex-wrap:wrap;
        gap:.35rem;
}

.AIRNRSS-myfeeds-chip {
        background:var(--AIRNRSS-surface-variant);
        color:#333;
        border-radius:999px;
        padding:.2rem .6rem;
        font-size:.75rem;
}

.AIRNRSS-myfeeds-actions {
        display:flex;
        align-items:center;
        gap:.5rem;
}

.AIRNRSS-myfeeds-catalog {
        border-top:1px solid var(--AIRNRSS-outline);
        padding-top:1rem;
        display:flex;
        flex-direction:column;
        gap:.75rem;
}

.AIRNRSS-myfeeds-catalog-toggle {
        align-self:flex-start;
        border:none;
        background:var(--AIRNRSS-surface-variant);
        color:#333;
        padding:.5rem .85rem;
        border-radius:var(--AIRNRSS-radius);
        cursor:pointer;
        transition:background .2s ease;
        font-weight:600;
}

.AIRNRSS-myfeeds-catalog-toggle:hover,
.AIRNRSS-myfeeds-catalog-toggle:focus,
.AIRNRSS-myfeeds-catalog-toggle.is-open {
        background:#e4e2ff;
        color:#2f1b75;
}

.AIRNRSS-myfeeds-catalog-body {
        display:flex;
        flex-direction:column;
        gap:.75rem;
}

.AIRNRSS-myfeeds-catalog-status {
        font-size:.9rem;
        color:var(--AIRNRSS-text-muted, #555);
        margin:0;
}

.AIRNRSS-myfeeds-catalog-search {
        display:flex;
        flex-direction:column;
        gap:.35rem;
}

.AIRNRSS-myfeeds-catalog-search-input {
        width:100%;
        padding:.45rem .6rem;
        border:1px solid var(--AIRNRSS-outline);
        border-radius:var(--AIRNRSS-radius);
        font-size:.9rem;
}

.AIRNRSS-myfeeds-catalog-subscribe {
        border:1px solid rgba(179,38,30,0.35);
        background:transparent;
        color:#b3261e;
        border-radius:var(--AIRNRSS-radius);
        padding:.45rem .95rem;
        font-size:.9rem;
        cursor:pointer;
        transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.AIRNRSS-myfeeds-catalog-subscribe:hover,
.AIRNRSS-myfeeds-catalog-subscribe:focus {
        background:rgba(179,38,30,0.08);
        color:#8c1c17;
        border-color:rgba(179,38,30,0.5);
}

.AIRNRSS-myfeeds-catalog-item.is-subscribed .AIRNRSS-myfeeds-catalog-subscribe {
        background:var(--AIRNRSS-surface-variant);
        color:#555;
        border-color:var(--AIRNRSS-outline);
        cursor:default;
}

.AIRNRSS-myfeeds-catalog-subscribe[disabled],
.AIRNRSS-myfeeds-catalog-subscribe[aria-disabled="true"] {
        opacity:.6;
        cursor:default;
}

@media (max-width: 59.9375rem) {
        .AIRNRSS-modal-content.AIRNRSS-myfeeds {
                width:100%;
                padding:1.5rem;
        }

        .AIRNRSS-myfeeds .AIRNRSS-subscribe-row {
                grid-template-columns:1fr;
        }

        .AIRNRSS-myfeeds-subscribe-btn {
                width:100%;
        }

        .AIRNRSS-myfeeds-catalog-body {
                max-height:55vh;
        }

        .AIRNRSS-myfeeds-item {
                grid-template-columns:1fr;
                align-items:flex-start;
        }

        .AIRNRSS-myfeeds-item .AIRNRSS-btn-unsub {
                width:100%;
                justify-self:stretch;
        }

        .AIRNRSS-myfeeds-catalog-item {
                flex-direction:column;
                align-items:flex-start;
        }

        .AIRNRSS-myfeeds-actions {
                width:100%;
        }

        .AIRNRSS-myfeeds-catalog-subscribe {
                width:100%;
                text-align:center;
        }
}

@media (prefers-color-scheme: dark) {
        .AIRNRSS-myfeeds,
        .AIRNRSS-myfeeds * {
                color:var(--AIRNRSS-text, #E6E1E5);
        }

        .AIRNRSS-myfeeds .AIRNRSS-muted,
        .AIRNRSS-myfeeds-subscribe-hints,
        .AIRNRSS-myfeeds-status,
        .AIRNRSS-myfeeds-empty,
        .AIRNRSS-myfeeds-catalog-status,
        .AIRNRSS-feed-url,
        .AIRNRSS-feed-chip,
        .AIRNRSS-myfeeds-url {
                color:var(--AIRNRSS-text-muted, rgba(230,225,229,.72));
        }

        .AIRNRSS-feed-chip {
                background:var(--AIRNRSS-chip-bg, rgba(255,255,255,.10));
        }

        .AIRNRSS-myfeeds-item {
                border-bottom-color:var(--AIRNRSS-divider, rgba(255,255,255,.10));
        }

        .AIRNRSS-btn-outline {
                border-color:rgba(225,190,231,.6);
                color:#e1bee7;
        }

        .AIRNRSS-myfeeds-catalog-toggle {
                background:rgba(103,80,64,0.9);
                color:#000;
        }

        .AIRNRSS-myfeeds-catalog-toggle:hover,
        .AIRNRSS-myfeeds-catalog-toggle:focus,
        .AIRNRSS-myfeeds-catalog-toggle.is-open {
                background:rgba(98,0,238,0.28);
                color:#f5ecff;
        }

        .AIRNRSS-btn-unsub,
        .AIRNRSS-myfeeds-catalog-subscribe {
                border-color:rgba(255,180,171,0.45);
                color:#ffb4ab;
        }

        .AIRNRSS-btn-unsub:hover,
        .AIRNRSS-btn-unsub:focus,
        .AIRNRSS-myfeeds-catalog-subscribe:hover,
        .AIRNRSS-myfeeds-catalog-subscribe:focus {
                background:rgba(255,180,171,0.16);
                color:#ffdad4;
        }

        .AIRNRSS-myfeeds-catalog-item.is-subscribed .AIRNRSS-myfeeds-catalog-subscribe {
                background:rgba(255,255,255,0.08);
                border-color:rgba(255,255,255,0.16);
                color:rgba(255,255,255,0.72);
        }
}

/* Base hidden (no clicks, not visible) */

.AIRNRSS-myfeeds-panel {
        display:none;
        visibility:hidden;
        opacity:0;
        pointer-events:none;
        z-index:9999;
}

/* Open state */

.AIRNRSS-myfeeds-panel.is-open {
        display:block;
        visibility:visible;
        opacity:1;
        pointer-events:auto;
}

/* Backdrop/panel stacking */

.AIRNRSS-myfeeds-backdrop {
        z-index:9998;
        visibility:hidden;
        opacity:0;
        pointer-events:none;
}

.AIRNRSS-myfeeds-backdrop.is-open {
        visibility:visible;
        opacity:1;
        pointer-events:auto;
}

/* === My Feeds modal redesign overrides === */

body.AIRNRSS-myfeeds-open,
.AIRNRSS-myfeeds-open body {
        overflow: hidden;
}

.AIRNRSS-myfeeds-panel {
        inset: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: clamp(640px, 80vw, 1280px);
        max-height: min(calc(100vh - 4rem), 920px);
        padding: 0;
        overflow: visible;
}

.AIRNRSS-myfeeds {
        background: var(--AIRNRSS-surface, #ffffff);
        border-radius: var(--AIRNRSS-radius, 20px);
        box-shadow: var(--AIRNRSS-shadow, 0 32px 60px rgba(0,0,0,.24));
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
        font-family: var(--AIRNRSS-font-family, 'Segoe UI', sans-serif);
}

.AIRNRSS-myfeeds-panel > .AIRNRSS-myfeeds {
        max-height: min(80vh, 920px);
        overflow-y: auto;
        overflow-x: hidden;
}

.AIRNRSS-myfeeds-scroll {
        flex: none;
        display: flex;
        flex-direction: column;
        background: inherit;
}

.AIRNRSS-myfeeds-header {
        position: static;
        z-index: auto;
        display: flex;
        flex-direction: column;
        gap: var(--AIRNRSS-gap, 1rem);
        padding: 1.5rem;
        background: inherit;
        box-shadow: 0 1px 0 var(--AIRNRSS-outline, rgba(0,0,0,.08));
}

.AIRNRSS-myfeeds-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem 1.5rem;
        background: inherit;
}

.AIRNRSS-myfeeds-subscribe {
        gap: 1rem;
}

.AIRNRSS-myfeeds-tabs {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        border-bottom: 1px solid var(--AIRNRSS-outline, rgba(0,0,0,.12));
        padding-bottom: .25rem;
}

.AIRNRSS-myfeeds-tab {
        appearance: none;
        border: none;
        background: transparent;
        color: var(--AIRNRSS-text, #1c1b1f);
        font-weight: 600;
        font-size: 1rem;
        line-height: 1.4;
        padding: .35rem .75rem .5rem;
        border-radius: var(--AIRNRSS-radius, 16px) var(--AIRNRSS-radius, 16px) 0 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        transition: background 180ms ease, color 180ms ease;
}

.AIRNRSS-myfeeds-tab.is-active {
        background: rgba(103, 80, 164, .12);
        color: var(--AIRNRSS-primary, #6750a4);
}

.AIRNRSS-myfeeds-tab:focus-visible {
        outline: 2px solid var(--AIRNRSS-primary, #6750a4);
        outline-offset: 2px;
}

.AIRNRSS-myfeeds-tab-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2rem;
        padding: 0 .5rem;
        border-radius: 999px;
        background: rgba(103, 80, 164, .16);
        color: var(--AIRNRSS-primary, #6750a4);
        font-size: .85rem;
        font-weight: 600;
}

.AIRNRSS-myfeeds-section {
        display: none;
        flex-direction: column;
        gap: 1.25rem;
        opacity: 0;
        transition: opacity 180ms ease;
}

.AIRNRSS-myfeeds-section.is-active {
        display: flex;
        opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
        .AIRNRSS-myfeeds-section {
                transition: none;
        }
        .AIRNRSS-myfeeds-tab {
                transition: none;
        }
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-item {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        padding: .75rem 0;
        border-bottom: 1px solid var(--AIRNRSS-outline, rgba(0,0,0,.08));
}

.AIRNRSS-myfeeds .AIRNRSS-feed-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .35rem;
}

.AIRNRSS-myfeeds .AIRNRSS-feed-title-text {
        font-weight: 600;
        font-size: 1rem;
}

.AIRNRSS-myfeeds .AIRNRSS-feed-url {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--AIRNRSS-text-muted, rgba(0,0,0,.6));
        font-size: .9rem;
}

.AIRNRSS-myfeeds .AIRNRSS-feed-url a {
        color: inherit;
        text-decoration: none;
}

.AIRNRSS-myfeeds .AIRNRSS-feed-url a:hover,
.AIRNRSS-myfeeds .AIRNRSS-feed-url a:focus {
        text-decoration: underline;
}

.AIRNRSS-myfeeds-subscribe-btn,
.AIRNRSS-myfeeds .AIRNRSS-unsub,
.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-subscribe {
        min-width: 8.5rem;
        justify-content: center;
        white-space: nowrap;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-subscribe {
        background: var(--AIRNRSS-primary);
        color: var(--AIRNRSS-on-primary, #ffffff);
        border: none;
        border-radius: var(--AIRNRSS-radius);
        padding: .6rem 1.2rem;
        font-weight: 600;
        cursor: pointer;
        transition: transform 160ms ease, background 160ms ease;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-subscribe:hover,
.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-subscribe:focus-visible {
        transform: translateY(-1px);
        background: rgba(103, 80, 164, .92);
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--AIRNRSS-outline, rgba(0,0,0,.08));
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item:last-child {
        border-bottom: none;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item .AIRNRSS-myfeeds-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .4rem;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item .AIRNRSS-myfeeds-title {
        font-weight: 600;
        color: var(--AIRNRSS-text, #1c1b1f);
        text-decoration: none;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item .AIRNRSS-myfeeds-title:hover,
.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item .AIRNRSS-myfeeds-title:focus {
        text-decoration: underline;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item .AIRNRSS-myfeeds-url {
        color: var(--AIRNRSS-text-muted, rgba(0,0,0,.6));
        font-size: .9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item .AIRNRSS-myfeeds-actions {
        display: flex;
        flex-direction: column;
        gap: .5rem;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item.is-subscribed {
        opacity: .6;
        pointer-events: none;
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-status,
.AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-status {
        font-size: .95rem;
        color: var(--AIRNRSS-text-muted, rgba(0,0,0,.6));
}

.AIRNRSS-myfeeds .AIRNRSS-myfeeds-count-announcer {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
}

@media (max-width: 720px) {
        .AIRNRSS-myfeeds-panel {
                width: min(94vw, 640px);
        }
        .AIRNRSS-myfeeds-subscribe .AIRNRSS-subscribe-row {
                display: flex;
                flex-direction: column;
                align-items: stretch;
        }
        .AIRNRSS-myfeeds-subscribe-btn,
        .AIRNRSS-myfeeds .AIRNRSS-unsub,
        .AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-subscribe {
                width: 100%;
        }
        .AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item {
                flex-direction: column;
                align-items: stretch;
        }
        .AIRNRSS-myfeeds .AIRNRSS-myfeeds-catalog-item .AIRNRSS-myfeeds-actions {
                align-items: stretch;
        }
}

/* -------------------------------------------------------------------------
   Reader – toolbar and status buttons
   ---------------------------------------------------------------------- */

.AIRNRSS-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: .75rem;
        align-items: center;
        padding-bottom: .5rem;
        border-bottom: 1px solid var(--AIRNRSS-outline);
        margin-bottom: var(--AIRNRSS-gap);
        position: static;
        width: min(68rem, 100%);
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
}

.AIRNRSS-toolbar label {
        font-size: .9rem;
        display: flex;
        align-items: center;
        gap: .25rem;
}

.AIRNRSS-toolbar select {
        padding: .35rem .5rem;
        border: 1px solid var(--AIRNRSS-outline);
        border-radius: var(--AIRNRSS-radius);
        font-size: .85rem;
        background: var(--AIRNRSS-surface-variant);
}

.AIRNRSS-status-btns {
    display: inline-flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.AIRNRSS-status-btns button {
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    background: #f6f7f7;
    cursor: pointer;
}

.AIRNRSS-status-btns button:hover { background: #e9eaec; }

.AIRNRSS-status-btns button.active,
.AIRNRSS-status-btns button.is-active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

@media (min-width: 601px) {
        .AIRNRSS-toolbar--floating {
                position: fixed;
                top: var(--airnrss-toolbar-top, 0);
                left: 50%;
                transform: translateX(-50%);
                width: min(68rem, calc(100% - 2rem));
                z-index: 999;
                margin: 0;
                padding: .75rem 1rem .5rem;
                background: var(--AIRNRSS-surface);
                border-bottom: 1px solid var(--AIRNRSS-outline);
                box-shadow: 0 10px 20px rgba(0,0,0,.12);
        }
}

/* -------------------------------------------------------------------------
   Reader – mobile counters bar
   ---------------------------------------------------------------------- */

.AIRNRSS-mobile-counters {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        align-items: center;
        justify-content: center;
        gap: .75rem;
        padding: .5rem 1rem;
        background: rgba(255,255,255,0.97);
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        z-index: 999;
}

.AIRNRSS-mobile-counters .AIRNRSS-status-btns {
        display: flex;
        gap: .75rem;
}

.AIRNRSS-mobile-counters .AIRNRSS-counter-btn {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        padding: 0.35rem 0.65rem;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.1);
        background: #f7f7f9;
        color: #444;
        font-size: 0.95rem;
        line-height: 1;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
}

.AIRNRSS-mobile-counters .AIRNRSS-counter-btn i {
        font-size: 1rem;
}

.AIRNRSS-mobile-counters .AIRNRSS-counter-btn.is-active,
.AIRNRSS-mobile-counters .AIRNRSS-counter-btn[aria-pressed="true"],
.AIRNRSS-mobile-counters .AIRNRSS-counter-btn.active {
        color: var(--AIRNRSS-primary);
}

@media (min-width: 601px) {
        #AIRNRSS-mobile-counters {
                display: none !important;
        }
}

.AIRNRSS-mobile-counters .AIRNRSS-count {
        font-size: .8rem;
        font-weight: 600;
}

@media (min-width: 601px) {
        .AIRNRSS-mobile-counters .AIRNRSS-counter-btn.is-active,
        .AIRNRSS-mobile-counters .AIRNRSS-counter-btn[aria-pressed="true"],
        .AIRNRSS-mobile-counters .AIRNRSS-counter-btn.active {
                color: #fff;
        }
}

@media (max-width: 600px) {
        #AIRNRSS-mobile-counters.AIRNRSS-mobile-counters {
                top: calc(env(safe-area-inset-top, 0));
                width: 100%;
                padding: 0.25rem 0.75rem;
                background: var(--airnrss-bg, #fff);
                border-bottom: 1px solid rgba(0,0,0,0.06);
                gap: 0.5rem;
        }

        #AIRNRSS-mobile-counters .AIRNRSS-status-btns {
                justify-content: center;
                flex-wrap: nowrap;        /* keep all three on one row */
        }

        #AIRNRSS-mobile-counters .AIRNRSS-status-btns [data-st] {
                cursor: pointer;
        }

        #AIRNRSS-mobile-counters .AIRNRSS-counter-btn i {
                display:inline-block;
                font-size:1.15rem;
                line-height:1;
                color:currentColor;
        }

        #AIRNRSS-mobile-counters .AIRNRSS-counter-btn.is-active,
        #AIRNRSS-mobile-counters .AIRNRSS-counter-btn[aria-pressed="true"],
        #AIRNRSS-mobile-counters .AIRNRSS-counter-btn.active {
                background:#e9e7ff;
                border-color:rgba(98,0,238,0.35);
                color:#2f1b75;
        }

        #AIRNRSS-mobile-counters .AIRNRSS-count {
                font-weight:600;
                display:inline;           /* ensure it stays inline with the icon */
        }
}

/* -------------------------------------------------------------------------
   Reader – container and cards
   ---------------------------------------------------------------------- */

#AIRNRSS-reader-root {
        display: flex;
        flex-direction: column;
        gap: var(--AIRNRSS-gap);
        max-width: 68rem;
        margin: 0 auto;
        padding: var(--AIRNRSS-gap);
}

.AIRNRSS-list {
        display:flex;
        flex-direction:column;
        gap:var(--AIRNRSS-gap);
}

.AIRNRSS-end-of-list {
        text-align:center;
        padding:1rem 0;
        color:rgba(0,0,0,.5);
        font-size:0.95rem;
}

.AIRNRSS-card {
        background: var(--AIRNRSS-surface);
        border: 1px solid var(--AIRNRSS-outline);
        border-radius: var(--AIRNRSS-radius);
        box-shadow: var(--AIRNRSS-shadow);
        padding: 1rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        transition: opacity 360ms ease-in-out,
                    margin 360ms ease-in-out,
                    padding-top 360ms ease-in-out,
                    padding-bottom 360ms ease-in-out,
                    max-height 360ms ease-in-out;
        will-change: opacity, max-height, margin, padding-top, padding-bottom;
        position: relative;
        overflow: visible;
}

.AIRNRSS-card.AIRNRSS-card--removing {
        opacity: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        max-height: 0;
        overflow: hidden;
}

.AIRNRSS-card.AIRNRSS-card--active {
        box-shadow:
                0 0 16px 6px rgba(103, 80, 164, 0.5),
                var(--AIRNRSS-shadow),
                inset 0 0 8px rgba(103, 80, 164, 0.3);
        transition: box-shadow 120ms ease;
}

.AIRNRSS-card:hover {
        transform: none;
        box-shadow:
                0 0 12px 4px rgba(103, 80, 164, 0.5),
                var(--AIRNRSS-shadow);
}

.AIRNRSS-card.AIRNRSS-read { opacity: .55; }

.AIRNRSS-card-body         { flex:1 1 auto; overflow:hidden; }

.AIRNRSS-card              { display:flex; flex-direction:column; }

.AIRNRSS-card-actions      { flex:0 0 auto; }

/* -------------------------------------------
   Titles, meta, snippet
--------------------------------------------*/

.AIRNRSS-title  { font-size: 1.5rem; font-weight: 800; margin: 0; color: #000; }

.AIRNRSS-meta   { color:#000; font-size:1.1rem; margin:0 0 4px; }

.AIRNRSS-snippet { font-size:1.2rem; line-height:1.25; margin:0; color:#000; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }

.AIRNRSS-group-badge {
        display:inline-block;
        background: var(--AIRNRSS-surface-variant);
        color:#000;
        padding:.2rem .45rem;
        border-radius:var(--AIRNRSS-radius);
        border:#000 1px solid;
        font-size:1rem;
        font-weight:600;
        margin-right:.25rem;
        vertical-align:baseline;
}

.AIRNRSS-thumb-wrap {
        position: relative;
        overflow: hidden;
        border-radius: var(--AIRNRSS-radius);
        min-height: 200px;
        margin-bottom: .5rem;
        background: linear-gradient(135deg, rgba(118, 118, 118, 0.1), rgba(118, 118, 118, 0.03));
}

.AIRNRSS-thumb-placeholder {
        position: absolute;
        inset: 0;
        background: linear-gradient(125deg, rgba(255, 255, 255, 0.7), rgba(223, 223, 223, 0.8));
        z-index: 0;
        pointer-events: none;
}

.AIRNRSS-thumb {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
        position: relative;
        z-index: 1;
}

/* -------------------------------------------
   Actions
--------------------------------------------*/

.AIRNRSS-card-actions {
        display:flex;
        flex-wrap:wrap;
        gap:8px 12px;
        margin-top:.5rem;
        padding-top:.5rem;
        border-top:1px solid var(--AIRNRSS-outline);
        overflow: visible;
}

/* Force arrow cursor + prevent text selection for all action controls */

.AIRNRSS-card-actions a,
.AIRNRSS-card-actions button {
        cursor: default;
        user-select: none;
        -webkit-user-select: none;
}

.AIRNRSS-card .AIRNRSS-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        overflow: visible;
}

.AIRNRSS-card .AIRNRSS-actions.is-prep-open {
        align-items: flex-start;
}

.AIRNRSS-card .AIRNRSS-actions.is-prep-open .AIRNRSS-prep-stack {
        flex: 0 0 100%;
        margin-top: 8px;
}

.AIRNRSS-prep-stack .AIRNRSS-btn-prep,
.AIRNRSS-prep-stack .AIRNRSS-prep-select,
.AIRNRSS-prep-stack .AIRNRSS-btn-cancel {
        width: 100%;
}

.AIRNRSS-prep-stack .AIRNRSS-btn-prep {
        margin-left: 0;
}

.AIRNRSS-prep-stack .AIRNRSS-prep-select {
        margin-top: 0;
}

.AIRNRSS-prep-stack .AIRNRSS-btn-cancel {
        margin-left: 0;
}

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-body { display:flex; gap:1rem; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-snippet    { flex:1 1 70%; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-text       { flex:1 1 70%; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-thumb-wrap { flex:0 0 30%; min-width:30%; min-height: unset; height:100%; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-thumb-wrap .AIRNRSS-thumb,
#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-thumb { width:100%; height:100%; max-height:unset; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card { flex-direction:row; height:200px; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-body { flex:2 1 0; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-actions {
    display:flex; flex-direction:column; gap:.25rem; flex:1 1 0;
    padding-left:.5rem; margin-top:0; padding-top:0;
    overflow: visible;
}

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-actions button,
#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-actions a {
    flex:0 0 auto;
    width:auto;
    padding:.25rem .5rem;
    font-size:.8rem;
    line-height:1.2;
    white-space:nowrap;
    border-radius:6px;
}

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-actions { flex:0 0 auto; width:auto; align-items:flex-start; }

#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-actions button,
#AIRNRSS-reader-root.AIRNRSS-layout-split .AIRNRSS-card-actions a { width:100%; box-sizing:border-box; }

#AIRNRSS-reader-root.AIRNRSS-layout-titlesonly .AIRNRSS-card { height:120px; padding-top:5px; padding-bottom:5px; }

#AIRNRSS-reader-root.AIRNRSS-layout-titlesonly .AIRNRSS-snippet,
#AIRNRSS-reader-root.AIRNRSS-layout-titlesonly .AIRNRSS-thumb-wrap { display:none; }

.AIRNRSS-card.AIRNRSS-sent { opacity:.7; }

@media (max-width:600px) {
        #AIRNRSS-reader-root {
                position:relative;
                left:50%;
                transform:translateX(-50%);
                width:100vw;
                max-width:100vw;
                margin:0;
                padding:0 1rem;
                box-sizing:border-box;
        }

        .AIRNRSS-list { margin:0; padding:0; }
        .AIRNRSS-card { width:100%; box-sizing:border-box; padding:.5rem; }
        .AIRNRSS-title { font-size:1.3rem; }
        .AIRNRSS-meta  { font-size:.9rem; }

        .AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep,
        .AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open,
        .AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard {
                display: none !important;
        }

        .AIRNRSS-card .AIRNRSS-card-actions {
                display: none !important;
        }

        .AIRNRSS-card{ scroll-margin-top: var(--airnrss-mobile-top, 0px); }
}

/* -------------------------------------------------------------------------
   Reader – mobile action bar
   ---------------------------------------------------------------------- */

.AIRNRSS-mobile-actions {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.75rem 1rem;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
        gap: .75rem;
        align-items: center;
        justify-content: center;
        z-index: 999;
}

.AIRNRSS-mobile-action {
        flex:1 1 auto;
        border:none;
        border-radius:var(--AIRNRSS-radius);
        padding:0.45rem 0.85rem;
        font-size:1rem;
        text-align:center;
        cursor:pointer;
        text-decoration:none;
        font-weight:500;
        color:var(--AIRNRSS-on-primary);
        transition:background .15s, opacity .15s;
}

.AIRNRSS-mobile-action[disabled],
.AIRNRSS-mobile-action[aria-disabled="true"],
.AIRNRSS-mobile-action.is-disabled {
        opacity:0.55;
        cursor:default;
        pointer-events:none;
}

.AIRNRSS-prep-controls {
        display:none;
        flex-direction:row;
        gap:.5rem;
        align-items:center;
}

.AIRNRSS-mobile-actions.prep-mode .AIRNRSS-prep-controls {
        display:flex;
        flex:1 1 100%;
}

.AIRNRSS-mobile-actions.prep-mode .AIRNRSS-btn-open,
.AIRNRSS-mobile-actions.prep-mode .AIRNRSS-btn-discard {
        display:none !important;
}

.AIRNRSS-mobile-actions.prep-mode .AIRNRSS-btn-prep {
        flex:1 1 auto;
}

.AIRNRSS-mobile-actions .AIRNRSS-prep-select {
        flex:1 1 auto;
        padding:.6rem .6rem;
        border:1px solid var(--AIRNRSS-outline);
        border-radius:var(--AIRNRSS-radius);
        font-size:1.1rem;
}

.AIRNRSS-mobile-actions .AIRNRSS-prep-cancel {
        flex:0 0 auto;
        padding:.6rem 1rem;
        border-radius:var(--AIRNRSS-radius);
        border:1px solid var(--AIRNRSS-outline);
        background:var(--AIRNRSS-surface);
        color:#333;
}

.AIRNRSS-mobile-actions .AIRNRSS-prep-select,
.AIRNRSS-mobile-actions .AIRNRSS-prep-cancel {
        width:100%;
}

.AIRNRSS-mobile-actions .AIRNRSS-prep-cancel {
        text-align:center;
}

@media (max-width: 600px) {
        #AIRNRSS-mobile-actions.AIRNRSS-mobile-actions {
                display:grid;
                grid-template-columns:1fr 1fr;
                gap:0.75rem;
                padding:0.75rem 1rem;
        }

        #AIRNRSS-mobile-actions .AIRNRSS-mobile-action {
                border-radius:var(--AIRNRSS-radius);
                padding:0.45rem 0.85rem;
                min-height:36px;
        }

        #AIRNRSS-mobile-actions .AIRNRSS-btn-prep {
                grid-column:1 / -1;
                min-height:40px;
        }

        #AIRNRSS-mobile-actions .AIRNRSS-btn-open,
        #AIRNRSS-mobile-actions .AIRNRSS-btn-discard {
                margin:0 !important;
                padding:0.4rem 0.7rem;
                min-height:36px;
                box-sizing:border-box;
        }

        .AIRNRSS-mobile-action[disabled],
        .AIRNRSS-mobile-action[aria-disabled="true"],
        .AIRNRSS-mobile-action.is-disabled {
                opacity:0.55;
                pointer-events:none;
        }

        #AIRNRSS-mobile-actions .AIRNRSS-prep-controls {
                display:none;
                gap:0.5rem;
        }

        #AIRNRSS-mobile-actions.prep-mode .AIRNRSS-prep-controls {
                display:contents;
        }

        #AIRNRSS-mobile-actions.prep-mode .AIRNRSS-btn-prep {
                grid-column:1 / -1;
        }

        #AIRNRSS-mobile-actions .AIRNRSS-prep-select {
                grid-column:1 / 2;
                min-height:36px;
                width:100%;
                box-sizing:border-box;
        }

        #AIRNRSS-mobile-actions .AIRNRSS-prep-cancel {
                grid-column:2 / 3;
                min-height:36px;
                border-radius:var(--AIRNRSS-radius);
                text-align:center;
        }

        #AIRNRSS-mobile-actions .AIRNRSS-prep-select {
                border-radius:var(--AIRNRSS-radius);
                font-size:1.1rem;
                padding:.5rem .6rem;
        }
}

/* -------------------------------------------------------------------------
   Reader – buttons and interaction styles
   ---------------------------------------------------------------------- */

.AIRNRSS-link {
        align-self:flex-start;
        background: var(--AIRNRSS-primary);
        color: var(--AIRNRSS-on-primary);
        border:0;
        padding:.45rem .9rem;
        border-radius:var(--AIRNRSS-radius);
        text-decoration:none;
        font-size:.875rem;
        font-weight:500;
        transition:background .15s;
}

.AIRNRSS-link:hover,
.AIRNRSS-link:focus { background:#563d93; }

/* --- Ensure the 'Open website' control never shows the text caret -------- */

.AIRNRSS-btn-open {
        cursor: default !important;   /* force arrow, even if some global a{cursor:text} exists */
        user-select: none;
        -webkit-user-select: none;
        text-decoration: none;
        display: inline-flex;         /* match button-like layout */
        align-items: center;
        justify-content: center;
}

/* --- Interaction consistency for in-card actions (desktop) ----------------
   Force arrow cursor (not text caret) and prevent text selection.
   ----------------------------------------------------------------------- */

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard {
        cursor: default;
        user-select: none;
        -webkit-user-select: none;
}

/* Reader card + mobile action buttons */

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard {
        color:#fff;
        background-color:var(--airnrss-btn-bg, #2563eb);
        border:1px solid #000;
        border-radius:var(--AIRNRSS-radius);
        font:inherit;
        font-weight:500;
        line-height:inherit;
        text-decoration:none;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:.35rem;
        transition:background-color .15s ease, color .15s ease;
}

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open:visited,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open:visited {
        color:#fff;
}

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep:hover,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open:hover,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard:hover,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep:active,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open:active,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard:active,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep:focus,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open:focus,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard:focus,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep:focus-visible,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open:focus-visible,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard:focus-visible,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep:hover,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open:hover,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard:hover,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep:active,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open:active,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard:active,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep:focus,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open:focus,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard:focus,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep:focus-visible,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open:focus-visible,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard:focus-visible {
        background-color:var(--airnrss-btn-bg-active, var(--airnrss-btn-bg, #1d4ed8));
}

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep:focus,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open:focus,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard:focus,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep:focus-visible,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open:focus-visible,
.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard:focus-visible,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep:focus,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open:focus,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard:focus,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep:focus-visible,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open:focus-visible,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard:focus-visible {
        outline:2px solid #000;
        outline-offset:1px;
        text-decoration:none;
}

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-prep,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-prep {
        --airnrss-btn-bg: var(--AIRNRSS-primary, #2563eb);
        --airnrss-btn-bg-active: var(--AIRNRSS-primary-active, #1d4ed8);
}

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-open,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-open {
        --airnrss-btn-bg: var(--airnrss-btn-open-bg, #4b5563);
        --airnrss-btn-bg-active: var(--airnrss-btn-open-bg-active, #374151);
}

.AIRNRSS-card .AIRNRSS-card-actions .AIRNRSS-btn-discard,
.AIRNRSS-mobile-actions .AIRNRSS-mobile-action.AIRNRSS-btn-discard {
        --airnrss-btn-bg: var(--airnrss-btn-discard-bg, #dc2626);
        --airnrss-btn-bg-active: var(--airnrss-btn-discard-bg-active, #b91c1c);
}

.AIRNRSS-btn-discard[disabled],
.AIRNRSS-btn-discard[aria-disabled="true"] {
        opacity: 0.55;
        pointer-events: none;
}

.AIRNRSS-prep-select {
    margin-top:4px;
    width:100%;
    position:relative;
    z-index:2;
}

.AIRNRSS-btn-cancel { margin-left:6px; }

.AIRNRSS-prep-stack{
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.AIRNRSS-prep-stack .AIRNRSS-btn-prep,
.AIRNRSS-prep-stack .AIRNRSS-prep-select,
.AIRNRSS-prep-stack .AIRNRSS-btn-cancel{
    width: 100%;
}

.AIRNRSS-prep-stack .AIRNRSS-btn-prep {
    margin-left: 0;
}

.AIRNRSS-prep-stack .AIRNRSS-prep-select {
    margin-top: 0;
}

.AIRNRSS-prep-stack .AIRNRSS-btn-cancel {
    margin-left: 0;
}

/* -------------------------------------------------------------------------
   Toast notifications
   ---------------------------------------------------------------------- */

.AIRNRSS-toast {
        position: fixed;
        left: 50%;
        bottom: 1rem;
        transform: translateX(-50%) translateY(100%);
        background: var(--AIRNRSS-surface-variant);
        color: #111;
        padding: 0.75rem 1.25rem;
        border-radius: var(--AIRNRSS-radius);
        box-shadow: var(--AIRNRSS-shadow);
        opacity: 0;
        animation: AIRNRSS-toast-in .25s forwards,
                   AIRNRSS-toast-out .25s 3.75s forwards;
        z-index: 9999;
}

.AIRNRSS-toast.AIRNRSS-error   { background:#ffdade; color:#b3261e; }

.AIRNRSS-toast.AIRNRSS-success { background:#d0f8e9; color:#006b57; }

@keyframes AIRNRSS-toast-in   { to {opacity:1; transform:translateX(-50%) translateY(0);} }

@keyframes AIRNRSS-toast-out  { to {opacity:0;} }
