:root {
    color-scheme: dark;
    --bg: #0f1115;
    --panel: #171a21;
    --panel-border: #2b3240;
    --text: #e8ecf3;
    --muted: #a6afbd;
    --green: #1f9d55;
    --yellow: #c28a00;
    --red: #c23b3b;
    --gray: #566074;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.page-header h1 {
    margin: 0 0 6px;
    font-size: 2rem;
}

.page-header p {
    margin: 0 0 28px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    justify-content: start;
}

.card {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.card.ok {
    border-color: rgba(31, 157, 85, 0.6);
}

.card.warn {
    border-color: rgba(194, 138, 0, 0.6);
}

.card.error {
    border-color: rgba(194, 59, 59, 0.6);
}

.card.loading {
    opacity: 0.9;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gray);
    color: white;
}

.badge.ok {
    background: var(--green);
}

.badge.warn {
    background: var(--yellow);
    color: #181818;
}

.badge.error {
    background: var(--red);
}

.headline-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.02);
}

.headline-box.fresh {
    border-color: rgba(31, 157, 85, 0.6);
    background: rgba(31, 157, 85, 0.14);
}

.headline-box.stale {
    border-color: rgba(86, 96, 116, 0.6);
    background: rgba(86, 96, 116, 0.14);
}

.headline-box.error {
    border-color: rgba(194, 59, 59, 0.6);
    background: rgba(194, 59, 59, 0.14);
}

.headline-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.meta {
    margin: 0;
    display: grid;
    gap: 12px;
}

.meta-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    align-items: start;
}

.meta-row dt {
    color: var(--muted);
}

.meta-row dd {
    margin: 0;
    word-break: break-word;
}