* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, system-ui, sans-serif;
  background: #f6f7f9;
  color: #1f2330;
  line-height: 1.5;
}
.topbar {
  background: #1f2330;
  color: #fff;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.topbar .brand { font-weight: 700; letter-spacing: 0.05em; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.topbar a { color: #cdd3df; text-decoration: none; }
.topbar a:hover { color: #fff; }
.container { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
h1 { margin-top: 0; }
.hero { padding: 2rem 0; }
.hero p { color: #6b7280; font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.card {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s, box-shadow 0.1s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.card h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: #6b7280; font-size: 0.92rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; }
.table th, .table td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.table th { background: #eef0f4; font-weight: 600; }
.table tbody tr:last-child td { border-bottom: none; }
code { background: #eef0f4; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
code.props { display: inline-block; max-width: 360px; white-space: pre-wrap; word-break: break-word; }
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin: 1rem 0; }
.alert.success { background: #def7ec; color: #03543f; }
.alert.error { background: #fde8e8; color: #9b1c1c; }
.muted { color: #6b7280; }
form { margin: 0; }
.inline-form { display: inline-flex; gap: 0.5rem; align-items: center; margin: 0.25rem 0; }
.cypher-form, .two-col form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 600px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; color: #4b5563; }
input[type=text], input[type=number], select, textarea {
  padding: 0.5rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
button {
  padding: 0.5rem 1rem;
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.92rem;
}
button:hover { background: #1d4ed8; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
button.small { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.graph-list { list-style: none; padding: 0; }
.graph-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.graph-list a { color: #2563eb; text-decoration: none; font-weight: 500; }
.graph-list a:hover { text-decoration: underline; }
footer { text-align: center; padding: 2rem; color: #9ca3af; }
section { margin-bottom: 2rem; }
