:root {
  --bg: #0b0f14;
  --panel: #121822;
  --panel2: #0f1520;
  --text: #e8eef6;
  --muted: #a7b3c4;
  --border: rgba(255, 255, 255, 0.10);
  --focus: rgba(120, 180, 255, 0.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 18px;
}
.brand { font-weight: 700; letter-spacing: 0.2px; }
.nav a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
}
.nav a.active { background: rgba(255,255,255,0.08); color: var(--text); }
.nav a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 12;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

@media (min-width: 900px) {
  .card.span-6 { grid-column: span 6; }
  .card.span-4 { grid-column: span 4; }
}

.h1 { font-size: 28px; margin: 0 0 10px; }
.h2 { font-size: 18px; margin: 0 0 8px; }
.p { color: var(--muted); margin: 0 0 12px; line-height: 1.45; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }

hr.sep { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }

button, input, select, textarea {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--panel2);
  color: var(--text);
  padding: 10px 12px;
}

button {
  cursor: pointer;
  font-weight: 600;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap; /* keeps pills from breaking oddly */
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--text);
  display: inline-block;
  white-space: nowrap; /* keeps `npx playwright codegen` together */
}

.notice {
  padding: 10px 12px;
  background: rgba(120,180,255,0.10);
  border: 1px solid rgba(120,180,255,0.22);
  border-radius: 14px;
  color: var(--text);
}

.hidden { display: none !important; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(0,0,0,0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  max-width: 340px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table th {
  background: rgba(255,255,255,0.06);
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}
.table tr:last-child td { border-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.hover-reveal { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.hover-reveal .reveal-target { display: none; }
.hover-reveal:hover .reveal-target { display: inline-flex; }