/* Metadata editing follows Paperpile's restrained modal hierarchy while using LumaCite color and type. */
html.library-novo1 {
  --metadata-blue: #1769e8;
  --metadata-blue-strong: #0f58c8;
  --metadata-blue-soft: #edf5ff;
  --metadata-ink: #24313f;
  --metadata-muted: #778594;
  --metadata-line: #e0e5ea;
  --metadata-line-strong: #cfd7df;
  --metadata-panel: #fff;
  --metadata-subtle: #f7f8fa;
  --metadata-success: #177a58;
  --metadata-success-soft: #edf8f3;
  --metadata-danger: #b94a55;
  --metadata-danger-soft: #fff1f2;
}

html.library-novo1 .editor-modal,
html.library-novo1 body.library-workspace-open .editor-modal,
html.library-novo1 .editor-modal[open],
html.library-novo1 body.library-workspace-open .editor-modal[open] {
  width: min(1000px, calc(100vw - 64px)) !important;
  max-width: none !important;
  height: min(820px, calc(var(--library-visual-height, 100vh) - 44px)) !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: width 180ms ease, height 180ms ease;
}

html.library-novo1 .editor-modal:has(.metadata-editor-body.has-editor-side-panel) {
  width: min(1360px, 92vw) !important;
  height: min(900px, calc(var(--library-visual-height, 100vh) - 28px)) !important;
}

html.library-novo1 body.library-workspace-open .editor-modal[open]:has(.metadata-editor-body.has-editor-side-panel) {
  width: min(1360px, 92vw) !important;
  height: min(900px, calc(var(--library-visual-height, 100vh) - 28px)) !important;
}

html.library-novo1 .editor-modal::backdrop {
  background: rgba(29, 35, 41, 0.56) !important;
  backdrop-filter: blur(1px);
}

html.library-novo1 .editor-card,
html.library-novo1 body.library-workspace-open .editor-card {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-rows: 72px minmax(0, 1fr) 64px !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #d6dde4 !important;
  border-radius: 10px !important;
  background: var(--metadata-panel) !important;
  color: var(--metadata-ink) !important;
  font-family: Inter, Arial, sans-serif !important;
  box-shadow: none !important;
}

html.library-novo1 .editor-header,
html.library-novo1 .editor-footer {
  position: relative;
  z-index: 30;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 !important;
  background: #fff !important;
}

html.library-novo1 .editor-header {
  min-height: 72px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--metadata-line) !important;
  border-radius: 10px 10px 0 0;
}

html.library-novo1 .editor-title-wrap {
  display: flex;
  align-items: center;
  min-width: 180px;
  margin-left: 0;
}

html.library-novo1 .editor-title-wrap h2,
html.library-novo1 .editor-card h2 {
  margin: 0 !important;
  color: #2b333b !important;
  font: 700 20px/1.2 Inter, Arial, sans-serif !important;
  letter-spacing: -0.015em;
}

html.library-novo1 .editor-title-wrap p,
html.library-novo1 .editor-title-icon {
  display: none !important;
}

html.library-novo1 .editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

html.library-novo1 .editor-tool-button,
html.library-novo1 .editor-type-control > button,
html.library-novo1 .editor-control-with-action > button,
html.library-novo1 .editor-pdf-toolbar button,
html.library-novo1 .editor-citation-preview button {
  appearance: none;
  color: #46515c;
  font: 650 13px/1 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, opacity 120ms ease;
}

html.library-novo1 .editor-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  gap: 8px;
  border: 1px solid #d4d9df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(25, 31, 38, 0.04);
}

html.library-novo1 .editor-tool-button:hover,
html.library-novo1 .editor-tool-button[aria-expanded="true"] {
  border-color: #aab5c0;
  background: #f7f9fb;
  color: #293846;
}

html.library-novo1 .editor-tool-button:disabled {
  border-color: #e2e6ea;
  background: #fafbfc;
  color: #a9b0b7;
  cursor: not-allowed;
  opacity: 1;
}

html.library-novo1 .editor-tool-svg,
html.library-novo1 .editor-close svg,
html.library-novo1 .editor-side-panel header > button svg,
html.library-novo1 .editor-citation-card > header button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.library-novo1 .editor-tool-icon-pdf {
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: inherit;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0;
}

html.library-novo1 .editor-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: -3px 1px 0 2px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
}

html.library-novo1 .editor-close,
html.library-novo1 .editor-side-panel header > button,
html.library-novo1 .editor-citation-card > header button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #727d87 !important;
  box-shadow: none !important;
  cursor: pointer;
}

html.library-novo1 .editor-close:hover,
html.library-novo1 .editor-side-panel header > button:hover,
html.library-novo1 .editor-citation-card > header button:hover {
  background: #f1f3f5 !important;
  color: #313c46 !important;
}

html.library-novo1 .metadata-editor-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

html.library-novo1 .metadata-editor-body.has-editor-side-panel {
  grid-template-columns: minmax(560px, 58%) minmax(420px, 42%);
}

html.library-novo1 .metadata-editor-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

html.library-novo1 .editor-grid,
html.library-novo1 body.library-workspace-open .editor-grid {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fff !important;
  scrollbar-width: thin;
  scrollbar-color: #b6bec6 transparent;
}

html.library-novo1 .editor-grid::-webkit-scrollbar,
html.library-novo1 .editor-field-list::-webkit-scrollbar,
html.library-novo1 [data-editor-type-list]::-webkit-scrollbar,
html.library-novo1 [data-editor-subtype-list]::-webkit-scrollbar {
  width: 8px;
}

html.library-novo1 .editor-grid::-webkit-scrollbar-thumb,
html.library-novo1 .editor-field-list::-webkit-scrollbar-thumb,
html.library-novo1 [data-editor-type-list]::-webkit-scrollbar-thumb,
html.library-novo1 [data-editor-subtype-list]::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: #b6bec6;
  background-clip: padding-box;
}

html.library-novo1 .editor-section,
html.library-novo1 .editor-section-core {
  position: relative;
  display: block !important;
  margin: 0 !important;
  padding: 16px 26px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--metadata-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

html.library-novo1 .editor-section.editor-section-empty {
  display: none !important;
}

html.library-novo1 .editor-section h3 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.library-novo1 .editor-section > label {
  position: relative;
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  align-items: start;
  gap: 18px !important;
  min-width: 0;
  min-height: 45px;
  margin: 0 !important;
  padding: 3px 0 !important;
  color: #3f464d !important;
  font: 650 13px/1.3 Inter, Arial, sans-serif !important;
}

html.library-novo1 .editor-section > label.editor-field-hidden {
  display: none !important;
}

html.library-novo1 .editor-section .field-sm,
html.library-novo1 .editor-section .field-md,
html.library-novo1 .editor-section .field-lg,
html.library-novo1 .editor-section .field-xl {
  grid-column: auto !important;
}

html.library-novo1 .editor-field-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
  gap: 6px;
  padding-top: 0;
  text-align: right;
}

html.library-novo1 .editor-section input,
html.library-novo1 .editor-section textarea,
html.library-novo1 .editor-type-control > button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  outline: 0 !important;
  background: transparent !important;
  color: #323940 !important;
  font: 450 14px/1.45 Inter, Arial, sans-serif !important;
  box-shadow: none !important;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease !important;
}

html.library-novo1 .editor-section textarea {
  min-height: 84px !important;
  resize: vertical;
}

html.library-novo1 .editor-section [data-editor-field="abstract"] textarea {
  height: 200px;
  min-height: 200px !important;
}

html.library-novo1 .editor-section > label:hover input,
html.library-novo1 .editor-section > label:hover textarea,
html.library-novo1 .editor-section > label:hover .editor-type-control > button,
html.library-novo1 .editor-section > label.editor-field-empty input,
html.library-novo1 .editor-section > label.editor-field-empty textarea,
html.library-novo1 .editor-section > label.editor-field-empty .editor-type-control > button {
  border-color: #d8dee4 !important;
  background: #fff !important;
}

html.library-novo1 .editor-section input:focus,
html.library-novo1 .editor-section textarea:focus,
html.library-novo1 .editor-type-control > button:focus-visible,
html.library-novo1 .editor-type-control > button[aria-expanded="true"] {
  border-color: #6ba5ef !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(23, 105, 232, 0.12) !important;
}

html.library-novo1 .editor-section label.is-pdf-target input,
html.library-novo1 .editor-section label.is-pdf-target textarea,
html.library-novo1 .editor-section label.is-pdf-target .editor-type-control > button {
  border-color: #3c9b78 !important;
  box-shadow: 0 0 0 2px rgba(23, 122, 88, 0.12) !important;
}

html.library-novo1 .editor-type-control,
html.library-novo1 .editor-control-with-action {
  position: relative;
  min-width: 0;
}

html.library-novo1 .editor-type-control > select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.library-novo1 .editor-type-control > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

html.library-novo1 .editor-control-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

html.library-novo1 .editor-control-with-action > input {
  border-radius: 4px !important;
}

html.library-novo1 .editor-control-with-action > button[data-editor-fix-case] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 0;
  min-width: 0;
  margin-left: 0;
  padding: 0;
  overflow: hidden;
  border: 0 solid transparent;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: var(--metadata-blue);
  opacity: 0;
  pointer-events: none;
}

html.library-novo1 .editor-section > label:focus-within .editor-control-with-action > button[data-editor-fix-case],
html.library-novo1 .editor-control-with-action > button[data-editor-fix-case][aria-expanded="true"] {
  width: auto;
  min-width: 88px;
  margin-left: -1px;
  padding: 0 10px;
  border-width: 1px;
  border-color: #6ba5ef;
  opacity: 1;
  pointer-events: auto;
}

html.library-novo1 .editor-section > label:focus-within .editor-control-with-action > input {
  border-radius: 4px 0 0 4px !important;
}

html.library-novo1 .editor-control-with-action > button[data-editor-fix-case]:hover {
  background: var(--metadata-blue-soft);
}

html.library-novo1 .editor-case-popover {
  position: absolute;
  z-index: 110;
  top: calc(100% + 7px);
  right: 0;
  width: min(430px, calc(100vw - 48px));
  padding: 13px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(24, 32, 40, 0.2);
}

html.library-novo1 .editor-case-popover > span {
  display: block;
  margin: 0 0 8px;
  color: #77838f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

html.library-novo1 .editor-case-popover > button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d7e2f1;
  border-radius: 5px;
  background: #f5f9ff;
  color: #2b3a49;
  text-align: left;
  cursor: pointer;
}

html.library-novo1 .editor-case-popover > button:hover {
  border-color: #8eb9f1;
  background: #edf5ff;
}

html.library-novo1 .editor-case-popover strong,
html.library-novo1 .editor-case-popover small {
  display: block;
}

html.library-novo1 .editor-case-popover strong {
  font-size: 12.5px;
  line-height: 1.45;
}

html.library-novo1 .editor-case-popover small {
  margin-top: 6px;
  color: var(--metadata-blue);
  font-size: 10.5px;
}

html.library-novo1 .editor-case-popover p {
  margin: 9px 1px 0;
  color: #707d89;
  font-size: 10.5px;
  font-weight: 450;
  line-height: 1.45;
}

html.library-novo1 .editor-info-button {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid #aab4be;
  border-radius: 50%;
  background: #fff;
  color: #707c87;
  font: 700 10px/1 Inter, Arial, sans-serif;
  cursor: help;
}

html.library-novo1 .editor-help-bubble {
  position: absolute;
  z-index: 115;
  top: 38px;
  left: 192px;
  width: min(300px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 5px;
  background: #2d3842;
  color: #fff;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(20, 28, 35, 0.24);
}

html.library-novo1 .editor-popover-anchor {
  position: relative;
}

html.library-novo1 .editor-popover {
  position: absolute;
  z-index: 140;
  top: calc(100% + 7px);
  right: 0;
  width: 318px;
  max-height: min(420px, calc(100dvh - 190px));
  padding: 8px;
  overflow: hidden;
  border: 1px solid #cfd6dc;
  border-radius: 7px;
  background: #fff;
  color: #303940;
  font-family: Inter, Arial, sans-serif;
  box-shadow: 0 16px 40px rgba(22, 31, 39, 0.2);
  box-sizing: border-box;
  isolation: isolate;
}

html.library-novo1 .editor-popover-search {
  position: relative;
  display: block;
  margin: 0 0 6px;
}

html.library-novo1 .editor-popover-search > span::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 11px;
  top: 10px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #7f8c98;
  border-radius: 50%;
}

html.library-novo1 .editor-popover-search > span::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 20px;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: #7f8c98;
  transform: rotate(45deg);
  transform-origin: left center;
}

html.library-novo1 .editor-popover-search input {
  width: 100%;
  height: 34px;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 6px 10px 6px 34px !important;
  border: 1px solid #d3d9df !important;
  border-radius: 5px !important;
  outline: 0 !important;
  background: #fff !important;
  color: #303940 !important;
  font: 450 12px/1.2 Inter, Arial, sans-serif !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html.library-novo1 .editor-popover-search input:focus {
  border-color: #6ba5ef;
  box-shadow: 0 0 0 2px rgba(23, 105, 232, 0.1);
}

html.library-novo1 .editor-field-list,
html.library-novo1 [data-editor-type-list] {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

html.library-novo1 .editor-field-list {
  max-height: min(260px, 40vh);
}

html.library-novo1 [data-editor-type-list] {
  max-height: min(220px, 36vh);
}

html.library-novo1 .editor-field-group-title {
  margin: 9px 8px 4px;
  color: #8b959f;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

html.library-novo1 .editor-field-option,
html.library-novo1 .editor-type-option {
  display: grid;
  align-items: center;
  min-height: 34px;
  border-radius: 4px;
  color: #35414d;
}

html.library-novo1 .editor-field-option {
  grid-template-columns: 22px minmax(0, 1fr) 27px;
  padding: 0 4px 0 8px;
}

html.library-novo1 .editor-field-option:hover,
html.library-novo1 .editor-type-option:hover {
  background: #f1f4f7;
}

html.library-novo1 .editor-field-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--metadata-blue);
}

html.library-novo1 .editor-field-option > span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.library-novo1 .editor-field-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9aa3ac;
  cursor: pointer;
}

html.library-novo1 .editor-field-pin svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.library-novo1 .editor-field-pin.is-pinned {
  background: #eaf3ff;
  color: var(--metadata-blue);
}

html.library-novo1 .editor-popover-note {
  margin: 7px 0 0;
  padding: 8px 7px 2px;
  border-top: 1px solid #e6eaee;
  color: #7c8893;
  font-size: 10px;
  line-height: 1.35;
}

html.library-novo1 .editor-pin-hint {
  display: none;
}

html.library-novo1 .editor-type-popover {
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: min(360px, calc(100vw - 48px));
}

html.library-novo1 .editor-type-option {
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 7px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

html.library-novo1 .editor-type-option-icon {
  display: none;
}

html.library-novo1 .editor-type-option strong {
  display: block;
  color: #323d47;
  font-size: 12px;
  font-weight: 600;
}

html.library-novo1 .editor-type-option small {
  display: block;
  margin-top: 2px;
  color: #87919a;
  font-size: 10px;
  font-weight: 400;
}

html.library-novo1 .editor-type-option[aria-selected="true"] {
  background: #edf4fd;
}

html.library-novo1 .editor-type-option[aria-selected="true"]::after {
  content: "✓";
  color: var(--metadata-blue);
  font-weight: 700;
}

html.library-novo1 .editor-subtype-control {
  position: relative;
  min-width: 0;
}

html.library-novo1 .editor-subtype-control > input {
  padding-right: 38px !important;
}

html.library-novo1 .editor-subtype-control > button[data-editor-subtype-toggle] {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: transparent;
  color: #5f6d79;
  cursor: pointer;
}

html.library-novo1 .editor-subtype-control > button[data-editor-subtype-toggle]:hover {
  background: #f3f6f9;
}

html.library-novo1 .editor-subtype-control > button[data-editor-subtype-toggle]:focus-visible {
  outline: 2px solid rgba(23, 105, 232, 0.35);
  outline-offset: -2px;
}

html.library-novo1 .editor-subtype-control > button[aria-expanded="true"] .editor-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

html.library-novo1 .editor-subtype-popover {
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  width: min(420px, 100%);
  min-width: 260px;
  padding: 6px;
}

html.library-novo1 [data-editor-subtype-list] {
  max-height: min(210px, 34vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

html.library-novo1 .editor-subtype-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 7px 34px 7px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #35414d;
  font: 500 12px/1.35 Inter, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

html.library-novo1 .editor-subtype-option:hover,
html.library-novo1 .editor-subtype-option:focus-visible {
  outline: 0;
  background: #f1f4f7;
}

html.library-novo1 .editor-subtype-option[aria-selected="true"] {
  background: #edf4fd;
}

html.library-novo1 .editor-subtype-option[aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 12px;
  color: var(--metadata-blue);
  font-weight: 700;
}

html.library-novo1 .editor-citation-preview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  min-height: 86px;
  padding: 14px 26px;
  border-top: 1px solid var(--metadata-line);
  background: #fff;
}

html.library-novo1 .editor-citation-label {
  padding-top: 2px;
  color: #444b52;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

html.library-novo1 .editor-citation-preview p {
  display: -webkit-box;
  margin: 0 0 5px;
  overflow: hidden;
  color: #47515a;
  font-size: 12.5px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html.library-novo1 .editor-citation-preview button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--metadata-blue);
  font-size: 11px;
  font-weight: 600;
}

html.library-novo1 .editor-side-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--metadata-line);
  background: #fff;
}

html.library-novo1 .editor-side-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 15px 10px 18px;
  border-bottom: 1px solid var(--metadata-line);
}

html.library-novo1 .editor-side-panel h3 {
  margin: 2px 0 0;
  color: #303840;
  font: 700 16px/1.2 Inter, Arial, sans-serif;
}

html.library-novo1 .editor-panel-kicker {
  color: #808b95;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

html.library-novo1 .editor-update-status {
  min-height: 46px;
  padding: 10px 16px;
  border-bottom: 1px solid #e4e8ec;
  color: #67737e;
  font-size: 11px;
  line-height: 1.45;
}

html.library-novo1 .editor-update-status.is-loading {
  position: relative;
  padding-left: 40px;
  background: #f7faff;
}

html.library-novo1 .editor-update-status.is-loading::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  width: 13px;
  height: 13px;
  border: 2px solid #c3d6ee;
  border-top-color: var(--metadata-blue);
  border-radius: 50%;
  animation: editor-spin .8s linear infinite;
}

@keyframes editor-spin {
  to { transform: rotate(360deg); }
}

html.library-novo1 .editor-update-list {
  min-height: 0;
  padding: 12px;
  overflow: auto;
  background: #f7f8fa;
}

html.library-novo1 .editor-update-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  color: #6f7a84;
  text-align: center;
}

html.library-novo1 .editor-update-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #36414b;
}

html.library-novo1 .editor-update-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  padding: 11px;
  border: 1px solid #dde2e7;
  border-radius: 6px;
  background: #fff;
}

html.library-novo1 .editor-update-item > input {
  margin-top: 2px;
  accent-color: var(--metadata-blue);
}

html.library-novo1 .editor-update-item h4 {
  margin: 0 0 7px;
  color: #4b555f;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

html.library-novo1 .editor-update-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

html.library-novo1 .editor-update-values div {
  min-width: 0;
  padding: 8px;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1.4;
  word-break: break-word;
}

html.library-novo1 .editor-update-values span {
  display: block;
  margin-bottom: 3px;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

html.library-novo1 .editor-update-old {
  background: var(--metadata-danger-soft);
  color: #8d4a52;
}

html.library-novo1 .editor-update-new {
  background: var(--metadata-success-soft);
  color: #176b50;
}

html.library-novo1 .editor-side-panel > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 60px;
  padding: 10px 14px;
  border-top: 1px solid var(--metadata-line);
  background: #fafafa;
}

html.library-novo1 .editor-side-panel > footer p {
  margin: 0 auto 0 0;
  color: #78838d;
  font-size: 10px;
  line-height: 1.4;
}

html.library-novo1 .editor-pdf-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

html.library-novo1 .editor-pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--metadata-line);
  background: #f7f8fa;
}

html.library-novo1 .editor-pdf-toolbar button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d6dce2;
  border-radius: 5px;
  background: #fff;
}

html.library-novo1 .editor-pdf-toolbar > span {
  min-width: 43px;
  color: #6e7983;
  font-size: 10.5px;
  text-align: center;
}

html.library-novo1 .editor-pdf-toolbar a {
  margin-left: auto;
  color: var(--metadata-blue);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

html.library-novo1 .editor-pdf-stage {
  position: relative;
  min-height: 0;
  overflow: auto;
  background: #3c4248;
}

html.library-novo1 .editor-pdf-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  background: #3c4248;
  transform-origin: top left;
}

html.library-novo1 .editor-pdf-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  background: #f4f6f8;
  color: #6e7882;
  text-align: center;
}

html.library-novo1 .editor-pdf-empty strong {
  color: #39434c;
  font-size: 14px;
}

html.library-novo1 .editor-pdf-empty p {
  max-width: 300px;
  margin: 7px 0 15px;
  font-size: 11px;
  line-height: 1.45;
}

html.library-novo1 .editor-footer {
  min-height: 64px;
  padding: 0 20px !important;
  border: 0 !important;
  border-top: 1px solid var(--metadata-line) !important;
  border-radius: 0 0 10px 10px;
  background: #fafafa !important;
}

html.library-novo1 .editor-record-navigation,
html.library-novo1 .editor-save-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

html.library-novo1 .editor-record-navigation > span {
  color: #8b949d;
  font-size: 10.5px;
}

html.library-novo1 .editor-footer .ghost-button,
html.library-novo1 .editor-footer .primary-button,
html.library-novo1 .editor-side-panel .ghost-button,
html.library-novo1 .editor-side-panel .primary-button {
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 5px !important;
  font: 650 12px/1 Inter, Arial, sans-serif !important;
}

html.library-novo1 .editor-footer .primary-button,
html.library-novo1 .editor-side-panel .primary-button {
  min-width: 104px !important;
  border-color: var(--metadata-blue) !important;
  background: var(--metadata-blue) !important;
  color: #fff !important;
}

html.library-novo1 .editor-footer .ghost-button,
html.library-novo1 .editor-side-panel .ghost-button {
  border: 1px solid #d4dbe2 !important;
  background: #fff !important;
  color: #394550 !important;
  box-shadow: 0 1px 1px rgba(25, 31, 38, 0.03) !important;
}

html.library-novo1 .editor-footer .ghost-button:hover,
html.library-novo1 .editor-side-panel .ghost-button:hover {
  border-color: #b7c1cb !important;
  background: #f6f8fa !important;
}

html.library-novo1 .editor-footer .primary-button:hover,
html.library-novo1 .editor-side-panel .primary-button:hover {
  border-color: var(--metadata-blue-strong) !important;
  background: var(--metadata-blue-strong) !important;
}

html.library-novo1 .editor-footer .primary-button:disabled,
html.library-novo1 .editor-side-panel .primary-button:disabled {
  border-color: #d9e2ed !important;
  background: #9fc0ea !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: .68 !important;
  box-shadow: none !important;
}

html.library-novo1 .editor-footer .ghost-button:disabled,
html.library-novo1 .editor-side-panel .ghost-button:disabled {
  border-color: #e1e5e9 !important;
  background: #fafafa !important;
  color: #b3bac1 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

html.library-novo1 .editor-citation-sheet {
  position: absolute;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 10px;
  background: rgba(36, 43, 50, .48);
}

html.library-novo1 .editor-citation-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(560px, calc(100vw - 42px));
  max-width: none;
  padding: 0;
  border: 1px solid #d4dae0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 62px rgba(20, 28, 35, .28);
}

html.library-novo1 .editor-citation-card > header,
html.library-novo1 .editor-citation-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--metadata-line);
}

html.library-novo1 .editor-citation-card > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--metadata-line);
  border-bottom: 0;
  background: #fafafa;
}

html.library-novo1 .editor-citation-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 18px;
  background: #fff;
}

html.library-novo1 .editor-citation-settings label {
  display: grid;
  gap: 6px;
  color: #46515b;
  font-size: 11px;
  font-weight: 650;
}

html.library-novo1 .editor-citation-settings select {
  height: 38px;
  padding: 0 9px;
  border: 1px solid #d1d8df;
  border-radius: 5px;
  background: #fff;
  color: #36414b;
}

html.library-novo1 .editor-citation-dialog-preview {
  grid-column: 1 / -1;
  min-height: 96px;
  padding: 13px;
  border: 1px solid #dce2e7;
  border-radius: 5px;
  background: #f8fafc;
}

html.library-novo1 .editor-citation-dialog-preview > span {
  color: #87919a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

html.library-novo1 .editor-citation-dialog-preview p {
  margin: 8px 0 0;
  color: #46515b;
  font-size: 12px;
  line-height: 1.5;
}

html.library-novo1 .editor-modal .hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  html.library-novo1 .editor-title-wrap {
    margin-left: 0;
  }

  html.library-novo1 .editor-modal,
  html.library-novo1 body.library-workspace-open .editor-modal,
  html.library-novo1 .editor-modal[open] {
    width: min(1000px, calc(100vw - 28px)) !important;
    height: calc(var(--library-visual-height, 100vh) - 28px) !important;
  }

  html.library-novo1 .editor-modal:has(.metadata-editor-body.has-editor-side-panel),
  html.library-novo1 body.library-workspace-open .editor-modal[open]:has(.metadata-editor-body.has-editor-side-panel) {
    width: calc(100vw - 18px) !important;
    height: calc(var(--library-visual-height, 100vh) - 18px) !important;
  }

  html.library-novo1 .metadata-editor-body.has-editor-side-panel {
    grid-template-columns: minmax(470px, 56%) minmax(380px, 44%);
  }
}

@media (max-width: 860px) {
  html.library-novo1 .editor-card,
  html.library-novo1 body.library-workspace-open .editor-card {
    grid-template-rows: auto minmax(0, 1fr) 60px !important;
  }

  html.library-novo1 .editor-header {
    align-items: center;
    min-height: 64px !important;
    padding: 8px 14px !important;
  }

  html.library-novo1 .editor-title-wrap h2 {
    font-size: 18px !important;
  }

  html.library-novo1 .editor-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  html.library-novo1 .editor-tool-button {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 11px;
  }

  html.library-novo1 .metadata-editor-body.has-editor-side-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  html.library-novo1 .metadata-editor-body.has-editor-side-panel .metadata-editor-main {
    display: none;
  }

  html.library-novo1 .editor-side-panel {
    border-left: 0;
  }
}

@media (max-width: 680px) {
  html.library-novo1 .editor-modal,
  html.library-novo1 body.library-workspace-open .editor-modal,
  html.library-novo1 .editor-modal[open],
  html.library-novo1 .editor-modal:has(.metadata-editor-body.has-editor-side-panel) {
    inset: 0 !important;
    width: 100vw !important;
    height: var(--library-visual-height, 100vh) !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  html.library-novo1 .editor-card {
    border-radius: 0 !important;
  }

  html.library-novo1 .editor-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    min-height: 104px !important;
    padding: 10px 12px !important;
    border-radius: 0;
  }

  html.library-novo1 .editor-title-wrap {
    min-width: 104px;
    padding-right: 42px;
  }

  html.library-novo1 .editor-toolbar {
    justify-content: flex-start;
    width: 100%;
    margin-top: 8px;
    padding-right: 0;
  }

  html.library-novo1 .editor-toolbar .editor-close {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  html.library-novo1 .editor-tool-button {
    flex: 1 1 0;
    padding-inline: 8px;
  }

  html.library-novo1 .editor-tool-button .editor-tool-svg,
  html.library-novo1 .editor-tool-button .editor-tool-icon-pdf {
    display: none;
  }

  html.library-novo1 .editor-section {
    padding: 12px 15px !important;
  }

  html.library-novo1 .editor-section > label {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    padding: 4px 0 !important;
  }

  html.library-novo1 .editor-field-label {
    justify-content: flex-start;
    min-height: 18px;
    text-align: left;
  }

  html.library-novo1 .editor-section input,
  html.library-novo1 .editor-section textarea,
  html.library-novo1 .editor-type-control > button {
    border-color: #d8dee4 !important;
    background: #fff !important;
  }

  html.library-novo1 .editor-section [data-editor-field="abstract"] textarea {
    height: 148px;
    min-height: 148px !important;
  }

  html.library-novo1 .editor-help-bubble {
    left: 0;
    top: 62px;
  }

  html.library-novo1 .editor-citation-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 84px;
    padding: 10px 15px;
  }

  html.library-novo1 .editor-citation-label {
    text-align: left;
  }

  html.library-novo1 .editor-footer {
    padding: 0 9px !important;
  }

  html.library-novo1 .editor-record-navigation,
  html.library-novo1 .editor-save-actions {
    gap: 5px;
  }

  html.library-novo1 .editor-record-navigation > span {
    display: none;
  }

  html.library-novo1 .editor-footer .ghost-button,
  html.library-novo1 .editor-footer .primary-button {
    min-height: 36px !important;
    padding: 0 9px !important;
    font-size: 10.5px !important;
  }

  html.library-novo1 .editor-footer .primary-button {
    min-width: 92px !important;
  }

  html.library-novo1 .editor-popover {
    position: fixed;
    top: 104px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  html.library-novo1 .editor-type-popover,
  html.library-novo1 .editor-subtype-popover {
    top: 104px;
    max-height: calc(var(--library-visual-height, 100vh) - 174px);
  }

  html.library-novo1 .editor-citation-settings {
    grid-template-columns: 1fr;
  }

  html.library-novo1 .editor-citation-dialog-preview {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.library-novo1 .editor-modal,
  html.library-novo1 .editor-tool-button,
  html.library-novo1 .editor-section input,
  html.library-novo1 .editor-section textarea {
    transition: none !important;
  }
}
