:root {
  --accent: #5fabdc;
  --ink: #293c4b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
}
.home {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}
h1 small {
  font-size: .9rem;
  color: #889;
  font-weight: 400;
}
.demo-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.newtab {
  color: var(--accent);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
}
.newtab:hover {
  text-decoration: underline;
}
.demo iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
}
.src pre {
  background: #0f1720;
  border-radius: 10px;
  overflow: auto;
  line-height: 1.5;
}
.src pre code {
  display: block;
  padding: 16px;
  color: #e6edf3;
}
.badge {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge.live {
  background: #e3f4e1;
  color: #246b1e;
}
.badge.snapshot {
  background: #fdf0d5;
  color: #8a5a00;
}
.badge.failed {
  background: #f6dada;
  color: #9a1e1e;
}
