.library-organized .library-sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.library-organized .library-sidebar > button[aria-current="page"],
.library-folder-row > button[aria-current="page"] {
  color: #fff;
  background: #2e5954;
  box-shadow: inset 3px 0 #9cc8b0;
  font-weight: 650;
}
.library-organized .library-sidebar > button[aria-current="false"] {
  background: transparent;
  box-shadow: none;
  font-weight: 400;
}
.library-sidebar > button > span,
.library-folder-row small {
  margin-left: auto;
  background: #ffffff13;
  min-width: 19px;
  border-radius: 4px;
  text-align: center;
  padding: 0 4px;
}
.library-folders {
  margin: 17px 0 12px;
}
.library-folders > p {
  padding: 0 12px;
  font-size: 10px;
  color: #84aca7;
  font-weight: 650;
  letter-spacing: 1.2px;
}
.library-folder-row {
  display: flex;
  margin-bottom: 2px;
}
.library-folder-row > button,
.library-folders > button {
  background: transparent;
  color: #bed4d1;
  border: 0;
  min-height: 39px;
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  text-align: left;
}
.library-folder-row > button:first-child {
  min-width: 0;
  flex: 1;
  padding-left: calc(12px + var(--folder-depth, 0) * 10px);
}
.library-folder-row > button:first-child > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-folder-row > button:last-child {
  flex: 0 0 27px;
  width: 27px;
  padding: 5px;
  justify-content: center;
  font-size: 18px;
}
.library-folder-row > button:hover,
.library-folders > button:hover {
  background: #ffffff10;
  color: white;
}
.library-organized button.library-drop-target {
  color: #fff;
  background: #3b7669;
  outline: 2px solid #b3dac5;
  outline-offset: -2px;
}
.library-folder-row .icon,
.library-folders > button .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.library-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #718886;
}
.library-sort select {
  width: auto;
  padding: 7px 10px;
  font-size: 12px;
}
.library-organized .library-section-title {
  gap: 14px;
  align-items: center;
}
.library-organized .library-section-title h3 {
  overflow-wrap: anywhere;
}
.library-book {
  position: relative;
  min-width: 0;
}
.library-book .book-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  background: transparent;
}
.library-book .book-cover {
  flex-shrink: 0;
}
.library-book .book-card > strong {
  padding-right: 22px;
}
.library-book .book-card > small {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.note-options {
  position: absolute;
  right: -3px;
  top: 214px;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 21px;
}
.library-folder-actions {
  display: grid;
  gap: 14px;
}
.library-folder-actions > button {
  justify-content: flex-start;
  gap: 9px;
}
.library-folder-actions > hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #dfe8df;
}
.library-folder-actions .intro {
  margin: 0;
}
.paper-template-dialog {
  width: min(940px, calc(100vw - 36px));
}
.paper-template-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.paper-template-item {
  position: relative;
  min-width: 0;
}
.paper-template-item > button:first-child {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  background: #fff;
  border: 1px solid #cbdad6;
  padding: 12px;
  text-align: left;
  border-radius: 8px;
}
.paper-template-item > button:first-child:hover {
  background: #f3f8f0;
  border-color: #78aa94;
}
.paper-template-item > button:first-child > svg {
  display: block;
  width: 100%;
  height: 130px;
  border: 1px solid #e3e9e1;
  margin-bottom: 5px;
}
.paper-template-item > button:first-child > strong {
  font-size: 13px;
  color: #2d4a48;
}
.paper-template-item > button:first-child > small {
  color: #809088;
  font-size: 11px;
  font-weight: 400;
  min-height: 30px;
}
.delete-paper-template {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 5px;
  background: #ffffffed;
}
.delete-paper-template .icon {
  width: 16px;
  height: 16px;
}
.save-paper-template {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid #e1e8dd;
  padding-top: 20px;
}
.save-paper-template .field {
  flex: 1;
  margin: 0;
}
.save-paper-template > button {
  flex-shrink: 0;
  min-height: 40px;
}
.paper-template-dialog > form > footer {
  display: none;
}
.notebook-create-dialog {
  width: min(760px, calc(100vw - 36px));
}
.notebook-create-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 28px;
}
.notebook-create-layout > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notebook-create-layout .field {
  margin: 0;
}
.notebook-create-preview {
  height: 270px;
  border: 1px solid #d8e4d9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px #2545390b;
}
.notebook-create-preview > svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 900px) {
  .library-organized .library-sort {
    font-size: 0;
    gap: 0;
  }
  .paper-template-gallery {
    gap: 12px;
  }
  .paper-template-item > button:first-child > svg {
    height: 100px;
  }
}
