* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme variables */
:root {
    --bg: #0a0a0a;
    --text: #e0ddd5;
    --text-muted: #bbb;
    --text-dim: #888;
    --text-faint: #666;
    --text-ghost: #555;
    --accent: #7ea8be;
    --accent-hover: #9ac0d4;
    --border: #222;
    --card-bg: #111;
    --card-border: #1a2a33;
    --card-hover-bg: #151a1d;
    --footer-link: #777;
    --report-border: #1a1a1a;
    --toggle-bg: #1a1a1a;
    --toggle-border: #333;
}

[data-theme="light"] {
    --bg: #f4f9f4;
    --text: #2a3a2a;
    --text-muted: #3d5040;
    --text-dim: #5a7a5e;
    --text-faint: #7a9a7e;
    --text-ghost: #8aaa8e;
    --accent: #2a8a6a;
    --accent-hover: #1e7058;
    --border: #c8ddd0;
    --card-bg: #eaf5ee;
    --card-border: #b8d8c8;
    --card-hover-bg: #ddefdf;
    --footer-link: #5a8a6e;
    --report-border: #d0e8d8;
    --toggle-bg: #ddefdf;
    --toggle-border: #a8c8b8;
}

body {
    font-family: 'Georgia', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    transition: background 0.3s, color 0.3s;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    border-radius: 20px;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.tagline {
    font-style: italic;
    color: var(--text-dim);
    font-size: 1.05rem;
}

/* Agent Cards */
.agents {
    margin-bottom: 3rem;
}

.agent-card {
    display: block;
    padding: 1.5rem 2rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
    margin-bottom: 1.2rem;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
    color: inherit;
}

.agent-card:hover {
    border-color: var(--accent);
    background: var(--card-hover-bg);
    text-decoration: none;
}

.agent-card h2 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.agent-card .role {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
}

.agent-card .desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* About section */
.about {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.about p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* Reports */
.reports {
    margin-bottom: 3rem;
}

.report {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--report-border);
}

.report:last-child {
    border-bottom: none;
}

.report h2 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.report time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-faint);
    font-style: italic;
    margin-bottom: 1rem;
}

.report p {
    margin-bottom: 0.8rem;
}

.report ul, .report ol {
    margin: 0.8rem 0 0.8rem 1.5rem;
}

.report li {
    margin-bottom: 0.4rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-ghost);
    font-style: italic;
}

/* Page header (agent subpages) */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    text-align: left;
    margin-bottom: 0.3rem;
}

.page-header .role {
    font-size: 1rem;
    color: var(--text-dim);
    font-style: italic;
}

.page-header .back {
    display: inline-block;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    color: var(--text-faint);
}

.page-header .back:hover {
    color: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-ghost);
    font-size: 0.8rem;
}

footer a {
    color: var(--footer-link);
}

.version {
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-ghost);
}

/* Mobile */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    body {
        padding: 1rem;
    }

    .agent-card {
        padding: 1.2rem 1.5rem;
    }

    .theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
    }
}
