html,
body {
    margin: 0;
    padding: 0;
    background-color: #0b1220;
    color: #f3f6fb;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    min-height: 100vh;
}

body {
    padding: 0 16px 90px 16px;
    box-sizing: border-box;
    max-width: 540px;
    margin: 0 auto;
    background-image:
        radial-gradient(circle at 18% 0%, rgba(60, 110, 200, 0.18) 0%, rgba(11, 18, 32, 0) 55%),
        radial-gradient(circle at 80% 100%, rgba(220, 60, 90, 0.12) 0%, rgba(11, 18, 32, 0) 50%);
}

#commsInfoDiv {
    text-align: center;
    color: #c9d2e2;
    font-size: 13px;
    padding: 12px 0 6px 0;
}

.commsPill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c9d2e2;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
    vertical-align: middle;
}

.statusDot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff5d6c;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(255, 93, 108, 0.7);
}

#commsClientCounts {
    color: #94a0b6;
    text-decoration: none;
    margin-left: 8px;
    vertical-align: middle;
}

.backToAppsButton {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c9d2e2;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
    vertical-align: middle;
    text-decoration: none;
}

.newsHeader {
    text-align: center;
    padding: 14px 0 12px 0;
    border-bottom: 1px solid #1f2a40;
}

.newsHeaderTitle {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #ff5d6c;
    text-transform: uppercase;
}

.newsHeaderSub {
    font-size: 12px;
    color: #94a0b6;
    letter-spacing: 2px;
    margin-top: 6px;
    text-transform: uppercase;
}

.newsHeaderSep {
    color: #4d5670;
    margin: 0 8px;
}

.newsArticles {
    margin-top: 12px;
    margin-bottom: 12px;
}

.newsArticleRow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: stretch;
    -webkit-box-align: stretch;
    align-items: stretch;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.newsArticleRow:last-child {
    margin-bottom: 0;
}

a.newsArticleRow,
a.newsArticleRow:visited,
a.newsArticleRow:hover {
    color: inherit;
    text-decoration: none;
}

a.newsArticleRow.newsArticleLink {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 93, 108, 0.18);
    -webkit-transition: background-color 120ms, border-color 120ms;
    transition: background-color 120ms, border-color 120ms;
}

a.newsArticleRow.newsArticleLink:active {
    background-color: rgba(255, 93, 108, 0.12);
    border-color: rgba(255, 93, 108, 0.55);
}

.newsArticleThumb {
    width: 92px;
    flex-shrink: 0;
    background-color: #131c30;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.newsArticleText {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 10px 12px;
    min-width: 0;
}

.newsArticleTextOnly .newsArticleText {
    padding: 12px 14px;
}

.newsArticleTitle {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsArticleSnippet {
    font-size: 12px;
    line-height: 1.4;
    color: #aab4c5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsArticleMeta {
    font-size: 10px;
    color: #6e7993;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.newsArticleMetaSep {
    margin: 0 6px;
    color: #3a4358;
}

.newsControls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    -webkit-box-pack: justify;
    justify-content: space-between;
    margin: 14px 0 0 0;
}

.newsBtn {
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 12px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-transition: background-color 100ms, transform 100ms;
    transition: background-color 100ms, transform 100ms;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    border: none;
    color: #fff;
}

.newsBtn:active {
    -webkit-transform: translateY(2px);
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.newsBtnPrimary {
    background-color: #ff5d6c;
    color: #fff;
    width: 36%;
}

.newsBtnSecondary {
    background-color: #1a2237;
    color: #d9e1f0;
    border: 1px solid #2c3a5a;
    width: 30%;
}

.newsCategoriesPanel {
    margin-top: 18px;
    padding: 14px 4px 4px 4px;
    border-top: 1px solid #1f2a40;
}

.newsCategoriesHeader {
    margin-bottom: 10px;
}

.newsCategoriesTitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #ff5d6c;
    text-transform: uppercase;
}

.newsCategoriesHint {
    font-size: 12px;
    color: #6e7993;
    margin-top: 2px;
}

.newsCategoriesGrid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.rssSourcesPanel {
    padding-top: 14px;
}

.rssSourceText {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 154px;
    resize: vertical;
    background-color: rgba(0, 0, 0, 0.28);
    border: 1px solid #2c3a5a;
    border-radius: 8px;
    color: #f3f6fb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.45;
    padding: 12px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.rssSourceText:focus {
    border-color: #ff5d6c;
    box-shadow: 0 0 0 2px rgba(255, 93, 108, 0.18);
}

.rssSourcesActions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    -webkit-box-pack: justify;
    justify-content: space-between;
    margin: 10px 0 12px 0;
}

.rssSourcesActions .newsBtnPrimary {
    width: 62%;
}

.rssSourcesActions .newsBtnSecondary {
    width: 35%;
}

.rssSourceList {
    margin: 0 0 14px 0;
}

.rssSourceRow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.rssSourceRowError {
    border-color: rgba(255, 93, 108, 0.42);
}

.rssSourceBody {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.rssSourceName {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.rssSourceUrl {
    color: #94a0b6;
    font-size: 11px;
    line-height: 1.25;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rssSourceStatus {
    color: #6e7993;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}

.rssSourceRowError .rssSourceStatus {
    color: #ff8686;
}

.rssSourceRemove {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #2c3a5a;
    border-radius: 8px;
    background-color: #1a2237;
    color: #d9e1f0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    padding: 10px 9px;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

.rssSourceRemove:disabled {
    opacity: 0.45;
    cursor: default;
}

.newsCatBtn {
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #2c3a5a;
    color: #c9d2e2;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    -webkit-transition: background-color 120ms, border-color 120ms, color 120ms;
    transition: background-color 120ms, border-color 120ms, color 120ms;
}

.newsCatBtn.newsCatActive {
    background-color: #ff5d6c;
    border-color: #ff5d6c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 93, 108, 0.4);
}

.newsCatBtn:active {
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
}

.newsRefreshBtn {
    width: 100%;
    background-color: #1a2237;
    color: #d9e1f0;
    border: 1px solid #2c3a5a;
}

#status {
    text-align: center;
    color: #ff8686;
    font-size: 12px;
    min-height: 16px;
    margin-top: 6px;
}

@media (max-width: 360px) {
    body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .newsBtn {
        font-size: 14px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .backToAppsButton {
        margin-left: 0;
        margin-top: 8px;
    }

    .newsArticleThumb {
        width: 72px;
    }

    .newsArticleTitle {
        font-size: 13px;
    }

    .rssSourcesActions .newsBtn {
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .rssSourceText {
        font-size: 12px;
    }

    .rssSourceRemove {
        padding-left: 7px;
        padding-right: 7px;
    }
}
