:root {
  --bg: #f7f5f0;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #1e4d6b;
  --border: #ddd6c8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 1rem; }
.site-header, .site-footer {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: none; margin-top: 2rem; }
.site-header .wrap { display: flex; gap: 1rem; align-items: baseline; }
.logout { margin-left: auto; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card.narrow { max-width: 420px; }
h1 { font-size: 1.5rem; margin-top: 0; }
.muted, .source { color: var(--muted); font-size: 0.9rem; }
.def-box {
  background: #faf8f4;
  border-left: 3px solid var(--accent);
  padding: 0.75rem;
  white-space: pre-wrap;
  font-size: 0.92rem;
}
button, .inline button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
button.secondary { background: #6b7280; }
.stack label { display: block; margin-bottom: 0.75rem; }
.stack input, textarea { width: 100%; padding: 0.5rem; margin-top: 0.25rem; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--border); padding: 0.4rem; text-align: left; }
.ej-list { columns: 2; }
.badge { background: #fef3c7; padding: 0.35rem 0.6rem; border-radius: 4px; display: inline-block; }
.dev-code { background: #ecfdf5; padding: 0.5rem; }
