:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --ink: #1a1a18;
  --muted: #6b6862;
  --line: #e2ded6;
  --accent: #3d5a45;
  --warn: #8a5a1f;
  --bad: #8c3a2e;
  --good: #3d5a45;
  --radius: 6px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.bar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  display: flex; align-items: center; gap: 20px;
  position: sticky; top: 0; z-index: 5;
}
header.bar .brand { font-weight: 620; letter-spacing: .02em; padding: 14px 0; }
header.bar nav { display: flex; gap: 16px; flex: 1; }
header.bar nav a { padding: 14px 0; color: var(--muted); font-size: 14px; }
header.bar nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 620; }
h2 { font-size: 16px; margin: 28px 0 10px; font-weight: 620; }
h3 { font-size: 14px; margin: 18px 0 8px; font-weight: 620; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.panel > h2 { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }
.wrap { overflow-x: auto; }
.tag {
  display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--muted); background: #f6f4f0; white-space: nowrap;
}
.tag.good { color: var(--good); border-color: #c3d4c6; background: #eef4ef; }
.tag.warn { color: var(--warn); border-color: #e2d0b4; background: #faf3e8; }
.tag.bad  { color: var(--bad);  border-color: #e2c2bb; background: #faeeeb; }
form.inline { display: inline; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 64px; resize: vertical; }
button {
  font: inherit; font-size: 14px; padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
}
button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
button.small { padding: 4px 9px; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.row > button { flex: 0 0 auto; }
.error {
  background: #faeeeb; border: 1px solid #e2c2bb; color: var(--bad);
  padding: 10px 12px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px;
}
.note { color: var(--muted); font-size: 13px; }
.stat { font-size: 26px; font-weight: 620; line-height: 1.1; }
.statline { display: flex; gap: 24px; flex-wrap: wrap; }
.statline > div { min-width: 100px; }
.spec { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
ul.plain li:last-child { border-bottom: none; }
details summary { cursor: pointer; font-size: 14px; color: var(--accent); }
