:root {
    --surface: #f7f7f4;
    --panel: #ffffff;
    --ink: #18202b;
    --muted: #667085;
    --line: #d7dce2;
    --accent: #b42318;
    --accent-dark: #891b14;
    --blue: #175cd3;
    --green: #067647;
    --amber: #b54708;
}

.portal-feed-shell .feed-toolbar span {
    max-width: min(56vw, 720px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-reel-header {
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.portal-reel-title {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(8, 13, 25, 0.76);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.portal-reel-title {
    gap: 0.55rem;
    justify-content: center;
    max-width: min(68vw, 18rem);
    padding: 0.35rem 0.95rem 0.35rem 0.4rem;
    line-height: 1.05;
    pointer-events: auto;
}

.portal-reel-title img {
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 999px;
    object-fit: contain;
    background: #fff;
    padding: 0.12rem;
}

.portal-reel-title-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.08rem;
    min-width: 0;
}

.portal-reel-title-copy span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-reel-title-copy strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 0.95rem;
}

.portal-deal-media {
    color: inherit;
    text-decoration: none;
}

.portal-detail-price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #c31e17;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
}

.portal-detail-price {
    margin-bottom: 1rem;
    padding: 0.55rem 1rem;
    font-size: 1.1rem;
    box-shadow: 0 16px 34px rgba(195, 30, 23, 0.22);
}

.portal-deal-card .article-actions {
    margin-top: auto;
}

.portal-deal-card .article-times dd {
    white-space: normal;
}

.portal-deal-tags {
    align-items: center;
}

.portal-deal-tags span,
.portal-details-drawer .tag-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.portal-details-drawer .tag-list span:nth-child(2) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.portal-detail-shell .news-detail-hero {
    align-items: stretch;
}

.portal-detail-media img {
    object-fit: cover;
}

.portal-detail-grid {
    align-items: start;
}

.portal-detail-shell .detail-source-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.82);
}

.portal-detail-shell .detail-source-card img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: contain;
    background: #111827;
    padding: 0.35rem;
}

.portal-detail-shell .detail-source-card strong,
.portal-detail-shell .detail-source-card span {
    display: block;
}

.portal-detail-shell .detail-source-card span {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .portal-feed-shell .feed-toolbar span {
        max-width: 62vw;
    }

    .feed-page .portal-deal-card .article-body {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    .feed-page .portal-deal-card .article-times {
        display: grid;
    }

    .feed-page .portal-deal-card .article-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    }

    .feed-page .portal-reel-header .reel-refresh-button {
        margin-left: auto;
    }

    .feed-page .portal-deal-tags span {
        min-height: 2rem;
        padding-block: 0.34rem;
    }

}

.article-overlay-bar .source-badge,
body.feed-page .article-overlay-bar .source-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.46rem !important;
    min-height: 2.22rem !important;
    padding: 0.28rem 0.68rem 0.28rem 0.32rem !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(5, 11, 19, 0.78) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34) !important;
    opacity: 1 !important;
}

.article-overlay-bar .source-badge > span:last-child,
.article-overlay-bar .source-badge [data-card-provider-name],
body.feed-page .article-overlay-bar .source-badge > span:last-child,
body.feed-page .article-overlay-bar .source-badge [data-card-provider-name] {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    min-width: 0 !important;
    height: 1.55rem !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.5);
}

.article-overlay-bar .source-badge img,
body.feed-page .article-overlay-bar .source-badge img {
    align-self: center !important;
}

html {
    font-size: 15px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--blue);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
    .app-header {
        position: static;
        top: auto;
    }
}

.navbar-brand {
    color: var(--accent-dark);
    letter-spacing: 0;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    width: min(168px, 42vw);
    min-height: 46px;
    padding: 0.2rem 0;
}

.app-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.nav-link {
    color: var(--ink);
    font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-dark);
}

.app-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.app-menu-toggle:focus {
    box-shadow: 0 0 0 0.18rem rgba(23, 92, 211, 0.18);
}

.app-menu-lines {
    display: grid;
    gap: 0.28rem;
    width: 1.2rem;
}

.app-menu-lines span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 160ms ease, opacity 160ms ease;
}

.app-menu-toggle[aria-expanded="true"] .app-menu-lines span:nth-child(1) {
    transform: translateY(0.38rem) rotate(45deg);
}

.app-menu-toggle[aria-expanded="true"] .app-menu-lines span:nth-child(2) {
    opacity: 0;
}

.app-menu-toggle[aria-expanded="true"] .app-menu-lines span:nth-child(3) {
    transform: translateY(-0.38rem) rotate(-45deg);
}

.app-main {
    min-height: calc(100vh - 140px);
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-heading-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.page-heading h1,
.detail-main h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.article-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1rem;
    align-items: start;
}

.mobile-feed-helper {
    display: none;
}

.feed-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.feed-toolbar div {
    display: grid;
    gap: 0.08rem;
    text-align: center;
}

.feed-toolbar strong {
    font-size: 1rem;
}

.feed-toolbar span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.feed-back-link {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #ffffff;
    text-decoration: none;
}

.feed-back-link:hover,
.feed-back-link:focus {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
}

.article-card,
.provider-card,
.related-card,
.stat-card,
.panel,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.article-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
}

.article-card:hover,
.article-card.is-active {
    border-color: var(--line);
}

.google-ad-card {
    grid-template-rows: 1fr;
    min-height: 20rem;
    max-height: 44rem;
}

.google-ad-card-inner {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    min-height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(232, 240, 254, 0.92), rgba(255, 245, 244, 0.9)),
        #ffffff;
}

.google-ad-card .ad-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.google-ad-slot {
    display: block;
    width: 100%;
    min-height: 250px;
    max-width: 100%;
    max-height: 34rem;
    overflow: hidden;
}

.google-ad-slot iframe {
    max-width: 100% !important;
}

.google-ad-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 245, 244, 0.92)),
        #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.google-in-article-panel {
    display: grid;
    gap: 0.75rem;
    min-height: 18rem;
    padding: 1rem;
}

.index-bottom-google-ad {
    display: grid;
    gap: 0.75rem;
    width: min(1460px, calc(100% - 32px));
    min-height: 260px;
    max-height: 340px;
    margin: 1rem auto 2.5rem;
    padding: 1rem;
}

.index-bottom-google-ad .ad-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.index-bottom-google-ad .google-ad-slot {
    min-height: 200px;
    max-height: 300px;
}

.article-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    min-width: 0;
    max-width: 100%;
    background: #e9edf2;
    color: var(--muted);
    font-weight: 700;
    overflow: hidden;
    contain: paint;
}

.article-detail-hitbox {
    cursor: pointer;
}

.article-detail-hitbox:focus-visible,
.article-text-tap-zone:focus-visible {
    border-radius: 0.85rem;
    outline: 3px solid rgba(23, 92, 211, 0.28);
    outline-offset: 3px;
}

.article-overlay-bar {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    pointer-events: none;
}

.article-overlay-left {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
    max-width: calc(100% - 8rem);
}

.article-info-button,
.coverage-badge,
.source-badge {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
    background: rgba(16, 24, 40, 0.58);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
}

.article-info-button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 999px;
    font-size: 1rem;
    pointer-events: auto;
}

.article-info-button:hover,
.article-info-button:focus {
    background: rgba(16, 24, 40, 0.78);
}

.coverage-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    max-width: min(72%, 280px);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
}

.coverage-badge i {
    margin-right: 0.4rem;
}

.coverage-badge.coverage-icon-button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.35rem;
    min-width: 2.35rem;
    max-width: 2.35rem;
    height: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    text-align: center;
}

.coverage-badge.coverage-icon-button i {
    margin-right: 0;
}

.source-badge {
    border: 1px solid rgba(255, 255, 255, 0.42);
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    max-width: min(48%, 12rem);
    margin-left: auto;
    padding: 0.28rem 0.62rem 0.28rem 0.32rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    font-family: inherit;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

button.source-badge {
    cursor: pointer;
}

button.source-badge:hover,
button.source-badge:focus {
    background: rgba(5, 11, 19, 0.72);
}

.source-badge img,
.source-badge-initial {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #ffffff;
}

.source-badge img {
    object-fit: contain;
    padding: 0.12rem;
}

.source-badge-initial {
    color: var(--accent);
    font-size: 0.84rem;
}

.source-badge > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-image img,
.detail-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-width: 0;
    object-fit: cover;
    object-position: center;
}

.article-overlay-bar .source-badge img {
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
    padding: 0.12rem;
}

.article-overlay-bar .source-badge {
    pointer-events: auto;
}

.article-overlay-bar .source-badge,
.article-overlay-bar .source-badge > span:last-child,
.article-overlay-bar .source-badge [data-card-provider-name],
.article-overlay-bar .article-info-button,
.article-overlay-bar .article-info-button i,
.article-overlay-bar .coverage-badge,
.article-overlay-bar .coverage-badge i {
    color: #ffffff !important;
    opacity: 1 !important;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.article-text-tap-zone {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: inherit;
    cursor: pointer;
    outline: none;
}

.article-text-tap-zone:focus-visible {
    border-radius: 0.85rem;
    box-shadow: 0 0 0 0.18rem rgba(31, 111, 235, 0.25);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.article-meta span,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #344054;
    background: #eef2f6;
    font-size: 0.78rem;
    font-weight: 800;
}

.article-meta span:first-child {
    color: #ffffff;
    background: var(--accent);
}

.soft-pill {
    color: #344054;
    background: #eef2f6;
}

.article-body h2,
.related-card h3,
.provider-card h2,
.panel h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.article-body p,
.related-card p,
.lead-copy,
.muted-copy {
    color: var(--muted);
}

.article-body p {
    margin: 0;
}

.article-times,
.detail-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.article-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-times div,
.detail-list div {
    min-width: 0;
}

dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin: 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.score-strip,
.score-grid {
    display: grid;
    gap: 0.5rem;
}

.score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-strip span,
.score-grid span {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--ink);
    font-weight: 800;
}

.score-strip strong,
.score-grid strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.analysis-modal {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.score-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.score-modal-grid div {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    background: #fbfcfe;
}

.score-modal-grid dd {
    font-size: 1.25rem;
    font-weight: 850;
}

.modal-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-weight: 700;
}

.login-required-modal .modal-dialog {
    max-width: 420px;
}

.login-required-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.54), transparent 42%),
        radial-gradient(circle at 100% 10%, rgba(220, 38, 38, 0.42), transparent 38%),
        linear-gradient(135deg, #071528, #101827 58%, #1a1019);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.42);
    color: #fff;
    padding: 1.65rem;
}

.login-required-card .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.52);
    filter: invert(1) grayscale(1);
    opacity: 0.92;
}

.login-required-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
}

.login-required-card .eyebrow {
    color: #93c5fd;
}

.login-required-card h2 {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    line-height: 1.05;
}

.login-required-card p:not(.eyebrow) {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
}

.login-required-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.login-required-actions .btn {
    min-height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.login-required-actions .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
}

.login-required-actions .btn-outline-secondary:hover,
.login-required-actions .btn-outline-secondary:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.16);
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-primary {
    border-color: var(--accent);
    background: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--accent);
    background: var(--accent);
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state.compact {
    padding: 1rem;
    text-align: left;
}

.empty-state h2,
.empty-state h1 {
    margin: 0 0 0.5rem;
}

.empty-state p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.error-shell {
    display: grid;
    min-height: min(68vh, 720px);
    place-items: center;
}

.error-state {
    position: relative;
    width: min(760px, 100%);
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem);
    background:
        radial-gradient(circle at 12% 10%, rgba(23, 92, 211, 0.14), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(180, 35, 24, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.error-code {
    display: inline-grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(180, 35, 24, 0.08);
    font-size: 1.35rem;
    font-weight: 950;
}

.error-state h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
}

.error-state p:not(.eyebrow) {
    max-width: 56ch;
    margin-inline: auto;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.article-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.detail-main {
    padding: 1.25rem 0;
}

.detail-image {
    max-height: 460px;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

.detail-list {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.detail-list.compact {
    padding: 0;
    border: 0;
    background: transparent;
}

.panel {
    padding: 1rem;
}

.tag-section {
    margin-top: 1rem;
}

.tag-section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-list span,
.tag-list a {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: #344054;
    background: #eef2f6;
    font-weight: 700;
    text-decoration: none;
}

.tag-list a:hover,
.tag-list a:focus {
    color: #0f172a;
    background: #dbe7f5;
}

.tag-list.compact span,
.tag-list.compact a {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.same-event-section {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.same-event-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.same-event-head span {
    text-transform: none;
}

.same-event-rail {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x mandatory;
}

.same-event-card {
    flex: 0 0 min(84%, 300px);
    scroll-snap-align: start;
    padding: 0.75rem;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    background: #fbfcfe;
}

.same-event-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 850;
}

.same-event-card h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
}

.same-event-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.mobile-soft-button {
    display: none;
}

.card-source-dots {
    display: none;
}

.related-section {
    margin-top: 2rem;
}

.related-section h2 {
    margin-bottom: 1rem;
}

.related-list,
.provider-list {
    display: grid;
    gap: 1rem;
}

.related-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.news-detail-shell {
    width: min(1220px, calc(100% - 32px));
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-weight: 850;
    text-decoration: none;
}

.detail-back-link:hover,
.detail-back-link:focus {
    color: var(--accent);
}

.news-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
    gap: clamp(1.25rem, 4vw, 3.5rem);
    align-items: center;
    margin-bottom: 1.25rem;
}

.news-detail-copy {
    display: grid;
    gap: 0.9rem;
}

.news-detail-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.news-detail-copy .lead-copy {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.02rem, 1.3vw, 1.22rem);
    line-height: 1.65;
}

.news-detail-media {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #e9edf2;
    box-shadow: 0 24px 54px rgba(16, 24, 40, 0.12);
}

.news-detail-media img,
.detail-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.news-detail-media img {
    display: block;
    object-fit: cover;
}

.detail-image-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 800;
}

.news-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.34fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1.25rem;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-heading h2,
.source-panel h2,
.section-heading-inline h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.12;
}

.analysis-summary {
    max-width: 880px;
    margin: 0 0 1rem;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.75;
}

.analysis-score-grid span {
    padding: 0.85rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.analysis-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.analysis-lists > div {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.analysis-lists h3 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
}

.analysis-lists .tag-list {
    gap: 0.5rem;
}

.analysis-lists .tag-list span,
.analysis-lists .tag-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    max-width: 100%;
    padding: 0.42rem 0.68rem;
    border-radius: 12px;
    overflow-wrap: anywhere;
    line-height: 1.18;
}

.analysis-lists .tag-list a {
    border: 1px solid rgba(29, 78, 216, 0.16);
    color: #112746;
    background: linear-gradient(135deg, #eaf3ff 0%, #f7fbff 100%);
}

.analysis-lists .tag-list a small {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    padding: 0 0.25rem;
    border-radius: 999px;
    color: #071525;
    background: #93d7ff;
    font-size: 0.72rem;
    line-height: 1;
}

.source-panel {
    position: sticky;
    top: 5.5rem;
}

.source-panel .detail-list {
    margin-bottom: 0;
}

.section-heading-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading-inline > span {
    color: var(--muted);
    font-weight: 800;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.coverage-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.coverage-card > span {
    width: fit-content;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
}

.coverage-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.coverage-card p {
    margin: 0;
    color: var(--muted);
}

.linked-articles-section {
    overflow: hidden;
}

.linked-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.linked-article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.linked-article-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 8.5rem;
    aspect-ratio: 16 / 10;
    color: var(--muted);
    background: #e9edf2;
    font-weight: 850;
    text-decoration: none;
    overflow: hidden;
}

.linked-article-media::after {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(5, 11, 19, 0.72));
}

.linked-article-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linked-article-media .source-badge {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    z-index: 1;
}

.linked-article-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.78rem;
}

.linked-article-body .similarity-pill {
    width: fit-content;
    color: #344054;
    border-color: rgba(15, 23, 42, 0.08);
    background: #eef2f6;
}

.linked-article-body h3 {
    flex: 1;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.2;
}

.linked-article-body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.linked-article-body h3 a:hover,
.linked-article-body h3 a:focus {
    color: var(--accent);
}

.linked-article-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: auto;
}

.linked-article-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.05rem;
    padding: 0 0.58rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    color: var(--ink);
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.linked-article-actions a:first-child {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
}

.linked-article-actions a:hover,
.linked-article-actions a:focus {
    color: #ffffff;
    border-color: #18202b;
    background: #18202b;
}

@media (min-width: 768px) {
    .linked-article-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 240px));
        justify-content: start;
        gap: 1rem;
    }

    .linked-article-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .linked-article-body h3 a {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
    }
}

.provider-card {
    padding: 1rem;
}

.provider-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
}

.provider-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.7rem;
    align-items: center;
}

.provider-title p {
    grid-column: 2;
}

.provider-logo {
    grid-row: 1 / span 2;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    object-fit: contain;
    padding: 0.18rem;
    background: #ffffff;
}

.provider-head p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.status-pill.is-ok {
    color: #ffffff;
    background: var(--green);
}

.status-pill.is-muted {
    color: #475467;
    background: #eaecf0;
}

.feed-table-shell {
    overflow-x: auto;
}

.table {
    min-width: 720px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 2rem;
    line-height: 1;
}

.dashboard-workbench {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.dashboard-workbench-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-workbench-header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.05;
}

.dashboard-workbench-header > span {
    color: var(--muted);
    font-weight: 800;
}

.dashboard-workbench-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.dashboard-workbench-actions > span {
    color: var(--muted);
    font-weight: 800;
}

.dashboard-workbench-actions form {
    margin: 0;
}

.dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 16px;
    color: var(--ink);
    background: #f7f9fc;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-tab:hover {
    color: var(--ink);
    background: #edf3ff;
}

.dashboard-tab.is-active {
    color: #fff;
    border-color: rgba(194, 34, 24, 0.8);
    background: linear-gradient(135deg, #d9271c, #891c46);
}

.dashboard-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, 0.18);
}

.dashboard-article-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-ai-log-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-ai-log-row {
    padding: 1rem;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f7f9fc);
}

.dashboard-ai-log-row h3 {
    margin: 0;
    font-size: clamp(1.02rem, 1.5vw, 1.25rem);
}

.dashboard-ai-log-row h3 a {
    color: var(--ink);
    text-decoration: none;
}

.dashboard-ai-log-row p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.dashboard-log-related {
    font-weight: 800;
}

.dashboard-vector-section {
    display: grid;
    gap: 0.75rem;
}

.dashboard-vector-section + .dashboard-vector-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.dashboard-vector-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-vector-heading h3 {
    margin: 0;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.dashboard-vector-heading > span {
    color: var(--muted);
    font-weight: 900;
}

.dashboard-inline-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin: 0;
}

.dashboard-inline-filter label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.dashboard-inline-filter select {
    min-height: 2.75rem;
    padding: 0.55rem 2.3rem 0.55rem 0.85rem;
    border: 1px solid rgba(16, 24, 40, 0.14);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-weight: 900;
}

.dashboard-search-filter {
    flex-wrap: wrap;
}

.dashboard-search-filter input[type="search"] {
    min-width: min(320px, 100%);
    min-height: 2.75rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(16, 24, 40, 0.14);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-weight: 850;
}

.dashboard-search-filter input[type="search"]:focus {
    border-color: rgba(23, 92, 211, 0.44);
    box-shadow: 0 0 0 0.2rem rgba(23, 92, 211, 0.12);
    outline: 0;
}

.dashboard-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.07);
}

.dashboard-data-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    color: var(--ink);
}

.dashboard-data-table th,
.dashboard-data-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    vertical-align: top;
}

.dashboard-data-table th {
    color: var(--muted);
    background: linear-gradient(135deg, #f7f9fc, #eef4ff);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-data-table th a {
    color: inherit;
    text-decoration: none;
}

.dashboard-data-table th a:hover {
    color: var(--accent);
}

.dashboard-data-table tbody tr:hover {
    background: rgba(23, 92, 211, 0.04);
}

.dashboard-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-data-table td > strong {
    display: block;
    max-width: 32ch;
    color: var(--ink);
    font-weight: 950;
    line-height: 1.2;
}

.dashboard-data-table td > small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-weight: 800;
}

.dashboard-tag-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 180px;
}

.dashboard-tag-mini-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.8rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(23, 92, 211, 0.16);
    border-radius: 999px;
    color: var(--ink);
    background: linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(194, 34, 24, 0.06));
    font-size: 0.78rem;
    font-weight: 900;
}

.dashboard-tag-mini-list small {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    color: #08324f;
    background: #bae6fd;
    font-size: 0.68rem;
    font-weight: 950;
}

.dashboard-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dashboard-pagination span {
    color: var(--muted);
    font-weight: 950;
}

.dashboard-pagination .disabled {
    pointer-events: none;
    opacity: 0.5;
}

.dashboard-vector-text strong {
    color: var(--ink);
}

.dashboard-vector-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dashboard-score-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dashboard-score-chip {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(23, 92, 211, 0.16);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(194, 34, 24, 0.06));
    color: var(--ink);
    font-weight: 950;
}

.dashboard-score-chip strong {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.diagnostic-workbench {
    margin-bottom: 1rem;
}

.diagnostic-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr) auto;
    align-items: end;
    gap: 0.75rem;
}

.diagnostic-form label {
    font-weight: 950;
    color: var(--ink);
}

.diagnostic-form select {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(16, 24, 40, 0.16);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font-weight: 850;
}

.diagnostic-section {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.diagnostic-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagnostic-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f7f9fc);
}

.diagnostic-card-wide {
    display: grid;
    gap: 0.75rem;
}

.diagnostic-card h3 {
    margin: 0 0 0.5rem;
    color: var(--ink);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.diagnostic-card p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.diagnostic-preview-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
}

.diagnostic-step-list,
.diagnostic-pill-groups {
    display: grid;
    gap: 0.65rem;
}

.diagnostic-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: 14px;
    background: rgba(16, 24, 40, 0.04);
}

.diagnostic-step p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.diagnostic-step small {
    color: var(--muted);
    font-weight: 850;
}

.diagnostic-pill-group strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.diagnostic-seo-meta {
    margin-top: 0.85rem;
}

.diagnostic-seo-meta dd small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-weight: 850;
}

.diagnostic-json {
    margin-top: 0.85rem;
    max-width: 100%;
}

.diagnostic-json summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 950;
}

.diagnostic-json pre {
    max-width: 100%;
    max-height: 320px;
    overflow: auto;
    margin: 0.6rem 0 0;
    padding: 0.85rem;
    border-radius: 14px;
    color: #eaf1ff;
    background: #07111f;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.diagnostic-large-number {
    display: block;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.diagnostic-error {
    margin-top: 0.75rem;
}

.dashboard-article-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f7f9fc);
}

.dashboard-source-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.dashboard-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-weight: 900;
}

.dashboard-source-badge img {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-article-main h3 {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.15;
}

.dashboard-article-main h3 a {
    color: var(--ink);
    text-decoration: none;
}

.dashboard-article-main h3 a:hover {
    color: var(--accent);
}

.dashboard-article-main p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.dashboard-article-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
    margin: 0.85rem 0 0;
}

.dashboard-article-meta div {
    padding: 0.65rem;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-article-meta dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-article-meta dd {
    margin: 0.2rem 0 0;
    font-weight: 900;
}

.dashboard-status-note {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.85rem;
    padding: 0.8rem;
    border: 1px solid rgba(23, 92, 211, 0.14);
    border-radius: 14px;
    background: rgba(23, 92, 211, 0.06);
}

.dashboard-status-note strong {
    color: var(--accent);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.dashboard-status-note span {
    overflow-wrap: anywhere;
}

.dashboard-actions {
    display: flex;
    align-content: start;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    width: min(320px, 100%);
}

.dashboard-actions form {
    margin: 0;
}

.dashboard-actions .btn {
    min-height: 2.6rem;
    font-weight: 900;
}

.dashboard-empty {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 3rem 1rem;
    color: var(--muted);
    text-align: center;
}

.dashboard-empty i {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    color: #0a6f3c;
    background: #eaf8f0;
    font-size: 1.8rem;
}

.dashboard-empty strong {
    color: var(--ink);
    font-size: 1.15rem;
}

@media (max-width: 760px) {
    .dashboard-workbench {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .dashboard-workbench-header,
    .dashboard-article-row {
        grid-template-columns: 1fr;
    }

    .dashboard-workbench-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-article-row {
        display: grid;
    }

    .dashboard-vector-heading,
    .dashboard-vector-pair {
        grid-template-columns: 1fr;
    }

    .dashboard-vector-heading {
        align-items: start;
        flex-direction: column;
    }

    .dashboard-inline-filter {
        align-items: stretch;
        flex-direction: column;
        justify-content: stretch;
        width: 100%;
    }

    .dashboard-search-filter input[type="search"] {
        width: 100%;
    }

    .dashboard-table-wrap {
        border-radius: 14px;
    }

    .dashboard-pagination {
        justify-content: stretch;
    }

    .dashboard-pagination .btn {
        flex: 1 1 0;
    }

    .diagnostic-form,
    .diagnostic-grid,
    .diagnostic-grid-three {
        grid-template-columns: 1fr;
    }

    .diagnostic-form {
        align-items: stretch;
    }

    .diagnostic-section {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .diagnostic-step {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .dashboard-actions {
        justify-content: stretch;
        width: 100%;
    }

    .dashboard-actions .btn,
    .dashboard-actions form {
        flex: 1 1 100%;
        width: 100%;
    }
}

.adios-toast-region {
    position: fixed;
    right: clamp(0.85rem, 2vw, 1.35rem);
    top: calc(1rem + env(safe-area-inset-top));
    z-index: 2100;
    display: grid;
    gap: 0.75rem;
    width: min(430px, calc(100vw - 1.5rem));
    pointer-events: none;
}

.adios-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.78rem;
    padding: 0.88rem 0.95rem;
    color: #f8fbff;
    border: 1px solid rgba(170, 190, 222, 0.28);
    border-left: 4px solid #89c9ff;
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(23, 92, 211, 0.34), transparent 38%),
        linear-gradient(122deg, rgba(6, 17, 33, 0.96), rgba(13, 23, 36, 0.94) 58%, rgba(54, 19, 29, 0.93));
    box-shadow: 0 20px 55px rgba(3, 10, 24, 0.28), 0 8px 18px rgba(11, 22, 38, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    animation: adiosToastIn 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes adiosToastIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.adios-toast.is-hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    transition: opacity 220ms ease, transform 220ms ease;
}

.adios-toast.is-success {
    border-left-color: #39d98a;
}

.adios-toast.is-danger {
    border-left-color: #ff6b6b;
}

.adios-toast.is-warning {
    border-left-color: #f6b14a;
}

.adios-toast.is-info {
    border-left-color: #89c9ff;
}

.adios-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.adios-toast.is-success .adios-toast-icon {
    color: #6ff0ad;
}

.adios-toast.is-danger .adios-toast-icon {
    color: #ff8f8f;
}

.adios-toast.is-warning .adios-toast-icon {
    color: #ffd18a;
}

.adios-toast.is-info .adios-toast-icon {
    color: #a6d8ff;
}

.adios-toast-body {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
    font-size: 0.96rem;
    line-height: 1.35;
}

.adios-toast-body strong {
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.adios-toast-body span {
    color: rgba(241, 246, 255, 0.92);
    overflow-wrap: anywhere;
}

.adios-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.adios-toast-close:hover,
.adios-toast-close:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.04);
}

.adios-toast-close:focus-visible {
    outline: 2px solid rgba(137, 201, 255, 0.8);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .adios-toast-region {
        right: 0.85rem;
        left: 0.85rem;
        top: auto;
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
        width: auto;
    }

    .adios-toast {
        border-radius: 20px;
        transform: translateY(14px) scale(0.985);
    }

    .adios-toast.is-hiding {
        transform: translateY(12px) scale(0.985);
    }
}

.app-footer {
    color: #d6deea;
    border-color: rgba(148, 163, 184, 0.22) !important;
    background:
        linear-gradient(112deg, #071527 0%, #0d1724 52%, #34161d 100%);
}

.app-footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
    gap: 1rem;
    padding-top: 1.35rem;
    padding-bottom: 1.15rem;
}

.app-footer-brand {
    display: grid;
    gap: 0.72rem;
    align-content: start;
    max-width: 430px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(210px, 58vw);
    padding: 0.46rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.footer-logo-link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.footer-logo-link:hover,
.footer-logo-link:focus {
    border-color: #ffffff;
    background: #ffffff;
}

.app-footer-brand p {
    margin: 0;
    color: rgba(214, 222, 234, 0.76);
    line-height: 1.6;
}

.app-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.app-footer-nav section {
    display: grid;
    gap: 0.38rem;
    align-content: start;
}

.app-footer h2 {
    margin: 0 0 0.18rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-footer a {
    width: fit-content;
    color: rgba(214, 222, 234, 0.76);
    font-weight: 800;
    text-decoration: none;
}

.app-footer a:hover,
.app-footer a:focus {
    color: #ffffff;
}

.app-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.95rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(214, 222, 234, 0.72);
}

.footer-rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07);
}

.footer-rss-link:hover,
.footer-rss-link:focus {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(180, 35, 24, 0.28);
}

.index-shell {
    display: grid;
    gap: 1.25rem;
}

.index-hero,
.sponsored-panel,
.index-info-panel,
.legal-hero,
.legal-panel,
.detail-engagement {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
}

.index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1.2rem, 4vw, 2.2rem);
}

.index-hero-copy {
    display: grid;
    gap: 0.85rem;
}

.index-hero h1,
.legal-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.index-hero p,
.legal-hero p,
.index-info-panel p,
.sponsored-panel p,
.legal-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.index-hero-copy > p,
.legal-hero p {
    max-width: 780px;
    font-size: 1.08rem;
}

.index-trending-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.index-trending-topics > span {
    grid-column: 1 / -1;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.index-trending-topics a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    min-height: 4.2rem;
    padding: 0.62rem 0.62rem 0.62rem 0.78rem;
    border: 1px solid rgba(23, 92, 211, 0.12);
    border-radius: 18px;
    color: #20314d;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(213, 41, 28, 0.04)),
        #f8fbff;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.index-trending-topics a:hover,
.index-trending-topics a:focus {
    border-color: rgba(213, 41, 28, 0.28);
    color: #0b1628;
    background:
        linear-gradient(135deg, rgba(213, 41, 28, 0.11), rgba(23, 92, 211, 0.08)),
        #ffffff;
}

.index-trending-topics a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-trending-topics a small {
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    color: #07172a;
    background: #8fd3ff;
    font-size: 0.68rem;
    font-weight: 950;
}

.index-theme-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.index-theme-links > span {
    grid-column: 1 / -1;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.index-theme-links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    min-height: 4.2rem;
    padding: 0.62rem 0.62rem 0.62rem 0.78rem;
    border: 1px solid rgba(126, 146, 176, 0.18);
    border-radius: 18px;
    color: #20314d;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.index-theme-links a:not(.index-theme-all) span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-theme-links a small {
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    color: #ffffff;
    background: #175cd3;
    font-size: 0.68rem;
    font-weight: 950;
}

.index-theme-links .index-theme-all {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-color: transparent;
    color: #ffffff;
    background: #d5291c;
    text-align: center;
}

.index-hero-panel {
    display: grid;
    gap: 0.75rem;
}

.index-hero-panel article,
.index-info-panel,
.sponsored-panel,
.legal-panel {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.index-hero-panel article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    border: 1px solid rgba(23, 92, 211, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(213, 41, 28, 0.035)),
        #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.index-hero-panel article > i {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #175cd3, #d5291c);
    box-shadow: 0 12px 24px rgba(23, 92, 211, 0.16);
}

.index-hero-panel article > div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.index-hero-panel strong,
.sponsored-panel h2,
.index-info-panel h2,
.legal-panel h2 {
    margin: 0;
    color: var(--ink);
    line-height: 1.16;
}

.index-hero-panel span {
    color: var(--muted);
}

.index-more-news-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(23, 92, 211, 0.12);
    border-radius: 18px;
    color: #20314d;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.09), rgba(213, 41, 28, 0.05)),
        #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.index-more-news-link span {
    color: #5f6f89;
    font-weight: 850;
}

.index-more-news-link .btn {
    white-space: nowrap;
}

.index-mobile-start {
    display: none;
}

.mobile-onboarding-modal {
    --bs-modal-width: min(390px, calc(100vw - 1.5rem));
    color: #ffffff;
}

.mobile-onboarding-modal .modal-dialog {
    margin: 0.75rem auto;
}

.mobile-onboarding-modal .modal-content {
    position: relative;
    display: grid;
    gap: 0.9rem;
    max-height: calc(100svh - 1.5rem);
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 5%, rgba(23, 92, 211, 0.48), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(213, 41, 28, 0.4), transparent 30%),
        linear-gradient(150deg, rgba(6, 17, 34, 0.98), rgba(8, 15, 28, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.mobile-onboarding-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 11, 19, 0.58);
}

.mobile-onboarding-phone {
    position: relative;
    width: min(15.5rem, 72vw);
    margin: 0 auto;
    padding: 0.55rem;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 26px;
    background: #050b13;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 22px 48px rgba(0, 0, 0, 0.35);
}

.mobile-onboarding-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    height: min(48svh, 26rem);
    min-height: 21rem;
    overflow: hidden;
    border-radius: 19px;
    background: #071426;
}

.mobile-onboarding-screen::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(5, 11, 19, 0.9));
}

.mobile-onboarding-preview {
    position: relative;
    flex: 0 0 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    overflow: hidden;
    background: #081525;
    animation: onboardingPreviewScroll 5.4s cubic-bezier(0.74, 0, 0.2, 1) infinite;
}

.mobile-onboarding-preview img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.mobile-onboarding-preview div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
}

.mobile-onboarding-preview span {
    width: fit-content;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: #d5291c;
    font-size: 0.72rem;
    font-weight: 950;
}

.mobile-onboarding-preview strong {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 1.04rem;
    line-height: 1.12;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.mobile-onboarding-gesture {
    position: absolute;
    inset: 50% 0 auto;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.mobile-onboarding-path {
    width: 0.26rem;
    height: 5.4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(143, 211, 255, 0.95), transparent);
    opacity: 0.76;
}

.mobile-onboarding-finger {
    position: absolute;
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: #071426;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    animation: onboardingFingerSwipe 2.7s cubic-bezier(0.55, 0, 0.18, 1) infinite;
}

.mobile-onboarding-copy {
    display: grid;
    gap: 0.35rem;
    text-align: center;
}

.mobile-onboarding-copy .eyebrow {
    color: #8fd3ff;
}

.mobile-onboarding-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1.08;
}

.mobile-onboarding-copy p {
    margin: 0 auto;
    max-width: 31rem;
    color: rgba(226, 234, 246, 0.78);
    line-height: 1.45;
}

.mobile-onboarding-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.45rem;
    border-radius: 999px;
    font-weight: 950;
}

@keyframes onboardingPreviewScroll {
    0%,
    34% {
        transform: translateY(0);
    }

    52%,
    86% {
        transform: translateY(calc(-100% - 0.45rem));
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes onboardingFingerSwipe {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.94);
    }

    16%,
    70% {
        opacity: 1;
    }

    78% {
        transform: translateY(-2.75rem) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-3rem) scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-onboarding-preview,
    .mobile-onboarding-finger {
        animation: none;
    }
}

.index-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.31fr);
    gap: 1.15rem;
    align-items: start;
}

.index-main-column,
.index-side-column {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.index-side-column {
    align-content: start;
}

.index-side-column .index-info-panel,
.index-side-column .sponsored-panel {
    overflow: hidden;
    border-color: rgba(15, 23, 42, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.index-side-column .eyebrow {
    color: #5f6f89;
    font-size: 0.72rem;
    letter-spacing: 0;
}

.sponsored-panel {
    position: static;
    gap: 0.85rem;
}

.sponsored-panel img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f6;
}

.sponsored-panel h2,
.index-info-panel h2 {
    letter-spacing: 0;
}

.sponsored-panel h2 {
    font-size: clamp(1.35rem, 1.35vw, 1.65rem);
}

.index-info-panel h2 {
    font-size: clamp(1.35rem, 1.65vw, 1.85rem);
}

.sponsored-panel p,
.index-info-panel p {
    font-size: 0.98rem;
    line-height: 1.55;
}

.sponsored-panel .btn {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    line-height: 1.1;
}

.index-info-panel > a:not(.btn) {
    width: fit-content;
    color: var(--accent);
    font-weight: 850;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.index-info-panel .tag-list a {
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    color: #344054;
    background: #eef2f6;
    font-weight: 800;
    text-decoration: none;
}

.index-info-panel .tag-list a:hover,
.index-info-panel .tag-list a:focus {
    color: #ffffff;
    background: var(--accent);
}

.index-theme-list {
    display: grid;
    gap: 0.5rem;
}

.index-theme-list a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 0.72rem 0.78rem;
    border: 1px solid rgba(126, 146, 176, 0.18);
    border-radius: 16px;
    color: var(--ink);
    background: #f8fbff;
    font-weight: 900;
    text-decoration: none;
}

.index-theme-list a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-theme-list a small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #062238;
    background: #9bd9ff;
    font-weight: 950;
}

.legal-shell {
    display: grid;
    gap: 1rem;
}

.inquiry-shell {
    display: grid;
    gap: 1rem;
}

.legal-hero {
    padding: clamp(1.2rem, 4vw, 2.2rem);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.inquiry-info-panel {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.inquiry-info-panel p,
.inquiry-success-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.inquiry-form-panel {
    width: 100%;
}

.inquiry-success-panel {
    display: grid;
    gap: 0.7rem;
}

.inquiry-success-icon {
    display: inline-grid;
    place-items: center;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 14px 30px rgba(6, 118, 71, 0.22);
}

.detail-engagement {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem;
}

.detail-engagement-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    background: #f8fafc;
    font-weight: 900;
}

.detail-engagement-button.is-liked {
    color: #ffffff;
    border-color: #d5291c;
    background: #d5291c;
}

.detail-engagement-button:hover,
.detail-engagement-button:focus {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
}

.news-detail-shell .source-panel .details-source-switch-track {
    display: block;
}

.news-detail-shell .source-panel .details-source-switch-scroll {
    display: none;
}

.news-detail-shell .source-panel .details-source-switch-list {
    display: grid;
    gap: 0.55rem;
    overflow: visible;
    padding: 0;
}

.news-detail-shell .source-panel .details-source-switch-list::after {
    display: none;
}

.news-detail-shell .source-panel .details-source-switch-chip {
    width: 100%;
    max-width: none;
}

@media (max-width: 767.98px) {
    body:not(.feed-page):has(.index-shell) {
        color: #ffffff;
        background:
            radial-gradient(circle at 8% 0%, rgba(23, 92, 211, 0.26), transparent 35%),
            radial-gradient(circle at 92% 4%, rgba(213, 41, 28, 0.18), transparent 26%),
            linear-gradient(180deg, #061426 0%, #050b13 58%, #040911 100%);
    }

    body:not(.feed-page):has(.index-shell) .app-header {
        background: rgba(5, 11, 19, 0.82);
        border-color: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(18px);
    }

    body:not(.feed-page):has(.index-shell) .app-menu-toggle {
        border-color: rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    body:not(.feed-page):has(.index-shell) .app-menu-lines span {
        background: #ffffff;
    }

    .index-shell {
        width: 100%;
        max-width: 100vw;
        padding: 0.82rem;
    }

    .app-footer-inner,
    .app-footer-nav,
    .index-hero,
    .index-content-grid,
    .legal-grid,
    .inquiry-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .index-hero h1,
    .legal-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .index-hero,
    .index-mobile-start,
    .index-info-panel,
    .sponsored-panel {
        border-color: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.24), transparent 34%),
            radial-gradient(circle at 96% 8%, rgba(213, 41, 28, 0.16), transparent 30%),
            rgba(14, 23, 36, 0.8);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(18px);
    }

    .index-hero {
        min-height: calc(78svh - 5rem);
        align-content: center;
        border-radius: 28px;
        padding: 1.05rem;
    }

    .index-hero p,
    .index-hero-panel span,
    .index-info-panel p,
    .sponsored-panel p {
        color: rgba(224, 232, 244, 0.74);
    }

    .index-hero-panel article {
        border-color: rgba(255, 255, 255, 0.1);
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    }

    .index-hero-panel article > i {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    }

    .index-hero-panel strong,
    .index-info-panel h2,
    .sponsored-panel h2 {
        color: #ffffff;
    }

    .index-mobile-start {
        display: grid;
        gap: 0.45rem;
        padding: 1rem;
        border-radius: 22px;
    }

    .index-mobile-start span {
        color: rgba(207, 221, 255, 0.78);
        font-size: 0.75rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    .index-mobile-start strong {
        font-size: 1.2rem;
        line-height: 1.16;
    }

    .index-hero .page-heading-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .index-hero .page-heading-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-block: 0;
        line-height: 1;
        text-align: center;
    }

    .index-hero .page-heading-actions .index-primary-cta {
        width: 100%;
        min-height: 3.7rem;
        border-radius: 999px;
        font-size: 1.08rem;
        font-weight: 950;
    }

    .index-hero .page-heading-actions .btn:not(.index-primary-cta) {
        width: 100%;
        min-height: 3rem;
    }

    .index-trending-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin-top: 0.25rem;
    }

    .index-trending-topics > span {
        color: #74839a;
    }

    .index-trending-topics a {
        min-width: 0;
        min-height: 3.6rem;
        border-color: rgba(15, 23, 42, 0.18);
        border-radius: 16px;
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.18), rgba(213, 41, 28, 0.08)),
            #202a37;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    }

    .index-trending-topics a:hover,
    .index-trending-topics a:focus {
        border-color: rgba(143, 211, 255, 0.38);
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.34), rgba(213, 41, 28, 0.18)),
            #1b2634;
    }

    .index-theme-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .index-theme-links > span {
        color: #74839a;
    }

    .index-theme-links a {
        min-width: 0;
        min-height: 3.6rem;
        border-color: rgba(15, 23, 42, 0.18);
        border-radius: 16px;
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.18), rgba(213, 41, 28, 0.08)),
            #202a37;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    }

    .index-theme-links a:hover,
    .index-theme-links a:focus {
        border-color: rgba(143, 211, 255, 0.38);
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.34), rgba(213, 41, 28, 0.18)),
            #1b2634;
    }

    .index-theme-links a small {
        color: #07172a;
        background: #8fd3ff;
    }

    .index-theme-links .index-theme-all {
        grid-column: 1 / -1;
        background: #d5291c;
    }

    .index-theme-list a {
        border-color: rgba(143, 211, 255, 0.18);
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.18), rgba(213, 41, 28, 0.08)),
            #202a37;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    }

    .index-theme-list a:hover,
    .index-theme-list a:focus {
        border-color: rgba(143, 211, 255, 0.38);
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.34), rgba(213, 41, 28, 0.18)),
            #1b2634;
    }

    .index-theme-list a small {
        color: #07172a;
        background: #8fd3ff;
    }

    .sponsored-panel .btn {
        min-height: 3.15rem;
        align-items: center;
        justify-content: center;
    }

    .index-main-column .section-heading-inline {
        color: #ffffff;
    }

    .index-main-column .section-heading-inline h2 {
        color: #ffffff;
    }

    .index-main-column .section-heading-inline .btn {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .index-more-news-link {
        align-items: stretch;
        flex-direction: column;
        border-color: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.24), transparent 34%),
            radial-gradient(circle at 96% 8%, rgba(213, 41, 28, 0.16), transparent 30%),
            rgba(14, 23, 36, 0.8);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    }

    .index-more-news-link span {
        color: rgba(224, 232, 244, 0.74);
    }

    .index-shell .article-card {
        border-color: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        background: rgba(14, 23, 36, 0.9);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    }

    .index-shell .article-body p,
    .index-shell .article-times dt {
        color: rgba(224, 232, 244, 0.72);
    }

    .index-shell .article-body h2,
    .index-shell dd {
        color: #ffffff;
    }

    .index-side-column {
        order: -1;
    }

    .sponsored-panel {
        position: static;
    }

    .detail-engagement {
        width: 100%;
    }

    .detail-engagement-button {
        flex: 1 1 0;
    }

    .feed-page {
        overflow: hidden;
        background: #050b13;
    }

    .feed-page .app-footer {
        display: none;
    }

    .feed-page .app-main,
    .feed-page .latest-shell {
        background: #050b13;
    }

    .app-brand {
        width: min(142px, 40vw);
    }

    .app-header {
        position: sticky;
    }

    .latest-shell {
        width: 100%;
        padding: 0;
    }

    .latest-heading {
        display: none;
    }

    .mobile-feed-helper {
        display: block;
        padding: 0.35rem 1rem;
        color: #667085;
        background: rgba(255, 255, 255, 0.94);
        font-size: 0.74rem;
        font-weight: 800;
        text-align: center;
    }

    .page-shell {
        width: min(100% - 24px, 620px);
        padding-top: 1rem;
    }

    .latest-shell {
        width: 100%;
        padding: 0;
    }

    .page-heading,
    .related-card,
    .provider-head,
    .app-footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .app-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-rss-link {
        width: 100%;
        justify-content: center;
    }

    .article-feed {
        display: block;
        height: calc(100svh - 89px);
        min-height: 480px;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        padding-bottom: 0;
        scroll-snap-type: y mandatory;
        background: #050b13;
    }

    .article-card {
        display: grid;
        grid-template-rows: minmax(190px, 33svh) 1fr;
        min-height: calc(100svh - 89px);
        border: 0;
        border-radius: 0;
        background: #050b13;
        box-shadow: none;
        color: #ffffff;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .article-card:hover,
    .article-card.is-active {
        border-color: transparent;
    }

    .feed-page .google-ad-card {
        display: grid !important;
        grid-template-rows: 1fr !important;
        box-sizing: border-box;
        width: 100% !important;
        height: calc(100svh - 89px);
        min-height: calc(100svh - 89px);
        padding: max(5svh, 3.4rem) clamp(0.8rem, 2.8svh, 1.25rem) clamp(0.8rem, 2.8svh, 1.25rem);
        overflow: hidden !important;
        background: radial-gradient(circle at 20% 12%, rgba(23, 92, 211, 0.28), transparent 34%), #050b13;
    }

    body:not(.feed-page) .feed-shell .google-ad-card,
    body:not(.feed-page) .latest-shell .google-ad-card,
    body:not(.feed-page) .article-grid .google-ad-card {
        min-height: 34rem;
        max-height: 42rem;
        align-self: start;
    }

    body:not(.feed-page) .feed-shell .google-ad-card-inner,
    body:not(.feed-page) .latest-shell .google-ad-card-inner,
    body:not(.feed-page) .article-grid .google-ad-card-inner {
        min-height: 34rem;
        max-height: 42rem;
    }

    body:not(.feed-page) .feed-shell .google-ad-slot,
    body:not(.feed-page) .latest-shell .google-ad-slot,
    body:not(.feed-page) .article-grid .google-ad-slot {
        min-height: 26rem;
        max-height: 34rem;
    }

    .feed-page .google-ad-card-inner {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        align-self: center;
        box-sizing: border-box;
        width: 100%;
        height: min(76svh, 40rem);
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        max-height: calc(95svh - 4rem);
        overflow: hidden;
        padding: clamp(0.8rem, 2.4svh, 1rem);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 1.35rem;
        background:
            linear-gradient(135deg, rgba(10, 32, 61, 0.92), rgba(41, 18, 33, 0.88)),
            #07111f;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    }

    .feed-page .google-ad-card .ad-label {
        color: rgba(255, 255, 255, 0.74);
    }

    .feed-page .google-ad-slot {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    body.feed-page .article-card.feed-google-ad-card {
        display: grid !important;
        grid-template-rows: 1fr !important;
        place-items: stretch;
        padding: max(5svh, 3.4rem) clamp(0.8rem, 2.8svh, 1.25rem) clamp(0.8rem, 2.8svh, 1.25rem) !important;
        overflow: hidden !important;
    }

    body.feed-page .article-card.feed-google-ad-card .google-ad-card-inner {
        align-self: stretch;
        justify-self: stretch;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    body.feed-page .article-card.feed-google-ad-card .google-ad-slot {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .google-in-article-panel {
        min-height: 16rem;
    }

    .index-bottom-google-ad {
        min-height: 220px;
        max-height: 320px;
    }

    .article-image {
        aspect-ratio: auto;
        min-height: 190px;
        max-height: 33svh;
        background: #101828;
    }

    .article-image img {
        object-fit: cover;
    }

    .article-image span {
        color: #d0d5dd;
    }

    .article-overlay-bar {
        top: 0.65rem;
        right: 0.65rem;
        left: 0.65rem;
        gap: 0.45rem;
    }

    .article-info-button {
        width: 2.25rem;
        height: 2.25rem;
    }

    .coverage-badge {
        max-width: calc(100% - 3rem);
        min-height: 2.25rem;
        padding-inline: 0.62rem;
        font-size: 0.72rem;
    }

    .article-body {
        gap: 0.55rem;
        padding: 0.9rem 1rem 1rem;
        background: linear-gradient(180deg, #101828 0%, #07111f 100%);
    }

    .article-body h2 {
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(1.32rem, 5.9vw, 1.8rem);
        line-height: 1.06;
        color: #ffffff;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .article-body p {
        display: -webkit-box;
        overflow: hidden;
        color: #d0d5dd;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .article-meta span,
    .tag-list span,
    .tag-list a,
    .status-pill {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(10px);
    }

    .article-meta span:first-child {
        background: rgba(180, 35, 24, 0.88);
    }

    .tag-list.compact {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.1rem;
    }

    .article-times {
        display: none;
    }

    dt {
        color: #98a2b3;
    }

    .score-strip {
        display: none;
    }

    .score-modal-grid {
        grid-template-columns: 1fr;
    }

    .same-event-section {
        margin-top: 0.2rem;
    }

    .same-event-head {
        color: #d0d5dd;
    }

    .same-event-head span::after {
        content: "  →";
    }

    .same-event-rail {
        margin-right: -1rem;
        margin-left: -1rem;
        padding: 0 1rem 0.35rem;
    }

    .same-event-card {
        flex-basis: min(82vw, 340px);
        border-color: rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        backdrop-filter: blur(14px);
    }

    .same-event-card span {
        color: #93c5fd;
    }

    .same-event-actions a {
        color: #ffffff;
    }

    .article-actions {
        align-items: center;
        padding-top: 0.1rem;
        margin-top: auto;
    }

    .article-actions .btn {
        border-radius: 999px;
        font-weight: 850;
    }

    .feed-page .article-actions .btn-outline-secondary {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.55);
        background: rgba(255, 255, 255, 0.08);
    }

    .feed-page .article-actions .btn-outline-secondary:hover,
    .feed-page .article-actions .btn-outline-secondary:focus {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.75);
        background: rgba(255, 255, 255, 0.16);
    }

    .mobile-soft-button {
        display: inline-flex;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.48);
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
    }

    .article-detail-grid {
        grid-template-columns: 1fr;
    }

    .score-strip,
    .score-grid,
    .article-times {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.65rem;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
    }

    .navbar-nav {
        gap: 0.1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0.8rem;
        border-radius: 8px;
        font-weight: 850;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: #f2f4f7;
    }

    .news-detail-hero,
    .news-detail-grid {
        grid-template-columns: 1fr;
    }

    .source-panel {
        position: static;
    }

    .analysis-lists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .feed-page .feed-shell {
        width: 100%;
        padding: 0;
        background: #050b13;
    }

    .feed-page .feed-toolbar {
        position: sticky;
        top: 0;
        z-index: 5;
        margin: 0;
        border-width: 0 0 1px;
        border-radius: 0;
        box-shadow: none;
    }

    .feed-page .article-feed {
        height: calc(100svh - 136px);
        min-height: 460px;
    }

    .feed-page .article-card {
        min-height: calc(100svh - 136px);
    }

    body:not(.feed-page) .latest-shell {
        width: min(100% - 24px, 620px);
        padding: 1rem 0 3rem;
    }

    body:not(.feed-page) .latest-heading {
        display: flex;
    }

    body:not(.feed-page) .article-feed {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding-bottom: 0;
        background: transparent;
        scroll-snap-type: none;
    }

    body:not(.feed-page) .article-card {
        display: grid;
        grid-template-rows: auto 1fr;
        min-height: 100%;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
        box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
        color: var(--ink);
    }

    body:not(.feed-page) .article-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
        background: #e9edf2;
    }

    body:not(.feed-page) .article-body {
        gap: 0.85rem;
        padding: 1rem;
        background: transparent;
    }

    body:not(.feed-page) .article-body h2 {
        display: block;
        overflow: visible;
        color: var(--ink);
        font-size: 1.15rem;
        line-height: 1.25;
    }

    body:not(.feed-page) .article-body p {
        display: block;
        overflow: visible;
        color: var(--muted);
    }

    body:not(.feed-page) .article-meta span,
    body:not(.feed-page) .tag-list span,
    body:not(.feed-page) .tag-list a {
        color: #344054;
        background: #eef2f6;
        backdrop-filter: none;
    }

    body:not(.feed-page) .article-meta span:first-child {
        color: #ffffff;
        background: var(--accent);
    }

    body:not(.feed-page) .article-times {
        display: grid;
    }

    body:not(.feed-page) dt {
        color: var(--muted);
    }

    .page-heading-actions {
        width: 100%;
    }

    .page-heading-actions .btn,
    .detail-actions .btn {
        flex: 1 1 auto;
    }

    .news-detail-shell {
        width: min(100% - 24px, 620px);
    }

    .news-detail-copy h1 {
        font-size: clamp(1.9rem, 8.5vw, 2.8rem);
        line-height: 1.08;
    }

    .news-detail-media {
        order: -1;
    }

    .section-heading-inline {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .feed-page .feed-toolbar {
        display: none;
    }

    .feed-page .article-feed {
        height: calc(100svh - 89px);
        min-height: 520px;
        background: #050b13;
    }

    .feed-page .article-card {
        position: relative;
        display: block;
        min-height: calc(100svh - 89px);
        overflow: hidden;
        background: #050b13;
        isolation: isolate;
    }

    .feed-page .article-card::before,
    .feed-page .article-card::after {
        position: absolute;
        right: 0;
        left: 0;
        z-index: 1;
        content: "";
        pointer-events: none;
    }

    .feed-page .article-card::before {
        top: 0;
        height: 28%;
        background: linear-gradient(180deg, rgba(5, 11, 19, 0.72) 0%, rgba(5, 11, 19, 0) 100%);
    }

    .feed-page .article-card::after {
        bottom: 0;
        height: 64%;
        background:
            linear-gradient(180deg, rgba(5, 11, 19, 0) 0%, rgba(5, 11, 19, 0.68) 30%, rgba(5, 11, 19, 0.96) 100%);
    }

    .feed-page .article-image {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        background: #050b13;
    }

    .feed-page .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(1.06) contrast(1.03);
    }

    .feed-page .article-overlay-bar {
        top: 0.9rem;
        right: 0.9rem;
        left: 0.9rem;
        z-index: 4;
    }

    .feed-page .article-info-button,
    .feed-page .coverage-badge,
    .feed-page .source-badge {
        border-color: rgba(255, 255, 255, 0.34);
        background: rgba(5, 11, 19, 0.44);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    }

    .feed-page .source-badge {
        max-width: min(44vw, 11rem);
        background: rgba(5, 11, 19, 0.54);
    }

    .feed-page .article-body {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 7rem 1rem calc(1rem + env(safe-area-inset-bottom));
        background: transparent;
    }

    .feed-page .article-meta {
        order: 1;
    }

    .feed-page .tag-list.compact {
        order: 1;
        scrollbar-width: none;
    }

    .feed-page .tag-list.compact::-webkit-scrollbar {
        display: none;
    }

    .feed-page .article-body h2 {
        font-size: clamp(1.75rem, 7.4vw, 2.65rem);
        line-height: 1.04;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
        -webkit-line-clamp: 3;
    }

    .feed-page .article-body p {
        max-width: 94%;
        font-size: clamp(1rem, 4.35vw, 1.18rem);
        line-height: 1.35;
        color: rgba(255, 255, 255, 0.88);
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
        -webkit-line-clamp: 2;
    }

    .feed-page .article-text-tap-zone {
        order: 3;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .feed-page .article-times,
    .feed-page .status-pill {
        display: none !important;
    }

    .feed-page .article-meta span,
    .feed-page .tag-list span,
    .feed-page .tag-list a {
        min-height: 1.9rem;
        padding: 0.28rem 0.65rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #ffffff;
        background: rgba(255, 255, 255, 0.16);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
        backdrop-filter: blur(14px);
    }

    .feed-page .article-meta span:first-child {
        background: rgba(195, 37, 27, 0.94);
    }

    .feed-page .same-event-section {
        order: 5;
        margin-top: 0.15rem;
    }

    .feed-page .same-event-head {
        color: rgba(255, 255, 255, 0.82);
    }

    .feed-page .same-event-head span {
        color: rgba(255, 255, 255, 0.62);
    }

    .feed-page .same-event-head span::after {
        content: "  ->";
    }

    .feed-page .same-event-card {
        flex-basis: min(76vw, 310px);
        border-color: rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.13);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
    }

    .feed-page .article-actions {
        order: 6;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.7rem;
        margin-top: 0.35rem;
        padding: 0;
    }

    .feed-page .article-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding-inline: 1rem;
        border-radius: 999px;
        font-size: 0.98rem;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    }

    .feed-page .article-actions .btn-primary {
        border-color: #c5251b;
        background: #c5251b;
    }

    .feed-page .article-actions .btn-outline-secondary {
        min-width: 6.5rem;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
    }

    .feed-page .mobile-soft-button {
        display: none;
    }
}

.nav-logout-form {
    margin: 0;
}

.nav-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-link-strong {
    color: var(--accent-dark);
}

.nav-link.is-active {
    color: var(--ink);
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 170px);
    padding: 2rem 1rem;
}

.auth-panel {
    width: min(100%, 460px);
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.auth-panel.wide {
    width: min(100%, 720px);
}

.auth-panel h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1;
}

.auth-form {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.auth-form label {
    font-weight: 750;
}

.auth-form input:not([type="checkbox"]),
.auth-form textarea,
.auth-form select,
.username-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
}

.auth-form input:not([type="checkbox"]),
.auth-form textarea,
.auth-form select {
    padding: 0.78rem 0.9rem;
}

.username-input {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.username-input span {
    padding-left: 0.9rem;
    color: var(--muted);
    font-weight: 800;
}

.username-input input {
    border: 0 !important;
    outline: none;
}

.username-input[data-state="checking"] {
    border-color: rgba(23, 92, 211, 0.45);
    box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.08);
}

.username-input[data-state="available"] {
    border-color: rgba(6, 118, 71, 0.55);
    box-shadow: 0 0 0 3px rgba(6, 118, 71, 0.08);
}

.username-input[data-state="unavailable"] {
    border-color: rgba(180, 35, 24, 0.58);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.display-name-feedback {
    min-height: 1.1rem;
    margin: -0.16rem 0 0.1rem;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.35;
}

.display-name-feedback[data-state="available"] {
    color: var(--green);
    font-weight: 750;
}

.display-name-feedback[data-state="unavailable"] {
    color: var(--accent);
    font-weight: 750;
}

.locked-username {
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
    width: 100%;
    margin: 0.5rem 0 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #f8fafc;
    font-size: 1.1rem;
}

.locked-username span {
    color: var(--muted);
    font-weight: 850;
}

.locked-username strong {
    font-weight: 900;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.3rem 0;
    color: var(--muted);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0.25rem 0 0.8rem;
}

.feed-side-actions {
    display: none;
}

.reel-header {
    display: none;
}

.reel-refresh-button {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 11, 19, 0.58);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.reel-refresh-button i {
    transition: transform 0.2s ease;
}

.reel-refresh-button:hover i,
.reel-refresh-button:focus-visible i {
    transform: rotate(24deg);
}

.reel-refresh-button.is-spinning i {
    animation: adios-spin 0.72s linear infinite;
}

@keyframes adios-spin {
    to {
        transform: rotate(360deg);
    }
}

.related-drawer {
    display: none;
}

.feed-page .feed-side-actions {
    position: absolute;
    right: 0.85rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.feed-action-button {
    display: grid;
    place-items: center;
    width: 3.15rem;
    min-height: 3.15rem;
    padding: 0.35rem 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(8, 13, 22, 0.34);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.feed-action-button i {
    font-size: 1.22rem;
}

.feed-action-button span {
    max-width: 3.8rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.feed-action-button.is-liked {
    color: #ff3040;
    background: rgba(255, 255, 255, 0.17);
}

.feed-action-button.has-related {
    color: #8fd3ff;
}

.feed-action-button:disabled {
    opacity: 0.65;
}

.comments-modal .modal-dialog {
    max-width: min(100% - 1rem, 560px);
}

.comments-modal .modal-content,
.analysis-modal {
    border: 0;
    border-radius: 20px;
}

.comments-panel {
    display: grid;
    gap: 1rem;
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.comments-head h2 {
    margin: 0;
    font-size: 1.45rem;
}

.comments-sort {
    display: inline-flex;
    padding: 0.18rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.comments-sort button {
    border: 0;
    border-radius: 999px;
    padding: 0.42rem 0.68rem;
    color: var(--muted);
    background: transparent;
    font-weight: 800;
}

.comments-sort button.is-active {
    color: #ffffff;
    background: var(--ink);
}

.comment-guidelines {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.9rem;
}

.comment-form {
    display: grid;
    gap: 0.7rem;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
}

.comment-form-error {
    grid-column: 1 / -1;
    margin: 0;
    color: #c21f16;
    font-size: 0.86rem;
    font-weight: 850;
}

.comments-list {
    display: grid;
    gap: 0.95rem;
}

.comment-item {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.75rem;
}

.comment-avatar {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--ink);
    font-weight: 900;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: baseline;
}

.comment-meta span {
    color: var(--muted);
    font-size: 0.82rem;
}

.comment-item p {
    margin: 0.18rem 0 0.35rem;
    color: #263244;
}

.comment-actions {
    display: flex;
    gap: 0.75rem;
}

.comment-actions button {
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font-weight: 800;
}

.comment-like.is-liked {
    color: #d5291c;
}

.report-dialog {
    width: min(100% - 2rem, 420px);
    border: 0;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
}

.report-dialog::backdrop {
    background: rgba(7, 13, 22, 0.54);
}

.report-card {
    position: relative;
    display: grid;
    gap: 0.8rem;
    padding: 1.2rem;
}

.dialog-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    border: 0;
    background: transparent;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-card {
    display: grid;
    gap: 0.5rem;
    min-height: 160px;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    background: #ffffff;
}

.admin-card i {
    color: var(--accent);
    font-size: 1.6rem;
}

.admin-card span {
    color: var(--muted);
}

.media-generator-shell {
    gap: 1.2rem;
}

.media-generator-grid {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.media-generator-preview-card,
.media-generator-controls {
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 0%, rgba(23, 92, 211, 0.08), transparent 34%),
        radial-gradient(circle at 100% 8%, rgba(213, 41, 28, 0.07), transparent 30%),
        #ffffff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
}

.media-generator-preview-card {
    display: grid;
    place-items: center;
    padding: 1rem;
}

.media-generator-preview-card canvas {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    background: #050b13;
    box-shadow: 0 24px 70px rgba(7, 13, 22, 0.28);
}

.media-generator-controls {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.media-generator-controls h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.media-generator-controls p {
    margin: 0;
    color: var(--muted);
}

.media-generator-control-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.media-generator-control-grid label,
.media-generator-textarea {
    display: grid;
    gap: 0.35rem;
    color: var(--ink);
    font-weight: 900;
}

.media-generator-control-grid span,
.media-generator-textarea span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.media-generator-music-panel {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(23, 92, 211, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(213, 41, 28, 0.06)),
        rgba(255, 255, 255, 0.74);
}

.media-generator-music-panel audio {
    width: 100%;
    min-height: 42px;
}

.media-generator-music-panel .form-select {
    min-height: 46px;
    font-weight: 800;
}

.media-generator-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(23, 92, 211, 0.18);
    border-radius: 18px;
    background: rgba(23, 92, 211, 0.08);
    font-weight: 900;
}

.media-generator-total span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.78rem;
}

.media-generator-total strong {
    font-size: 1.35rem;
}

.media-generator-total strong.is-over-limit {
    color: #d5291c;
}

.media-generator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.media-generator-status {
    min-height: 1.4rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.media-generator-feed-list {
    display: grid;
    gap: 0.55rem;
}

.media-generator-feed-list > strong {
    text-transform: uppercase;
    color: var(--muted);
    font-size: 0.8rem;
}

.media-generator-feed-list article {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.media-generator-feed-list article span {
    color: #d5291c;
    font-size: 0.78rem;
    font-weight: 950;
}

.media-generator-feed-list article strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 992px) {
    .media-generator-grid {
        grid-template-columns: 1fr;
    }

    .media-generator-control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .media-generator-control-grid {
        grid-template-columns: 1fr;
    }

    .media-generator-actions .btn {
        width: 100%;
    }
}

.admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table td span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-image-preview {
    width: min(100%, 240px);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.privacy-panel {
    display: grid;
    gap: 0.5rem;
}

.privacy-panel h2 {
    margin: 0.9rem 0 0;
    font-size: 1.25rem;
}

@media (max-width: 767.98px) {
    .feed-page .article-body {
        padding-right: 4.65rem;
    }

    .feed-page .feed-side-actions {
        right: 0.55rem;
        bottom: calc(4.65rem + env(safe-area-inset-bottom));
        gap: 0.55rem;
    }

    .feed-action-button {
        width: 2.85rem;
        min-height: 2.85rem;
    }

    .comments-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .feed-page .article-card::before {
        height: 20%;
        background: linear-gradient(180deg, rgba(5, 11, 19, 0.58) 0%, rgba(5, 11, 19, 0) 100%);
    }

    .feed-page .article-card::after {
        height: 58%;
        background: linear-gradient(180deg, rgba(5, 11, 19, 0) 0%, rgba(5, 11, 19, 0.45) 30%, rgba(5, 11, 19, 0.88) 100%);
    }

    .feed-page .article-body {
        gap: 0.48rem;
        padding: 0 4.85rem calc(0.95rem + env(safe-area-inset-bottom)) 1rem;
    }

    .feed-page .article-body h2 {
        font-size: clamp(1.55rem, 6.7vw, 2.35rem);
        -webkit-line-clamp: 3;
    }

    .feed-page .article-body p {
        max-width: 100%;
        font-size: clamp(0.98rem, 4vw, 1.08rem);
    }

    .feed-page .article-actions {
        margin-top: 0.15rem;
    }

    .feed-page .article-actions .btn {
        min-height: 2.72rem;
        padding-inline: 0.9rem;
    }

    .feed-page .feed-side-actions {
        bottom: calc(6.2rem + env(safe-area-inset-bottom));
    }

    .feed-page .related-drawer {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 8;
        display: block;
        max-height: min(46svh, 390px);
        padding: 0.55rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-width: 1px 0 0;
        border-radius: 24px 24px 0 0;
        color: #ffffff;
        background:
            radial-gradient(circle at 15% 0%, rgba(23, 92, 211, 0.28), transparent 36%),
            rgba(5, 11, 19, 0.82);
        box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.42);
        transform: translateY(calc(110% + var(--related-drag-y, 0px)));
        transition: transform 220ms ease;
        backdrop-filter: blur(24px) saturate(1.12);
        touch-action: pan-y;
    }

    .feed-page .related-drawer.is-open {
        transform: translateY(var(--related-drag-y, 0px));
    }

    .feed-page .related-drawer.is-dragging {
        transition: none;
    }

    .feed-page .related-drawer.is-dismissing {
        transform: translateY(115%) !important;
        transition: transform 210ms cubic-bezier(0.32, 0.72, 0, 1);
        pointer-events: none;
    }

    .related-drawer-handle {
        width: 2.8rem;
        height: 0.28rem;
        margin: 0 auto 0.65rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.32);
    }

    .related-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        margin-bottom: 0.7rem;
    }

    .related-drawer-head div {
        display: grid;
        gap: 0.05rem;
        min-width: 0;
    }

    .related-drawer-head span {
        color: rgba(255, 255, 255, 0.66);
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .related-drawer-head strong {
        font-size: 1.05rem;
        line-height: 1.1;
    }

    .related-drawer-head button,
    .related-drawer-controls button {
        display: inline-grid;
        place-items: center;
        width: 2.35rem;
        height: 2.35rem;
        flex: 0 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

    .related-drawer-window {
        overflow: hidden;
    }

    .related-drawer-card {
        display: none;
        min-height: 9.4rem;
        padding: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.1);
    }

    .related-drawer-card.is-active {
        display: grid;
        gap: 0.55rem;
        animation: relatedCardIn 180ms ease;
    }

    .related-drawer-card > span {
        justify-self: start;
        padding: 0.22rem 0.55rem;
        border-radius: 999px;
        color: #ffffff;
        background: rgba(213, 41, 28, 0.9);
        font-size: 0.78rem;
        font-weight: 850;
    }

    .related-drawer-card h3 {
        margin: 0;
        color: #ffffff;
        font-size: 1.08rem;
        line-height: 1.16;
        letter-spacing: 0;
    }

    .related-drawer-card p {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.9rem;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .related-drawer-card .same-event-actions {
        display: flex;
        gap: 0.55rem;
    }

    .related-drawer-card .same-event-actions a {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.52rem 0.65rem;
        border-radius: 999px;
        text-align: center;
        text-decoration: none;
        font-weight: 850;
    }

    .related-drawer-card .same-event-actions a:first-child {
        color: #ffffff;
        background: #c5251b;
    }

    .related-drawer-card .same-event-actions a:last-child {
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.24);
        background: rgba(255, 255, 255, 0.08);
    }

    .related-drawer-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .related-drawer-dots {
        display: flex;
        justify-content: center;
        gap: 0.34rem;
        min-width: 0;
    }

    .related-drawer-dots button {
        width: 0.45rem;
        height: 0.45rem;
        min-width: 0;
        min-height: 0;
        padding: 0;
        border: 0;
        opacity: 0.42;
        background: #ffffff;
    }

    .related-drawer-dots button.is-active {
        width: 1.2rem;
        opacity: 1;
    }
}

@keyframes relatedCardIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.analysis-modal {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 26px;
    color: #ffffff;
    background:
        linear-gradient(112deg, rgba(8, 28, 55, 0.92) 0%, rgba(14, 20, 30, 0.96) 50%, rgba(54, 22, 29, 0.94) 100%),
        rgba(6, 12, 22, 0.9);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(28px) saturate(1.18);
}

.analysis-modal .modal-header {
    align-items: center;
    min-height: 4.25rem;
    padding: 1rem 4.1rem 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.analysis-modal .modal-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem !important;
    font-weight: 850;
}

.analysis-modal .modal-title::before {
    display: none;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #175cd3, #d5291c);
    content: "\f544";
    font-family: "Font Awesome 6 Free";
    font-size: 0.9rem;
    font-weight: 900;
}

.analysis-modal .btn-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    border-radius: 999px;
    opacity: 1;
    background-color: rgba(6, 12, 22, 0.34);
    filter: invert(1) grayscale(1) brightness(1.8);
}

.analysis-modal .btn-close:hover,
.analysis-modal .btn-close:focus {
    background-color: rgba(180, 35, 24, 0.28);
}

.analysis-modal .modal-body {
    padding: 1rem;
}

.analysis-modal .score-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.analysis-modal .score-card {
    position: relative;
    display: grid;
    gap: 0.65rem;
    min-height: 8rem;
    padding: 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(24, 32, 43, 0.86), rgba(12, 23, 36, 0.74)),
        rgba(24, 32, 43, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 18px 38px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.analysis-modal .score-card::after {
    position: absolute;
    top: -42%;
    right: -28%;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 68%);
    content: "";
}

.analysis-modal .score-modal-grid dt {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
}

.analysis-modal .score-modal-grid dt i {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(148, 163, 184, 0.2);
    font-size: 0.72rem;
}

.analysis-modal .score-modal-grid dd {
    color: #ffffff;
    font-size: clamp(1.55rem, 6vw, 2.2rem);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.analysis-modal .score-bar {
    display: block;
    width: 100%;
    height: 0.5rem;
    overflow: hidden;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(23, 92, 211, 0.38) 0%, rgba(24, 32, 43, 0.96) 52%, rgba(137, 27, 20, 0.46) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.analysis-modal .score-bar span {
    display: block;
    width: var(--score);
    height: 100%;
    min-width: 0.35rem;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(23, 92, 211, 0.95) 0%, rgba(24, 32, 43, 0.98) 56%, rgba(180, 35, 24, 0.86) 100%);
    box-shadow: 0 0 18px rgba(23, 92, 211, 0.12);
}

.analysis-modal .modal-note {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 575.98px) {
    .analysis-modal {
        border-radius: 24px 24px 0 0;
    }

    .analysis-modal .modal-body {
        padding: 0.85rem;
    }

    .analysis-modal .score-modal-grid {
        grid-template-columns: 1fr;
        gap: 0.62rem;
    }

    .analysis-modal .score-card {
        min-height: 6.35rem;
        padding: 0.82rem;
    }
}

@media (max-width: 767.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.feed-page {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .feed-page .source-badge {
        min-height: 2.05rem;
        max-width: min(48vw, 9.75rem);
        gap: 0.42rem;
        padding: 0.28rem 0.64rem 0.28rem 0.3rem;
        border-color: rgba(255, 255, 255, 0.22);
        color: #ffffff;
        background: rgba(5, 11, 19, 0.62);
        font-size: 0.82rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    }

    .feed-page .source-badge img,
    .feed-page .source-badge-initial {
        display: inline-grid;
        width: 1.38rem;
        height: 1.38rem;
        border: 1px solid rgba(255, 255, 255, 0.68);
        background: #ffffff;
    }

    .feed-page .source-badge > span:last-child {
        display: block;
    }

    .feed-page .app-header,
    .feed-page .app-footer {
        display: none;
    }

    .feed-page .app-main,
    .feed-page .feed-shell {
        width: 100%;
        max-width: 100vw;
        min-height: 100svh;
        overflow-x: hidden;
    }

    .feed-page .article-feed {
        width: 100%;
        max-width: 100vw;
        height: 100svh;
        min-height: 100svh;
        overflow-x: hidden;
    }

    .feed-page .article-card {
        width: 100%;
        max-width: 100vw;
        min-height: 100svh;
        overflow-x: hidden;
    }

    .feed-page .article-overlay-bar {
        right: 0.75rem;
        left: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }

    .feed-page .feed-side-actions {
        right: 0.45rem;
    }
}

.article-actions [data-related-open].mobile-soft-button {
    display: none;
}

.share-sheet,
.mobile-details-sheet {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.34), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(213, 41, 28, 0.18), transparent 30%),
        rgba(6, 12, 22, 0.88);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(24px) saturate(1.14);
}

.share-sheet .modal-header,
.mobile-details-sheet .modal-header {
    align-items: start;
    padding: 1rem 1rem 0.85rem;
    border-color: rgba(255, 255, 255, 0.13);
}

.share-sheet .modal-title,
.mobile-details-sheet .modal-title {
    color: #ffffff;
    font-weight: 900;
}

.share-sheet .modal-header p {
    max-width: 28rem;
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.3;
}

.share-sheet .btn-close,
.mobile-details-sheet .btn-close {
    border-radius: 999px;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.12);
    filter: invert(1) grayscale(1) brightness(1.8);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.share-options a,
.share-options button {
    display: grid;
    place-items: center;
    gap: 0.46rem;
    min-height: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 850;
}

.share-options i {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.06rem;
}

.share-status {
    min-height: 1.2rem;
    margin: 0.8rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.details-drawer-content {
    display: grid;
    gap: 1rem;
}

.details-drawer-hero {
    position: relative;
    min-height: 18rem;
    overflow: hidden;
    border-radius: 22px;
    background: #07172a;
}

.details-drawer-hero > img,
.details-drawer-hero .detail-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 18rem;
    object-fit: cover;
}

.details-drawer-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(5, 11, 19, 0.08), rgba(5, 11, 19, 0.82));
}

.details-hero-source {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(5, 11, 19, 0.62);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.details-drawer-hero-copy {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
}

.details-drawer-hero-copy > span:not(.source-badge),
.drawer-related-list article > span:not(.source-badge) {
    justify-self: start;
    padding: 0.28rem 0.66rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(213, 41, 28, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
}

.details-drawer-hero h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 6vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.details-drawer-actions .btn {
    width: 100%;
}

.details-source-switch {
    display: grid;
    gap: 0.58rem;
    padding: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.16), rgba(255, 255, 255, 0.07));
    overflow: hidden;
}

.details-source-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.details-source-switch-label small {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.34rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
}

.details-source-switch-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
}

.details-source-switch.has-many-sources .details-source-switch-track {
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
}

.details-source-switch-list {
    display: flex;
    gap: 0.52rem;
    min-width: 0;
    padding: 0.06rem 0.08rem 0.14rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0.08rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.details-source-switch-list::-webkit-scrollbar {
    display: none;
}

.details-source-switch-list::after {
    content: "";
    flex: 0 0 0.08rem;
}

.details-source-switch-chip {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 clamp(11rem, 56vw, 15rem);
    min-width: 0;
    max-width: clamp(11rem, 56vw, 15rem);
    min-height: 3rem;
    padding: 0.36rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.09);
    scroll-snap-align: start;
}

.details-source-switch-chip:hover,
.details-source-switch-chip:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
}

.details-source-switch-chip.is-current {
    border-color: rgba(143, 211, 255, 0.34);
    background: rgba(143, 211, 255, 0.12);
}

.details-source-switch-chip .source-badge {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(5, 11, 19, 0.32);
    box-shadow: none;
}

.details-source-switch-chip .source-badge > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.details-source-switch-chip small {
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.34rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 950;
}

.details-source-switch-scroll {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.details-source-switch-scroll:hover,
.details-source-switch-scroll:focus {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
}

.details-drawer-description,
.details-drawer-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
}

.details-drawer-meta,
.drawer-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.details-drawer-meta div,
.drawer-score-grid span,
.drawer-related-list article {
    display: grid;
    gap: 0.3rem;
    padding: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.details-drawer-meta dt,
.drawer-score-grid strong {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.details-drawer-meta dd,
.drawer-score-grid span {
    color: #ffffff;
    font-weight: 900;
}

.details-drawer-section {
    display: grid;
    gap: 0.7rem;
}

.details-drawer-section h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.details-topic-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.42rem;
    margin-inline: -0.08rem;
    padding: 0.04rem 0.08rem 0.18rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0.08rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.details-topic-rail::-webkit-scrollbar {
    display: none;
}

.details-topic-rail span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 2rem;
    scroll-snap-align: start;
    line-height: 1;
    white-space: nowrap;
}

.drawer-related-list {
    display: grid;
    gap: 0.7rem;
}

.drawer-related-list h5 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.2;
}

.drawer-related-list article div {
    display: flex;
    gap: 0.5rem;
}

.drawer-related-list article div a {
    flex: 1;
    padding: 0.48rem 0.6rem;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 850;
}

.drawer-related-list article div a:first-child {
    background: #d5291c;
}

.details-drawer-section:has(.drawer-related-list) .drawer-related-list article {
    gap: 0.34rem;
    padding: 0.72rem;
}

.details-drawer-section:has(.drawer-related-list) .drawer-related-list h5 {
    font-size: 0.9rem;
    line-height: 1.18;
}

.details-drawer-section:has(.drawer-related-list) .drawer-related-list article div {
    gap: 0.42rem;
}

.details-drawer-section:has(.drawer-related-list) .drawer-related-list article div a {
    min-height: 2.18rem;
    padding: 0.34rem 0.5rem;
    font-size: 0.82rem;
    line-height: 1.05;
}

.news-detail-shell .source-panel .details-source-switch {
    margin-top: 1rem;
    border-color: rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.news-detail-shell .source-panel .details-source-switch-label {
    color: var(--muted);
}

.news-detail-shell .source-panel .details-source-switch-chip {
    color: var(--ink);
    border-color: rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.news-detail-shell .source-panel .details-source-switch-chip:hover,
.news-detail-shell .source-panel .details-source-switch-chip:focus {
    color: var(--ink);
    border-color: rgba(213, 41, 28, 0.24);
    background: rgba(213, 41, 28, 0.06);
}

.news-detail-shell .source-panel .details-source-switch-chip.is-current {
    border-color: rgba(23, 92, 211, 0.2);
    background: rgba(23, 92, 211, 0.08);
}

.news-detail-shell .source-panel .details-source-switch-chip .source-badge {
    color: var(--ink);
    border-color: rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.news-detail-shell .source-panel .details-source-switch-chip small {
    color: var(--muted);
    background: #edf1f7;
}

body.modal-open.feed-page .feed-side-actions {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .feed-page .article-feed {
        height: 100svh;
        min-height: 100svh;
        background: #050b13;
    }

    .feed-page .article-card {
        display: grid;
        grid-template-rows: minmax(42svh, 49svh) minmax(0, 1fr);
        width: 100%;
        max-width: 100vw;
        min-height: 100svh;
        overflow: hidden;
        background: #061426;
    }

    .feed-page .article-card::before {
        z-index: 2;
        height: 18svh;
        background: linear-gradient(180deg, rgba(5, 11, 19, 0.55) 0%, rgba(5, 11, 19, 0) 100%);
    }

    .feed-page .article-card::after {
        display: none;
    }

    .feed-page .article-image {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.22), rgba(5, 11, 19, 0.88)),
            #061426;
    }

    .feed-page .article-image::after {
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 30%;
        content: "";
        background: linear-gradient(180deg, rgba(6, 20, 38, 0), #061426 92%);
        pointer-events: none;
    }

    .feed-page .article-image img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        object-fit: cover;
        filter: saturate(1.08) contrast(1.04);
    }

    .feed-page .article-body {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 3;
        min-height: 0;
        gap: 0.56rem;
        padding: 1rem 4.75rem calc(1rem + env(safe-area-inset-bottom)) 1rem;
        overflow: hidden;
        background:
            radial-gradient(circle at 0% 0%, rgba(23, 92, 211, 0.24), transparent 36%),
            linear-gradient(180deg, #061426 0%, #050b13 100%);
    }

    .feed-page .article-body h2 {
        font-size: clamp(1.52rem, 6.35vw, 2.22rem);
        line-height: 1.06;
        text-shadow: none;
        -webkit-line-clamp: 3;
    }

    .feed-page .article-body p {
        max-width: 100%;
        font-size: clamp(0.98rem, 3.85vw, 1.08rem);
        line-height: 1.34;
        text-shadow: none;
        -webkit-line-clamp: 2;
    }

    .feed-page .article-actions {
        margin-top: 0.22rem;
    }

    .feed-page .article-actions a.mobile-soft-button[href] {
        display: none;
    }

    .feed-page .article-actions [data-related-open].mobile-soft-button {
        display: inline-flex;
    }

    .feed-page .feed-side-actions {
        top: auto;
        right: 0.55rem;
        bottom: calc(7.1rem + env(safe-area-inset-bottom));
        z-index: 7;
        gap: 0.58rem;
    }

    .feed-page .feed-action-button {
        display: grid;
        place-items: center;
        width: 2.92rem;
        min-height: 2.92rem;
        padding: 0;
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(7, 12, 20, 0.38);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
    }

    .feed-page .feed-action-button span {
        display: none !important;
    }

    .feed-page .feed-action-button i {
        font-size: 1.2rem;
    }

    .feed-page .source-badge {
        min-height: 2.16rem;
        max-width: min(52vw, 11rem);
        padding: 0.28rem 0.68rem 0.28rem 0.3rem;
        border-radius: 999px;
        background: rgba(5, 11, 19, 0.58);
    }

    .feed-page .source-badge img,
    .feed-page .source-badge-initial {
        width: 1.45rem;
        height: 1.45rem;
    }

    .feed-page .share-modal .modal-dialog,
    .feed-page .comments-modal .modal-dialog {
        align-items: end;
        min-height: calc(100% - 1rem);
        margin: 0.5rem;
    }

    .feed-page .share-sheet,
    .feed-page .comments-modal .modal-content {
        width: 100%;
        border-radius: 26px 26px 0 0;
    }

    .feed-page .mobile-details-modal .modal-dialog {
        margin: 0;
    }

    .feed-page .mobile-details-modal {
        background: #050b13;
        z-index: 1085;
    }

    .feed-page .mobile-details-sheet {
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.32), transparent 30%),
            linear-gradient(180deg, #07172a 0%, #050b13 100%),
            #050b13 !important;
        backdrop-filter: none;
    }

    .feed-page .mobile-details-sheet .modal-header {
        position: sticky;
        top: 0;
        z-index: 5;
        background: rgba(5, 11, 19, 0.94);
        backdrop-filter: blur(18px);
    }

    .feed-page .mobile-details-sheet .modal-body {
        background: #050b13;
    }
}

@media (max-width: 420px) {
    .share-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feed-page .article-actions .btn {
        padding-inline: 0.78rem;
    }
}

@media (min-width: 768px) {
    .feed-page .feed-side-actions,
    .feed-page .related-drawer {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .feed-page .feed-side-actions {
        top: 50%;
        right: 0.55rem;
        bottom: auto;
        z-index: 7;
        display: flex !important;
        transform: translateY(-50%);
    }

    .feed-page .feed-action-button {
        width: 2.9rem;
        min-height: 2.9rem;
    }

    .feed-page .feed-action-button span {
        display: none !important;
    }

    .feed-page .article-body {
        display: flex;
        justify-content: flex-end;
        padding-right: 4.7rem;
    }

    .feed-page .article-actions {
        flex-shrink: 0;
        margin-top: 0.24rem;
    }

    .feed-page .article-card.has-related-drawer-open .article-actions,
    .feed-page .article-card.has-related-drawer-open .feed-side-actions {
        opacity: 0;
        pointer-events: none;
    }

    .feed-page .related-drawer {
        z-index: 10;
        max-height: min(52svh, 430px);
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.34), transparent 36%),
            linear-gradient(180deg, rgba(7, 23, 42, 0.94) 0%, rgba(5, 11, 19, 0.98) 100%);
    }

    .feed-page .related-drawer-card {
        min-height: 0;
    }

    .feed-page .related-drawer-card .same-event-actions {
        margin-top: 0.15rem;
    }
}

.comments-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.comments-modal .modal-header {
    min-height: 3.6rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.comments-modal .modal-title {
    font-weight: 900;
    letter-spacing: 0;
}

.comments-modal .modal-body {
    padding: 0;
}

.instagram-comments {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: min(72vh, 680px);
    color: #111827;
    background: #ffffff;
}

.comments-sheet-handle {
    display: none;
    width: 2.8rem;
    height: 0.28rem;
    margin: 0.72rem auto 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.2);
}

.instagram-comments .comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.instagram-comments .comments-head .eyebrow {
    margin: 0 0 0.14rem;
    color: #8a94a6;
}

.instagram-comments .comments-head h2 {
    margin: 0;
    color: #111827;
    font-size: 1.08rem;
    font-weight: 950;
}

.instagram-comments .comments-sort {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.22rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #f4f6f9;
}

.instagram-comments .comments-sort button {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    min-height: 2rem;
    border: 0;
    border-radius: 999px;
    padding: 0.42rem 0.66rem;
    color: #667085;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.instagram-comments .comments-sort button.is-active {
    color: #ffffff;
    background: #111827;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.comments-guidelines-inline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.8rem 1rem 0;
    padding: 0.7rem 0.78rem;
    border: 1px solid rgba(23, 92, 211, 0.12);
    border-radius: 16px;
    color: #526071;
    background: linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(213, 41, 28, 0.05));
    font-size: 0.86rem;
    line-height: 1.25;
}

.comments-guidelines-inline i {
    color: #175cd3;
}

.instagram-comments .comments-list {
    display: grid;
    gap: 0;
    padding: 0.75rem 0 0.5rem;
}

.instagram-comments .comment-item {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) 2.25rem;
    gap: 0.72rem;
    align-items: start;
    padding: 0.72rem 1rem;
}

.instagram-comments .comment-avatar,
.comment-composer-avatar {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(#111827, #111827) padding-box,
        linear-gradient(135deg, #175cd3, #d5291c, #f59e0b) border-box;
    border: 2px solid transparent;
    font-size: 0.92rem;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.instagram-comments .comment-content {
    min-width: 0;
}

.instagram-comments .comment-copy {
    margin: 0;
    color: #263244;
    font-size: 0.95rem;
    line-height: 1.35;
}

.instagram-comments .comment-copy strong {
    margin-right: 0.32rem;
    color: #111827;
    font-weight: 950;
}

.instagram-comments .comment-copy span {
    overflow-wrap: anywhere;
}

.instagram-comments .comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.58rem;
    align-items: center;
    margin-top: 0.34rem;
    color: #8a94a6;
    font-size: 0.78rem;
    font-weight: 800;
}

.instagram-comments .comment-meta span {
    color: inherit;
    font-size: inherit;
}

.instagram-comments .comment-meta button {
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
}

.comment-replies {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-left: 0.72rem;
    border-left: 2px solid rgba(15, 23, 42, 0.08);
}

.comment-reply {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.1rem;
    gap: 0.55rem;
}

.reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.48rem;
    margin-top: 0.65rem;
}

.reply-form textarea {
    min-height: 2.15rem;
    resize: none;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 0.55rem 0.78rem;
    background: #f4f6f9;
}

.reply-form button {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.72rem;
    color: #ffffff;
    background: #d5291c;
    font-weight: 900;
}

.instagram-comments .comment-like {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.08rem;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: transparent;
    font-size: 1.05rem;
}

.profile-mobile-topbar {
    display: none;
}

.profile-shell {
    display: grid;
    gap: 1rem;
}

.profile-hero,
.profile-panel,
.profile-stat-grid article {
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border-radius: 18px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(#101827, #101827) padding-box,
        linear-gradient(135deg, #175cd3, #d5291c, #f59e0b) border-box;
    border: 3px solid transparent;
    font-weight: 950;
}

.profile-hero h1 {
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2.6rem);
}

.profile-hero span,
.profile-item-list small,
.profile-comment-row em {
    color: var(--muted);
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-stat-grid article {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border-radius: 16px;
}

.profile-stat-grid span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-stat-grid strong {
    font-size: 1.5rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-panel {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1rem;
    border-radius: 18px;
}

.profile-panel-wide {
    grid-column: 1 / -1;
}

.profile-item-list {
    display: grid;
    gap: 0.6rem;
}

.profile-item-list-limited {
    max-height: calc((5 * 5.95rem) + (4 * 0.6rem));
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.72) transparent;
}

.profile-item-list-limited::-webkit-scrollbar {
    width: 0.42rem;
}

.profile-item-list-limited::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.72);
}

.profile-article-row,
.profile-comment-row,
.profile-notification-row {
    display: grid;
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    background: #f8fafc;
}

.profile-article-row {
    grid-template-columns: 4.6rem minmax(0, 1fr) auto;
}

.profile-article-row img,
.profile-thumb-placeholder {
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 12px;
    object-fit: cover;
    background: #dbe5f0;
}

.profile-article-row span,
.profile-comment-row span,
.profile-notification-row span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.profile-article-row strong,
.profile-comment-row strong,
.profile-notification-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-comment-row em {
    display: -webkit-box;
    overflow: hidden;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-notification-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.profile-notification-row > i {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(23, 92, 211, 0.88), rgba(213, 41, 28, 0.82));
}

.profile-notification-row.is-unread {
    border-color: rgba(23, 92, 211, 0.2);
    background: rgba(23, 92, 211, 0.08);
}

.notification-mark-read-form {
    margin: 0;
}

.notification-mark-read-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(23, 92, 211, 0.18);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(23, 92, 211, 0.08);
    font-weight: 900;
}

.notification-mark-read-form button:disabled {
    cursor: default;
    opacity: 0.72;
}

[data-notifications-mark-read].is-complete {
    display: none;
}

.profile-notification-action {
    margin-left: auto;
}

.reel-notification-menu .notification-mark-read-form button {
    width: 100%;
    min-height: 2.55rem;
    border-color: rgba(143, 211, 255, 0.22);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.32), rgba(255, 255, 255, 0.08));
}

@media (max-width: 767.98px) {
    .profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-hero form {
        grid-column: 1 / -1;
    }

    .profile-stat-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    body.profile-page {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        color: #ffffff;
        background: #050b13;
    }

    .profile-page .app-header,
    .profile-page .app-footer {
        display: none;
    }

    .profile-page .app-main {
        min-height: 100svh;
        overflow-x: clip;
        background:
            radial-gradient(circle at 8% 0%, rgba(23, 92, 211, 0.28), transparent 34%),
            radial-gradient(circle at 92% 5%, rgba(213, 41, 28, 0.2), transparent 26%),
            linear-gradient(180deg, #061426 0%, #050b13 52%, #040911 100%);
    }

    .profile-page .profile-shell {
        width: 100%;
        max-width: 100vw;
        min-height: 100svh;
        gap: 0.82rem;
        padding: calc(0.72rem + env(safe-area-inset-top)) 0.82rem calc(1rem + env(safe-area-inset-bottom));
    }

    .profile-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
    }

    .profile-top-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-height: 2.7rem;
        padding: 0 0.95rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        color: #ffffff;
        text-decoration: none;
        background: rgba(19, 27, 41, 0.76);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
        backdrop-filter: blur(16px);
        font-size: 0.88rem;
        font-weight: 950;
    }

    .profile-top-pill-muted {
        color: rgba(255, 255, 255, 0.78);
        background: rgba(255, 255, 255, 0.08);
    }

    .profile-top-pill i {
        font-size: 0.95rem;
    }

    .profile-page .profile-hero,
    .profile-page .profile-panel,
    .profile-page .profile-stat-grid article {
        border-color: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.22), transparent 34%),
            radial-gradient(circle at 96% 8%, rgba(213, 41, 28, 0.16), transparent 30%),
            rgba(14, 23, 36, 0.78);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
        backdrop-filter: blur(18px);
    }

    .profile-page .profile-hero {
        position: relative;
        overflow: hidden;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1rem;
        border-radius: 28px;
    }

    .profile-page .profile-hero::after {
        content: "";
        position: absolute;
        inset: auto 1rem 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    }

    .profile-page .profile-hero > * {
        position: relative;
        z-index: 1;
    }

    .profile-page .profile-avatar {
        width: 3.7rem;
        height: 3.7rem;
        border-width: 2px;
        background:
            linear-gradient(#111a29, #111a29) padding-box,
            linear-gradient(135deg, #175cd3, #d5291c, #f59e0b) border-box;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
    }

    .profile-page .profile-hero h1 {
        color: #ffffff;
        font-size: clamp(1.55rem, 6vw, 2rem);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .profile-page .profile-hero .eyebrow,
    .profile-page .profile-panel .eyebrow {
        color: rgba(207, 221, 255, 0.78);
    }

    .profile-page .profile-hero span,
    .profile-page .profile-item-list small,
    .profile-page .profile-comment-row em {
        color: rgba(224, 232, 244, 0.68);
    }

    .profile-page .profile-hero span {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 0.88rem;
    }

    .profile-page .profile-hero form {
        grid-column: 1 / -1;
    }

    .profile-page .profile-hero .btn {
        width: 100%;
        min-height: 2.75rem;
        border-color: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        font-weight: 950;
    }

    .profile-page .profile-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .profile-page .profile-stat-grid article {
        min-width: 0;
        gap: 0.15rem;
        padding: 0.72rem 0.48rem;
        border-radius: 18px;
        text-align: center;
    }

    .profile-page .profile-stat-grid span {
        color: rgba(224, 232, 244, 0.62);
        font-size: 0.64rem;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .profile-page .profile-stat-grid strong {
        color: #ffffff;
        font-size: 1.26rem;
        line-height: 1;
    }

    .profile-page .profile-grid {
        grid-template-columns: 1fr;
        gap: 0.78rem;
    }

    .profile-page .profile-panel {
        gap: 0.75rem;
        padding: 0.95rem;
        border-radius: 24px;
    }

    .profile-page .section-heading-inline {
        align-items: end;
        justify-content: flex-start;
        margin: 0;
        text-align: left;
    }

    .profile-page .section-heading-inline > div {
        width: 100%;
    }

    .profile-page .section-heading-inline h2 {
        margin: 0;
        color: #ffffff;
        font-size: 1.2rem;
        line-height: 1.12;
    }

    .profile-page .muted-copy {
        margin: 0;
        padding: 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        color: rgba(224, 232, 244, 0.7);
        background: rgba(255, 255, 255, 0.06);
    }

    .profile-page .profile-item-list {
        gap: 0.62rem;
    }

    .profile-page .profile-article-row,
    .profile-page .profile-comment-row,
    .profile-page .profile-notification-row {
        border-color: rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.065);
    }

    .profile-page .profile-article-row {
        grid-template-columns: 4.2rem minmax(0, 1fr) auto;
        padding: 0.62rem;
    }

    .profile-page .profile-article-row img,
    .profile-page .profile-thumb-placeholder {
        width: 4.2rem;
        height: 4.2rem;
        border-radius: 15px;
        background:
            radial-gradient(circle at 20% 10%, rgba(23, 92, 211, 0.36), transparent 42%),
            #111a29;
    }

    .profile-page .profile-article-row strong,
    .profile-page .profile-comment-row strong,
    .profile-page .profile-notification-row strong {
        display: -webkit-box;
        overflow: hidden;
        color: #ffffff;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .profile-page .profile-article-row i {
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.82rem;
    }

    .profile-page .profile-comment-row {
        padding: 0.78rem;
    }

    .profile-page .profile-comment-row em {
        margin-top: 0.24rem;
    }

    .profile-page .profile-notification-row {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        padding: 0.74rem;
    }

    .profile-page .profile-notification-row i {
        display: grid;
        place-items: center;
        width: 2.25rem;
        height: 2.25rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    .profile-page .profile-notification-row.is-unread {
        border-color: rgba(69, 139, 255, 0.38);
        background: rgba(23, 92, 211, 0.16);
    }
}

.instagram-comments .comment-like.is-liked {
    color: #e11d48;
}

.comments-empty-state {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 15rem;
    padding: 2rem 1rem;
    color: #8a94a6;
    text-align: center;
}

.comments-empty-state i {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    color: #111827;
    background: #f4f6f9;
    font-size: 1.7rem;
}

.comments-empty-state strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
}

.comment-composer-shell {
    margin-top: auto;
    padding: 0.72rem 1rem 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.comments-modal .comment-composer-shell {
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.instagram-comments .comment-form {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    gap: 0.62rem;
    align-items: end;
    margin: 0;
}

.instagram-comments .comment-composer-avatar {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.8rem;
}

.instagram-comments .comment-form textarea {
    width: 100%;
    min-height: 2.35rem;
    max-height: 7rem;
    resize: vertical;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 0.62rem 0.9rem;
    color: #111827;
    background: #f4f6f9;
    line-height: 1.25;
}

.instagram-comments .comment-form textarea:focus {
    border-color: rgba(23, 92, 211, 0.35);
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgba(23, 92, 211, 0.12);
}

.instagram-comments .comment-form button[type="submit"] {
    min-height: 2.35rem;
    border: 0;
    border-radius: 999px;
    padding: 0.52rem 0.85rem;
    color: #ffffff;
    background: #175cd3;
    font-weight: 950;
}

.instagram-comments .comment-form-error {
    color: #ffb2aa;
}

.comment-login-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    color: #526071;
    background: #f8fafc;
    font-weight: 800;
}

.instagram-comments .report-dialog {
    width: min(100% - 2rem, 420px);
    border: 0;
    border-radius: 24px;
    padding: 0;
    color: #111827;
    background: transparent;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.35);
}

.instagram-comments .report-dialog::backdrop {
    background: rgba(5, 11, 19, 0.62);
    backdrop-filter: blur(8px);
}

.instagram-comments .report-card {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 1.2rem;
    border-radius: inherit;
    background: #ffffff;
}

.instagram-comments .report-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: #ffffff;
    background: #d5291c;
}

.instagram-comments .report-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 950;
}

.instagram-comments .report-card p {
    margin: 0;
    color: #667085;
    line-height: 1.35;
}

.instagram-comments .report-card select,
.instagram-comments .report-card textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 0.7rem 0.78rem;
    background: #f8fafc;
}

.instagram-comments .dialog-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: #f1f5f9;
}

@media (max-width: 767.98px) {
    .feed-page .comments-modal .modal-dialog {
        align-items: end;
        min-height: 100%;
        margin: 0;
    }

    .feed-page .comments-modal .modal-content {
        width: 100%;
        max-height: 88svh;
        border-radius: 28px 28px 0 0;
    }

    .feed-page .comments-modal .modal-header {
        display: none;
    }

    .feed-page .comments-modal .modal-body {
        max-height: 88svh;
        overflow-y: auto;
    }

    .feed-page .instagram-comments {
        min-height: 74svh;
    }

    .feed-page .comments-sheet-handle {
        display: block;
    }

    .feed-page .instagram-comments .comments-head {
        position: sticky;
        top: 0;
        z-index: 4;
        padding-top: 0.72rem;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(18px);
    }

    .feed-page .instagram-comments .comments-head .eyebrow {
        display: none;
    }

    .feed-page .instagram-comments .comments-sort button {
        width: 2.15rem;
        justify-content: center;
        padding: 0.42rem;
        overflow: hidden;
        white-space: nowrap;
    }

    .feed-page .instagram-comments .comments-sort button i {
        margin: 0;
    }

    .feed-page .instagram-comments .comments-sort button {
        font-size: 0;
    }

    .feed-page .instagram-comments .comments-sort button i {
        font-size: 0.86rem;
    }

    .feed-page .comments-guidelines-inline {
        margin-inline: 0.85rem;
    }

    .feed-page .instagram-comments .comment-item {
        grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
        gap: 0.62rem;
        padding: 0.7rem 0.85rem;
    }

    .feed-page .instagram-comments .comment-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .feed-page .comment-composer-shell {
        padding: 0.68rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom));
    }

    .feed-page .instagram-comments .report-dialog {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        border-radius: 26px 26px 0 0;
    }
}

.coverage-badge {
    border: 1px solid rgba(255, 255, 255, 0.42);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
}

.source-badge-inline {
    max-width: 100%;
    margin-left: 0;
}

.article-overlay-bar .source-badge,
.article-overlay-bar .source-badge span,
.article-overlay-bar .source-badge [data-card-provider-name],
body.feed-page .article-overlay-bar .source-badge,
body.feed-page .article-overlay-bar .source-badge span,
body.feed-page .article-overlay-bar .source-badge [data-card-provider-name] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.source-filter-modal .modal-dialog {
    width: min(100% - 1.4rem, 390px);
    margin-inline: auto;
}

.source-filter-sheet {
    overflow: hidden;
    border: 1px solid rgba(143, 211, 255, 0.18);
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.36), transparent 36%),
        radial-gradient(circle at 92% 0%, rgba(213, 41, 28, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(7, 23, 42, 0.98), rgba(5, 11, 19, 0.99));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.source-filter-sheet .modal-header {
    align-items: center;
    padding: 1rem 1rem 0.72rem;
    border-color: rgba(255, 255, 255, 0.12);
}

.source-filter-sheet .modal-header .eyebrow {
    margin: 0 0 0.2rem;
    color: rgba(208, 222, 242, 0.72);
}

.source-filter-sheet .modal-title {
    color: #ffffff;
    font-weight: 950;
}

.source-filter-sheet .btn-close {
    border-radius: 50%;
    filter: invert(1) grayscale(1);
    opacity: 0.88;
}

.source-filter-sheet .modal-body {
    padding: 0.9rem 1rem 1rem;
}

.source-filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.source-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.5rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

.source-filter-option:hover,
.source-filter-option:focus {
    color: #ffffff;
    border-color: rgba(143, 211, 255, 0.34);
    background: rgba(255, 255, 255, 0.13);
}

.source-filter-option.is-active {
    border-color: rgba(143, 211, 255, 0.42);
    background: linear-gradient(135deg, rgba(23, 92, 211, 0.44), rgba(213, 41, 28, 0.24));
}

.source-filter-option img,
.source-filter-option i {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
}

.source-filter-option img {
    object-fit: contain;
    padding: 0.14rem;
}

.source-filter-option i {
    color: #07172a;
    font-size: 0.84rem;
}

.source-filter-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-switcher-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 0;
}

.active-source-pill,
.similarity-pill {
    flex: 0 0 auto;
    padding: 0.28rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 900;
}

@media (max-width: 767.98px) {
    html,
    body,
    .feed-page {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    body.feed-page {
        overflow: hidden;
        background: #050b13;
    }

    .feed-page .app-main {
        overflow: hidden;
    }

    .feed-page .article-feed {
        overflow-x: clip;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-width: none;
    }

    .feed-page .article-feed::-webkit-scrollbar {
        display: none;
    }

    .feed-page .article-card {
        grid-template-rows: minmax(60svh, 64svh) minmax(0, 1fr);
        touch-action: pan-y;
    }

    .feed-page .article-image {
        background:
            linear-gradient(180deg, rgba(5, 11, 19, 0.08), rgba(5, 11, 19, 0.2)),
            #061426;
    }

    .feed-page .article-image::after {
        height: 22%;
        background: linear-gradient(180deg, rgba(6, 20, 38, 0), rgba(6, 20, 38, 0.92) 100%);
    }

    .feed-page .article-body {
        gap: 0.42rem;
        padding: 0.82rem 4.7rem calc(0.8rem + env(safe-area-inset-bottom)) 1rem;
        background:
            radial-gradient(circle at 0% 0%, rgba(23, 92, 211, 0.18), transparent 30%),
            linear-gradient(180deg, #061426 0%, #050b13 100%);
    }

    .feed-page .article-body h2 {
        font-size: clamp(1.48rem, 6vw, 2.08rem);
        -webkit-line-clamp: 2;
    }

    .feed-page .article-body p {
        font-size: clamp(0.96rem, 3.7vw, 1.04rem);
        -webkit-line-clamp: 2;
    }

    .feed-page .article-actions {
        gap: 0.55rem;
    }

    .feed-page .article-actions .btn {
        min-height: 2.62rem;
    }

    .feed-page .feed-side-actions {
        top: 50%;
        right: 0.54rem;
        bottom: auto;
        transform: translateY(-50%);
    }

    .feed-page .feed-action-button {
        width: 3.05rem;
        min-height: 3.32rem;
        gap: 0.08rem;
        border-color: rgba(255, 255, 255, 0.24);
        background: rgba(7, 12, 20, 0.42);
    }

    .feed-page .feed-action-button i {
        font-size: 1.27rem;
        line-height: 1;
    }

    .feed-page .feed-action-button .feed-action-count {
        display: block !important;
        max-width: 2.8rem;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.96);
        font-size: 0.68rem;
        font-weight: 850;
        line-height: 1;
        text-overflow: ellipsis;
    }

    .feed-page .feed-action-button:not(:has(.feed-action-count)) {
        min-height: 3.05rem;
    }

    .feed-page .source-badge {
        border-color: rgba(255, 255, 255, 0.28);
        background: rgba(5, 11, 19, 0.62);
    }

    .feed-page .source-badge img,
    .feed-page .source-badge-initial {
        border: 1px solid rgba(255, 255, 255, 0.56);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    }

    .feed-page .source-switcher-drawer {
        right: 0.45rem;
        left: 0.45rem;
        max-height: min(64svh, 520px);
        padding: 0.62rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
        border-width: 1px;
        border-radius: 30px 30px 0 0;
        background:
            radial-gradient(circle at 10% 0%, rgba(23, 92, 211, 0.42), transparent 34%),
            radial-gradient(circle at 92% 4%, rgba(213, 41, 28, 0.2), transparent 30%),
            rgba(5, 11, 19, 0.9);
        box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.48);
    }

    .feed-page .source-switcher-drawer.is-open {
        transform: translateY(0);
    }

    .feed-page .source-switcher-card {
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    }

    .feed-page .source-switcher-provider .source-badge {
        width: auto;
        min-height: 2.2rem;
        max-width: min(68vw, 18rem);
    }

    .feed-page .source-switcher-provider .source-badge img,
    .feed-page .source-switcher-provider .source-badge-initial,
    .details-drawer-content .source-badge img,
    .details-drawer-content .source-badge-initial {
        width: 1.5rem;
        height: 1.5rem;
    }

    .feed-page .related-drawer-card {
        min-height: 12rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.09);
    }

    .feed-page .related-drawer-card h3 {
        font-size: 1.04rem;
        -webkit-line-clamp: 3;
    }

    .feed-page .related-drawer-card p {
        -webkit-line-clamp: 3;
    }

    .feed-page .comments-modal .modal-dialog,
    .feed-page .share-modal .modal-dialog,
    .feed-page .mobile-details-modal .modal-dialog,
    .feed-page .source-filter-modal .modal-dialog {
        align-items: end;
        min-height: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0.42rem;
    }

    .feed-page .comments-modal.fade .modal-dialog,
    .feed-page .comments-modal.show .modal-dialog,
    .feed-page .share-modal.fade .modal-dialog,
    .feed-page .share-modal.show .modal-dialog,
    .feed-page .mobile-details-modal.fade .modal-dialog,
    .feed-page .mobile-details-modal.show .modal-dialog,
    .feed-page .source-filter-modal.fade .modal-dialog,
    .feed-page .source-filter-modal.show .modal-dialog {
        transform: none;
    }

    .feed-page .comments-modal .modal-content,
    .feed-page .share-sheet,
    .feed-page .mobile-details-sheet,
    .feed-page .source-filter-sheet {
        width: 100%;
        transform: translateY(var(--sheet-drag-y, 0));
        transition: transform 180ms ease;
        will-change: transform;
    }

    .feed-page .comments-modal .modal-content.is-dragging,
    .feed-page .share-sheet.is-dragging,
    .feed-page .mobile-details-sheet.is-dragging,
    .feed-page .source-filter-sheet.is-dragging {
        transition: none;
        cursor: grabbing;
    }

    .feed-page .comments-modal .modal-content.is-dismissing,
    .feed-page .share-sheet.is-dismissing,
    .feed-page .mobile-details-sheet.is-dismissing,
    .feed-page .source-filter-sheet.is-dismissing {
        transform: translateY(112svh) !important;
        transition: transform 210ms cubic-bezier(0.32, 0.72, 0, 1);
        pointer-events: none;
    }

    .feed-page .comments-modal .modal-content {
        max-height: 84svh;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 30px 30px 0 0;
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.32), transparent 32%),
            radial-gradient(circle at 92% 6%, rgba(213, 41, 28, 0.16), transparent 30%),
            linear-gradient(180deg, #07172a 0%, #050b13 100%);
        box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.45);
    }

    .feed-page .comments-modal .modal-body {
        max-height: 84svh;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .feed-page .comments-modal .modal-body::-webkit-scrollbar {
        display: none;
    }

    .feed-page .instagram-comments {
        min-height: 72svh;
        color: #ffffff;
        background: transparent;
    }

    .feed-page .comments-sheet-handle,
    .feed-page .mobile-sheet-handle {
        display: block;
        width: 3rem;
        height: 0.3rem;
        margin: 0.78rem auto 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.3);
    }

    .feed-page [data-sheet-drag-handle],
    .feed-page .comments-sheet-handle {
        touch-action: none;
        user-select: none;
        cursor: grab;
    }

    .feed-page .instagram-comments .comments-head {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0.7rem;
        padding: 0.76rem 1rem 0.85rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(5, 11, 19, 0.2);
    }

    .feed-page .instagram-comments .comments-head > div {
        width: auto;
        text-align: center;
    }

    .feed-page .instagram-comments .comments-head h2 {
        color: #ffffff;
    }

    .feed-page .instagram-comments .comments-sort {
        gap: 0.55rem;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .feed-page .instagram-comments .comments-sort button {
        width: 2.45rem;
        height: 2.45rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.78);
        box-shadow: none;
    }

    .feed-page .instagram-comments .comments-sort button.is-active {
        color: #ffffff;
        background: #111827;
    }

    .feed-page .comments-guidelines-inline {
        border-color: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.78);
        background: rgba(255, 255, 255, 0.08);
    }

    .feed-page .comments-guidelines-inline i {
        color: #8fd3ff;
    }

    .feed-page .comments-empty-state {
        min-height: 32svh;
        color: rgba(255, 255, 255, 0.62);
    }

    .feed-page .comments-empty-state i {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .feed-page .comments-empty-state strong,
    .feed-page .instagram-comments .comment-copy strong {
        color: #ffffff;
    }

    .feed-page .instagram-comments .comment-copy {
        color: rgba(255, 255, 255, 0.84);
    }

    .feed-page .instagram-comments .comment-meta {
        color: rgba(255, 255, 255, 0.56);
    }

    .feed-page .instagram-comments .comment-like {
        color: #ffffff;
    }

    .feed-page .comment-composer-shell {
        border-top-color: rgba(255, 255, 255, 0.1);
        background: rgba(5, 11, 19, 0.82);
    }

    .feed-page .comment-login-card {
        border-color: rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.82);
        background: rgba(255, 255, 255, 0.08);
    }

    .feed-page .instagram-comments .comment-composer-avatar {
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    .feed-page .instagram-comments .comment-form textarea {
        resize: none;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.09);
    }

    .feed-page .instagram-comments .comment-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.56);
    }

    .feed-page .instagram-comments .comment-form textarea::-webkit-resizer {
        display: none;
    }

    .feed-page .instagram-comments .comment-form button[type="submit"] {
        background: #d5291c;
    }

    .feed-page .mobile-details-modal {
        background: rgba(5, 11, 19, 0.64);
    }

    .feed-page .mobile-details-sheet {
        min-height: 0;
        max-height: 92svh;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 30px 30px 0 0;
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.36), transparent 30%),
            linear-gradient(180deg, #07172a 0%, #050b13 100%),
            #050b13 !important;
    }

    .feed-page .mobile-details-sheet .modal-header {
        position: sticky;
        top: 0;
        z-index: 5;
        padding-top: 0.75rem;
        background: rgba(5, 11, 19, 0.86);
        backdrop-filter: blur(18px);
    }

    .feed-page .mobile-details-sheet .modal-body {
        max-height: calc(92svh - 4.6rem);
        overflow-y: auto;
        background: transparent;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .feed-page .mobile-details-sheet .modal-body::-webkit-scrollbar {
        display: none;
    }

    .details-drawer-hero {
        min-height: 16rem;
    }

    .details-drawer-hero > img,
    .details-drawer-hero .detail-image-placeholder {
        min-height: 16rem;
    }

    .details-drawer-content .source-badge {
        justify-self: start;
        background: rgba(5, 11, 19, 0.62);
    }

    .feed-page textarea {
        resize: none;
    }
}

@media (max-width: 767.98px) {
    .feed-page .reel-header {
        position: fixed;
        top: calc(0.55rem + env(safe-area-inset-top));
        right: 0.7rem;
        left: 0.7rem;
        z-index: 12;
        display: flex;
        align-items: flex-start;
        gap: 0.45rem;
        pointer-events: none;
    }

    .reel-header-panel {
        position: relative;
        min-width: 0;
        pointer-events: auto;
    }

    .reel-header-panel summary {
        display: inline-flex;
        align-items: center;
        gap: 0.42rem;
        min-height: 2.35rem;
        max-width: 12rem;
        padding: 0.34rem 0.62rem;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 999px;
        color: #ffffff;
        list-style: none;
        background: rgba(5, 11, 19, 0.58);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(16px);
        font-size: 0.78rem;
        font-weight: 900;
    }

    .reel-header-panel summary span {
        min-width: 0;
        max-width: 17.6ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .reel-header-panel summary::-webkit-details-marker {
        display: none;
    }

    .reel-filter-panel {
        flex: 1 1 auto;
    }

    .feed-page .reel-refresh-button {
        flex: 0 0 auto;
        width: 2.35rem;
        height: 2.35rem;
        padding: 0;
        pointer-events: auto;
        font-size: 0.9rem;
    }

    .reel-profile-panel,
    .reel-notification-panel {
        flex: 0 0 auto;
    }

    .reel-profile-panel summary span {
        display: none;
    }

    .reel-notification-count {
        display: grid;
        place-items: center;
        min-width: 1.18rem;
        height: 1.18rem;
        padding: 0 0.24rem;
        border-radius: 999px;
        color: #ffffff;
        background: #d5291c;
        font-size: 0.66rem;
    }

    .reel-filter-menu,
    .reel-profile-menu,
    .reel-notification-menu {
        position: absolute;
        top: calc(100% + 0.45rem);
        display: grid;
        gap: 0.42rem;
        min-width: min(19rem, calc(100vw - 1.4rem));
        max-width: calc(100vw - 1.4rem);
        padding: 0.72rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 20px;
        color: #ffffff;
        background:
            radial-gradient(circle at 10% 0%, rgba(23, 92, 211, 0.34), transparent 32%),
            rgba(5, 11, 19, 0.88);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(22px);
    }

    .reel-filter-menu,
    .reel-profile-menu {
        left: 0;
    }

    .reel-notification-menu {
        right: 0;
        max-height: min(28rem, calc(100vh - 6rem));
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .reel-filter-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reel-filter-menu a,
    .reel-profile-menu a,
    .reel-notification-menu a {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;
        padding: 0.58rem 0.66rem;
        border-radius: 14px;
        color: rgba(255, 255, 255, 0.86);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.08);
        font-size: 0.82rem;
        font-weight: 850;
    }

    .reel-filter-menu a.is-active,
    .reel-notification-menu a.is-unread {
        color: #ffffff;
        background: rgba(213, 41, 28, 0.88);
    }

    .reel-profile-menu strong,
    .reel-notification-menu > span {
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.82rem;
    }

    .reel-menu-strong {
        justify-content: center;
        background: rgba(255, 255, 255, 0.14) !important;
    }

    .feed-page .article-overlay-bar {
        top: 3.35rem;
    }

    .feed-page .feed-side-actions {
        top: 56%;
    }
}

@media (max-width: 767.98px) {
    .feed-page .feed-side-actions {
        top: 50%;
        right: max(0.55rem, env(safe-area-inset-right));
        bottom: auto;
        width: 3.35rem;
        gap: 0.82rem;
        transform: translateY(-50%);
    }

    .feed-page .feed-action-button {
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 3.35rem;
        min-height: 3.9rem;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
        background: transparent !important;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-tap-highlight-color: transparent;
    }

    .feed-page .feed-action-button::before {
        position: absolute;
        top: 0;
        left: 50%;
        width: 3rem;
        height: 3rem;
        border: 1px solid rgba(255, 255, 255, 0.26);
        border-radius: 50%;
        background: rgba(6, 10, 17, 0.34);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
        content: "";
        transform: translateX(-50%);
        backdrop-filter: blur(10px) saturate(1.15);
    }

    .feed-page .feed-action-button i {
        position: relative;
        z-index: 1;
        display: grid;
        width: 3rem;
        height: 3rem;
        place-items: center;
        font-size: 1.66rem !important;
        line-height: 1;
    }

    .feed-page .feed-action-button .feed-action-count {
        position: relative;
        z-index: 1;
        display: block !important;
        max-width: 3.35rem;
        min-height: 0.8rem;
        margin-top: 0.14rem;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.96);
        font-size: 0.73rem;
        font-weight: 750;
        line-height: 1;
        text-align: center;
        text-overflow: ellipsis;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.62);
    }

    .feed-page .feed-action-button.is-liked {
        color: #ff3040;
    }

    .feed-page .feed-action-button.is-liked .feed-action-count {
        color: #ffffff;
    }

    .feed-page .feed-action-button.has-related {
        color: #ffffff;
    }

    .feed-page .feed-action-button:not(:has(.feed-action-count)) {
        min-height: 3rem;
    }

    .feed-page .feed-action-button:active {
        transform: scale(0.96);
    }
}

@media (max-width: 767.98px) {
    .feed-page .article-card {
        grid-template-rows: minmax(60svh, 64svh) minmax(0, 1fr);
    }

    .feed-page .article-image::after {
        height: 20svh;
    }

    .feed-page .article-body {
        justify-content: flex-start;
        padding-top: clamp(0.72rem, 2svh, 1rem);
    }
}

@media (max-width: 767.98px) {
    .feed-page .mobile-details-sheet {
        background: #050b13 !important;
        box-shadow: none !important;
    }

    .feed-page .mobile-details-sheet .modal-header {
        background: #050b13 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}

@media (max-width: 767.98px) {
    .feed-page .article-card {
        grid-template-rows: minmax(0, 1fr) auto !important;
    }

    .feed-page .article-image::after {
        height: 10svh !important;
        background: linear-gradient(180deg, rgba(6, 20, 38, 0), #061426 96%) !important;
    }

    .feed-page .article-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 0.52rem !important;
        min-height: 0 !important;
        padding: 0.78rem 4.45rem calc(0.86rem + env(safe-area-inset-bottom)) 1rem !important;
        text-align: left;
        background: linear-gradient(180deg, #061426 0%, #050b13 min(10svh, 5.5rem), #050b13 100%) !important;
    }

    .feed-page .article-body h2 {
        -webkit-line-clamp: 2 !important;
    }

    .feed-page .article-body p {
        -webkit-line-clamp: 2 !important;
    }

    .feed-page .article-actions {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 0.62rem !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 0.32rem !important;
        padding-top: 0.18rem;
    }

    .feed-page .custom-article-card .article-actions {
        justify-content: center;
    }

    .feed-page .article-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        flex: 0 1 auto;
        min-width: 0;
        min-height: 3.05rem !important;
        padding-inline: clamp(1.35rem, 7vw, 2.15rem);
        border-radius: 999px;
        line-height: 1.05;
        white-space: nowrap;
    }

    .feed-page .article-actions .btn-primary {
        flex-basis: min(56vw, 16.5rem);
    }

    .feed-page .article-actions .btn-outline-secondary {
        flex-basis: min(28vw, 8.2rem);
    }

    .feed-page .feed-side-actions {
        top: 50% !important;
        right: max(0.58rem, env(safe-area-inset-right)) !important;
        bottom: auto !important;
        width: 3.05rem !important;
        gap: 0.78rem !important;
        transform: translateY(-50%) !important;
    }

    .feed-page .feed-action-button {
        width: 3.05rem !important;
        min-height: 3.48rem !important;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    }

    .feed-page .feed-action-button::before {
        width: 2.56rem !important;
        height: 2.56rem !important;
        border-color: rgba(255, 255, 255, 0.46) !important;
        background: rgba(5, 11, 19, 0.06) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
        backdrop-filter: none !important;
    }

    .feed-page .feed-action-button i {
        width: 2.56rem !important;
        height: 2.56rem !important;
        font-size: 1.34rem !important;
    }

    .feed-page .feed-action-button .feed-action-count {
        display: block !important;
        margin-top: 0.08rem !important;
        font-size: 0.72rem !important;
        font-weight: 850 !important;
        line-height: 1 !important;
    }

    .feed-page .feed-action-button:not(:has(.feed-action-count)) {
        min-height: 2.56rem !important;
    }

    .feed-page .reel-profile-panel summary,
    .feed-page .reel-notification-panel summary {
        position: relative;
        justify-content: center;
        width: 2.45rem;
        height: 2.45rem;
        min-width: 2.45rem;
        min-height: 2.45rem;
        max-width: 2.45rem;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }

    .feed-page .reel-profile-panel summary i,
    .feed-page .reel-notification-panel summary i {
        font-size: 0.95rem;
    }

    .feed-page .reel-notification-count {
        position: absolute;
        top: -0.28rem;
        right: -0.24rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.2rem;
        border: 1px solid rgba(255, 255, 255, 0.82);
        font-size: 0.58rem;
        line-height: 1;
    }

    .feed-page .mobile-details-modal .modal-dialog {
        display: flex !important;
        align-items: flex-end !important;
        min-height: 100dvh !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .feed-page .mobile-details-sheet {
        width: 100% !important;
        min-height: 0 !important;
        max-height: 92dvh !important;
        margin: 0 !important;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-bottom: 0 !important;
        border-radius: 28px 28px 0 0 !important;
        background: #050b13 !important;
    }

    .feed-page .mobile-details-sheet .modal-body {
        max-height: calc(92dvh - 4.45rem) !important;
        padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: #050b13 !important;
    }

    .feed-page .details-drawer-hero {
        min-height: 14.5rem !important;
        border-radius: 18px;
    }

    .feed-page .details-drawer-hero > img,
    .feed-page .details-drawer-hero .detail-image-placeholder {
        min-height: 14.5rem !important;
    }

    .feed-page .details-drawer-hero::after {
        background: linear-gradient(180deg, rgba(5, 11, 19, 0.08) 18%, rgba(5, 11, 19, 0.9) 100%);
    }

    .feed-page .details-drawer-hero-copy {
        right: 0.82rem;
        bottom: 0.82rem;
        left: 0.82rem;
        gap: 0.44rem;
    }

    .feed-page .details-hero-source {
        top: 0.82rem;
        right: 0.82rem;
    }

    .feed-page .details-drawer-hero h3 {
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(1.26rem, 5.55vw, 1.72rem);
        line-height: 1.08;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .feed-page .details-drawer-content {
        gap: 0.78rem;
    }

    .feed-page .details-drawer-section {
        gap: 0.48rem;
    }

    .feed-page .details-drawer-section h4 {
        font-size: 0.92rem;
    }

    .feed-page .details-topic-rail {
        max-height: 2.42rem;
        padding-bottom: 0.05rem;
    }

    .feed-page .details-topic-rail span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2rem;
        padding: 0.34rem 0.62rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.12);
        font-size: 0.82rem;
        font-weight: 850;
        line-height: 1;
        backdrop-filter: blur(10px);
    }

    .feed-page .details-drawer-meta,
    .feed-page .drawer-score-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.48rem;
    }

    .feed-page .details-drawer-meta div,
    .feed-page .drawer-score-grid span {
        gap: 0.16rem;
        min-height: 4.1rem;
        padding: 0.58rem;
        border-radius: 14px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
    }

    .feed-page .details-drawer-meta dt,
    .feed-page .drawer-score-grid strong {
        font-size: 0.62rem;
        line-height: 1.05;
    }

    .feed-page .details-drawer-meta dd {
        font-size: 0.88rem;
        line-height: 1.15;
    }

    .feed-page .drawer-score-grid span {
        align-content: center;
    }

    .feed-page .reel-profile-menu {
        right: 0 !important;
        left: auto !important;
    }

    .feed-page .instagram-comments .comments-sort {
        gap: 0.58rem !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .feed-page .instagram-comments .comments-sort button {
        display: grid !important;
        place-items: center !important;
        width: 2.7rem !important;
        height: 2.7rem !important;
        min-height: 2.7rem !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 50% !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
        backdrop-filter: blur(14px) saturate(1.1);
        line-height: 1 !important;
    }

    .feed-page .instagram-comments .comments-sort button.is-active {
        border-color: rgba(255, 255, 255, 0.32) !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.16) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.22) !important;
    }

    .feed-page .instagram-comments .comments-sort button i {
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        font-size: 1rem !important;
        line-height: 1 !important;
    }
}

.version-badge {
    background: rgba(23, 92, 211, 0.72) !important;
}

.article-version-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(23, 92, 211, 0.18);
    border-radius: 999px;
    color: var(--blue);
    background: rgba(23, 92, 211, 0.08);
    font-weight: 850;
}

.article-version-list {
    display: grid;
    gap: 0.55rem;
}

.article-version-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
    padding: 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.article-version-list article > span {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(213, 41, 28, 0.86);
    font-size: 0.78rem;
    font-weight: 950;
}

.article-version-list article div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.article-version-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-version-list small,
.article-version-list em {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.article-version-list a {
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 900;
}

.article-version-list .is-current {
    border-color: rgba(213, 41, 28, 0.42);
    background: rgba(213, 41, 28, 0.12);
}

.desktop-version-list {
    margin-top: 1rem;
}

.desktop-version-list article {
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--ink);
    background: #f8fafc;
}

.desktop-version-list small,
.desktop-version-list em {
    color: var(--muted);
}

.desktop-version-list a {
    color: var(--accent);
    background: rgba(213, 41, 28, 0.08);
}

@media (max-width: 767.98px) {
    .feed-page .feed-action-button[data-share-open] i::before {
        display: block;
        transform: translate(-0.08rem, 0.06rem);
    }
}

.feed-end-card {
    display: grid;
    place-items: center;
    min-height: min(78vh, 620px);
    padding: 1.25rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 10%, rgba(23, 92, 211, 0.34), transparent 34%),
        radial-gradient(circle at 88% 20%, rgba(213, 41, 28, 0.18), transparent 30%),
        linear-gradient(180deg, #07172a 0%, #050b13 100%);
}

.feed-end-card-inner {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    width: min(100%, 520px);
    text-align: center;
}

.feed-end-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.feed-end-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 7vw, 3rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.feed-end-card p:not(.eyebrow) {
    max-width: 26rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.4;
}

.feed-end-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.feed-end-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 850;
}

.feed-end-links a:first-child {
    border-color: transparent;
    background: #d5291c;
}

.feed-empty .feed-end-links {
    justify-content: flex-start;
}

.feed-empty .feed-end-links a {
    border-color: var(--line);
    color: var(--ink);
    background: #ffffff;
}

.feed-empty .feed-end-links a:first-child {
    color: #ffffff;
    background: var(--accent);
}

@media (max-width: 767.98px) {
    .feed-page .feed-end-card {
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .feed-page .feed-end-card-inner {
        transform: translateY(-3svh);
    }
}

@media (max-width: 767.98px) {
    .feed-page .article-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
        gap: 0.54rem !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-top: auto !important;
    }

    .feed-page .article-actions:has(.mobile-soft-button) {
        grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.82fr) minmax(0, 1.05fr);
    }

    .feed-page .article-actions .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        flex-basis: auto !important;
        padding-inline: 0.38rem !important;
        font-size: clamp(0.78rem, 3.15vw, 0.96rem);
        text-align: center;
    }

    .feed-page .article-actions .btn-primary,
    .feed-page .article-actions .btn-outline-secondary {
        flex-basis: auto !important;
    }

.feed-page .article-actions a.mobile-soft-button[href] {
    display: none !important;
}

.feed-page .article-card.is-source-swapping .article-image img,
.feed-page .article-card.is-source-swapping .article-body {
    animation-duration: 240ms;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.25, 1);
}

.feed-page .article-card.is-source-swipe-left .article-image img,
.feed-page .article-card.is-source-swipe-left .article-body {
    animation-name: sourceSwipeLeft;
}

.feed-page .article-card.is-source-swipe-right .article-image img,
.feed-page .article-card.is-source-swipe-right .article-body {
    animation-name: sourceSwipeRight;
}

@keyframes sourceSwipeLeft {
    0% {
        opacity: 0.72;
        transform: translateX(18px) scale(0.995);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes sourceSwipeRight {
    0% {
        opacity: 0.72;
        transform: translateX(-18px) scale(0.995);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
}

.version-badge {
    color: #ffffff !important;
    background: rgba(5, 11, 19, 0.48) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px) saturate(1.1);
}

.version-badge i {
    color: rgba(143, 211, 255, 0.95);
}

.article-version-list article {
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.72rem;
}

.article-version-list article > span {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
        rgba(213, 41, 28, 0.78);
}

.article-version-list strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.14;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.article-version-list .is-current {
    border-color: rgba(143, 211, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.18), rgba(255, 255, 255, 0.06));
}

@media (max-width: 767.98px) {
    .feed-page .reel-notification-menu a.is-unread {
        border: 1px solid rgba(143, 211, 255, 0.24);
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(23, 92, 211, 0.18), rgba(255, 255, 255, 0.08)) !important;
    }

    .feed-page .reel-notification-menu a i {
        display: grid;
        place-items: center;
        width: 1.75rem;
        height: 1.75rem;
        flex: 0 0 auto;
        border-radius: 50%;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

    .feed-page .source-switcher-drawer {
        max-height: min(58svh, 470px);
    }

    .feed-page .related-drawer-card {
        min-height: 0;
        padding: 0.88rem;
    }

    .feed-page .article-version-list article {
        grid-template-columns: 2.25rem minmax(0, 1fr) auto;
        gap: 0.58rem;
    }

    .feed-page .article-version-list a,
    .feed-page .article-version-list em {
        font-size: 0.74rem;
    }
}

.reel-search-form {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 2.85rem;
    gap: 0.5rem;
    margin-bottom: 0.18rem;
}

.reel-search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 2.85rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    font-weight: 800;
    outline: none;
}

.reel-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.reel-search-form input[type="search"]:focus {
    border-color: rgba(143, 211, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.reel-search-form button {
    display: grid;
    width: 2.85rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    background: #d5291c;
    box-shadow: 0 12px 24px rgba(213, 41, 28, 0.22);
}

.reel-filter-home-link,
.feed-page .reel-filter-menu .reel-filter-home-link {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.52rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18);
}

.reel-filter-home-link img,
.feed-page .reel-filter-menu .reel-filter-home-link img {
    display: block;
    width: min(9.5rem, 52vw);
    max-height: 2.05rem;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .feed-page .article-body {
        width: 100% !important;
        padding-right: max(1rem, env(safe-area-inset-right)) !important;
        padding-left: max(1rem, env(safe-area-inset-left)) !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .feed-page .card-source-dots {
        position: absolute;
        top: -0.95rem;
        left: 50%;
        z-index: 8;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.32rem;
        min-height: 0.7rem;
        padding: 0.12rem 0.2rem;
        transform: translateX(-50%);
        pointer-events: auto;
    }

    .feed-page .card-source-dots button {
        width: 0.45rem;
        height: 0.45rem;
        min-width: 0;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.42);
        opacity: 0.72;
        transition:
            width 160ms ease,
            background-color 160ms ease,
            opacity 160ms ease;
    }

    .feed-page .card-source-dots button.is-active {
        width: 1.38rem;
        background: #ffffff;
        opacity: 1;
    }

    .feed-page .article-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-items: stretch;
        align-items: stretch !important;
        gap: 0.62rem !important;
    }

    .feed-page .article-actions:has(.mobile-soft-button) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .feed-page .article-actions .btn {
        display: inline-flex !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        padding-inline: 0.5rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .feed-page .source-switcher-drawer .related-drawer-window,
    .feed-page .source-switcher-drawer .related-drawer-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .feed-page .source-switcher-drawer .related-drawer-card.is-active {
        align-items: stretch;
    }

    .feed-page .source-switcher-drawer .same-event-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100%;
    }

    .feed-page .source-switcher-drawer .same-event-actions a {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .feed-page .instagram-comments .comments-sort {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.64rem !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .feed-page .instagram-comments .comments-sort button {
        display: inline-grid !important;
        place-items: center !important;
        width: 2.72rem !important;
        height: 2.72rem !important;
        min-width: 2.72rem !important;
        min-height: 2.72rem !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        color: rgba(255, 255, 255, 0.92) !important;
        background: rgba(255, 255, 255, 0.12) !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 1 !important;
    }

    .feed-page .instagram-comments .comments-sort button.is-active {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    }

    .feed-page .instagram-comments .comments-sort button i {
        display: block !important;
        width: 1rem !important;
        height: 1rem !important;
        margin: 0 !important;
        font-size: 1rem !important;
        line-height: 1 !important;
        transform: none !important;
    }
}

@media (min-width: 768px) {
    .feed-page .reel-header {
        position: relative;
        top: auto;
        z-index: 20;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        width: min(1180px, calc(100% - 32px));
        margin: 0 auto 1rem;
        pointer-events: none;
    }

    .feed-page .reel-header-panel {
        position: relative;
        pointer-events: auto;
    }

    .feed-page .reel-filter-panel {
        flex: 1 1 auto;
    }

    .feed-page .reel-refresh-button {
        flex: 0 0 auto;
        width: 2.55rem;
        height: 2.55rem;
        padding: 0;
        pointer-events: auto;
        font-size: 0.95rem;
    }

    .feed-page .reel-profile-panel,
    .feed-page .reel-notification-panel {
        flex: 0 0 auto;
    }

    .feed-page .reel-header-panel summary {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.55rem;
        padding: 0.42rem 0.78rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        color: #ffffff;
        list-style: none;
        background: rgba(12, 18, 29, 0.76);
        box-shadow: 0 14px 34px rgba(2, 6, 23, 0.2);
        backdrop-filter: blur(16px);
        font-size: 0.88rem;
        font-weight: 900;
        cursor: pointer;
    }

    .feed-page .reel-header-panel summary span {
        min-width: 0;
        max-width: 17.6ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .feed-page .reel-header-panel summary::-webkit-details-marker {
        display: none;
    }

    .feed-page .reel-filter-menu,
    .feed-page .reel-profile-menu,
    .feed-page .reel-notification-menu {
        position: absolute;
        top: calc(100% + 0.55rem);
        z-index: 30;
        display: grid;
        gap: 0.5rem;
        min-width: 22rem;
        padding: 0.82rem;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 18px;
        color: #ffffff;
        background: linear-gradient(135deg, rgba(8, 29, 58, 0.96), rgba(20, 23, 32, 0.97) 58%, rgba(60, 16, 24, 0.94));
        box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
        backdrop-filter: blur(18px);
    }

    .feed-page .reel-filter-menu {
        left: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feed-page .reel-profile-menu,
    .feed-page .reel-notification-menu {
        right: 0;
        min-width: 18rem;
    }

    .feed-page .reel-notification-menu {
        max-height: min(28rem, calc(100vh - 6rem));
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .feed-page .reel-filter-menu a,
    .feed-page .reel-profile-menu a,
    .feed-page .reel-notification-menu a,
    .feed-page .reel-notification-menu > span {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;
        padding: 0.66rem 0.75rem;
        border-radius: 12px;
        color: #ffffff;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.08);
        font-size: 0.88rem;
        font-weight: 850;
    }

    .feed-page .reel-filter-menu a.is-active,
    .feed-page .reel-notification-menu a.is-unread {
        color: #ffffff;
        background: #d5291c;
    }

    .feed-page .reel-search-form {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.48rem;
    }

    .feed-page .reel-search-form input,
    .feed-page .reel-search-form button {
        min-height: 2.6rem;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 12px;
    }

    .feed-page .reel-search-form input {
        min-width: 0;
        padding: 0 0.75rem;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    .feed-page .reel-search-form button {
        width: 2.8rem;
        color: #ffffff;
        background: #d5291c;
    }

    .feed-page .reel-notification-count {
        display: grid;
        place-items: center;
        min-width: 1.2rem;
        height: 1.2rem;
        padding: 0 0.24rem;
        border-radius: 999px;
        color: #ffffff;
        background: #d5291c;
        font-size: 0.68rem;
    }

    .feed-page .related-drawer {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 2;
        display: none;
        margin: 0 1rem 1rem;
        padding: 1rem;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 18px;
        background: #f7f8fb;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    }

    .feed-page .related-drawer.is-open {
        display: grid !important;
        gap: 0.85rem;
    }

    .feed-page .related-drawer-handle {
        display: none;
    }

    .feed-page .related-drawer-head,
    .feed-page .source-switcher-provider,
    .feed-page .related-drawer-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .feed-page .related-drawer-head span {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .feed-page .related-drawer-head strong {
        display: block;
        font-size: 1rem;
    }

    .feed-page .related-drawer-head button,
    .feed-page .related-drawer-controls button {
        display: inline-grid;
        place-items: center;
        width: 2.35rem;
        height: 2.35rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    .feed-page .related-drawer-card {
        display: none;
    }

    .feed-page .related-drawer-card.is-active {
        display: grid;
        gap: 0.72rem;
    }

    .feed-page .related-drawer-card h3 {
        margin: 0;
        font-size: 1rem;
        line-height: 1.25;
    }

    .feed-page .related-drawer-dots {
        display: flex;
        justify-content: center;
        gap: 0.35rem;
    }

    .feed-page .related-drawer-dots button {
        width: 0.46rem;
        height: 0.46rem;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.28);
    }

    .feed-page .related-drawer-dots button.is-active {
        width: 1.25rem;
        background: #0f172a;
    }
}

.feed-page .instagram-comments .comments-sort {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.64rem !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.feed-page .instagram-comments .comments-sort button {
    position: relative !important;
    display: inline-grid !important;
    place-items: center !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    width: 2.72rem !important;
    height: 2.72rem !important;
    min-width: 2.72rem !important;
    min-height: 2.72rem !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
}

.feed-page .instagram-comments .comments-sort button.is-active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.feed-page .instagram-comments .comments-sort button i {
    grid-area: 1 / 1 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    transform: none !important;
}

.feed-page .instagram-comments .comments-sort button i::before {
    display: block !important;
    line-height: 1 !important;
}

.feed-page .instagram-comments .comments-sort-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.reel-filter-menu a.multi-provider-toggle,
.feed-page .reel-filter-menu a.multi-provider-toggle {
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reel-filter-menu a.multi-provider-toggle i,
.feed-page .reel-filter-menu a.multi-provider-toggle i {
    order: 2;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-left: auto;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
}

.reel-filter-menu a.multi-provider-toggle.is-checked,
.feed-page .reel-filter-menu a.multi-provider-toggle.is-checked {
    border-color: rgba(143, 211, 255, 0.32);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(23, 92, 211, 0.38), rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.reel-filter-menu a.multi-provider-toggle.is-checked i,
.feed-page .reel-filter-menu a.multi-provider-toggle.is-checked i {
    color: #07172a;
    background: #8fd3ff;
}

.reel-provider-filters,
.feed-page .reel-provider-filters {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.44rem;
    margin-top: 0.18rem;
    padding-top: 0.62rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reel-provider-filters > span,
.feed-page .reel-provider-filters > span {
    grid-column: 1 / -1;
    color: rgba(208, 222, 242, 0.82);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.reel-filter-menu a.reel-provider-chip,
.feed-page .reel-filter-menu a.reel-provider-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.45rem 0.58rem;
    border: 1px solid rgba(143, 211, 255, 0.14);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.06);
}

.reel-filter-menu a.reel-provider-chip img,
.reel-filter-menu a.reel-provider-chip i,
.feed-page .reel-filter-menu a.reel-provider-chip img,
.feed-page .reel-filter-menu a.reel-provider-chip i {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
}

.reel-filter-menu a.reel-provider-chip img,
.feed-page .reel-filter-menu a.reel-provider-chip img {
    object-fit: contain;
    padding: 0.12rem;
}

.reel-filter-menu a.reel-provider-chip i,
.feed-page .reel-filter-menu a.reel-provider-chip i {
    color: #07172a;
    font-size: 0.78rem;
}

.reel-filter-menu a.reel-provider-chip span,
.feed-page .reel-filter-menu a.reel-provider-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reel-filter-menu a.reel-provider-chip.is-active,
.feed-page .reel-filter-menu a.reel-provider-chip.is-active {
    border-color: rgba(143, 211, 255, 0.36);
    background: linear-gradient(135deg, rgba(23, 92, 211, 0.42), rgba(213, 41, 28, 0.22));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.reel-trending-topics,
.feed-page .reel-trending-topics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.44rem;
    margin-top: 0.18rem;
    padding-top: 0.62rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reel-trending-topics > span,
.feed-page .reel-trending-topics > span {
    grid-column: 1 / -1;
    color: rgba(208, 222, 242, 0.82);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.reel-filter-menu .reel-trending-topics a.reel-topic-chip,
.feed-page .reel-filter-menu .reel-trending-topics a.reel-topic-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.35rem;
    padding: 0.52rem 0.64rem;
    border: 1px solid rgba(143, 211, 255, 0.16);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.06);
}

.reel-filter-menu .reel-trending-topics a.reel-topic-chip span,
.feed-page .reel-filter-menu .reel-trending-topics a.reel-topic-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reel-filter-menu .reel-trending-topics a.reel-topic-chip small,
.feed-page .reel-filter-menu .reel-trending-topics a.reel-topic-chip small {
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.42rem;
    border-radius: 999px;
    color: #07172a;
    background: #8fd3ff;
    font-size: 0.68rem;
    font-weight: 950;
}

.reel-filter-menu .reel-trending-topics a.reel-topic-chip.is-active,
.feed-page .reel-filter-menu .reel-trending-topics a.reel-topic-chip.is-active {
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #d5291c, rgba(23, 92, 211, 0.42));
}

@media (min-width: 992px) {
    .app-header {
        position: static;
        top: auto;
        width: min(1180px, calc(100% - 48px));
        margin: 0.85rem auto 0;
        border: 1px solid rgba(148, 163, 184, 0.24) !important;
        border-radius: 22px;
        background:
            linear-gradient(112deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86)),
            rgba(255, 255, 255, 0.86);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(18px);
    }

    .app-header .container-fluid {
        min-height: 4.35rem;
        padding-inline: 1rem !important;
    }

    .app-brand {
        width: 156px;
        min-height: 48px;
    }

    .navbar-nav {
        align-items: center;
    }

    .navbar-nav .nav-link,
    .navbar-nav .nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.45rem;
        padding: 0.46rem 0.82rem;
        border-radius: 999px;
        color: #344054;
        font-weight: 850;
        position: relative;
        text-align: center;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-button:hover,
    .navbar-nav .nav-button:focus {
        color: #111827;
        background: #eef2f6;
    }

    .navbar-nav .nav-link-strong {
        color: #ffffff;
        background: #b42318;
        box-shadow: none;
    }

    .navbar-nav .nav-link-strong:hover,
    .navbar-nav .nav-link-strong:focus {
        color: #ffffff;
        background: #9f1f16;
    }

    .navbar-nav .nav-link.is-active::after {
        content: "";
        position: absolute;
        right: 0.82rem;
        bottom: 0.18rem;
        left: 0.82rem;
        height: 2px;
        border-radius: 999px;
        background: #111827;
    }

    .navbar-nav .nav-link-strong.is-active::after {
        background: #111827;
    }

    body:has(.news-detail-shell) {
        background:
            radial-gradient(circle at 14% 0%, rgba(23, 92, 211, 0.08), transparent 28rem),
            radial-gradient(circle at 86% 4%, rgba(180, 35, 24, 0.07), transparent 25rem),
            #f4f6f8;
    }

    .news-detail-shell {
        width: min(1120px, calc(100% - 56px));
        padding-top: 1.45rem;
    }

    .detail-back-link {
        width: fit-content;
        min-height: 2.5rem;
        padding: 0 0.86rem;
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: 999px;
        color: #344054;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    }

    .detail-back-link:hover,
    .detail-back-link:focus {
        color: #ffffff;
        border-color: #18202b;
        background: #18202b;
    }

    .news-detail-hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
        gap: clamp(1rem, 2vw, 1.6rem);
        align-items: stretch;
        margin-bottom: 1.1rem;
        padding: clamp(1rem, 2vw, 1.35rem);
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 30px;
        color: #ffffff;
        background:
            radial-gradient(circle at 8% 0%, rgba(23, 92, 211, 0.28), transparent 34%),
            radial-gradient(circle at 92% 6%, rgba(180, 35, 24, 0.22), transparent 34%),
            linear-gradient(128deg, #071527 0%, #101827 58%, #35161d 100%);
        box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
    }

    .news-detail-copy {
        align-content: center;
        gap: 0.86rem;
        padding: clamp(0.35rem, 1vw, 0.8rem);
    }

    .news-detail-copy h1 {
        max-width: 760px;
        font-size: clamp(2.1rem, 3.7vw, 3.85rem);
        line-height: 1.03;
    }

    .news-detail-copy .lead-copy {
        max-width: 700px;
        color: rgba(230, 237, 247, 0.78);
        font-size: clamp(1rem, 1.08vw, 1.14rem);
    }

    .news-detail-hero .article-meta span,
    .news-detail-hero .tag-list span,
    .news-detail-hero .tag-list a,
    .news-detail-hero .article-version-inline {
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(12px);
    }

    .news-detail-hero .article-meta span:first-child {
        border-color: rgba(213, 41, 28, 0.72);
        background: #d5291c;
    }

    .news-detail-hero .detail-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-height: 2.9rem;
        padding-inline: 1.05rem;
        border-radius: 999px;
        font-weight: 950;
        line-height: 1;
        vertical-align: middle;
    }

    .news-detail-hero .detail-actions .btn i {
        display: inline-grid;
        place-items: center;
        width: 1.05em;
        height: 1.05em;
        margin: 0;
        line-height: 1;
    }

    .news-detail-hero .detail-actions .btn-outline-secondary {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.08);
    }

    .news-detail-hero .detail-actions .btn-outline-secondary:hover,
    .news-detail-hero .detail-actions .btn-outline-secondary:focus {
        border-color: rgba(255, 255, 255, 0.62);
        background: rgba(255, 255, 255, 0.16);
    }

    .news-detail-hero .detail-engagement {
        width: fit-content;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .news-detail-hero .detail-engagement-button {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
    }

    .news-detail-hero .detail-engagement-button.is-liked {
        color: #ffffff;
        border-color: rgba(213, 41, 28, 0.9);
        background: rgba(213, 41, 28, 0.92);
    }

    .news-detail-hero .detail-engagement-button:hover,
    .news-detail-hero .detail-engagement-button:focus {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.38);
        background: rgba(255, 255, 255, 0.18);
    }

    .news-detail-media {
        align-self: stretch;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    }

    .news-detail-media img,
    .detail-image-placeholder {
        height: 100%;
        min-height: 360px;
        aspect-ratio: auto;
    }

    .news-detail-grid {
        grid-template-columns: minmax(0, 0.68fr) minmax(310px, 0.32fr);
        gap: 1.15rem;
        margin-top: 1.15rem;
    }

    .analysis-panel,
    .source-panel,
    .news-related-section,
    .comments-section {
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    }

    .analysis-panel,
    .source-panel,
    .news-related-section {
        padding: 1.15rem;
    }

    .source-panel {
        top: 6.3rem;
    }

    .source-panel h2 {
        font-size: clamp(1.7rem, 2vw, 2.45rem);
    }

    .source-panel .detail-list.compact {
        gap: 0.65rem;
    }

    .source-panel .detail-list div {
        padding: 0.82rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 16px;
        background: #f8fafc;
    }

    .analysis-summary {
        max-width: 720px;
        font-size: 1.02rem;
    }

    .analysis-score-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .analysis-score-grid span {
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 16px;
        background: #f8fafc;
    }

    .analysis-lists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .analysis-lists > div {
        min-width: 0;
        padding: 0.85rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 18px;
        background: #fbfcfe;
    }

    .analysis-lists .tag-list span,
    .analysis-lists .tag-list a {
        max-width: 100%;
        border-radius: 12px;
        overflow-wrap: anywhere;
    }

    .coverage-card {
        border-color: rgba(148, 163, 184, 0.22);
        border-radius: 20px;
        box-shadow: none;
    }

    .linked-article-card {
        border-color: rgba(148, 163, 184, 0.22);
        border-radius: 20px;
        box-shadow: none;
    }

    .linked-article-media {
        border-radius: 20px 20px 0 0;
    }

    .linked-article-body {
        padding: 0.95rem;
    }

    .comments-section {
        max-width: 920px;
        margin-inline: auto;
        overflow: hidden;
        padding: 0;
    }

    .news-detail-shell .instagram-comments {
        min-height: 0;
        background: transparent;
    }

    .news-detail-shell .instagram-comments .comments-head {
        padding: 1rem 1.15rem 0.85rem;
    }

    .news-detail-shell .comments-empty-state {
        min-height: 12rem;
    }

    .news-detail-shell .comment-composer-shell {
        margin-top: 0;
        background: rgba(248, 250, 252, 0.94);
    }
}

@media (max-width: 767.98px) {
    body:not(.feed-page):has(.index-shell) .app-header {
        background: rgba(255, 255, 255, 0.94);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(18px);
    }

    body:not(.feed-page):has(.index-shell) .app-brand {
        width: min(172px, 48vw);
    }

    body:not(.feed-page):has(.index-shell) .app-brand-logo {
        filter: none;
        opacity: 1;
    }

    body:not(.feed-page):has(.index-shell) .app-menu-toggle {
        border-color: rgba(15, 23, 42, 0.16);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    }

    body:not(.feed-page):has(.index-shell) .app-menu-lines span {
        background: #1f2937;
    }

    body:not(.feed-page):has(.index-shell) .navbar-collapse {
        border-color: rgba(15, 23, 42, 0.1);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    }

    body:not(.feed-page):has(.index-shell) .navbar-nav .nav-link,
    body:not(.feed-page):has(.index-shell) .navbar-nav .nav-button {
        color: #111827;
        background: #f1f5f9;
    }

    body:not(.feed-page):has(.index-shell) .index-hero,
    body:not(.feed-page):has(.index-shell) .index-mobile-start,
    body:not(.feed-page):has(.index-shell) .index-info-panel,
    body:not(.feed-page):has(.index-shell) .sponsored-panel,
    body:not(.feed-page):has(.index-shell) .index-side-column .index-info-panel,
    body:not(.feed-page):has(.index-shell) .index-side-column .sponsored-panel,
    body:not(.feed-page):has(.index-shell) .index-more-news-link,
    body:not(.feed-page):has(.index-shell) .article-card {
        border-color: rgba(15, 23, 42, 0.12);
        color: #0f172a;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.98)),
            #ffffff;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
        backdrop-filter: none;
    }

    body:not(.feed-page):has(.index-shell) .sponsored-panel img {
        border: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }

    body:not(.feed-page):has(.index-shell) .index-hero h1,
    body:not(.feed-page):has(.index-shell) .index-hero-panel strong,
    body:not(.feed-page):has(.index-shell) .index-info-panel h2,
    body:not(.feed-page):has(.index-shell) .sponsored-panel h2,
    body:not(.feed-page):has(.index-shell) .article-body h2,
    body:not(.feed-page):has(.index-shell) .article-times dd,
    body:not(.feed-page):has(.index-shell) .index-more-news-link strong {
        color: #0f172a;
        text-shadow: none;
    }

    body:not(.feed-page):has(.index-shell) .index-hero p,
    body:not(.feed-page):has(.index-shell) .index-hero-panel span,
    body:not(.feed-page):has(.index-shell) .index-info-panel p,
    body:not(.feed-page):has(.index-shell) .sponsored-panel p,
    body:not(.feed-page):has(.index-shell) .article-body p,
    body:not(.feed-page):has(.index-shell) .index-more-news-link span {
        color: #475467;
        text-shadow: none;
    }

    body:not(.feed-page):has(.index-shell) .eyebrow,
    body:not(.feed-page):has(.index-shell) .index-side-column .eyebrow,
    body:not(.feed-page):has(.index-shell) .article-times dt {
        color: #667085;
        text-shadow: none;
    }

    body:not(.feed-page):has(.index-shell) .article-body {
        background: transparent;
    }

    body:not(.feed-page):has(.index-shell) .tag-list span,
    body:not(.feed-page):has(.index-shell) .tag-list a {
        border-color: rgba(15, 23, 42, 0.06);
        color: #344054;
        background: #eef2f6;
    }

    body:not(.feed-page):has(.index-shell) .source-badge,
    body:not(.feed-page):has(.index-shell) .article-info-button {
        border-color: rgba(255, 255, 255, 0.72);
        color: #ffffff;
        background: rgba(15, 23, 42, 0.62);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
    }

    .index-page .app-footer,
    body:not(.feed-page):has(.index-shell) .app-footer {
        color: #18202b;
        border-color: rgba(15, 23, 42, 0.1) !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98)),
            #ffffff;
        box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.12);
    }

    .index-page .app-footer-brand p,
    body:not(.feed-page):has(.index-shell) .app-footer-brand p,
    .index-page .app-footer-bottom,
    body:not(.feed-page):has(.index-shell) .app-footer-bottom {
        color: #475467;
    }

    .index-page .app-footer h2,
    body:not(.feed-page):has(.index-shell) .app-footer h2 {
        color: #0f172a;
    }

    .index-page .app-footer a,
    body:not(.feed-page):has(.index-shell) .app-footer a {
        color: #344054;
    }

    .index-page .app-footer a:hover,
    .index-page .app-footer a:focus,
    body:not(.feed-page):has(.index-shell) .app-footer a:hover,
    body:not(.feed-page):has(.index-shell) .app-footer a:focus {
        color: var(--accent);
    }

    .index-page .app-footer-bottom,
    body:not(.feed-page):has(.index-shell) .app-footer-bottom {
        border-top-color: rgba(15, 23, 42, 0.1);
    }

    .index-page .footer-rss-link,
    body:not(.feed-page):has(.index-shell) .footer-rss-link {
        color: #0f172a !important;
        border-color: rgba(15, 23, 42, 0.12);
        background: #f8fafc;
    }

    .index-page .footer-rss-link:hover,
    .index-page .footer-rss-link:focus,
    body:not(.feed-page):has(.index-shell) .footer-rss-link:hover,
    body:not(.feed-page):has(.index-shell) .footer-rss-link:focus {
        color: #ffffff !important;
        border-color: var(--accent);
        background: var(--accent);
    }
}

.index-page .app-header {
    position: static;
    top: auto;
}

@media (min-width: 992px) {
    .index-page .app-header {
        position: static;
        top: auto;
        margin: 0.85rem auto 0;
    }
}

.stats-page {
    background:
        radial-gradient(circle at top left, rgba(23, 92, 211, 0.12), transparent 28rem),
        radial-gradient(circle at top right, rgba(180, 35, 24, 0.1), transparent 24rem),
        var(--surface);
}

.stats-shell {
    display: grid;
    gap: 1rem;
}

.stats-hero,
.stats-rhythm-card,
.provider-stat-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.stats-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: end;
    padding: clamp(1.2rem, 4vw, 2.35rem);
    color: #ffffff;
    background:
        linear-gradient(128deg, rgba(7, 21, 39, 0.98), rgba(13, 36, 66, 0.96) 54%, rgba(65, 22, 30, 0.98));
    overflow: hidden;
}

.stats-hero-copy {
    display: grid;
    gap: 0.85rem;
}

.stats-hero h1 {
    max-width: 800px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.stats-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: rgba(232, 238, 247, 0.78);
    font-size: 1.05rem;
    line-height: 1.62;
}

.stats-hero .eyebrow {
    color: #c8d7f3;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.stats-summary-grid article {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-summary-grid span,
.provider-stat-total span,
.provider-stat-metrics span {
    display: block;
    color: #98a8bf;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stats-summary-grid strong {
    display: block;
    margin-top: 0.35rem;
    color: #ffffff;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    line-height: 1;
}

.stats-rhythm-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(180, 35, 24, 0.04)),
        #ffffff;
}

.stats-rhythm-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    letter-spacing: 0;
}

.stats-rhythm-card .btn,
.provider-stat-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.provider-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1rem;
}

.provider-stat-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.provider-stat-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.provider-stat-logo {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.provider-stat-logo img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.provider-stat-logo span {
    color: var(--accent);
    font-weight: 950;
}

.provider-stat-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.2rem;
    letter-spacing: 0;
}

.provider-stat-head a {
    display: inline-block;
    margin-top: 0.15rem;
    color: var(--muted);
    font-weight: 850;
    text-decoration: none;
}

.provider-stat-head a:hover,
.provider-stat-head a:focus {
    color: var(--accent);
}

.provider-stat-status {
    justify-self: end;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    color: #475467;
    background: #eaecf0;
    font-size: 0.78rem;
    font-weight: 900;
}

.provider-stat-status.is-enabled {
    color: #ffffff;
    background: var(--green);
}

.provider-stat-total {
    padding: 0.95rem;
    border: 1px solid rgba(23, 92, 211, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.08), rgba(213, 41, 28, 0.035)),
        #f8fbff;
}

.provider-stat-total strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.provider-stat-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.provider-stat-metrics div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #ffffff;
}

.provider-stat-metrics strong {
    display: block;
    margin-top: 0.28rem;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
}

.provider-latest-article {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 21, 39, 0.03), rgba(23, 92, 211, 0.05)),
        #ffffff;
}

.provider-latest-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 5.75rem;
    border-radius: 8px;
    background: #eef2f6;
    color: var(--muted);
    overflow: hidden;
}

.provider-latest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.provider-latest-article > div {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

.provider-latest-article span,
.provider-latest-empty span {
    display: block;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.provider-latest-article h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.24;
    letter-spacing: 0;
}

.provider-latest-article h3 a {
    color: var(--ink);
    text-decoration: none;
}

.provider-latest-article h3 a:hover,
.provider-latest-article h3 a:focus {
    color: var(--accent);
}

.provider-latest-article p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.provider-latest-article p span {
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.provider-latest-article .btn {
    justify-self: start;
    padding-inline: 1rem;
}

.provider-latest-empty {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.76);
}

.provider-latest-empty strong {
    color: var(--ink);
}

.provider-stat-foot {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.provider-stat-foot strong {
    color: var(--ink);
}

@media (max-width: 767.98px) {
    .stats-shell {
        width: min(100% - 24px, 620px);
        padding-top: 1rem;
    }

    .stats-hero,
    .stats-rhythm-card {
        grid-template-columns: 1fr;
    }

    .stats-rhythm-card {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-rhythm-card .btn {
        justify-content: center;
        width: 100%;
    }

    .provider-stat-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .provider-stat-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .provider-stat-metrics {
        grid-template-columns: 1fr;
    }

    .provider-latest-article {
        grid-template-columns: 1fr;
    }

    .provider-latest-media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767.98px) {
    body.feed-page,
    body.feed-page .app-main,
    body.feed-page .feed-shell,
    body.feed-page .article-feed {
        max-width: 100vw;
        overflow-x: hidden;
    }

    body.feed-page .article-feed {
        height: 100svh !important;
        max-height: 100svh !important;
        min-height: 0 !important;
        overscroll-behavior: contain;
        overflow-anchor: none;
    }

    body.feed-page .article-card {
        grid-template-rows: minmax(0, 1fr) auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 100svh !important;
        min-height: 0 !important;
        max-height: 100svh !important;
        overflow: hidden !important;
        overflow-anchor: none;
        contain: layout paint;
    }

    body.feed-page .article-image {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    body.feed-page .article-image > img,
    body.feed-page .article-image img[data-feed-image],
    body.feed-page .article-image img[data-card-image] {
        display: block;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    body.feed-page .article-overlay-bar .source-badge img,
    body.feed-page .article-overlay-bar img[data-card-provider-image] {
        width: 1.45rem !important;
        height: 1.45rem !important;
        min-width: 1.45rem !important;
        min-height: 1.45rem !important;
        max-width: 1.45rem !important;
        max-height: 1.45rem !important;
        object-fit: contain !important;
        padding: 0.12rem !important;
    }

    body.feed-page .article-body {
        max-height: min(42svh, 24rem);
        overflow: hidden !important;
    }

    body.feed-page .article-text-tap-zone {
        display: grid !important;
        gap: 0.42rem !important;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    body.feed-page .article-body h2 {
        display: -webkit-box;
        margin: 0 !important;
        line-height: 1.08 !important;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    body.feed-page .article-body p {
        display: -webkit-box;
        margin: 0 !important;
        line-height: 1.33 !important;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

.source-filter-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
}

.source-filter-modal .source-filter-sheet {
    transform: none !important;
    will-change: auto;
}

.source-filter-modal .mobile-sheet-handle {
    display: none !important;
}

.feed-page .feed-empty {
    width: min(100% - 1.5rem, 42rem);
    margin: min(14svh, 6rem) auto 0;
    border: 1px solid rgba(143, 211, 255, 0.18);
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.28), transparent 32%),
        radial-gradient(circle at 92% 2%, rgba(213, 41, 28, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(7, 23, 42, 0.96), rgba(5, 11, 19, 0.98));
    box-shadow: 0 22px 70px rgba(2, 6, 23, 0.28);
}

.feed-page .feed-empty h1,
.feed-page .feed-empty p,
.feed-page .feed-empty .eyebrow {
    color: #ffffff;
}

.feed-page .feed-empty p:not(.eyebrow) {
    color: rgba(208, 222, 242, 0.82);
}

.feed-page .feed-empty .feed-end-links {
    justify-content: center;
}

.feed-page .feed-empty .feed-end-links a {
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.feed-page .feed-empty .feed-end-links a:first-child {
    border-color: transparent;
    background: #d5291c;
}

@media (max-width: 767.98px) {
    .feed-page .source-filter-modal .modal-dialog {
        align-items: center !important;
        min-height: calc(100% - 1rem) !important;
        max-width: min(26rem, calc(100vw - 1.4rem)) !important;
        margin: 0.5rem auto !important;
        padding: 0 !important;
    }

    .feed-page .source-filter-sheet {
        width: 100% !important;
        border-radius: 24px !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 767.98px) {
    body.feed-page .article-actions .btn,
    body.feed-page .related-drawer-card .same-event-actions a,
    body.feed-page .drawer-related-list article div a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 2.9rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1.08 !important;
        text-align: center !important;
    }

    body.feed-page .related-drawer-card .same-event-actions a,
    body.feed-page .drawer-related-list article div a {
        min-height: 2.38rem !important;
        font-size: 0.84rem !important;
    }

    body.feed-page .related-drawer {
        will-change: transform;
        touch-action: pan-y;
    }

    body.feed-page .comments-modal .modal-content,
    body.feed-page .share-sheet,
    body.feed-page .mobile-details-sheet {
        touch-action: pan-y;
    }
}

.theme-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.08), transparent 30rem),
        radial-gradient(circle at 96% 6%, rgba(213, 41, 28, 0.07), transparent 28rem),
        #f4f6f9;
}

.theme-shell {
    display: grid;
    gap: 1.4rem;
    width: min(100% - 2rem, 92rem);
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.theme-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
}

.theme-breadcrumb a {
    color: #b91f16;
    text-decoration: none;
}

.theme-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    gap: 1.5rem;
    align-items: stretch;
    padding: clamp(1.2rem, 2.6vw, 2.4rem);
    border: 1px solid rgba(126, 146, 176, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 0%, rgba(23, 92, 211, 0.15), transparent 26rem),
        radial-gradient(circle at 100% 8%, rgba(213, 41, 28, 0.11), transparent 22rem),
        linear-gradient(135deg, #ffffff, #f8fbff 65%, #ffffff);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.theme-hero h1 {
    max-width: 16ch;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.45rem, 6vw, 5rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.theme-hero p:not(.eyebrow) {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.5;
}

.theme-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.7rem;
    align-self: center;
    margin: 0;
}

.theme-stat-grid div {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.28rem;
    min-height: 7.6rem;
    padding: 1rem;
    border: 1px solid rgba(126, 146, 176, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 245, 255, 0.78));
    text-align: center;
}

.theme-stat-grid dt,
.theme-section-heading span,
.theme-panel .eyebrow {
    color: #66758f;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-stat-grid dt {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
}

.theme-stat-grid dd {
    margin: 0.18rem 0 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.theme-stat-grid div:nth-child(3) dd {
    font-size: clamp(1.18rem, 1.55vw, 1.58rem);
}

.theme-stat-grid div:last-child dt {
    font-size: clamp(0.68rem, 0.78vw, 0.78rem);
}

.theme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 1.2rem;
    align-items: start;
}

.theme-main,
.theme-sidebar {
    display: grid;
    gap: 1rem;
}

.theme-sidebar {
    position: sticky;
    top: 1rem;
}

.theme-panel {
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid rgba(126, 146, 176, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
    overflow: visible;
}

.theme-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.15;
}

.theme-section-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.theme-section-heading span {
    white-space: nowrap;
    font-size: 0.86rem;
}

.theme-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.6rem;
    align-items: center;
    margin: 0 0 1rem;
}

.theme-search-form input {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(126, 146, 176, 0.24);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    font-weight: 850;
    outline: none;
}

.theme-search-form input:focus {
    border-color: rgba(23, 92, 211, 0.42);
    box-shadow: 0 0 0 4px rgba(23, 92, 211, 0.1);
}

.theme-search-form button,
.theme-search-form a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.72rem 1rem;
    border: 0;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none;
}

.theme-search-form button {
    color: #ffffff;
    background: #d5291c;
}

.theme-search-form a {
    color: #20314d;
    background: rgba(23, 92, 211, 0.08);
}

.theme-article-list {
    display: grid;
    gap: 0.85rem;
}

.theme-empty-state {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    padding: 1.35rem;
    border: 1px solid rgba(126, 146, 176, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.07), rgba(213, 41, 28, 0.045)),
        #ffffff;
}

.theme-empty-state h3,
.theme-empty-state p {
    margin: 0;
}

.theme-empty-state p {
    color: #52637c;
    line-height: 1.5;
}

.theme-article-card {
    display: grid;
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    gap: 1rem;
    overflow: hidden;
    border: 1px solid rgba(126, 146, 176, 0.2);
    border-radius: 22px;
    background: #ffffff;
}

.theme-article-image {
    display: grid;
    min-height: 11rem;
    color: #ffffff;
    text-decoration: none;
    background:
        radial-gradient(circle at 20% 0%, rgba(23, 92, 211, 0.55), transparent 60%),
        #091525;
}

.theme-article-image img {
    width: 100%;
    height: 100%;
    min-height: 11rem;
    object-fit: cover;
}

.theme-article-image.is-empty {
    place-items: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
}

.theme-article-copy {
    display: grid;
    gap: 0.65rem;
    align-content: center;
    min-width: 0;
    padding: 1rem 1rem 1rem 0;
}

.theme-source-line {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

.theme-source-line time {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.theme-article-copy h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.12;
}

.theme-article-copy h3 a {
    color: inherit;
    text-decoration: none;
}

.theme-article-copy p {
    margin: 0;
    color: #52637c;
    font-size: 1rem;
    line-height: 1.45;
}

.theme-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.theme-article-actions .btn,
.theme-pagination .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0 1.15rem;
    font-weight: 900;
}

.theme-detail-button {
    color: #132238;
    border-color: rgba(19, 34, 56, 0.35);
    background: rgba(255, 255, 255, 0.82);
}

.theme-source-coverage,
.theme-timeline,
.theme-chip-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.theme-source-coverage > div,
.theme-source-coverage > a,
.theme-timeline > div,
.theme-chip-list a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 0.62rem;
    border: 1px solid rgba(126, 146, 176, 0.22);
    border-radius: 16px;
    background: rgba(247, 250, 255, 0.82);
    color: var(--ink);
    text-decoration: none;
}

.theme-source-coverage > a:hover,
.theme-source-coverage > a:focus,
.theme-source-coverage > a.is-active {
    border-color: rgba(23, 92, 211, 0.36);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(255, 255, 255, 0.86));
}

.theme-source-coverage strong,
.theme-timeline strong,
.theme-chip-list small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #062238;
    background: #9bd9ff;
    font-weight: 900;
}

.theme-timeline span,
.theme-chip-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.theme-pagination {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
}

.theme-pagination span {
    color: var(--muted);
    font-weight: 900;
}

.theme-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.theme-directory-card {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(126, 146, 176, 0.22);
    border-radius: 18px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(23, 92, 211, 0.06), rgba(213, 41, 28, 0.035)),
        #ffffff;
    text-decoration: none;
}

.theme-directory-card span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.12rem;
    font-weight: 950;
}

.theme-directory-card small,
.theme-directory-card time {
    color: #66758f;
    font-weight: 800;
}

.theme-directory-card:hover,
.theme-directory-card:focus {
    border-color: rgba(213, 41, 28, 0.28);
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .theme-hero,
    .theme-layout,
    .theme-article-card,
    .theme-directory-grid {
        grid-template-columns: 1fr;
    }

    .theme-sidebar {
        position: static;
    }

    .theme-article-copy {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .theme-page {
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.18), transparent 22rem),
            #081120;
    }

    .theme-shell {
        width: min(100% - 1rem, 42rem);
        padding-top: 0.8rem;
    }

    .theme-breadcrumb,
    .theme-breadcrumb a,
    .theme-breadcrumb strong {
        color: rgba(232, 241, 255, 0.82);
    }

    .theme-hero,
    .theme-panel {
        border-color: rgba(143, 211, 255, 0.18);
        color: #ffffff;
        background:
            radial-gradient(circle at 12% 0%, rgba(23, 92, 211, 0.25), transparent 18rem),
            radial-gradient(circle at 100% 0%, rgba(213, 41, 28, 0.12), transparent 16rem),
            #0a1627;
        box-shadow: none;
    }

    .theme-hero h1,
    .theme-panel h2,
    .theme-article-copy h3 {
        color: #ffffff;
    }

    .theme-hero p:not(.eyebrow),
    .theme-article-copy p,
    .theme-source-line time,
    .theme-pagination span {
        color: rgba(218, 229, 246, 0.8);
    }

    .theme-stat-grid {
        grid-template-columns: 1fr;
    }

    .theme-stat-grid div,
    .theme-article-card,
    .theme-directory-card,
    .theme-source-coverage > div,
    .theme-source-coverage > a,
    .theme-timeline > div,
    .theme-chip-list a {
        border-color: rgba(143, 211, 255, 0.18);
        background: rgba(255, 255, 255, 0.08);
    }

    .theme-stat-grid dt,
    .theme-panel .eyebrow,
    .theme-section-heading span {
        color: rgba(190, 208, 234, 0.9);
    }

    .theme-stat-grid dd,
    .theme-directory-card,
    .theme-directory-card small,
    .theme-directory-card time,
    .theme-source-coverage > div,
    .theme-source-coverage > a,
    .theme-timeline > div,
    .theme-chip-list a {
        color: #ffffff;
    }

    .theme-section-heading {
        align-items: start;
        flex-direction: column;
    }

    .theme-search-form {
        grid-template-columns: 1fr;
    }

    .theme-search-form input,
    .theme-search-form button,
    .theme-search-form a {
        width: 100%;
    }

    .theme-search-form input {
        color: #ffffff;
        border-color: rgba(143, 211, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }

    .theme-search-form input::placeholder {
        color: rgba(218, 229, 246, 0.72);
    }

    .theme-search-form a {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

    .theme-source-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .theme-detail-button {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.38);
        background: rgba(255, 255, 255, 0.12);
    }

    .theme-article-actions .btn,
    .theme-pagination .btn {
        flex: 1 1 auto;
    }
}

body.feed-page .portal-deal-card .article-actions {
    margin-top: auto;
}

body.feed-page .portal-deal-card .article-actions .btn {
    min-width: 0;
}

body.feed-page .portal-deal-card .article-times dd {
    white-space: normal;
}

body.feed-page .portal-feed-shell .feed-toolbar span {
    max-width: min(62vw, 720px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
