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

:root {
    --bg: #ffffff;
    --bg-card: #f6f8fa;
    --bg-hover: #eef1f5;
    --border: #d8dee4;
    --border-light: #c5ccd3;
    --text: #1f2328;
    --text-bright: #0d1117;
    --text-dim: #656d76;
    --accent: #0969da;
    --accent-bg: #0969da1a;
    --green: #1a7f37;
    --green-bg: #1a7f371a;
    --yellow: #9a6700;
    --yellow-bg: #9a67001a;
    --purple: #8250df;
    --purple-bg: #8250df1a;
    --red: #cf222e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* ── Header ── */
.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: 2.2rem;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.hero .subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}
.hero .links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
.tab {
    padding: 0.65rem 1.2rem;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.card h3 {
    color: var(--text-bright);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.card p { color: var(--text); font-size: 0.92rem; }

/* ── Experiment cards ── */
.experiment-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.experiment-card .exp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.experiment-card h3 {
    color: var(--text-bright);
    font-size: 1.15rem;
    margin: 0;
}
.exp-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}
.exp-tag.generalization { background: var(--green-bg); color: var(--green); }
.exp-tag.video { background: var(--purple-bg); color: var(--purple); }
.exp-tag.pretraining { background: var(--yellow-bg); color: var(--yellow); }
.exp-tag.real-robot { background: var(--accent-bg); color: var(--accent); }
.experiment-card .desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.experiment-card .key-questions {
    list-style: none;
    padding: 0;
}
.experiment-card .key-questions li {
    font-size: 0.88rem;
    color: var(--text);
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.experiment-card .key-questions li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

/* ── Status / Todos ── */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.status-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.status-item .label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.status-item .value { font-size: 1.6rem; font-weight: 700; color: var(--text-bright); }
.status-item .sub { font-size: 0.8rem; color: var(--text-dim); }

.checklist { list-style: none; padding: 0; }
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.checklist li:last-child { border-bottom: none; }
.check { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.check.done { color: var(--green); }
.check.todo { color: var(--border-light); }

/* ── Agent Reports ── */
.agent-reports { margin-bottom: 1.5rem; }
.agent-reports h4 {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.agent-reports ul { list-style: none; }
.agent-reports li {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.agent-reports li:hover { background: var(--bg-hover); border-radius: 4px; }
.agent-reports .date { color: var(--text-dim); font-size: 0.8rem; }
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ── Nav ── */
nav { margin-bottom: 1.5rem; font-size: 0.9rem; }
nav a { color: var(--accent); }

/* ── Report page styles ── */
header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
header h1 { color: var(--text-bright); font-size: 1.8rem; margin-bottom: 0.5rem; }

.meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-dim); }
.meta .agent {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}
.meta .git-hash { font-family: monospace; }

main { display: flex; flex-direction: column; gap: 1.5rem; }
h2 { color: var(--text-bright); font-size: 1.3rem; margin: 1rem 0 0.5rem; }
h3 { color: var(--text); font-size: 1.1rem; margin: 0.5rem 0; }

.section { padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.section.text p { color: var(--text); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
caption { text-align: left; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-dim); }
th { text-align: left; padding: 0.6rem; border-bottom: 2px solid var(--border-light); color: var(--text-bright); font-weight: 600; }
td { padding: 0.6rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--bg-hover); }

/* Media */
.section.media { text-align: center; padding: 0.5rem; }
video, img { max-width: 100%; border-radius: 6px; }
video { background: #000; }
.caption { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.5rem; }

/* Code */
.section.code pre {
    background: var(--bg);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    color: var(--text);
}

/* Metrics */
.section.metric {
    display: inline-flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.75rem 1rem;
}
.metric .label { color: var(--text-dim); font-size: 0.85rem; }
.metric .value { color: var(--text-bright); font-size: 1.5rem; font-weight: 700; }
.metric .delta { font-size: 0.85rem; color: var(--green); }
