/* Shared by every page: theme, page frame and the top bar. Page-specific styles stay in the page. */
:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, sans-serif;

    --bg: #0b1220;
    --panel: #111c2e;
    --border: #263244;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --faint: #64748b;
    --accent: #7dd3fc;
    --ok: #22c55e;
    --busy: #f59e0b;
    --bad: #ef4444;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
}

/* Top bar: the name on the left, the user on the far right. */
.topbar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}

.topbar .brand {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    text-decoration: none;
}

.topbar .user {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

.topbar .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--border);
    color: var(--muted);
}

.page {
    flex: 1;
}
