/* A focused, read-only extension of the archive's existing visual language. */
#stats-panel { scroll-margin-block-start: 24px; }
#stats-panel:focus { outline: 2px solid #b58adf; outline-offset: 4px; }
.catalog-review-open-button {
  display: block; width: 100%; min-height: 46px; margin: 12px 0 16px;
  padding: 10px 14px; border: 1px solid #9d75c76b; border-radius: 12px;
  background: #3b285c70; color: #e5d6ff; font: inherit; font-size: 14px;
  text-align: left; cursor: pointer;
}
.catalog-review-open-button:hover { background: #503577; }
.catalog-review-open, .catalog-review-open body { overflow: hidden; }
dialog.catalog-review-dialog {
  width: min(900px, calc(100vw - 28px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid #655075; border-radius: 20px;
  background: #10131e; color: #edf0fa; color-scheme: dark;
  box-shadow: 0 24px 120px #000b; overscroll-behavior: contain;
}
.catalog-review-dialog[open] { display: flex; flex-direction: column; }
.catalog-review-dialog::backdrop { background: #02040bd6; backdrop-filter: blur(6px); }
.catalog-review-dialog > header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-shrink: 0; padding: 20px 24px; border-bottom: 1px solid #ffffff18;
  background: linear-gradient(110deg, #29203c, #10131e);
}
.catalog-review-dialog header small { color: #b4a6ca; letter-spacing: .1em; font-size: 11px; }
.catalog-review-dialog h3 { margin: 4px 0 0; font-size: 24px; line-height: 1.25; }
.catalog-review-dialog [data-close-review] {
  flex: 0 0 44px; height: 44px; border: 1px solid #ffffff30; border-radius: 12px;
  background: #ffffff08; color: #fff; font-size: 28px; cursor: pointer;
}
.catalog-review-body { overflow-y: auto; padding: 0 24px 22px; overscroll-behavior: contain; }
.review-lead, .review-arc p, .review-overlaps p, .review-footnote { font-size: 15px; line-height: 1.55; color: #b9bfd1; }
.review-footnote { font-size: 12px; margin-bottom: 0; }
.review-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.review-filters button {
  min-height: 44px; padding: 9px 13px; border: 1px solid #ffffff22; border-radius: 11px;
  background: #181c29; color: #ced1e6; font: inherit; font-size: 14px; cursor: pointer;
}
.review-filters button[aria-pressed="true"] { background: #493364; border-color: #b28bd5; color: #fff; }
.review-overlaps { border: 1px solid #cf9e5f45; border-radius: 12px; padding: 0 16px; margin-bottom: 16px; background: #37261930; }
.review-overlaps summary { min-height: 48px; padding: 13px 0; cursor: pointer; color: #e3c49b; font-size: 15px; }
.review-overlaps p { border-top: 1px solid #ffffff15; margin: 0; padding: 12px 0; }
.review-overlaps b { color: #ead9c3; }
.review-arc { border: 1px solid #ffffff1f; border-radius: 14px; background: #151926; margin: 10px 0; padding: 0 16px; }
.review-arc > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; list-style: none; cursor: pointer; }
.review-arc > summary::-webkit-details-marker { display: none; }
.review-arc summary b { display: block; font-size: 16px; line-height: 1.45; }
.review-arc summary small { display: block; color: #b8bfd1; font-size: 13px; margin-top: 5px; }
.review-arc > summary::after { content: '+'; color: #c4a1e6; font-size: 23px; }
.review-arc[open] > summary::after { content: '−'; }
.review-status { margin-left: auto; font-size: 21px; }
.review-status.owned { color: #99d9bd; }
.review-status.ordered { color: #abbbff; }
.review-status.missing { color: #dfb889; }
.review-arc ol { padding-left: 22px; margin: 12px 0 18px; }
.review-arc li { padding: 5px 0 7px; border-top: 1px solid #ffffff12; color: #c9b7dc; }
.review-arc li > b { font-size: 14px; line-height: 1.4; }
.review-book { display: flex; align-items: center; gap: 12px; justify-content: space-between; width: 100%; min-height: 46px; padding: 8px 0; border: 0; background: transparent; color: #e2e5ee; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.review-book:hover span { color: #d5b0fb; }
.review-book span { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.review-book em, .review-unlisted em { color: #aeb8cf; font-style: normal; font-size: 12px; flex-shrink: 0; }
.review-unlisted { display: grid; gap: 5px; padding: 8px 0; color: #e1c59e; font-size: 14px; line-height: 1.5; }
.review-unlisted small { color: #b9bfd1; font-size: 12px; }
.catalog-review-dialog a { color: #ccaff0; font-size: 13px; overflow-wrap: anywhere; }
.review-empty { padding: 20px 0; color: #bdc4d7; }
.catalog-review-open-button:focus-visible, .catalog-review-dialog :is(button, summary, a):focus-visible { outline: 2px solid #c89cec; outline-offset: 3px; }
@media (max-width: 820px) { #stats-panel { scroll-margin-block-start: 150px; } }
@media (max-width: 600px) {
  .catalog-review-dialog > header { padding: 16px; }
  .catalog-review-dialog h3 { font-size: 21px; }
  .catalog-review-body { padding: 0 16px 18px; }
  .review-arc { padding: 0 12px; }
  .review-book { flex-wrap: wrap; gap: 3px; }
  .review-book span { flex-basis: 100%; }
}
