.reader-header {
  grid-template-columns: 42px minmax(0, 1fr) 84px;
}

.reader-header > div:not(.reader-tools) {
  display: grid;
  text-align: center;
}

.reader-tools {
  display: grid;
  grid-template-columns: 42px 42px;
  align-items: center;
}

.reader-tools .icon-button {
  border-radius: 50%;
}

.toc-sheet {
  display: flex;
  max-height: min(76vh, 680px);
  flex-direction: column;
}

.toc-list {
  margin: 14px -6px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toc-item {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 9px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.toc-item span {
  line-height: 1.4;
}

.toc-item small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.toc-item.active {
  color: var(--green-dark);
  background: #edf8f2;
  font-weight: 750;
}

.toc-item.active small {
  color: var(--green-dark);
}
