.note-reader-layer {
  overflow: hidden;
  overscroll-behavior: none;
}

.note-reader-layer.is-open {
  transition: none;
}

.note-reader-window {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.note-reader-header {
  flex-shrink: 0;
}

.note-reader-content {
  flex: 1;
  height: auto;
  min-height: 0;
  padding: 48px 56px;
  overflow: auto;
  overscroll-behavior: contain;
}

.note-reader-prose {
  max-width: 860px;
  margin-bottom: 32px;
  color: rgb(255 255 255 / 0.84);
  font: 15px/1.95 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
}

.note-reader-prose p {
  margin: 0 0 16px;
}

.note-reader-prose p:last-child {
  margin-bottom: 0;
}

.note-code-panel {
  overflow: hidden;
  border: 1px solid #343a45;
  border-radius: 8px;
  background: #191d25;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.2);
}

.note-code-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 10px 18px;
  border-bottom: 1px solid #303641;
  color: #cad1de;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.note-code-filename {
  min-width: 0;
  overflow-wrap: anywhere;
}

.note-code-mode {
  margin-left: auto;
  color: #929dad;
  white-space: nowrap;
}

.note-code-copy {
  padding: 4px 9px;
  border: 1px solid #444e5e;
  border-radius: 4px;
  color: #d1dae7;
  background: transparent;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.note-code-copy:hover {
  background: #2b3442;
}

.note-code-copy:focus-visible,
.note-code-panel pre:focus-visible {
  outline: 2px solid #91b7ea;
  outline-offset: -2px;
}

.note-code-panel pre[class*="language-"] {
  max-height: min(64vh, 680px);
  margin: 0;
  padding: 20px 22px 20px 4.5em;
  overflow: auto;
  background: #191d25;
  scrollbar-width: thin;
  scrollbar-color: #465264 transparent;
  overscroll-behavior: auto;
}

.note-code-panel pre[class*="language-"],
.note-code-panel code[class*="language-"] {
  font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "PingFang SC", monospace;
  tab-size: 4;
  text-shadow: none;
  white-space: pre;
}

.note-code-panel .line-numbers-rows {
  border-right-color: #343c49;
}

.note-code-panel .line-numbers-rows > span::before {
  color: #778395;
}

.notes-empty {
  padding: 36px 14px;
  margin: 0;
  color: rgb(255 255 255 / 0.58);
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.notes-empty[hidden] {
  display: none;
}
