
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --border: #d0d7de;
  --text: #1f2328;
  --text-muted: #57606a;
  --accent: #0969da;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; gap: 16px; }
.header h1 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.header .subtitle { font-size: 0.85rem; color: var(--text-muted); }

/* ── Page layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ── Run grid (homepage) ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; text-decoration: none; display: block; color: inherit; }
.card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(9,105,218,0.1); transform: translateY(-2px); text-decoration: none; }
.card-screenshot { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; background: #eaeef2; display: flex; align-items: center; justify-content: center; }
.card-screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card-screenshot .placeholder { color: var(--text-muted); font-size: 0.85rem; }
.card-body { padding: 14px 16px; }
.card-date { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.card-duration { font-size: 0.8rem; color: var(--text-muted); margin-left: 6px; }
.card-tokens { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.card-scores { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; color: #fff; padding: 2px 8px; border-radius: 20px; }
.empty { text-align: center; color: var(--text-muted); padding: 80px 0; font-size: 1.1rem; }

/* ── Back link ── */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.back:hover { color: var(--accent); text-decoration: none; }

/* ── Run meta ── */
.run-meta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.run-meta-item { display: flex; flex-direction: column; gap: 2px; }
.run-meta-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.run-meta-value { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.run-meta-link { font-size: 0.85rem; color: var(--accent); }

/* ── Fake browser ── */
.browser { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(31,35,40,0.06); }
.browser-chrome { background: #eaeef2; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-dot.red    { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green  { background: #28c840; }
.browser-url { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.browser-chrome-badges { display: flex; gap: 6px; flex-shrink: 0; }
.browser-tabs { display: flex; background: #eaeef2; border-bottom: 1px solid var(--border); overflow-x: auto; }
.browser-tab { padding: 10px 18px; font-size: 0.82rem; color: var(--text-muted); cursor: pointer; border: none; background: transparent; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.12s, border-color 0.12s; }
.browser-tab:hover { color: var(--text); }
.browser-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--surface); }
.browser-content { background: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel img { width: 100%; display: block; }
.tab-panel .no-screenshot { padding: 60px; text-align: center; color: #57606a; font-size: 0.9rem; background: #f6f8fa; }

/* ── Release banner ── */
.release-banner { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.release-banner + .release-banner { border-top: none; padding-top: 0; }
.release-tag { font-size: 0.8rem; font-weight: 700; color: var(--accent); background: #dbeafe; border: 1px solid #93c5fd; border-radius: 20px; padding: 2px 10px; white-space: nowrap; flex-shrink: 0; }
.release-notes { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.release-notes ul { margin: 0; padding-left: 1.2em; }
.release-notes li { margin: 0; }
.release-notes p { margin: 0; }
.release-notes code { background: #f0f0f0; border-radius: 3px; padding: 1px 4px; font-size: 0.8em; }
