.lib-screen {
  --lib-pad: clamp(15px, 2.6vw, 34px);
  min-width: 0;
  color: var(--ink);
  padding-bottom: 32px;
}
.lib-screen *,
.lib-form *,
.lib-detail *,
.lib-options *,
.lib-new-collection * {
  box-sizing: border-box;
}
.lib-screen button,
.lib-form button,
.lib-detail button,
.lib-options button,
.lib-new-collection button,
.lib-view-choices button {
  font: inherit;
  cursor: pointer;
}
.lib-screen button:disabled,
.lib-form button:disabled,
.lib-detail button:disabled {
  opacity: 0.54;
  cursor: default;
}
.lib-screen button:focus-visible,
.lib-section-tile:focus-visible,
.lib-form :focus-visible,
.lib-detail :focus-visible,
.lib-options :focus-visible,
.lib-new-collection :focus-visible,
.lib-view-choices :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.lib-roothead,
.lib-title-block,
.lib-head-actions,
.lib-tools,
.lib-toolgroup,
.lib-breadcrumbs,
.lib-detail-meta,
.lib-detail-bottom,
.lib-footer,
.lib-paging,
.lib-pin-list,
.lib-selection,
.lib-relation,
.lib-template-row,
.lib-restore-line,
.lib-order-row,
.lib-schema-line,
.lib-calendar-nav,
.lib-check-row,
.lib-destination {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lib-roothead {
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
}
.lib-h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -0.055em;
  margin: 0;
  overflow-wrap: anywhere;
}
.lib-h2 {
  font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 36px);
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 25px 0 12px;
}
.lib-subtitle,
.lib-empty p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
  margin: 8px 0 0;
  max-width: 62ch;
  overflow-wrap: anywhere;
}
.lib-head-actions {
  gap: 5px;
  flex: none;
}
.lib-icon {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.lib-breadcrumbs {
  flex-wrap: wrap;
  margin: 0 0 13px;
  gap: 0 13px;
}
.lib-title-block {
  align-items: center;
  gap: clamp(13px, 2.5vw, 26px);
  padding: 0 0 18px;
  min-width: 0;
}
.lib-title-copy {
  min-width: 0;
  flex: 1;
}
.lib-overline,
.lib-tile-text small {
  color: var(--muted);
  display: block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  margin-bottom: 4px;
}
.lib-title-copy .lib-h1 {
  font-size: clamp(34px, 4.5vw, 56px);
}
.lib-preserve {
  white-space: pre-line;
}
.lib-visual {
  --lib-tone: #d6e2d3;
  --lib-glyph: #385346;
  --lib-thread: rgba(56, 83, 70, 0.23);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--lib-tone);
  color: var(--lib-glyph);
  isolation: isolate;
}
.lib-visual.tone-clay {
  --lib-tone: #eed7c9;
  --lib-glyph: #854b3e;
  --lib-thread: rgba(130, 73, 54, 0.23);
}
.lib-visual.tone-plum {
  --lib-tone: #e1d7df;
  --lib-glyph: #684956;
  --lib-thread: rgba(97, 66, 83, 0.26);
}
.lib-visual.tone-blue {
  --lib-tone: #d5e2e5;
  --lib-glyph: #3f5d68;
  --lib-thread: rgba(53, 81, 94, 0.25);
}
.lib-visual.tone-sand {
  --lib-tone: #e9ddc0;
  --lib-glyph: #6c5637;
  --lib-thread: rgba(99, 77, 49, 0.25);
}
.lib-visual::before,
.lib-visual::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  border: 1px solid var(--lib-thread);
  border-radius: 50%;
  width: 135%;
  height: 180%;
  transform: rotate(-25deg);
  right: -75%;
  top: -55%;
  box-shadow:
    0 0 0 7px var(--lib-tone),
    0 0 0 8px var(--lib-thread),
    0 0 0 15px var(--lib-tone),
    0 0 0 16px var(--lib-thread);
}
.lib-visual::after {
  right: 47%;
  top: 55%;
  width: 95%;
  height: 110%;
  transform: rotate(-39deg);
}
.lib-cover-glyph {
  display: grid;
  place-items: center;
  position: relative;
}
.lib-visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  display: block;
}
.lib-visual.mini {
  width: 45px;
  height: 45px;
  flex: none;
  border-radius: 12px;
}
.lib-visual.mini::after {
  display: none;
}
.lib-title-block > .lib-visual {
  flex: 0 0 clamp(65px, 9.5vw, 110px);
  aspect-ratio: 1;
  border-radius: 15px 15px 15px 4px;
}
.lib-tools {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 0 12px;
  gap: 4px 9px;
}
.lib-toolgroup {
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}
.lib-pill,
.lib-view-choice,
.lib-text-button,
.lib-link,
.lib-mini,
.lib-table-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: var(--ink);
  border: 0;
  cursor: pointer;
  line-height: 1.35;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.lib-pill {
  min-height: 42px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  font-size: 0.87rem !important;
}
.lib-pill.active,
.lib-pill:hover,
.lib-view-choice.chosen {
  color: var(--accent);
  background: var(--soft);
}
.lib-text-button,
.lib-link {
  color: var(--accent);
  min-height: 44px;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 4px;
  text-align: left;
}
.lib-link {
  overflow-wrap: anywhere;
}
.lib-mini {
  min-width: 40px;
  min-height: 38px;
  padding: 3px 7px;
  color: var(--muted);
  font-size: 0.81rem !important;
}
.lib-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}
.lib-section-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 115px auto;
  gap: 0 9px;
  overflow: hidden;
  padding: 0 0 14px;
  text-align: left;
  text-decoration: none;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.lib-tile-art {
  grid-column: 1 / -1;
}
.lib-hero-art {
  position: relative;
  flex: 0 0 clamp(110px, 16vw, 190px);
  aspect-ratio: 1.5;
  border-radius: 18px;
}
.lib-art-button,
.lib-art-button > .lib-visual,
.lib-tile-art > .lib-visual,
.lib-hero-art > .lib-visual {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.lib-tile-art .lib-visual,
.lib-hero-art .lib-visual {
  display: grid;
}
.lib-art-button {
  position: relative;
}
.lib-filter-row {
  display: flex;
  margin: 0 0 14px;
}
.lib-cover-large .lib-visual {
  height: clamp(120px, 28vw, 190px);
  border-radius: 15px;
}
.lib-shelf-status {
  margin-block: 5px 9px;
}
.lib-tile-text {
  margin: 13px 0 0 15px;
  align-self: center;
  min-width: 0;
}
.lib-tile-text strong,
.lib-entry-copy strong {
  display: block;
  overflow-wrap: anywhere;
}
.lib-tile-text strong {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.lib-section-tile > svg {
  align-self: center;
  margin: 14px 12px 0 0;
  color: var(--muted);
}
.lib-pins {
  margin: 0 0 14px;
}
.lib-pins .lib-h2 {
  font-size: 1.24rem;
  margin-top: 0;
}
.lib-pin-list {
  flex-wrap: wrap;
  gap: 6px;
}
.lib-empty {
  display: grid;
  gap: clamp(15px, 4.5vw, 58px);
  align-items: center;
  grid-template-columns: minmax(130px, 0.85fr) minmax(0, 1.5fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  padding: clamp(24px, 5vw, 57px);
}
.lib-empty h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  color: var(--ink);
  margin: 0;
}
.lib-empty p {
  font-size: 0.93rem;
  margin: 8px 0 15px;
}
.lib-spines {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  padding: 14px 6px 12px;
  width: 100%;
  height: clamp(100px, 14vw, 155px);
  position: relative;
}
.lib-spines b {
  position: absolute;
  height: 5px;
  bottom: 7px;
  left: 7%;
  width: 86%;
  background: #94836e;
  border-radius: 4px;
  box-shadow: 0 3px 0 rgba(81, 66, 45, 0.12);
}
.lib-spine {
  --lib-spine-dark: #71846d;
  width: 18%;
  max-width: 44px;
  height: 90%;
  background: #c4cfbd;
  border: 1px solid var(--lib-spine-dark);
  border-radius: 3px;
  box-shadow: inset 3px 0 0 #ffffff46;
  position: relative;
}
.lib-spine::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  height: 12%;
  top: 11%;
  border-top: 2px solid var(--lib-spine-dark);
  border-bottom: 1px solid var(--lib-spine-dark);
}
.lib-spine::after {
  content: "";
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  bottom: 11%;
  left: 35%;
  border: 1px solid var(--lib-spine-dark);
  border-radius: 50%;
}
.lib-spine.clay {
  --lib-spine-dark: #a57865;
  background: #d4a48d;
  height: 76%;
  transform-origin: left bottom;
  transform: rotate(-10deg);
  margin-left: 13px;
}
.lib-spine.sand {
  --lib-spine-dark: #96875f;
  background: #e3d6b3;
  height: 66%;
  width: 15%;
}
.lib-noresults,
.lib-note,
.lib-draft-state {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lib-noresults {
  padding: 17px 0;
}
.lib-note {
  margin: 0;
}
.lib-draft-state {
  display: block;
}
.lib-entry-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.lib-entry-grid.gallery,
.lib-entry-grid.cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr));
}
.lib-entry-grid.list {
  gap: 0;
}
.lib-entry {
  position: relative;
  min-width: 0;
}
.lib-entry-button {
  display: flex;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 0;
}
.lib-entry-copy {
  flex: 1;
  min-width: 0;
}
.lib-entry-copy strong {
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.35;
}
.lib-entry-copy small,
.lib-option small,
.lib-schema-line small,
.lib-restore-line small,
.lib-template-row small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 3px;
}
.lib-entry-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.lib-entry.list {
  border-bottom: 1px solid var(--line);
}
.lib-entry.list .lib-entry-button {
  min-height: 64px;
  padding: 10px 3px;
}
.lib-entry.list .lib-visual {
  width: 46px;
  height: 46px;
}
.lib-entry.list .lib-entry-button > svg {
  color: var(--muted);
}
.lib-entry.cards,
.lib-entry.gallery {
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 13px;
  background: var(--paper);
}
.lib-entry.cards .lib-entry-button,
.lib-entry.gallery .lib-entry-button {
  display: block;
  height: 100%;
}
.lib-entry.cards .lib-entry-copy,
.lib-entry.gallery .lib-entry-copy {
  display: block;
  padding: 13px;
}
.lib-entry.gallery .lib-visual,
.lib-entry.cards .lib-visual {
  width: 100%;
  aspect-ratio: 1.55;
}
.lib-favorite {
  color: var(--accent);
  line-height: 0;
}
.lib-entry.cards .lib-favorite,
.lib-entry.gallery .lib-favorite {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 100%;
  background: var(--paper);
  padding: 6px;
}
.lib-entry .lib-pick {
  z-index: 1;
  margin: 0;
  position: absolute;
  left: 7px;
  top: 10px;
}
.lib-entry.list:has(.lib-pick) {
  padding-left: 34px;
}
.lib-entry.cards:has(.lib-pick) .lib-entry-copy,
.lib-entry.gallery:has(.lib-pick) .lib-entry-copy {
  padding-left: 30px;
}
.lib-selection {
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--soft);
  margin-bottom: 12px;
  gap: 5px;
}
.lib-selection strong {
  margin-right: auto;
  font-size: 0.9rem;
}
.lib-check input,
.lib-pick,
.lib-check-row input[type="checkbox"],
.lib-field > input[type="checkbox"] {
  width: 21px;
  height: 21px;
  flex: none;
  accent-color: var(--accent);
}
.lib-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lib-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 240px;
  text-align: left;
  font-size: 0.9rem;
  background: var(--paper);
}
.lib-table th,
.lib-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 13px;
  max-width: 310px;
  min-width: 100px;
  overflow-wrap: anywhere;
}
.lib-table th {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 40px;
}
.lib-table tr:last-child td {
  border: 0;
}
.lib-table-link {
  padding: 0;
  min-height: 44px;
  text-align: left;
  color: var(--accent);
  justify-content: flex-start;
  overflow-wrap: anywhere;
}
.lib-board {
  display: grid;
  grid-auto-columns: minmax(180px, 33%);
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 9px;
  gap: 10px;
}
.lib-board > section {
  background: var(--soft);
  padding: 12px;
  border-radius: 16px;
  min-width: 0;
}
.lib-board h3,
.lib-grouped h3,
.lib-timeline h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  margin: 0 0 9px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.lib-board h3 small,
.lib-grouped h3 small {
  color: var(--muted);
  font-weight: 400;
}
.lib-board .lib-entry-grid {
  display: flex;
  flex-direction: column;
}
.lib-grouped,
.lib-timeline {
  display: grid;
  gap: 22px;
}
.lib-timeline > section {
  border-left: 2px solid var(--line);
  padding-left: 15px;
}
.lib-calendar {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  padding: var(--lib-pad);
}
.lib-calendar-nav,
.lib-paging {
  justify-content: space-between;
}
.lib-calendar-nav h3 {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 3vw, 29px);
}
.lib-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin: 12px 0;
  text-align: center;
}
.lib-cal-grid > small {
  color: var(--muted);
  padding: 5px 0;
}
.lib-cal-day {
  min-height: 43px;
  position: relative;
  padding: 4px 1px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  place-content: center;
  color: var(--ink);
}
.lib-cal-day.today {
  border-color: var(--accent);
}
.lib-cal-day.has-items {
  background: var(--soft);
  color: var(--accent);
}
.lib-cal-day i {
  font-size: 0.62rem;
  line-height: 1;
  font-style: normal;
}
.lib-paging {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.85rem;
}
.lib-form,
.lib-options,
.lib-new-collection,
.lib-detail,
.lib-schema-input,
.lib-chooser-list,
.lib-schema-editor {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.lib-field,
.lib-group-field {
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
}
.lib-field > span,
.lib-group-field legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.lib-field small {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.45;
}
.lib-group-field {
  padding: 0;
  border: 0;
}
.lib-group-field legend {
  padding: 0 0 5px;
}
.lib-form input:not([type="checkbox"]):not([type="hidden"]),
.lib-form textarea,
.lib-form select,
.lib-detail input:not([type="checkbox"]) {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  font: 400 max(16px, 0.97rem)/1.3 var(--sans);
  padding: 10px 12px;
  min-height: 44px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.lib-form textarea {
  resize: vertical;
}
.lib-form input[type="file"] {
  line-height: 1.6;
  font-size: 0.9rem !important;
}
.lib-form ::placeholder {
  color: var(--muted);
  opacity: 0.93;
}
.lib-form .lib-check,
.lib-detail .lib-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
}
.lib-field:has(> input[type="checkbox"]) {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  min-height: 42px;
}
.lib-form [hidden],
.lib-screen [hidden],
.lib-detail [hidden] {
  display: none !important;
}
.lib-footer {
  justify-content: flex-end;
  margin-top: 5px;
  border-top: 1px solid var(--line);
  padding: 13px 0 0;
}
.lib-error {
  color: var(--danger, #9a382f);
  border-left: 2px solid currentColor;
  padding-left: 8px;
  margin: 0;
}
.lib-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 5px 0 10px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  min-height: 55px;
}
.lib-option > span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.lib-option > svg {
  flex: none;
  color: var(--muted);
}
.lib-option strong,
.lib-schema-line b,
.lib-option b {
  font-size: 0.96rem;
  font-weight: 600;
}
.lib-dialog-head {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.lib-starters,
.lib-view-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lib-starter,
.lib-view-choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.lib-starter {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 7px;
  gap: 7px;
}
.lib-starter strong {
  font-size: 0.88rem;
  line-height: 1.25;
}
.lib-view-choice {
  min-height: 45px;
}
.lib-morefields {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
}
.lib-morefields > summary {
  padding: 12px 0;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
}
.lib-morefields[open] {
  padding-bottom: 10px;
}
.lib-morefields[open] > * + * {
  margin-top: 7px;
}
.lib-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lib-pair.money {
  grid-template-columns: minmax(0, 1fr) 86px;
}
.lib-destination {
  flex-wrap: wrap;
  font-size: 0.87rem;
  justify-content: flex-start;
  gap: 3px 8px;
}
.lib-destination > span:first-child {
  color: var(--muted);
}
.lib-destination > span:nth-child(2) {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.lib-rich-input > div {
  display: flex;
  gap: 2px;
}
.lib-rich-input .lib-mini:first-child {
  font-weight: 600 !important;
}
.lib-rich-input .lib-mini:nth-child(2) {
  font-style: italic !important;
}
.lib-rich p {
  overflow-wrap: anywhere;
  margin: 0 0 0.25em;
}
.lib-page-body {
  border-left: 2px solid var(--line);
  padding: 5px 0 5px 15px;
  max-width: 72ch;
  line-height: 1.55;
  margin: 0 0 17px;
}
.lib-check-input,
.lib-checklist {
  display: grid;
  gap: 3px;
}
.lib-check-row input[type="text"] {
  flex: 1;
}
.lib-props {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.4fr);
  margin: 0;
  border-top: 1px solid var(--line);
}
.lib-props dt,
.lib-props dd {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 3px;
  margin: 0;
  overflow-wrap: anywhere;
}
.lib-props dt {
  color: var(--muted);
  font-size: 0.87rem;
}
.lib-props dd {
  font-size: 0.95rem;
}
.lib-href,
.lib-file-link,
.lib-photo-link {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.lib-file-link,
.lib-photo-link {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 40px;
}
.lib-photo-link img {
  max-width: 100%;
  max-height: 280px;
  display: block;
  border-radius: 9px;
  object-fit: contain;
}
.lib-photo-link span {
  font-size: 0.8rem;
}
.lib-detail-meta,
.lib-detail-bottom {
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.lib-detail-meta > span,
.lib-detail-bottom small {
  font-size: 0.8rem;
  color: var(--muted);
}
.lib-detail-bottom {
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.lib-detail-bottom small {
  margin-right: auto;
}
.lib-attachments > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lib-attachments a {
  color: var(--accent);
}
.lib-cover-preview .lib-visual {
  height: 94px;
  border-radius: 10px;
}
.lib-schema-line,
.lib-order-row,
.lib-template-row,
.lib-restore-line {
  padding: 5px 0;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}
.lib-schema-line > :first-child,
.lib-order-row > span,
.lib-template-row > strong,
.lib-restore-line > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lib-schema-label {
  text-align: left;
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
  border: 0;
  min-height: 44px;
}
.lib-widget-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lib-widget-label > svg {
  color: var(--accent);
}
.lib-widget-label > span {
  min-width: 0;
}
.home-widgets .widget[data-surface="paper"],
.home-widgets .widget[data-surface="soft"] {
  padding: clamp(13px, 2vw, 21px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.home-widgets .widget[data-surface="soft"] {
  background: var(--soft);
}
.lib-multichoice {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 14px;
}
.lib-template-row strong,
.lib-restore-line b {
  font-size: 0.95rem;
}
[data-density="compact"] .lib-entry.list .lib-entry-button {
  min-height: 46px;
  padding: 4px 3px;
}
[data-mode="dark"] .lib-visual {
  filter: saturate(0.72) brightness(0.84);
}
[data-type="sans"] .lib-h1,
[data-type="sans"] .lib-h2,
[data-type="sans"] .lib-tile-text strong,
[data-type="sans"] .lib-empty h2 {
  font-family: var(--sans);
}
@media (hover: hover) {
  .lib-section-tile:hover,
  .lib-entry.cards:hover,
  .lib-entry.gallery:hover {
    border-color: var(--accent);
  }
  .lib-option:hover strong,
  .lib-schema-label:hover b,
  .lib-entry-button:hover strong {
    color: var(--accent);
  }
}
@media (max-width: 540px) {
  .lib-roothead {
    gap: 8px;
    margin-bottom: 18px;
  }
  .lib-roothead .lib-subtitle {
    font-size: 0.87rem;
  }
  .lib-h1 {
    font-size: 43px;
  }
  .lib-title-block {
    display: grid;
    grid-template-columns: 49px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .lib-title-block > .lib-visual {
    width: 49px;
    border-radius: 10px 10px 10px 3px;
  }
  .lib-title-block > .lib-visual svg {
    width: 26px;
    height: 26px;
  }
  .lib-title-block .lib-head-actions {
    gap: 1px;
  }
  .lib-title-block .lib-h1 {
    font-size: clamp(24px, 7vw, 34px);
  }
  .lib-title-block .lib-head-actions .btn {
    padding-inline: 10px;
  }
  .lib-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .lib-section-tile {
    grid-template-rows: 87px auto;
    border-radius: 12px;
    gap: 0 4px;
    padding-bottom: 10px;
  }
  .lib-tile-text {
    margin-left: 9px;
    margin-top: 8px;
  }
  .lib-tile-text strong {
    font-size: 1.1rem;
  }
  .lib-section-tile > svg {
    width: 13px;
    margin-right: 6px;
    margin-top: 6px;
  }
  .lib-empty {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
    padding: 20px 18px 25px;
  }
  .lib-spines {
    width: 140px;
    height: 100px;
    justify-self: center;
  }
  .lib-empty p {
    margin-left: auto;
    margin-right: auto;
  }
  .lib-entry-grid.gallery,
  .lib-entry-grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lib-pill {
    min-height: 40px;
    padding-inline: 9px;
    font-size: 0.78rem !important;
  }
  .lib-board {
    grid-auto-columns: minmax(153px, 77%);
  }
  .lib-props {
    grid-template-columns: minmax(77px, 0.65fr) minmax(0, 1.35fr);
  }
  .lib-starter .lib-visual {
    width: 34px;
    height: 36px;
    border-radius: 8px;
  }
  .lib-calendar {
    padding: 10px;
  }
}
@media (max-width: 360px) {
  .lib-roothead {
    flex-wrap: wrap;
  }
  .lib-title-block > .lib-visual {
    flex-basis: 52px;
  }
  .lib-starters {
    grid-template-columns: 1fr;
  }
  .lib-head-actions .btn {
    padding-inline: 9px;
  }
}

/* Category artwork belongs to the collection. A user's own photo sits above it. */
.lib-cover-art::before {
  inset: auto 0;
  top: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-image: url("/assets/shelf-covers.webp");
  background-size: 200% 200%;
}
.lib-cover-art.art-movies::before {
  background-position: left top;
}
.lib-cover-art.art-places::before {
  background-position: right top;
}
.lib-cover-art.art-ideas::before {
  background-position: left bottom;
}
.lib-cover-art.art-shopping::before {
  background-position: right bottom;
}
.lib-cover-art::after,
.lib-cover-art > .lib-cover-glyph {
  display: none;
}
[data-mode="dark"] .lib-cover-art {
  filter: none;
}
.lib-section-tile {
  grid-template-rows: clamp(100px, 13vw, 165px) auto;
  border-radius: 18px;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ink) 5%, transparent);
  background: color-mix(
    in srgb,
    var(--paper) 82%,
    var(--shelf-tint, var(--paper))
  );
}
.lib-section-tile:has(.art-movies) {
  --shelf-tint: #e993b5;
}
.lib-section-tile:has(.art-places) {
  --shelf-tint: #77c4a8;
}
.lib-section-tile:has(.art-ideas) {
  --shelf-tint: #c3a0e8;
}
.lib-section-tile:has(.art-shopping) {
  --shelf-tint: #efb06a;
}
.lib-tile-text small {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0;
}
.lib-breadcrumbs {
  margin-bottom: 6px;
  min-height: 42px;
}
.lib-breadcrumbs > :last-child {
  margin-left: auto;
}
.lib-title-block {
  padding-bottom: 22px;
}
.lib-empty-line {
  color: var(--muted);
  text-align: center;
  margin: 8px auto 24px;
  max-width: 34ch;
}
.lib-photo-stack {
  position: relative;
  width: min(100%, 215px);
  aspect-ratio: 1.7;
  margin: auto;
}
.lib-photo-stack > .lib-visual {
  width: 54%;
  aspect-ratio: 1.12;
  position: absolute;
  bottom: 7%;
  border: 4px solid #fffbf4;
  border-bottom-width: 13px;
  border-radius: 4px;
  box-shadow: 0 3px 8px #4a30272e;
}
.lib-photo-stack > :first-child {
  left: 0;
  transform: rotate(-13deg);
}
.lib-photo-stack > :nth-child(2) {
  right: 0;
  transform: rotate(12deg);
}
.lib-photo-stack > :last-child {
  left: 24%;
  bottom: 0;
  transform: rotate(-3deg);
}
.lib-title-block.with-cover > .lib-visual {
  flex-basis: clamp(110px, 16vw, 190px);
  aspect-ratio: 1.5;
  border-radius: 18px;
}
.lib-quick-form .lib-schema-input:empty,
.lib-quick-form .lib-draft-state:empty {
  display: none;
}
.lib-quick-form > .lib-field > input {
  font-size: max(1rem, 16px);
  min-height: 46px;
}
.lib-quick-form .lib-footer > .primary {
  flex: 1;
  justify-content: center;
  min-height: 46px;
}
.lib-destination-button {
  justify-self: start;
}
.lib-quick-form .lib-morefields {
  border-width: 1px 0 0;
  border-radius: 0;
  padding-inline: 0;
}
.lib-quick-form .lib-morefields > summary {
  color: var(--muted);
}
.lib-starter {
  min-height: 52px;
}
.lib-starter[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--accent);
  border-color: var(--accent);
  background: var(--soft);
}
.lib-quick-values {
  display: grid;
  gap: 12px;
}
.lib-quick-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.lib-state-chip {
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: var(--paper);
}
.lib-state-chip[aria-pressed="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--soft);
}
@media (max-width: 600px) {
  .lib-film-status {
    display: grid;
    grid-template-columns: 1.25fr .9fr 1fr;
    gap: 4px;
  }
  .lib-film-status .lib-quick-caption { grid-column: 1/-1; }
  .lib-film-status > .lib-state-chip {
    min-width: 0;
    min-height: 44px;
    padding: 5px 4px;
    justify-content: center;
    text-align: center;
    font-size: .88rem;
    line-height: 1.2;
  }
}
.lib-quick-caption {
  color: var(--muted);
  font-size: 0.88rem;
}
.lib-stars {
  display: inline-flex;
}
.lib-stars button {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
}
.lib-stars .filled,
.lib-score {
  color: var(--accent);
}
.lib-stars .filled svg,
.lib-score svg {
  fill: currentColor;
}
.lib-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 0.8rem;
}
.lib-ticket-icon {
  display: inline-grid;
  place-items: center;
  height: 34px;
  width: 38px;
  color: var(--accent);
}
.lib-ticket.gallery,
.lib-ticket.cards {
  background: var(--paper);
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--paper) 77%, #e4a3be),
    var(--paper) 88%
  );
}
.lib-ticket.gallery .lib-entry-button,
.lib-ticket.cards .lib-entry-button {
  padding: 12px 13px;
}
.lib-ticket.gallery .lib-ticket-icon,
.lib-ticket.cards .lib-ticket-icon {
  width: 100%;
  justify-content: start;
  padding-bottom: 9px;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 36%, var(--line));
}
.lib-ticket.gallery .lib-entry-copy,
.lib-ticket.cards .lib-entry-copy {
  padding: 9px 0 0;
}
.lib-ticket .lib-entry-copy strong {
  font-size: 1.05rem;
}
.lib-screen > .lib-pill.active {
  margin-bottom: 10px;
}
@media (max-width: 540px) {
  .lib-roothead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .lib-roothead .lib-head-actions {
    display: contents;
  }
  .lib-roothead .lib-head-actions > .primary {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .lib-title-block {
    grid-template-columns: 57px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 17px;
  }
  .lib-title-block > .lib-visual {
    width: 57px;
  }
  .lib-title-block.no-thumb .lib-title-copy {
    grid-column: 1/-1;
  }
  .lib-title-block .lib-head-actions {
    grid-column: 1/-1;
  }
  .lib-title-block .lib-head-actions > .primary {
    flex: 1;
    justify-content: center;
  }
  .lib-title-block .lib-h1 {
    font-size: clamp(29px, 8vw, 36px);
  }
  .lib-section-tile {
    grid-template-rows: clamp(96px, 29vw, 145px) auto;
    border-radius: 15px;
  }
  .lib-title-block.with-cover {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(115px, auto) auto;
    row-gap: 12px;
  }
  .lib-title-block.with-cover > .lib-visual,
  .lib-title-block.with-cover > .lib-hero-art,
  .lib-title-block.with-cover > .lib-title-copy {
    grid-area: 1 / 1;
  }
  .lib-title-block.with-cover > .lib-visual,
  .lib-title-block.with-cover > .lib-hero-art {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 18px;
  }
  .lib-title-block.with-cover > .lib-title-copy {
    pointer-events: none;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
    padding: 28px 17px 14px;
    border-radius: 18px;
    background: linear-gradient(0deg, #21141bc9, #21141b6b 57%, #21141b12);
  }
  .lib-title-block.with-cover .lib-h1,
  .lib-title-block.with-cover .lib-subtitle,
  .lib-title-block.with-cover .lib-overline {
    color: #fffaf4;
  }
  .lib-title-block.with-cover .lib-subtitle {
    margin: 4px 0 0;
  }
  .lib-entry-grid.gallery:has(> .lib-ticket:only-child),
  .lib-entry-grid.cards:has(> .lib-ticket:only-child) {
    grid-template-columns: 1fr;
  }
  .lib-ticket:only-child .lib-entry-button {
    display: flex;
    align-items: center;
    min-height: 89px;
    gap: 14px;
  }
  .lib-ticket:only-child .lib-ticket-icon {
    width: 43px;
    height: 52px;
    flex-shrink: 0;
    justify-content: center;
    border: 0;
    border-right: 1px dashed var(--line);
    padding: 0 10px 0 0;
  }
  .lib-ticket:only-child .lib-entry-copy {
    padding: 0;
  }
}

.lib-place-pin {
  width: 100%;
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.lib-place-inner {
  position: relative;
}
.lib-place-link {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.lib-place-link .pin-visual {
  display: block;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}
.lib-place-link .pin-visual[data-visual="photo"],
.lib-place-link .pin-visual[data-visual="photo"] img {
  height: auto;
  aspect-ratio: auto;
}
.lib-place-link .pin-visual[data-visual="photo"] img {
  position: static;
  display: block;
  width: 100%;
  aspect-ratio: auto 4 / 5;
}
.lib-place-caption {
  display: block;
  padding: 8px 3px 1px;
}
.lib-place-caption strong,
.lib-place-caption small {
  display: block;
  overflow-wrap: anywhere;
}
.lib-place-caption strong {
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.26;
}
.lib-place-caption small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 4px;
}
.lib-photo-slot:empty,
.lib-place-note:empty,
.lib-stored-content:empty,
.lib-place-picker :empty.lib-hint {
  display: none;
}
.lib-place-picker {
  display: grid;
  gap: 9px;
}
.lib-place-choose {
  display: flex;
  position: relative;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--accent) 57%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 88%, var(--accent));
  color: var(--accent);
  font-weight: 600;
}
.lib-place-choose:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lib-place-choose input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.lib-place-picker.has-photos .lib-place-choose {
  min-height: 44px;
}
.lib-place-picker.has-photos .lib-place-previews {
  order: -1;
}
.lib-place-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 7px;
  max-height: min(28vh, 240px);
  overflow-y: auto;
}
.lib-place-previews:empty {
  display: none;
}
.lib-place-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
}
.lib-place-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lib-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.lib-place-preview > .lib-icon {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 36px;
  min-height: 36px;
  background: radial-gradient(circle, #241b23b8 55%, transparent 58%);
  color: white;
  border: none;
}
.lib-place-preview > .lib-icon svg {
  width: 15px;
  height: 15px;
}
.lib-cover-label,
.lib-cover-choice {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(transparent, #201923c9 40%);
  border: 0;
  padding: 10px 2px 4px;
  font-size: 0.7rem;
}
.lib-form .lib-cover-choice {
  font-size: 0.72rem;
  min-height: 44px;
}
.lib-place-gallery {
  min-width: 0;
}
.lib-place-slides {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 16px;
}
.lib-place-slides::-webkit-scrollbar {
  display: none;
}
.lib-place-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--paper) 94%, var(--ink));
}
.lib-place-slide img {
  width: 100%;
  height: clamp(165px, 38vh, 410px);
  object-fit: contain;
}
.lib-place-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.lib-place-pager > button {
  width: 44px;
  min-height: 44px;
}
.lib-place-detail > .pin-visual {
  display: block;
  width: 100%;
  max-height: 36vh;
  overflow: hidden;
  border-radius: 16px;
}
.lib-saved-data {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.lib-saved-data > summary {
  cursor: pointer;
  font-size: 0.82rem;
  padding: 12px 0;
}
.lib-stored-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.lib-quick-form [hidden] {
  display: none;
}
