:root {
    --bg: #0d1117;
    --card: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --muted: #8b949e;
    --accent: #f78166;
    --blue: #58a6ff;
    --green: #3fb950;
    --yellow: #d29922;
    --red: #f85149;
    --pi-green: #3fb950;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.container { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }

.header { border-bottom: 2px solid var(--pi-green); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.header .emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.header .subtitle { color: var(--muted); font-size: 1.05rem; margin-top: 0.3rem; }
.header .meta { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.header .meta-item { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.header .meta-item strong { color: var(--text); }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; margin-bottom: 1.5rem; overflow-x: auto; }
.card h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.75rem; color: var(--accent); }
.card p { margin-bottom: 0.75rem; }
.card ul, .card ol { margin-left: 1.5rem; margin-bottom: 0.75rem; }
.card li { margin-bottom: 0.3rem; }
.card code { background: rgba(110,118,129,0.2); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.88em; }
.card strong { color: var(--text); font-weight: 600; }

/* Test protocol grid */
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1rem 0; }
.test-item { background: rgba(110,118,129,0.1); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; text-align: center; }
.test-item .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.test-item .value { font-size: 0.9rem; font-weight: 600; }

/* Results table */
.results-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 1rem 0; }
.results-table th { background: rgba(110,118,129,0.15); padding: 0.6rem 0.5rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); white-space: nowrap; }
.results-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid rgba(48,54,61,0.5); white-space: nowrap; }
.results-table tr:hover { background: rgba(110,118,129,0.05); }
.results-table .model { font-weight: 600; color: var(--blue); }
.results-table .fast { color: var(--green); font-weight: 600; }
.results-table .slow { color: var(--red); font-weight: 600; }
.results-table .ok { color: var(--green); }
.results-table .timeout { color: var(--red); }
.results-table .think-yes { color: var(--yellow); }
.results-table .think-no { color: var(--muted); }

/* Tier badges */
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: rgba(63,185,80,0.15); color: var(--green); border: 1px solid rgba(63,185,80,0.3); }
.badge-yellow { background: rgba(210,153,34,0.15); color: var(--yellow); border: 1px solid rgba(210,153,34,0.3); }
.badge-red { background: rgba(248,81,73,0.15); color: var(--red); border: 1px solid rgba(248,81,73,0.3); }
.badge-blue { background: rgba(88,166,255,0.15); color: var(--blue); border: 1px solid rgba(88,166,255,0.3); }

/* Findings */
.finding { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.finding:last-child { border-bottom: none; }
.finding h3 { display: flex; align-items: center; gap: 0.5rem; }
.finding .number { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; background: var(--accent); color: var(--bg); border-radius: 50%; font-size: 0.85rem; font-weight: 700; }

/* Recommendations */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1rem 0; }
.rec-card { background: rgba(110,118,129,0.08); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.rec-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--accent); }
.rec-card .model { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid rgba(48,54,61,0.3); }
.rec-card .model:last-child { border-bottom: none; }
.rec-card .model-name { color: var(--blue); font-weight: 500; }
.rec-card .model-meta { color: var(--muted); font-size: 0.8rem; }

/* Avoid list */
.avoid-list { list-style: none; margin-left: 0; }
.avoid-list li { padding: 0.5rem 0; border-bottom: 1px solid rgba(48,54,61,0.3); display: flex; align-items: center; gap: 0.5rem; }
.avoid-list li:last-child { border-bottom: none; }
.avoid-list .x { color: var(--red); font-weight: bold; }

/* Stats bar */
.stats-bar { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }
.footer a { color: var(--blue); text-decoration: none; }

@media (max-width: 768px) {
    .results-table { font-size: 0.75rem; }
    .results-table .hide-mobile { display: none; }
    .test-grid { grid-template-columns: repeat(2, 1fr); }
}