* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f1117;
  color: #e2e8f0;
  min-height: 100vh;
}
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }
nav {
  background: #1a1d2e;
  border-bottom: 1px solid #2d3148;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
nav .brand { font-size: 1.3rem; font-weight: 700; color: #fff; }
nav .spacer { flex: 1; }
.container { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }
.card {
  background: #1a1d2e;
  border: 1px solid #2d3148;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color .2s;
}
.card:hover { border-color: #60a5fa; }
.card h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.card .meta { font-size: .8rem; color: #94a3b8; }
.tag {
  display: inline-block;
  background: #1e3a5f;
  color: #93c5fd;
  border-radius: 999px;
  padding: .15rem .6rem;
  font-size: .75rem;
  margin: .2rem .2rem 0 0;
  cursor: pointer;
}
.tag:hover { background: #2563eb; }
.btn {
  display: inline-block;
  padding: .5rem 1.1rem;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #334155; color: #e2e8f0; }
.btn-secondary:hover { background: #475569; }
input[type=text], input[type=password], textarea {
  width: 100%;
  background: #0f1117;
  border: 1px solid #2d3148;
  border-radius: 7px;
  color: #e2e8f0;
  padding: .6rem .9rem;
  font-size: .95rem;
  outline: none;
}
input:focus, textarea:focus { border-color: #2563eb; }
textarea { min-height: 320px; font-family: monospace; resize: vertical; }
label { display: block; margin-bottom: .4rem; font-size: .88rem; color: #94a3b8; }
.form-group { margin-bottom: 1.2rem; }
.search-bar { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.search-bar input { flex: 1; }
.note-body { line-height: 1.7; }
.note-body h1,.note-body h2,.note-body h3 { margin: 1rem 0 .5rem; color: #fff; }
.note-body p { margin-bottom: .8rem; }
.note-body code { background: #1e293b; padding: .15rem .4rem; border-radius: 4px; font-size: .88rem; }
.note-body pre { background: #1e293b; padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: .8rem; }
.note-body ul,.note-body ol { margin: .5rem 0 .8rem 1.5rem; }
.note-body blockquote { border-left: 3px solid #2563eb; padding-left: 1rem; color: #94a3b8; margin-bottom: .8rem; }
.empty { text-align: center; color: #475569; padding: 3rem 0; font-size: 1.1rem; }
.error { color: #f87171; font-size: .88rem; margin-top: .4rem; }
.actions { display: flex; gap: .6rem; margin-top: 1.5rem; }
.login-wrap { max-width: 360px; margin: 6rem auto; padding: 0 1.5rem; }
.login-wrap h1 { text-align: center; margin-bottom: 2rem; font-size: 1.6rem; }
