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;
}

.newsCurrentWrap {
    margin: 14px 0 12px 0;
    background-color: #050a14;
    border: 1px solid #1f2a40;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.newsCurrent {
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    position: relative;
    background-color: #050a14;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.newsCurrentPlaceholder {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: -10px;
    text-align: center;
    color: #5a6478;
    font-size: 13px;
    font-style: italic;
}

.newsArticles {
    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;
}

.newsArticleThumb.newsArticleThumbEmpty {
    background-image: linear-gradient(135deg, #1a263e 0%, #0e1525 100%);
}

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

.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 8px 0;
}

.newsControlsRow {
    text-align: center;
    margin-bottom: 6px;
}

.newsBtn,
.newsLinkBtn {
    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);
}

.newsBtn {
    border: none;
    color: #fff;
}

.newsBtn:active,
.newsLinkBtn: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%;
}

.newsLinkBtn {
    display: block;
    background-color: transparent;
    color: #ff97a1;
    border: 1px solid #2c3a5a;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    text-decoration: none;
    box-shadow: none;
    text-align: center;
}

.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;
}

.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;
    }
}
