:root {
  --accent: #0095F6;
  --danger: #ED4956;
  --text: #262626;
  --text-muted: #8e8e8e;
  --border: #dbdbdb;
  --bg: #fafafa;
  --surface: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.site a.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

header.site a.brand span { color: var(--accent); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 4px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 8px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
}

p, li { font-size: 15px; color: var(--text); }

.updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.placeholder {
  background: #fff3cd;
  color: #664d03;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

a { color: var(--accent); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.grid-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.grid-links a.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.grid-links a.tile span.desc {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  margin-top: 12px;
}

.btn.danger { background: var(--danger); }

footer.site {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--text-muted); font-weight: 600; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.toc a { display: block; font-size: 14px; padding: 3px 0; text-decoration: none; }

form.simple label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 4px;
}

form.simple input, form.simple textarea, form.simple select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
