.bookmark-library { --bookmark-line: #c6cfcd; border-bottom: 1px solid var(--bookmark-line); padding: 65px 0; scroll-margin-top: 90px; }
.bookmark-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.bookmark-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4vw, 4.4rem); font-weight: 400; letter-spacing: -.045em; margin: 0 0 16px; }
.bookmark-heading > span { color: #485a60; font-size: .8rem; white-space: nowrap; }
.bookmark-description { color: #485a60; font-size: .95rem; line-height: 1.65; max-width: 730px; margin: 0 0 28px; }
.bookmark-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding-bottom: 22px; }
.bookmark-tools label { display: grid; gap: 8px; color: #394a51; font-size: .75rem; }
.bookmark-search { flex: 1 1 220px; }
.bookmark-tools input, .bookmark-tools select { box-sizing: border-box; min-height: 46px; border: 1px solid #a5b4b4; border-radius: 4px; background: #fafcf9; color: #071017; padding: 10px 12px; font: inherit; font-size: .9rem; width: 100%; }
.bookmark-tools select { min-width: 165px; }
.bookmark-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; border-block: 1px solid var(--bookmark-line); padding: 16px 0; position: sticky; top: 76px; z-index: 10; background: #edf0ed; }
.bookmark-select-all { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .85rem; cursor: pointer; }
.bookmark-library input[type="checkbox"] { accent-color: #00747c; width: 20px; height: 20px; margin: 0; cursor: pointer; flex: 0 0 auto; }
.bookmark-selection { color: #485a60; font-size: .8rem; margin-left: auto; }
.bookmark-download, .bookmark-bulk { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; box-sizing: border-box; border: 1px solid #071017; border-radius: 4px; background: #071017; color: #fff; font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bookmark-download:hover, .bookmark-bulk:hover:not(:disabled) { background: #07545a; border-color: #07545a; }
.bookmark-bulk:disabled { background: #cbd2cf; border-color: #cbd2cf; color: #52605d; cursor: default; }
.bookmark-clear { min-height: 44px; border: 0; padding: 4px 0; background: none; color: #00676f; font: inherit; font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bookmark-clear:disabled { color: #65736f; text-decoration: none; cursor: default; }
.bookmark-list { list-style: none; padding: 0; margin: 0; }
.bookmark-row { display: grid; grid-template-columns: 32px 140px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--bookmark-line); }
.bookmark-row:last-child { border-bottom: 0; }
.bookmark-row:has(input:checked) { background: #e1eae4; }
.bookmark-select { display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; cursor: pointer; }
.bookmark-preview { display: block; overflow: hidden; border-radius: 4px; background: #071017; }
.bookmark-preview img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.bookmark-copy { min-width: 0; }
.bookmark-copy h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 8px; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bookmark-tag { display: inline-block; color: #664000; background: #f5deb0; border-radius: 3px; padding: 3px 6px; font: 600 .61rem/1.2 ui-sans-serif, system-ui, sans-serif; letter-spacing: .04em; white-space: nowrap; }
.bookmark-meta, .bookmark-date { font-size: .77rem; color: #485a60; margin: 0; line-height: 1.6; }
.bookmark-date { margin-top: 4px; font-size: .7rem; }
.bookmark-download svg, .bookmark-bulk svg { width: 15px; height: 15px; }
.bookmark-note { margin: 20px 0 0; color: #485a60; font-size: .75rem; line-height: 1.6; }
.bookmark-feedback { display: block; color: #00676f; font-size: .85rem; line-height: 1.5; margin: 0; }
.bookmark-feedback:not(:empty) { padding-top: 15px; }
.bookmark-feedback[data-error="true"] { color: #a22016; }
.bookmark-empty { padding: 28px 0; color: #485a60; }
.bookmark-library [hidden] { display: none !important; }
.bookmark-library :is(a, button, input, select):focus-visible { outline: 3px solid #00747c; outline-offset: 4px; }
.bookmark-library .bookmark-enhanced { display: none; }
.bookmark-row { scroll-margin-top: 185px; }
.bookmark-library.is-ready .bookmark-enhanced { display: flex; }
.bookmark-library:not(.is-ready) .bookmark-row { grid-template-columns: 140px minmax(0, 1fr) auto; }
@media (max-width: 850px) {
  .bookmark-row { grid-template-columns: 28px 104px minmax(0, 1fr) auto; gap: 15px; }
  .bookmark-library:not(.is-ready) .bookmark-row { grid-template-columns: 104px minmax(0, 1fr) auto; }
  .bookmark-download { padding-inline: 12px; }
}
@media (max-width: 580px) {
  .bookmark-library { padding: 42px 0; }
  .bookmark-heading { align-items: center; gap: 12px; }
  .bookmark-heading > span { font-size: .7rem; }
  .bookmark-tools { gap: 12px; }
  .bookmark-search { flex-basis: 100%; }
  .bookmark-filter { flex: 1; }
  .bookmark-tools select { min-width: 0; }
  .bookmark-row { grid-template-columns: 24px 92px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .bookmark-copy { grid-column: 3; }
  .bookmark-download { grid-column: 3; justify-self: start; margin-top: -4px; }
  .bookmark-select { min-width: 24px; }
  .bookmark-selection { margin-left: auto; }
  .bookmark-bulk { order: 4; width: 100%; }
  .bookmark-actions { top: 66px; gap: 8px 14px; padding-block: 10px; }
  .bookmark-row { scroll-margin-top: 215px; }
  .bookmark-clear { order: 3; }
  .bookmark-library:not(.is-ready) .bookmark-row { grid-template-columns: 92px minmax(0, 1fr); }
  .bookmark-library:not(.is-ready) .bookmark-copy, .bookmark-library:not(.is-ready) .bookmark-download { grid-column: 2; }
}
@media (min-width: 581px) and (max-width: 700px) { .bookmark-actions { top: 66px; } }

.bookmark-preview img[src$=".jpeg"] { object-fit: contain; }
