* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: monospace;
  background: #111;
  color: #ccc;
  display: flex;
}

#sidebar {
  width: 280px;
  min-width: 280px;
  height: 100vh;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  background: #111;
}

#title {
  padding: 10px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #222;
  letter-spacing: 1px;
}

#search {
  width: 100%;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  background: #1a1a1a;
  color: #eee;
  border: none;
  border-bottom: 1px solid #222;
  outline: none;
}

#search:focus { background: #1e1e1e; }

#count {
  font-size: 11px;
  color: #444;
  padding: 6px 10px;
  border-bottom: 1px solid #1a1a1a;
}

#list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}

#list li {
  padding: 5px 10px;
  cursor: pointer;
  border-bottom: 1px solid #1a1a1a;
}

#list li a {
  color: #777;
  text-decoration: none;
  font-size: 13px;
  display: block;
}

#list li:hover { background: #1a1a1a; }
#list li:hover a { color: #ccc; }
#list li.active { background: #1e1e1e; }
#list li.active a { color: #fff; }

#viewer {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 24px;
}

#sheet-title {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a1a1a;
}

#sheet-content {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: #999;
  tab-size: 4;
}
