:root {
  --control-ink: #282626;
  --control-muted: #777;
  --control-line: #d8d8d8;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #282626;
}
.scan {
  background: #f6f6f5;
}
.spatial-viewer,
#detailImage {
  background: transparent !important;
}
.page-feedback {
  border: 1px solid #9a4b40;
  padding: 14px 16px;
  font-size: 14px;
  background: #fff;
  color: #8b2e20;
  margin: 0 0 24px;
  line-height: 1.6;
}
.widget-popover {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 6px 20px #00000008;
}
.option-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #ddd;
  flex: none;
}
.option-searchbar:focus-within {
  border-bottom-color: #282626;
}
.option-searchbar > svg {
  width: 17px;
  height: 17px;
  color: #777;
  flex: none;
}
.option-searchbar .option-search {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  background: transparent;
  line-height: 24px;
  height: 24px;
  font: inherit;
}
.option-list {
  padding: 5px;
  min-height: 0;
  flex: 1 1 auto;
  max-height: 290px;
  overflow-y: auto;
}
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 9px;
  min-height: 40px;
  color: #282626;
}
.option[aria-selected="true"] {
  color: #282626;
  background: transparent;
  font-weight: 500;
}
.option:hover,
.option:focus-visible,
.option[aria-selected="true"]:focus-visible {
  background: #f2f2ef;
  color: #282626;
}
.option-check {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex: none;
}
.option-check svg {
  width: 14px;
  height: 14px;
}
.multi-option .option-check {
  border: 1px solid #aaa;
}
.multi-option[aria-selected="true"] .option-check {
  background: #282626;
  color: white;
  border-color: #282626;
}
.option-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #ddd;
  padding: 9px 14px;
  font-size: 12px;
  flex: none;
  color: #777;
}
.option-footer button {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #282626;
  font: inherit;
  cursor: pointer;
}
.option-footer button:disabled {
  color: #aaa;
  cursor: default;
}
.select-trigger.has-selection {
  border-color: #282626;
}
.select-trigger[aria-expanded="true"] {
  background: #fff;
}
.select-trigger:focus-visible {
  outline: 2px solid #282626;
  outline-offset: 2px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 40px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #ddd;
  font-size: 14px;
}
.pagination .page-range {
  margin-right: auto;
  color: #777;
  font-size: 13px;
}
.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: white;
  font: inherit;
}
.pagination button[aria-current="page"] {
  background: #282626;
  color: white;
  border-color: #282626;
}
.pagination button:disabled {
  color: #bbb;
  border-color: #eee;
}
.pagination .page-gap {
  padding: 0 3px;
}
.detail-info-group {
  border-top: 1px solid #ddd;
  margin-top: 24px;
  padding-top: 18px;
}
.detail-info-group > h2 {
  font-size: 15px;
  margin: 0 0 17px;
  font-weight: 500;
}
.detail-info-group .meta {
  margin: 0;
  gap: 18px 24px;
}
.detail-info-group .meta dt {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}
.detail-info-group .meta dd {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.archive-dialog {
  max-height: calc(100dvh - 40px);
  border: 1px solid #282626;
  border-radius: 0;
  background: #fff;
  color: #282626;
  overflow: auto;
}
.archive-dialog::backdrop {
  background: #ffffffc9;
}
.archive-dialog h2 {
  font-weight: 400;
}
.archive-dialog p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
  white-space: pre-wrap;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}
.dialog-actions button {
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #282626;
  background: white;
  cursor: pointer;
  color: #282626;
}
.dialog-actions button.primary {
  background: #282626;
  color: white;
}
.dialog-actions button:focus-visible {
  outline: 2px solid #282626;
  outline-offset: 3px;
}
.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.page-actions a,
.inline-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #282626;
  padding: 11px 16px;
  min-height: 44px;
  background: white;
  color: #282626;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.page-actions svg,
.inline-upload svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.page-actions a:hover,
.inline-upload:hover {
  background: #f5f5f2;
}
.upload-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}
.inline-upload:focus-within {
  outline: 2px solid #282626;
  outline-offset: 3px;
}
#transferActions {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 24px;
}
#transferActions:empty {
  display: none;
}
#transferActions > h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
#transferActions .panel-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
#transferActions .panel-actions button {
  width: auto;
  min-height: 42px;
  padding: 11px 16px;
}
#transferActions #applyBatch,
#transferActions #applyRestore {
  background: #282626;
  color: #fff;
}
.sidebar {
  padding: 20px !important;
}
.sidebar .side-section {
  padding: 0 0 22px !important;
  margin: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #ddd !important;
}
.sidebar .side-section:last-of-type {
  border-bottom: 0 !important;
  margin: 0;
}
.sidebar h2 {
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  margin: 0 0 17px !important;
}
.sidebar .composition-grid {
  display: grid;
  gap: 8px;
}
.sidebar .composition {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ccc;
  color: #282626;
  background: #fff;
}
.sidebar .composition.active {
  background: #282626;
  color: #fff;
  border-color: #282626;
}
.sidebar .mode-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
.sidebar .mode-icon svg {
  width: 24px;
  height: 24px;
}
.sidebar .setting-list {
  display: flex;
  flex-direction: column;
}
.sidebar .range-setting {
  display: block;
  margin: 0;
}
.sidebar .range-setting > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}
.sidebar .range-setting output {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #282626;
}
.sidebar input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: #ccc;
  border: 0;
  border-radius: 0;
  outline-offset: 6px;
  margin: 5px 0 8px;
  padding: 0;
  display: block;
  cursor: pointer;
}
.sidebar input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid #282626;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.sidebar input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid #282626;
  border-radius: 0;
  background: #fff;
}
.sidebar input[type="range"]:disabled {
  opacity: 0.35;
  cursor: default;
}
.sidebar .batches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ddd;
  padding-top: 16px;
  margin: 18px 0 0;
}
.sidebar .batch-actions {
  display: flex;
  gap: 6px;
}
.sidebar .batch-actions button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #aaa;
  background: white;
  font-size: 20px;
  cursor: pointer;
}
.sidebar .batch-actions button:disabled {
  color: #bbb;
  border-color: #ddd;
}
.viewport::before,
.viewport::after {
  display: none !important;
}
.scene .ticket-flip-inner {
  transform: rotateY(0deg) !important;
  transition: none !important;
}
.scene .back-face {
  display: none !important;
}
.scene .front-face {
  backface-visibility: visible;
}
.scene .ticket-face img {
  backface-visibility: visible;
}
@media (max-width: 700px) {
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .pagination .page-range {
    flex-basis: 100%;
    text-align: center;
    margin: 0 0 10px;
  }
  .pagination {
    gap: 5px;
  }
  .upload-entry {
    gap: 10px;
  }
  .page-actions a,
  .inline-upload {
    font-size: 13px;
  }
  #transferActions .panel-actions {
    flex-direction: column;
  }
  #transferActions .panel-actions button {
    width: 100%;
  }
  .sidebar .composition {
    padding: 10px;
    gap: 8px;
  }
}
.filter-open .sidebar .filter-section {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}
.results-summary .count {
  margin: 0;
}
.count:focus {
  outline: 0;
}
.pagination-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #777;
}
.pagination-mini button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 19px;
}
.pagination-mini button:disabled {
  border-color: #eee;
  color: #bbb;
}
.detail-note {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  margin: 0;
}
.search.compact {
  width: min(100%, 420px);
  max-width: 420px;
  flex: 0 1 420px;
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  border: 1px solid #8c8c86;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.13s,
    border-color 0.13s;
}
input[type="checkbox"]:hover {
  border-color: #282626;
}
input[type="checkbox"]:checked {
  border-color: #282626;
  background-color: #282626;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='m4 9 3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 18px;
  background-repeat: no-repeat;
}
input[type="checkbox"]:disabled {
  opacity: 0.35;
  cursor: default;
}
input[type="checkbox"]:focus-visible {
  outline: 1px solid #282626;
  outline-offset: 3px;
}
.card-selector,
.thumbnail-grid .card-selector {
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.select-card > input {
  top: 14px;
  left: 14px;
}
.multi-option .option-check {
  width: 18px;
  height: 18px;
  border-color: #8c8c86;
}
.multi-option .option-check svg {
  width: 16px;
  height: 16px;
}
.tool-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.external-actions button {
  font: inherit;
  font-size: 14px;
  padding: 11px 16px;
  border: 1px solid #282626;
  background: #fff;
  min-height: 44px;
}
.external-actions #applyExternal {
  background: #282626;
  color: #fff;
}
.ticket-card:focus-visible,
.ticket-card:focus-visible .card-visual {
  outline: 0 !important;
  box-shadow: none !important;
}
.ticket-card:focus-visible .ticket-face img {
  filter: drop-shadow(0 0 3px #5555);
}
.viewport {
  background:
    radial-gradient(ellipse at 30% 16%, #fff 0%, #fffffff0 12%, #ffffff00 53%),
    radial-gradient(ellipse at 78% 80%, #c4c9c740 0%, #c4c9c700 62%),
    linear-gradient(128deg, #e5e5e1 0%, #f4f3ef 46%, #e6e8e6 100%) !important;
}
.canvas-stage:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.45' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.storage-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.storage-heading .muted {
  font-size: 13px;
}
.archive-shelf {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 30px 24px 34px 12px;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 12px;
}
.archive-book {
  position: relative;
  flex: 0 0 68px;
  height: var(--book-height);
  isolation: isolate;
}
.archive-book:before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -6px;
  width: 58px;
  height: 15px;
  background: #2222;
  filter: blur(5px);
  border-radius: 50%;
}
.archive-toggle {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--book-ink);
  text-align: left;
  cursor: pointer;
}
.archive-toggle:focus-visible {
  outline: 1px solid #282626;
  outline-offset: 7px;
}
.archive-volume {
  position: absolute;
  left: 2px;
  bottom: 0;
  display: block;
  width: 220px;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: none;
  pointer-events: none;
  transition: transform 0.68s cubic-bezier(0.22, 0.7, 0.16, 1);
}
.archive-front,
.archive-spine {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--book-bg);
  color: var(--book-ink);
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px #0000000b;
  overflow: hidden;
}
.archive-spine {
  left: 0;
  right: auto;
  width: 62px;
  transform-origin: left center;
  transform: none;
  transition: transform 0.68s cubic-bezier(0.22, 0.7, 0.16, 1);
  background:
    linear-gradient(
      90deg,
      #0000000c,
      transparent 15%,
      #ffffff12 80%,
      #00000017
    ),
    var(--book-bg);
}
.archive-front {
  padding: 20px;
  transform-origin: left center;
  transform: translateX(62px) rotateY(90deg);
  opacity: 0;
  transition:
    transform 0.68s cubic-bezier(0.22, 0.7, 0.16, 1),
    opacity 0.2s;
  background: linear-gradient(90deg, #00000012, transparent 8%), var(--book-bg);
}
.spine-number {
  position: absolute;
  line-height: 1;
}
.spine-title {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  overflow: hidden;
}
.spine-hole {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--book-ink);
  opacity: 0.8;
}
.cover-motif {
  position: absolute;
  top: 55px;
  left: 22px;
  width: 176px;
  height: 126px;
  display: grid;
  place-items: center;
}
.cover-motif svg {
  width: 100px;
  height: 100px;
}
.cover-name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 77px;
  display: block;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.cover-footer {
  position: absolute;
  bottom: 27px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
}
@media (max-width: 700px) {
  .archive-shelf {
    padding: 22px 18px 30px 8px;
    gap: 10px;
  }
  .archive-book {
    height: calc(var(--book-height) - 32px);
  }
  .archive-volume {
    width: 182px;
  }
  .cover-motif {
    left: 17px;
    width: 148px;
    height: 110px;
    top: 44px;
  }
  .cover-name {
    font-size: 22px;
    bottom: 71px;
  }
  .archive-front {
    padding: 17px;
  }
  .storage-heading {
    gap: 18px;
  }
  .storage-heading .muted {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .archive-book,
  .archive-toggle,
  .archive-volume {
    transition: none !important;
  }
}
.archive-book.expanded .archive-front {
  transform: translateX(0) rotateY(-3deg);
  opacity: 1;
}
.archive-book.expanded .archive-spine {
  transform: rotateY(-90deg);
}
.inline-upload:focus-visible {
  outline: 2px solid #282626;
  outline-offset: 3px;
}
.scene .ticket-card {
  backface-visibility: visible;
  transition: opacity 0.18s ease;
}
.scene .card-visual {
  transform: none !important;
}
.focus-surface {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-origin: center;
  backface-visibility: visible;
  transform-style: flat;
}
.focus-surface > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 13px #00000014);
}
.focus-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background: #f5f5f2;
  color: #777;
  font-size: 13px;
  border: 1px solid #ddd;
}
.sidebar .composition-grid {
  grid-template-columns: 1fr 1fr;
}
.sidebar .composition {
  justify-content: center;
  padding: 13px;
  font-size: 14px;
}
.sidebar .setting-list {
  gap: 20px;
}
.brand > #brandToggle {
  visibility: visible !important;
  transition: opacity 0.16s ease !important;
}
.brand.open > #brandToggle {
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.brand > .brand-actions {
  visibility: visible !important;
  opacity: 0;
  transform: translateX(-5px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
}
.brand:not(.open) .brand-actions {
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.brand.open > .brand-actions {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.brand > .brand-actions #back {
  white-space: nowrap;
}
.brand-actions #back svg {
  transition: transform 0.16s ease;
}
.brand-actions #back:hover svg {
  transform: translateX(-3px);
}
body.home .brand > .brand-actions {
  display: none !important;
}
body.home .brand > #brandToggle {
  opacity: 1 !important;
}
.scan-upload {
  padding-top: 3px;
}
.scan-side-label {
  display: inline-block;
  font-size: 12px;
  color: #777;
  padding: 0 0 18px;
}
.scan-upload .scan-upload-button {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  gap: 12px;
  font-size: 14px;
}

.scan-upload .scan-remove {
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid #ddd;
  text-align: left;
  padding: 16px 0 0;
  font: inherit;
  font-size: 13px;
  color: #777;
  cursor: pointer;
}
.scan-upload .scan-remove:hover {
  color: #282626;
}
:root,
* {
  scrollbar-width: auto;
  scrollbar-color: auto;
}
html {
  scrollbar-gutter: stable;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: #b6b6b1;
  border: 0;
  border-radius: 0;
  background-clip: border-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: #646461;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
.sidebar,
.tool-panel,
.option-list,
.widget-popover {
  scrollbar-color: auto;
}
.sidebar::-webkit-scrollbar-track,
.tool-panel::-webkit-scrollbar-track {
  margin-block: 12px;
}
@supports not selector(::-webkit-scrollbar) {
  :root,
  * {
    scrollbar-width: thin;
    scrollbar-color: #b6b6b1 transparent;
  }
}
.archive-book {
  flex-basis: 68px;
  width: 68px;
  perspective: none;
  transition:
    flex-basis 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.archive-book.expanded {
  flex-basis: 234px;
  width: 234px;
}
.archive-toggle {
  width: 68px;
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  perspective: none;
  transform-style: preserve-3d;
}
.archive-book.expanded .archive-toggle {
  width: 224px;
}
.archive-volume,
.archive-book.expanded .archive-volume {
  left: 0;
  width: 212px;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: translateX(58px) rotateY(-90deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.archive-book.expanded .archive-volume {
  transform: translateX(5px) rotateY(-4deg);
}
.archive-front,
.archive-book.expanded .archive-front {
  inset: 0;
  padding: 20px;
  opacity: 1;
  transform: translateZ(0.2px);
  transition: none;
  background: var(--book-bg);
  backface-visibility: hidden;
  box-shadow: inset 1px 0 #0000000a;
}
.archive-spine,
.archive-book.expanded .archive-spine {
  left: -58px;
  width: 58px;
  right: auto;
  transform-origin: right center;
  transform: rotateY(90deg);
  transition: none;
  backface-visibility: hidden;
  background:
    linear-gradient(
      90deg,
      #00000013,
      transparent 12%,
      #ffffff0c 80%,
      #0000000a
    ),
    var(--book-bg);
}
.spine-number {
  left: 20px;
  top: 20px;
}
.spine-hole {
  left: 22px;
  width: 13px;
  height: 13px;
  bottom: 22px;
  box-shadow: inset 0 0 0 2px var(--book-bg);
}
.archive-book.expanded:before {
  width: 205px;
}
.cover-number {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.archive-front .cover-motif {
  left: 50%;
  transform: translateX(-50%);
  background: var(--book-accent);
}
.cover-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  display: block;
}
.archive-front .cover-name {
  position: static;
  display: block;
  font-size: 25px;
  line-height: 1.35;
  max-height: 100px;
  overflow: hidden;
  margin-bottom: 14px;
}
.archive-front .cover-footer {
  position: static;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0;
  align-items: center;
  gap: 12px;
}
.archive-front .cover-footer > span:last-child {
  font-size: 21px;
  line-height: 1;
}
@media (max-width: 700px) {
  .archive-book.expanded {
    flex-basis: 222px;
    width: 222px;
  }
  .archive-book.expanded .archive-toggle {
    width: 212px;
  }
  .archive-volume,
  .archive-book.expanded .archive-volume {
    width: 200px;
  }
  .archive-front .cover-name {
    font-size: 23px;
  }
  .cover-label {
    left: 18px;
    right: 18px;
    bottom: 22px;
  }
  .archive-front .cover-motif svg {
    width: 64px;
    height: 64px;
  }
  .brand > .brand-actions {
    transform: translateX(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .archive-volume,
  .brand > #brandToggle,
  .brand > .brand-actions {
    transition: none !important;
  }
}
.archive-book,
.archive-toggle,
.archive-volume,
.archive-book.expanded .archive-volume {
  transition: none;
}
.archive-book:before {
  transition: width 0.35s ease;
}
.archive-front .cover-motif {
  border-radius: 0;
  width: 96px;
  height: 96px;
  top: 56px;
}
.archive-front .cover-motif svg {
  width: 60px;
  height: 60px;
}
.archive-front .cover-name {
  font-weight: 400;
}
.archive-spine {
  box-shadow:
    inset 1px 0 #ffffff1c,
    inset -1px 0 #00000012;
}
.scan-rotate {
  left: 10px;
  right: auto;
}
.sidebar .batch-navigation {
  display: block;
  border-top: 1px solid #ddd;
  padding-top: 18px;
  margin-top: 18px;
}
.batch-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.sidebar #batchLabel {
  font-size: 13px;
  color: #282626;
  margin: 0;
  line-height: 1.5;
}
.batch-total {
  font-size: 11px;
  color: #777;
}
.sidebar .batch-navigation .batch-actions {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  border: 1px solid #ccc;
  gap: 0;
}
.sidebar .batch-navigation .batch-actions button {
  border: 0;
  width: 36px;
  height: 34px;
  font-size: 20px;
}
.sidebar .batch-navigation .batch-actions button:first-child {
  border-right: 1px solid #ddd;
}
.sidebar .batch-navigation .batch-actions button:last-child {
  border-left: 1px solid #ddd;
}
.sidebar .batch-navigation .batch-actions button:hover:enabled {
  background: #f4f4f1;
}
.batch-page {
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #555;
}
.external-directory {
  border-top: 1px solid #ddd;
}
.directory-status {
  font-size: 12px;
  color: #555;
  margin: 15px 0 0;
}
.external-checking {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
  padding: 24px 0;
  font-size: 13px;
}
.checking-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: #282626;
  animation: directory-check 1s ease-in-out infinite alternate;
}
.external-filename {
  font-size: 12px;
  color: #777;
  overflow-wrap: anywhere;
  line-height: 1.7;
  margin: 7px 0 0;
  min-width: 0;
}
.external-checking .external-filename {
  margin: 0;
}
.external-preview {
  border: 1px solid #ccc;
  padding: 24px;
}
.external-preview-heading {
  position: static;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  pointer-events: auto;
  margin: 0 0 26px;
}
.external-preview-heading h2 {
  font-size: 19px;
  font-weight: 400;
  margin: 0;
}
.directory-tag {
  flex: none;
  font-size: 11px;
  color: #777;
  border: 1px solid #ccc;
  padding: 5px 8px;
}
.directory-differences {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 17px 0;
  font-size: 12px;
  color: #777;
}
.directory-differences b {
  font-weight: 400;
  color: #282626;
  margin-left: 9px;
}
.external-impact {
  border-left: 2px solid #d40909;
  padding-left: 14px;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.8;
  color: #666;
}
.external-impact p {
  margin: 0 0 5px;
}
.external-impact p:first-child {
  color: #282626;
}
.external-impact details {
  margin-top: 10px;
}
.external-impact summary {
  cursor: pointer;
}
.external-impact ul {
  padding: 0;
  list-style: none;
  margin: 10px 0 0;
}
.external-impact li {
  display: flex;
  gap: 20px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.external-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}
.external-review-actions button {
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid #282626;
  background: #fff;
  cursor: pointer;
  color: #282626;
}
.external-review-actions .primary {
  background: #282626;
  color: #fff;
  min-width: 130px;
}
.external-review-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
.external-error {
  margin: 18px 0 0 !important;
  font-size: 13px;
  line-height: 1.8;
}
.external-error:empty {
  display: none;
}
@keyframes directory-check {
  from {
    transform: translateX(0);
    opacity: 0.4;
  }
  to {
    transform: translateX(45px);
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .external-preview {
    padding: 18px;
    margin-top: 26px;
  }
  .directory-differences {
    gap: 18px;
  }
  .external-review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .external-review-actions button {
    padding: 10px 12px;
  }
  .external-review-actions .primary {
    min-width: 0;
  }
  .archive-front .cover-motif {
    width: 88px;
    height: 88px;
    top: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .checking-line {
    animation: none;
  }
}
.external-preview-heading h2:focus {
  outline: 0;
}
#editForm input:focus,
#editForm input:focus-visible,
#editForm textarea:focus,
#editForm textarea:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
  border-color: #555;
}
.date-popover button:focus-visible {
  outline: 1px solid #282626;
  outline-offset: 1px;
}
:root {
  --logo-text-inset: 26px;
}
.brand {
  width: 248px;
  height: 106px;
}
.brand > .brand-actions,
.brand > .brand-actions #back {
  height: 49px;
}
.brand > .brand-actions #back {
  font-size: 14px;
  padding: 0 22px;
  gap: 12px;
}
.brand > .brand-actions #back svg {
  width: 24px;
  height: 24px;
}
.spine-title {
  font-size: 18px;
  line-height: 24px;
  left: 17px;
  top: 48px;
  letter-spacing: 0.035em;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-height: calc(100% - 105px);
}
.spine-title.latin {
  font-size: 16px;
  letter-spacing: 0.025em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}
.spine-number {
  font-size: 10px;
}
[data-clear-filter],
[data-clear-filter]:hover,
[data-clear-filter]:active,
[data-clear-filter]:focus {
  background: transparent !important;
  box-shadow: none !important;
}
.archive-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 26px;
  box-shadow: 0 12px 42px #0000000b;
}
.archive-dialog h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 22px;
}
.archive-dialog .dialog-subject {
  font-size: 17px;
  line-height: 1.55;
  color: #282626;
  border-left: 2px solid #d40909;
  padding-left: 12px;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  max-height: 120px;
  overflow: auto;
}
.archive-dialog #confirmMessage {
  font-size: 14px;
  color: #777;
  line-height: 1.8;
}
.archive-dialog .dialog-actions {
  margin-top: 26px;
  gap: 10px;
}
.archive-dialog .dialog-actions button {
  min-width: 84px;
  min-height: 40px;
  font-size: 13px;
}
.scan-upload #removeScan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #282626;
  background: white;
  padding: 11px 16px;
  min-height: 46px;
  margin-top: 12px;
  color: #282626;
  font-size: 14px;
  width: 100%;
}
.scan-upload #removeScan svg {
  width: 18px;
  height: 18px;
}
.scan-upload #removeScan:hover {
  background: #f5f5f2;
}
.external-directory {
  padding-top: 0;
  border: 0;
}
.external-directory > h2 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 12px;
}
.directory-description {
  font-size: 13px;
  color: #777;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  line-height: 1.7;
  margin: 0 0 22px;
}
.external-directory > .inline-upload {
  margin-bottom: 10px;
}
.external-directory .directory-status {
  margin-top: 8px;
}
.external-preview {
  margin-top: 30px;
}
@media (max-width: 700px) {
  :root {
    --logo-text-inset: 18px;
  }
  .brand {
    width: 170px;
    height: 73px;
  }
  .brand > .brand-actions,
  .brand > .brand-actions #back {
    height: 33px;
  }
  .brand > .brand-actions #back {
    font-size: 12px;
    padding: 0 14px;
    gap: 9px;
  }
  .brand > .brand-actions #back svg {
    width: 20px;
    height: 20px;
  }
  .spine-title {
    font-size: 17px;
  }
  .spine-title.latin {
    font-size: 15px;
  }
  .archive-dialog {
    padding: 22px;
  }
  .external-directory > h2 {
    font-size: 20px;
  }
}
.ticket-card.returning-card {
  z-index: 10000 !important;
  pointer-events: none !important;
  transition: none;
  will-change: transform, opacity;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
  border-color: #555 !important;
}
.editor-info-group {
  border-top: 1px solid #ddd;
  margin-top: 30px;
  padding-top: 22px;
}
.editor-info-group:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.editor-info-group > h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 22px;
}
.editor-info-group .fields {
  gap: 22px 24px;
}
.editor-info-group .location-fields {
  margin-top: 22px;
}
.editor-info-group label {
  font-size: 13px;
}
.editor-info-group .fields textarea {
  height: 110px;
}
.cover-motif {
  background: var(--book-accent);
}
.shelf-empty {
  align-self: center;
  margin: 0;
}
.archive-shelf {
  min-height: 414px;
}
@media (max-width: 700px) {
  .editor-info-group {
    margin-top: 26px;
    padding-top: 20px;
  }
  .editor-info-group .fields {
    gap: 20px;
  }
  .archive-shelf {
    min-height: 376px;
  }
}

input[type="radio"]:focus-visible {
  outline: 1px solid #555;
  outline-offset: 3px;
}
.editor-info-group .price-row {
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.related-choices {
  margin-top: 24px;
}
#relatedQuery {
  display: block;
  margin-bottom: 16px;
}
#relationCount {
  font-size: 13px;
  margin: 0 0 24px;
}
.panel-form .storage-color-picker {
  border: 0;
  margin: 24px 0;
  padding: 0;
  min-width: 0;
}
.storage-color-picker legend {
  font-size: 13px;
  color: #555;
  padding: 0;
  margin-bottom: 12px;
}
.gray-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.panel-form .gray-swatch {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 40px;
  cursor: pointer;
}
.gray-swatch input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  padding: 0 !important;
  margin: 0;
  clip-path: inset(50%);
}
.gray-swatch span {
  display: block;
  width: 100%;
  height: 28px;
  border: 1px solid #00000012;
}
.gray-swatch:has(input:checked) span {
  outline: 1px solid #282626;
  outline-offset: 3px;
}
.gray-swatch:has(input:focus-visible) span {
  outline: 2px solid #282626;
  outline-offset: 4px;
}
.cover-motif {
  color: var(--book-motif-ink, var(--book-ink));
}
.dialog-actions.single {
  display: flex;
  justify-content: flex-end;
}
.dialog-actions.single button {
  min-width: 84px;
}
.boot-error-card {
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid #282626;
  border-radius: 0;
  box-shadow: 0 12px 42px #0000000b;
}
.boot-error-card #bootErrorMessage {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  color: #282626;
}
.tool-button,
.tools > button {
  position: relative;
}
.has-filter::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d40909;
  outline: 1px solid #fff;
  pointer-events: none;
}
.panel-form .storage-icon-picker {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
.storage-icon-picker legend {
  font-size: 13px;
  color: #555;
  padding: 0;
  margin-bottom: 12px;
}
.icon-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.panel-form .icon-preset {
  display: block;
  position: relative;
  margin: 0;
  cursor: pointer;
}
.icon-preset input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  padding: 0 !important;
  margin: 0;
  clip-path: inset(50%);
}
.icon-preset > span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  min-height: 70px;
  padding: 8px 3px;
  background: #fff;
  color: #555;
}
.icon-preset svg {
  width: 29px;
  height: 29px;
  stroke-width: 4;
}
.icon-preset small {
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}
.icon-preset:has(input:checked) > span {
  border-color: #282626;
  background: #f3f3f3;
  color: #282626;
}
.icon-preset:has(input:focus-visible) > span {
  outline: 1px solid #555;
  outline-offset: 2px;
}
:root {
  --scroll-thumb: #b5b5b5;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}
@supports selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: auto !important;
    scrollbar-color: auto !important;
  }
  *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }
  *::-webkit-scrollbar-track {
    background: transparent;
  }
  *::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 0;
  }
  *::-webkit-scrollbar-thumb:hover {
    background-color: #666;
  }
  *::-webkit-scrollbar-corner {
    background: transparent;
  }
}
