:root {
  --bg: #121212;
  --panel: #181818;
  --line: #2a2a2a;
  --text: #d6d6d6;
  --muted: #8a8a8a;
  --hover: #202020;
  --active: #262626;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, sans-serif;
  display: flex;
}

aside {
  width: 300px;
  border-right: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.actions { display: flex; gap: 6px; }

button {
  background: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
button:hover { background: var(--hover); }
button[hidden] { display: none; }

#list { overflow-y: auto; flex: 1; }

.item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item:hover { background: var(--hover); }
.item.active { background: var(--active); }

.empty { padding: 16px; color: var(--muted); font-size: 13px; }

main { flex: 1; overflow-y: auto; }

#doc { max-width: 780px; margin: 0 auto; padding: 48px 32px 96px; }
#doc h1, #doc h2, #doc h3, #doc h4 { color: #e8e8e8; line-height: 1.3; }
#doc a { color: #9bb4d0; }
#doc img { max-width: 100%; }
#doc table { border-collapse: collapse; margin: 1em 0; }
#doc td, #doc th { border: 1px solid var(--line); padding: 6px 10px; }
#doc blockquote { border-left: 2px solid var(--line); margin-left: 0; padding-left: 16px; color: var(--muted); }

.hint { color: var(--muted); text-align: center; margin-top: 30vh; }