html:has(.ann-page),
body:has(.ann-page) {
    background: #16181f !important;
}

.ann-page {
    --ann-bg: #16181f;
    --ann-card: #1e212b;
    --ann-inset: #171922;
    --ann-text: #e8ecf4;
    --ann-muted: #8b93a7;
    --ann-blue: #3b82f6;
    --ann-blue-btn: #2563eb;
    --ann-green: #22c55e;
    --ann-pill: #2a2d38;
    background: var(--ann-bg);
    min-height: 70vh;
    padding: 28px 16px 88px;
}

.ann-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.ann-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 28px;
}

.ann-filter {
    border: 0;
    background: var(--ann-pill);
    color: #9aa3b2;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ann-filter:hover {
    color: #fff;
}

.ann-filter.is-active {
    background: var(--ann-blue);
    color: #fff;
}

.ann-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ann-card {
    background: var(--ann-card);
    border-radius: 16px;
    border-left: 3px solid var(--ann-green);
    padding: 22px 24px 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.ann-card.is-system { border-left-color: #f59e0b; }
.ann-card.is-event { border-left-color: #a855f7; }
.ann-card.is-info { border-left-color: var(--ann-blue); }

.ann-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.ann-title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.ann-badge {
    flex-shrink: 0;
    background: rgba(34, 197, 94, .16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .32);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ann-card.is-system .ann-badge {
    background: rgba(245, 158, 11, .16);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, .32);
}

.ann-card.is-event .ann-badge {
    background: rgba(168, 85, 247, .16);
    color: #c084fc;
    border-color: rgba(168, 85, 247, .32);
}

.ann-card.is-info .ann-badge {
    background: rgba(59, 130, 246, .16);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, .32);
}

.ann-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--ann-muted);
    font-size: 13px;
    margin: 8px 0 16px;
}

.ann-meta i {
    font-size: 12px;
}

.ann-body-box {
    background: var(--ann-inset);
    border-radius: 12px;
    padding: 16px 18px 14px;
    border-left: 3px solid var(--ann-blue);
}

.ann-subtitle {
    margin: 0 0 8px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.ann-text {
    margin: 0;
    color: #a8b0c0;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.ann-text.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.ann-more {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #60a5fa;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.ann-more.is-visible {
    display: inline-flex;
}

.ann-more i {
    font-size: 11px;
    transition: transform .15s ease;
}

.ann-more.is-open i {
    transform: rotate(180deg);
}

.ann-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.ann-foot p {
    margin: 0;
    color: #7d8699;
    font-size: 12px;
    line-height: 1.5;
    max-width: 64%;
}

.ann-fb-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ann-blue-btn);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: filter .15s ease;
}

.ann-fb-btn:hover {
    filter: brightness(1.08);
}

.ann-empty {
    text-align: center;
    color: var(--ann-muted);
    padding: 48px 16px;
    background: var(--ann-card);
    border-radius: 16px;
}

.ann-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ann-modal.is-open {
    display: flex;
}

.ann-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 16, .72);
}

.ann-modal-box {
    position: relative;
    width: min(520px, 100%);
    background: #1e212b;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.ann-modal-box h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
}

.ann-modal-box p {
    margin: 0 0 14px;
    color: #8b93a7;
    font-size: 13px;
}

.ann-modal-box textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    background: #171922;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #e8ecf4;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
}

.ann-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.ann-modal-actions button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.ann-cancel {
    background: #2a2d38;
    color: #d1d5db;
}

.ann-send {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 720px) {
    .ann-title { font-size: 18px; }
    .ann-card { padding: 18px 16px 14px; }
    .ann-foot {
        flex-direction: column;
        align-items: stretch;
    }
    .ann-foot p { max-width: none; }
    .ann-fb-btn { justify-content: center; }
}
