:root {
    --bg: #0f1115;
    --card: #191d24;
    --card-2: #212632;
    --text: #e6e9ef;
    --muted: #8b93a3;
    --accent: #35c46a;
    --notif: #f0a838;
    --border: #2a2f3a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
}

header {
    padding: 24px 20px 12px;
    max-width: 760px;
    margin: 0 auto;
}

h1 { margin: 0 0 4px; font-size: 22px; }

.meta { color: var(--muted); font-size: 13px; }

.live { color: var(--accent); font-weight: 600; }
.stale { color: var(--notif); font-weight: 600; }

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.messages { list-style: none; margin: 0; padding: 0; }

.messages li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
}

.row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.sender { font-weight: 600; }

.badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--card-2);
    color: var(--accent);
}
.badge.notification { color: var(--notif); }

.time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.body { white-space: pre-wrap; word-break: break-word; }

.empty {
    color: var(--muted);
    text-align: center;
    padding: 48px 12px;
    font-size: 15px;
}

code {
    background: var(--card-2);
    padding: 1px 6px;
    border-radius: 6px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f4f6fa; --card: #ffffff; --card-2: #eef1f6;
        --text: #1a1e26; --muted: #6b7280; --border: #e2e6ee;
    }
}
