/* Archive of Worlds v8.4 — compact physical gallery */

:root {
  --vault-green: #42de84;
  --vault-yellow: #e2cc46;
}

body {
  background-color: #05070b !important;
}

.app {
  grid-template-columns: 214px minmax(0, 1fr) 292px !important;
  gap: 10px !important;
  padding: 10px !important;
}

.panel {
  border-color: rgba(151, 174, 211, 0.08) !important;
}

.left-rail,
.right-rail {
  gap: 10px !important;
}

.left-rail {
  padding: 11px !important;
}

.logo-card {
  padding: 8px !important;
}

.logo-card h1 {
  font-size: 17px !important;
  letter-spacing: 0.025em !important;
}

.logo-card p {
  margin-top: 3px !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
}

.dc-orb {
  width: 38px !important;
  height: 38px !important;
  font-size: 20px !important;
  color: #d8bbff !important;
}

.user-chip {
  margin-top: 9px !important;
  padding: 8px !important;
}

.nav {
  gap: 3px !important;
  margin-top: 8px !important;
}

.nav button {
  min-height: 36px !important;
  padding: 7px 8px !important;
  font-size: 10.5px !important;
}

.nav .ico {
  width: 25px !important;
  height: 25px !important;
}

.side-box {
  padding: 10px !important;
}

.side-box .eyebrow {
  font-size: 7.5px !important;
}

.rail-actions {
  gap: 6px !important;
}

.rail-actions button,
.rail-actions label {
  min-height: 34px !important;
  padding: 8px 9px !important;
  font-size: 9px !important;
}

.cloud-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.cloud-line b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd6f6;
  font-size: 10px;
}

.cloud-line b i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78849d;
  box-shadow: 0 0 9px currentColor;
}

.cloud-line b[data-mode="saved"] {
  color: #77ecae;
}

.cloud-line b[data-mode="saving"],
.cloud-line b[data-mode="waiting"] {
  color: #e8c678;
}

.cloud-line b[data-mode="offline"],
.cloud-line b[data-mode="error"] {
  color: #ef8e91;
}

.cloud-line span {
  color: #78849d;
  font-size: 8px;
}

.cloud-progress {
  margin-top: 8px !important;
}

#cloud-migration-note {
  margin: 8px 0 0;
  color: #8f9aba;
  font-size: 9px;
  line-height: 1.4;
}

#cloud-migration-note a {
  color: #b78cff;
}

.main {
  gap: 10px !important;
}

.command {
  padding: 12px 14px !important;
}

.command-title {
  gap: 12px !important;
  align-items: center !important;
}

.command-title .eyebrow {
  font-size: 8px !important;
}

.command-title h2 {
  margin-top: 2px !important;
  font-size: clamp(22px, 2vw, 29px) !important;
  line-height: 1 !important;
  letter-spacing: 0.025em !important;
}

.command-title p {
  max-width: 58ch !important;
  margin-top: 4px !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

.rank-chip {
  padding: 7px 9px !important;
  min-width: 138px !important;
}

.rank-chip strong {
  font-size: 11px !important;
}

.rank-medal {
  width: 28px !important;
  height: 28px !important;
}

.stats-grid {
  display: none !important;
}

.stat-card {
  min-height: 55px !important;
  padding: 8px 9px !important;
  border-radius: 11px !important;
}

.stat-card .label,
.stat-card .sub {
  font-size: 7.5px !important;
}

.stat-card .value {
  margin-top: 2px !important;
  font-size: 17px !important;
}

.search-tools {
  margin-top: 8px !important;
}

.search-tools input {
  min-height: 34px !important;
  padding: 8px 11px !important;
  font-size: 10.5px !important;
}

.filter-pills {
  gap: 4px !important;
  margin-top: 7px !important;
}

.filter-pills button {
  min-height: 26px !important;
  padding: 5px 8px !important;
  font-size: 8.5px !important;
}

.collection-hall {
  padding: 10px 12px 14px !important;
  overflow: hidden !important;
}

.hall-header {
  min-height: 56px !important;
  margin-bottom: 8px !important;
  padding: 0 138px 8px 46px !important;
  align-items: center !important;
  border-bottom-color: rgba(167, 188, 225, 0.07) !important;
}

.hall-header::before {
  width: 34px !important;
  height: 34px !important;
  border-radius: 7px !important;
}

.hall-header::after {
  left: 12px !important;
  top: 7px !important;
  font-size: 19px !important;
}

.hall-header .eyebrow {
  font-size: 8px !important;
}

.hall-header h3 {
  margin-top: 2px !important;
  font-size: clamp(18px, 1.25vw, 20px) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.045em !important;
}

.hall-header p {
  max-width: 63ch !important;
  margin-top: 3px !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}

.hall-status {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: auto !important;
  min-width: 120px !important;
  padding: 6px 9px !important;
  border-radius: 10px !important;
}

.hall-status span {
  font-size: 7.5px !important;
}

.hall-status b {
  margin-top: 2px !important;
  font-size: 19px !important;
}

.hall-perspective {
  padding: 0 6px 8px !important;
}

.vitrine-grid {
  gap: 8px !important;
}

.collection-hall .collection-section {
  min-height: 0 !important;
  padding: 10px 0 14px !important;
  border: 0 !important;
  border-top: 1px solid
    color-mix(in srgb, var(--bay-accent) 18%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.collection-hall .collection-section::before,
.collection-hall .collection-section::after {
  display: none !important;
}

.collection-hall .collection-section .head {
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 66px 6px 40px !important;
  align-items: center !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.collection-hall .collection-section .head::before {
  top: 1px !important;
  width: 29px !important;
  height: 29px !important;
  border-radius: 6px !important;
}

.collection-hall .collection-section .head::after {
  left: 7px !important;
  top: 10px !important;
  font-size: 9px !important;
}

.collection-hall .collection-section .head .eyebrow {
  font-size: 7.5px !important;
  letter-spacing: 0.17em !important;
}

.collection-hall .collection-section .head h3 {
  margin-top: 1px !important;
  font-size: 14.5px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.045em !important;
}

.collection-hall .collection-section .head p {
  display: none !important;
}

.collection-hall .section-count {
  position: absolute !important;
  top: 1px !important;
  right: 0 !important;
  padding: 5px 8px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.collection-hall .shelf-wrap {
  min-height: 238px !important;
  margin-top: 3px !important;
  padding: 6px 8px 3px !important;
  overflow: visible !important;
  border-radius: 2px !important;
  border-color: rgba(143, 166, 196, 0.07) !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.56)),
    radial-gradient(
      ellipse at 50% 4%,
      color-mix(in srgb, var(--bay-accent) 9%, transparent),
      transparent 62%
    ) !important;
  box-shadow:
    inset 24px 0 34px rgba(0, 0, 0, 0.34),
    inset -24px 0 34px rgba(0, 0, 0, 0.34),
    inset 0 22px 38px rgba(0, 0, 0, 0.34),
    0 12px 24px rgba(0, 0, 0, 0.36) !important;
}

.collection-hall .shelf-wrap::before {
  opacity: 0.24 !important;
}

.collection-hall .shelf {
  min-height: 230px !important;
  gap: 10px !important;
  padding: 8px 48px 25px 8px !important;
  align-items: flex-end !important;
  scrollbar-width: none !important;
}

.collection-hall .shelf::-webkit-scrollbar {
  display: none !important;
}

.collection-hall .shelf-base {
  bottom: 3px !important;
  height: 22px !important;
  background:
    linear-gradient(180deg, rgba(198, 211, 227, 0.11), transparent 22%),
    linear-gradient(90deg, #0b0d11, #242631 16%, #11131a 53%, #242631 83%, #090b0f) !important;
  box-shadow:
    0 -2px 0 color-mix(in srgb, var(--bay-accent) 24%, transparent),
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -8px 11px rgba(0, 0, 0, 0.72),
    0 8px 16px rgba(0, 0, 0, 0.6) !important;
}

.collection-hall .shelf-nav {
  top: 7px !important;
  right: 7px !important;
}

.collection-hall .shelf-nav button {
  width: 29px !important;
  height: 29px !important;
  border-radius: 9px !important;
  font-size: 17px !important;
}

.collection-hall .book-card {
  margin-bottom: 13px !important;
  transform-origin: 50% 100% !important;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease !important;
}

.collection-hall .book-card:hover,
.collection-hall .book-card:focus-visible {
  z-index: 30 !important;
  transform: translateY(-7px) scale(1.045) !important;
}

.collection-hall .book-card.owned-with-cover .status-dot,
.collection-hall .book-card.owned-with-cover .book-topline {
  opacity: 0.48 !important;
}

.collection-hall .book-card.owned-with-cover::after {
  height: 2px !important;
  opacity: 0.55 !important;
}

.book-peek {
  width: 214px !important;
  padding: 10px 11px !important;
}

.book-peek b {
  font-size: 13px !important;
}

.book-peek p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.collection-section.lantern {
  --bay-accent: #42de84 !important;
  --bay-accent-soft: rgba(66, 222, 132, 0.13) !important;
  --bay-accent-secondary: #e2cc46 !important;
}

.collection-section.lantern .head::before {
  border-color: rgba(66, 222, 132, 0.34) !important;
  background:
    radial-gradient(circle at 42% 34%, rgba(228, 255, 237, 0.19), transparent 36%),
    linear-gradient(135deg, rgba(31, 179, 93, 0.24), rgba(220, 199, 53, 0.08)) !important;
  box-shadow: 0 0 18px rgba(66, 222, 132, 0.17) !important;
}

.collection-section.lantern .section-count {
  border-color: rgba(66, 222, 132, 0.3) !important;
  color: #b9f8d4 !important;
}

.section-decor .prop-lantern {
  color: #66ef9e !important;
  text-shadow:
    0 0 12px rgba(66, 222, 132, 0.8),
    0 0 32px rgba(66, 222, 132, 0.42);
}

.collection-section.harley {
  --bay-accent: #ff6eb2 !important;
  --bay-accent-soft: rgba(255, 110, 178, 0.13) !important;
  --bay-accent-secondary: #70d8ff !important;
}

.collection-section.cyber {
  --bay-accent: #50e3f0 !important;
  --bay-accent-soft: rgba(80, 227, 240, 0.13) !important;
  --bay-accent-secondary: #ffcb45 !important;
}

.collection-section.demon {
  --bay-accent: #ff7458 !important;
  --bay-accent-soft: rgba(255, 116, 88, 0.13) !important;
  --bay-accent-secondary: #ffc25e !important;
}

.collection-section.harley .head::before,
.collection-section.cyber .head::before,
.collection-section.demon .head::before {
  border-color: color-mix(in srgb, var(--bay-accent) 34%, transparent) !important;
  background:
    radial-gradient(circle at 42% 34%, color-mix(in srgb, var(--bay-accent) 21%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--bay-accent) 18%, transparent), rgba(255, 255, 255, 0.025)) !important;
}

.collection-section.harley .section-count,
.collection-section.cyber .section-count,
.collection-section.demon .section-count {
  border-color: color-mix(in srgb, var(--bay-accent) 34%, transparent) !important;
  color: color-mix(in srgb, var(--bay-accent) 74%, white) !important;
}

.section-decor .prop-harley,
.section-decor .prop-cyber,
.section-decor .prop-demon {
  color: var(--bay-accent) !important;
  font-weight: 900;
  text-shadow: 0 0 14px color-mix(in srgb, var(--bay-accent) 75%, transparent);
}

.collection-hall .collection-section.harley {
  background:
    radial-gradient(circle at 12% 70%, rgba(255, 110, 178, 0.18), transparent 23%),
    radial-gradient(circle at 80% 4%, rgba(112, 216, 255, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(52, 14, 42, 0.82), rgba(5, 9, 18, 0.97)) !important;
}

.collection-hall .collection-section.cyber {
  background:
    repeating-linear-gradient(90deg, rgba(80, 227, 240, 0.035) 0 1px, transparent 1px 38px),
    radial-gradient(circle at 76% 18%, rgba(80, 227, 240, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(8, 44, 53, 0.82), rgba(5, 9, 18, 0.97)) !important;
}

.collection-hall .collection-section.demon {
  background:
    radial-gradient(circle at 14% 72%, rgba(255, 116, 88, 0.18), transparent 24%),
    radial-gradient(circle at 76% 0%, rgba(255, 194, 94, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(52, 18, 13, 0.84), rgba(5, 9, 18, 0.97)) !important;
}

.collection-hall .section-count small {
  display: block;
  margin-top: 2px;
  color: #7ff0ae;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-audit-panel {
  --audit-accent: #ffb45e;
  border-color: color-mix(in srgb, var(--audit-accent) 24%, rgba(180, 198, 229, 0.1)) !important;
}

.price-audit-panel[data-complete="true"] {
  --audit-accent: #63e09a;
}

.price-audit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.price-audit-heading h4 {
  margin: 0;
}

.price-audit-heading strong {
  color: var(--audit-accent);
  font-size: 26px;
  line-height: 1;
}

.price-audit-summary {
  margin: 9px 0 12px;
  color: #9da9c8;
  font-size: 12px;
  line-height: 1.45;
}

.price-audit-list {
  max-height: 420px;
  overflow-y: auto;
}

.price-audit-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.price-audit-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.price-audit-item b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.price-audit-item small {
  color: #8996b6;
  font-size: 10px;
}

.price-audit-open {
  color: var(--audit-accent);
  font-size: 22px;
}

.price-audit-ok {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(99, 224, 154, 0.22);
  border-radius: 13px;
  background: rgba(99, 224, 154, 0.08);
  color: #9af3bd;
}

.collection-hall .book-card.ordered .locked-ribbon {
  display: block !important;
  border-color: rgba(88, 227, 154, 0.48) !important;
  color: #c2ffdd !important;
  background: rgba(10, 62, 39, 0.92) !important;
  box-shadow: 0 0 16px rgba(88, 227, 154, 0.22);
}

.collection-hall .book-card.ordered .shade {
  background:
    linear-gradient(180deg, rgba(2, 8, 8, 0.08), rgba(2, 8, 8, 0.7)) !important;
}

.collection-hall .book-card.ordered::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 8px;
  bottom: 0;
  z-index: 7;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #58e39a;
  box-shadow: 0 0 12px rgba(88, 227, 154, 0.75);
}

.right-panel {
  padding: 11px !important;
}

.right-panel h4 {
  font-size: 15px !important;
}

.achievement-tools .hint {
  font-size: 9px !important;
}

.achievement-page {
  gap: 7px !important;
}

.medal {
  min-height: 118px !important;
  padding: 8px !important;
}

.medal-emblem {
  width: 43px !important;
  height: 43px !important;
}

.medal-title {
  font-size: 10px !important;
}

.medal-condition {
  font-size: 7.5px !important;
}

.mission-dock {
  padding: 12px !important;
}

.mission-head h3 {
  font-size: 20px !important;
}

.mission-head p {
  font-size: 10px !important;
}

/* Export / restore dialog */

.vault-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(12px);
}

.vault-dialog.open {
  display: flex;
}

.vault-dialog-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(780px, 92vh);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(183, 132, 255, 0.28);
  border-radius: 22px;
  color: #eef2ff;
  background:
    radial-gradient(circle at 18% 0, rgba(118, 71, 170, 0.2), transparent 36%),
    linear-gradient(180deg, #14111c, #080a10 78%);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.72),
    inset 0 1px rgba(255, 255, 255, 0.07);
}

.vault-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 21px;
}

.vault-dialog h3 {
  margin: 5px 0 8px;
  font-size: 29px;
}

.vault-dialog-lead {
  max-width: 58ch;
  color: #a7b1cf;
  font-size: 12px;
  line-height: 1.55;
}

.export-scope-panel {
  margin: 18px 0 0;
  padding: 13px;
  border: 1px solid rgba(183, 132, 255, 0.18);
  border-radius: 14px;
  background: rgba(126, 84, 177, 0.055);
}

.export-scope-panel legend {
  padding: 0 6px;
  color: #aeb8d5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.export-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.export-presets button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(183, 132, 255, 0.2);
  border-radius: 999px;
  color: #c9b8e9;
  background: rgba(169, 111, 236, 0.07);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.export-presets button:hover,
.export-presets button:focus-visible {
  border-color: rgba(193, 143, 255, 0.48);
  color: #f2eaff;
  background: rgba(169, 111, 236, 0.15);
  outline: none;
}

.export-scope-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.export-scope-options label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: #dce2f6;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.export-scope-options input {
  margin-top: 2px;
  accent-color: #b870f4;
}

.export-scope-options span {
  display: grid;
  gap: 3px;
}

.export-scope-options b {
  font-size: 11px;
}

.export-scope-options small {
  color: #8f9aba;
  font-size: 9px;
  line-height: 1.35;
}

.export-scope-panel:disabled {
  opacity: 0.43;
}

.export-scope-panel:disabled .export-presets button,
.export-scope-panel:disabled .export-scope-options label {
  cursor: default;
}

.export-json-note {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(183, 132, 255, 0.18);
  border-radius: 10px;
  color: #cbb7ea;
  background: rgba(169, 111, 236, 0.08);
  font-size: 10px;
  line-height: 1.45;
}

.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.export-format-grid {
  grid-template-columns: minmax(240px, 1fr);
  margin-top: 12px;
}

.export-grid label,
.import-zone label {
  display: grid;
  gap: 6px;
  color: #8d98b8;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.export-grid select,
.import-zone select {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: #eef2ff;
  background: #12151e;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.export-check {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
  color: #c7cee3;
  font-size: 11px;
}

.export-summary {
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(106, 220, 165, 0.15);
  border-radius: 11px;
  color: #9ba7c7;
  background: rgba(61, 189, 126, 0.05);
  font-size: 11px;
}

.export-summary b {
  color: #78edb0;
}

.vault-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}

.vault-dialog-actions button,
.import-zone button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: #e8edff;
  background: rgba(255, 255, 255, 0.04);
}

.vault-dialog-actions .primary {
  border-color: rgba(170, 103, 255, 0.4);
  background: linear-gradient(110deg, #a365ef, #d586f5);
  color: #130a1c;
  font-weight: 850;
}

.vault-download-ready {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(110, 231, 165, 0.3);
  border-radius: 11px;
  color: #8ff3bd;
  background: rgba(72, 197, 129, 0.08);
  font-size: 10px;
  text-align: center;
  text-decoration: none;
}

.vault-dialog hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.import-zone {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 230px) auto;
  gap: 12px;
  align-items: end;
}

.import-zone b {
  font-size: 13px;
}

.import-zone p {
  margin: 4px 0 0;
  color: #8f9aba;
  font-size: 10px;
  line-height: 1.4;
}

/* Printable catalog */

.pdf-report {
  position: fixed;
  z-index: -1;
  top: 0;
  left: -100000px;
  width: 780px;
  min-height: 1000px;
  padding: 28px;
  color: #e9edfa;
  background:
    radial-gradient(circle at 70% 0, rgba(87, 45, 132, 0.22), transparent 34%),
    #090b10;
  font-family: Arial, Helvetica, sans-serif;
}

.pdf-report header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pdf-report header span {
  color: #b57df2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.pdf-report h1 {
  margin: 4px 0 0;
  font-size: 34px;
}

.pdf-report header > div:last-child {
  display: grid;
  text-align: right;
}

.pdf-report header b {
  color: #d7a5ff;
  font-size: 34px;
}

.pdf-report header small,
.pdf-meta {
  color: #8e99b4;
  font-size: 10px;
}

.pdf-meta {
  margin: 8px 0 18px;
}

.pdf-books {
  display: grid;
  gap: 10px;
}

.pdf-books article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 13px;
  min-height: 118px;
  break-inside: avoid;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.pdf-books img,
.pdf-placeholder {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 4px;
  background: #151821;
}

.pdf-placeholder {
  display: grid;
  place-items: center;
  color: #697188;
  font-size: 10px;
  text-align: center;
}

.pdf-books article span {
  color: #9e7fd5;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-books h2 {
  margin: 4px 0;
  font-size: 18px;
}

.pdf-books h2 small {
  color: #b9c1d7;
  font-size: 12px;
  font-weight: 500;
}

.pdf-books p {
  margin: 0 0 8px;
  color: #9ca6c0;
  font-size: 9px;
}

.pdf-books dl {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 4px 7px;
  margin: 0;
  font-size: 8.5px;
}

.pdf-books dt {
  color: #737e9c;
}

.pdf-books dd {
  margin: 0;
}

.pdf-books em {
  display: block;
  margin-top: 8px;
  color: #e0b975;
  font-size: 8px;
  font-style: normal;
}

@media (max-width: 1500px) {
  .app {
    grid-template-columns: 198px minmax(0, 1fr) 270px !important;
  }
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }

  .right-rail {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .app {
    display: block !important;
    padding: 6px !important;
  }

  .left-rail {
    position: sticky !important;
    z-index: 100 !important;
    top: 5px !important;
    display: flex !important;
    align-items: center !important;
    min-height: 56px !important;
    margin-bottom: 6px !important;
    padding: 7px 8px !important;
    border-radius: 13px !important;
    background: rgba(8, 10, 15, 0.94) !important;
    backdrop-filter: blur(13px);
  }

  .left-rail .logo-card {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }

  .left-rail .logo-row {
    gap: 8px !important;
  }

  .left-rail .dc-orb {
    width: 34px !important;
    height: 34px !important;
  }

  .left-rail .logo-card h1 {
    font-size: 14px !important;
  }

  .left-rail .logo-card p,
  .left-rail .user-chip,
  .left-rail .nav,
  .left-rail .side-box {
    display: none !important;
  }

  .left-rail .rail-actions {
    display: flex !important;
    flex: 1 !important;
    justify-content: flex-end !important;
    margin: 0 !important;
  }

  .left-rail .rail-actions #reset-btn {
    display: none !important;
  }

  .left-rail .rail-actions button {
    min-height: 34px !important;
    font-size: 8px !important;
  }

  .command {
    padding: 9px !important;
  }

  .command-title {
    min-height: 42px !important;
  }

  .command-title p,
  .rank-chip {
    display: none !important;
  }

  .command-title h2 {
    font-size: 20px !important;
  }

  .stats-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
  }

  .stat-card {
    min-width: 112px !important;
    scroll-snap-align: start;
  }

  .search-tools {
    margin-top: 7px !important;
  }

  .filter-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 3px !important;
  }

  .filter-pills button {
    flex: 0 0 auto;
  }

  .collection-hall {
    margin-top: 6px !important;
    padding: 6px 7px 9px !important;
  }

  .hall-header {
    min-height: 48px !important;
    margin-bottom: 5px !important;
    padding: 0 62px 6px 34px !important;
    flex-direction: row !important;
  }

  .hall-header::before {
    width: 27px !important;
    height: 27px !important;
  }

  .hall-header::after {
    left: 9px !important;
    top: 9px !important;
    font-size: 13px !important;
  }

  .hall-header p,
  .hall-status span {
    display: none !important;
  }

  .hall-header h3 {
    font-size: 15px !important;
  }

  .hall-status {
    min-width: 54px !important;
    padding: 4px 6px !important;
  }

  .hall-status b {
    font-size: 15px !important;
  }

  .collection-hall .collection-section {
    padding: 8px 0 10px !important;
  }

  .collection-hall .collection-section .head {
    min-height: 35px !important;
    padding: 0 52px 5px 0 !important;
  }

  .collection-hall .collection-section .head::before,
  .collection-hall .collection-section .head::after {
    display: none !important;
  }

  .collection-hall .collection-section .head h3 {
    font-size: 13px !important;
  }

  .collection-hall .collection-section .head .eyebrow {
    font-size: 7px !important;
  }

  .collection-hall .shelf-nav {
    display: none !important;
  }

  .collection-hall .shelf-wrap {
    min-height: 221px !important;
  }

  .collection-hall .shelf {
    min-height: 213px !important;
    padding-right: 12px !important;
    scroll-snap-type: x mandatory;
  }

  .collection-hall .book-card {
    scroll-snap-align: start;
  }

  .right-rail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin-top: 7px !important;
  }

  .mission-dock {
    margin-top: 7px !important;
  }

  .export-grid,
  .import-zone {
    grid-template-columns: 1fr !important;
  }

  .export-scope-options {
    grid-template-columns: 1fr;
  }

  .vault-dialog {
    align-items: flex-end;
    padding: 6px;
  }

  .vault-dialog-card {
    max-height: 94vh;
    padding: 17px;
    border-radius: 20px 20px 11px 11px;
  }

  .vault-dialog h3 {
    font-size: 24px;
  }
}

html.book-modal-open,
body.book-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  #book-modal.modal {
    height: 100vh;
    height: 100dvh;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  #book-modal .book-modal {
    height: 100%;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(180px, 34vh, 300px) minmax(0, 1fr);
    grid-template-rows: clamp(180px, 34dvh, 300px) minmax(0, 1fr);
    overflow: hidden;
  }

  #book-modal .modal-cover {
    min-height: 0;
  }

  #book-modal .modal-content {
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-hall .book-card:hover,
  .collection-hall .book-card:focus-visible {
    transform: translateY(-4px) !important;
  }
}

/* Archive of Worlds v8.19 — Bat-archive, unified cover wall, DC routes */

.hall-header {
  padding-right: 402px !important;
}

.hall-view-tools {
  position: absolute;
  top: 0;
  right: 130px;
  z-index: 5;
  display: grid;
  grid-template-columns: 0.82fr 0.92fr 1.45fr;
  gap: 3px;
  width: 258px;
  padding: 4px;
  border: 1px solid rgba(151, 174, 211, 0.13);
  border-radius: 11px;
  background: rgba(4, 7, 12, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.hall-view-tools button {
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8995b3;
  background: transparent;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hall-view-tools button[aria-pressed="true"] {
  border-color: rgba(126, 166, 255, 0.34);
  color: #eff4ff;
  background:
    radial-gradient(circle at 50% 0, rgba(126, 166, 255, 0.24), transparent 74%),
    rgba(108, 142, 225, 0.12);
  box-shadow: 0 0 18px rgba(76, 118, 218, 0.13);
}

.filter-pills button[data-filter="bat-archive"] {
  order: -1;
  border-color: rgba(115, 153, 233, 0.34) !important;
  color: #dce8ff !important;
  background:
    linear-gradient(110deg, rgba(66, 91, 150, 0.28), rgba(16, 23, 39, 0.74)) !important;
  box-shadow: inset 0 0 12px rgba(105, 153, 255, 0.08);
}

.filter-pills button[data-filter="bat-archive"][aria-pressed="true"] {
  border-color: rgba(147, 182, 255, 0.68) !important;
  color: #fff !important;
  box-shadow:
    0 0 18px rgba(86, 132, 228, 0.25),
    inset 0 0 16px rgba(121, 164, 255, 0.18);
}

.bat-archive-gateway {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(240px, 1fr) auto auto;
  gap: 17px;
  align-items: center;
  min-height: 116px;
  overflow: hidden;
  padding: 17px 18px;
  border: 1px solid rgba(118, 157, 237, 0.23);
  border-radius: 15px;
  background:
    linear-gradient(118deg, rgba(92, 126, 196, 0.12), transparent 42%),
    radial-gradient(circle at 84% 0, rgba(84, 125, 213, 0.18), transparent 31%),
    repeating-linear-gradient(90deg, rgba(166, 190, 235, 0.025) 0 1px, transparent 1px 41px),
    linear-gradient(180deg, #0d1421, #070b12);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 17px 42px rgba(0, 0, 0, 0.4);
}

.bat-archive-gateway::after {
  content: "WAYNE ARCHIVE · INDEX 80";
  position: absolute;
  right: 18px;
  bottom: 7px;
  color: rgba(158, 183, 231, 0.17);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.bat-archive-signal,
.bat-archive-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(133, 171, 246, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(100, 146, 236, 0.22), transparent 68%),
    #080d15;
  box-shadow: 0 0 27px rgba(71, 119, 215, 0.18);
}

.bat-archive-signal svg,
.bat-archive-mark svg {
  width: 39px;
  fill: none;
  stroke: #9fbdf5;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 9px rgba(99, 145, 236, 0.55));
}

.bat-archive-gateway-copy h3,
.bat-archive-dashboard h3 {
  margin: 2px 0 4px;
  color: #edf3ff;
  font-size: 25px;
  letter-spacing: 0.045em;
}

.bat-archive-gateway-copy p,
.bat-archive-dashboard p {
  max-width: 63ch;
  margin: 0;
  color: #8e9bb8;
  font-size: 10px;
  line-height: 1.45;
}

.bat-archive-gateway-stats {
  display: flex;
  gap: 9px;
}

.bat-archive-gateway-stats span {
  display: grid;
  min-width: 98px;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(136, 164, 220, 0.13);
  border-radius: 10px;
  background: rgba(2, 5, 10, 0.4);
}

.bat-archive-gateway-stats b {
  color: #dbe8ff;
  font-size: 17px;
}

.bat-archive-gateway-stats small {
  color: #7785a2;
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bat-archive-open {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid rgba(137, 174, 247, 0.35);
  border-radius: 10px;
  color: #edf4ff;
  background: linear-gradient(115deg, rgba(83, 125, 209, 0.34), rgba(31, 47, 77, 0.5));
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.bat-archive-open span {
  margin-left: 6px;
  font-size: 17px;
}

.bat-archive-dashboard {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(127, 162, 232, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 12%, rgba(84, 126, 216, 0.22), transparent 28%),
    radial-gradient(circle at 92% 0, rgba(148, 174, 225, 0.1), transparent 30%),
    repeating-linear-gradient(90deg, rgba(142, 171, 226, 0.025) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #101827, #070b12 78%);
}

.bat-archive-dashboard-main {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.bat-archive-mark {
  width: 58px;
  height: 58px;
}

.bat-archive-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.bat-archive-kpis > div {
  position: relative;
  display: grid;
  gap: 2px;
  overflow: hidden;
  padding: 10px 11px 13px;
  border: 1px solid rgba(141, 169, 221, 0.12);
  border-radius: 10px;
  background: rgba(2, 5, 10, 0.42);
}

.bat-archive-kpis b {
  color: #e5eeff;
  font-size: 21px;
}

.bat-archive-kpis span {
  color: #7986a3;
  font-size: 8px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.bat-archive-kpis i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #6c97ee var(--archive-progress), rgba(255, 255, 255, 0.035) var(--archive-progress));
}

.bat-archive-scope {
  display: flex;
  gap: 5px;
  align-items: center;
}

.bat-archive-scope button {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(140, 166, 216, 0.13);
  border-radius: 9px;
  color: #8895b1;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.bat-archive-scope button[aria-pressed="true"] {
  border-color: rgba(127, 165, 240, 0.43);
  color: #edf4ff;
  background: rgba(91, 132, 216, 0.18);
}

.bat-archive-scope > span {
  margin-left: auto;
  color: #7785a1;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bat-archive-footnote {
  padding-top: 9px;
  border-top: 1px solid rgba(146, 171, 219, 0.09);
  color: #69758f !important;
  font-size: 8px !important;
}

.bat-archive-group,
.all-books-wall {
  position: relative;
  overflow: hidden;
  padding: 13px 14px 16px;
  border: 1px solid rgba(128, 155, 207, 0.11);
  border-radius: 13px;
  background:
    radial-gradient(circle at 88% 0, rgba(77, 116, 192, 0.1), transparent 29%),
    linear-gradient(180deg, rgba(12, 18, 29, 0.94), rgba(6, 9, 15, 0.96));
}

.bat-archive-group::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(90deg, transparent 0 47px, rgba(139, 167, 219, 0.08) 47px 48px);
}

.bat-archive-group-head,
.all-books-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139, 164, 211, 0.09);
}

.bat-archive-group-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bat-archive-group-head span {
  color: #5473ac;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.bat-archive-group-head h4 {
  margin: 0;
  color: #d7e3fa;
  font-size: 14px;
  letter-spacing: 0.035em;
}

.bat-archive-group-head b {
  padding: 5px 8px;
  border: 1px solid rgba(123, 159, 231, 0.18);
  border-radius: 8px;
  color: #a9c6ff;
  background: rgba(72, 108, 182, 0.09);
  font-size: 10px;
}

.archive-grid,
.all-books-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 142px));
  gap: 13px 10px;
  align-items: end;
  justify-content: start;
}

.collection-hall .archive-grid .book-card,
.collection-hall .archive-grid .book-card:nth-child(2n),
.collection-hall .archive-grid .book-card:nth-child(3n),
.collection-hall .archive-grid .book-card:nth-child(4n),
.collection-hall .all-books-grid .book-card,
.collection-hall .all-books-grid .book-card:nth-child(2n),
.collection-hall .all-books-grid .book-card:nth-child(3n),
.collection-hall .all-books-grid .book-card:nth-child(4n) {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  aspect-ratio: 0.665;
}

.all-books-wall {
  padding: 16px;
  border-color: rgba(164, 131, 222, 0.16);
  background:
    radial-gradient(circle at 7% 0, rgba(139, 91, 208, 0.14), transparent 30%),
    radial-gradient(circle at 92% 2%, rgba(68, 143, 215, 0.12), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 54px),
    linear-gradient(180deg, #10131e, #070910);
}

.all-books-head h3 {
  margin: 2px 0 3px;
  color: #ecf0ff;
  font-size: 22px;
}

.all-books-head p {
  margin: 0;
  color: #8792ae;
  font-size: 9px;
}

.all-books-count {
  display: grid;
  min-width: 91px;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid rgba(153, 128, 214, 0.17);
  border-radius: 9px;
  text-align: right;
}

.all-books-count b {
  color: #dcc9ff;
  font-size: 18px;
}

.all-books-count span {
  color: #756f8a;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vault-empty {
  grid-column: 1 / -1;
  padding: 28px 16px;
  border: 1px dashed rgba(142, 163, 207, 0.17);
  border-radius: 11px;
  color: #8290ae;
  background: rgba(4, 7, 12, 0.38);
  font-size: 11px;
  text-align: center;
}

/* v8.19 — DC reading routes */

.dc-chronology-board {
  display: grid;
  gap: 12px;
}

.dc-chronology-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(88, 161, 219, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0, rgba(54, 128, 194, 0.24), transparent 34%),
    radial-gradient(circle at 94% 10%, rgba(176, 66, 55, 0.15), transparent 32%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(151, 191, 226, 0.025) 38px 39px),
    linear-gradient(180deg, #0d1823, #070b11);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.dc-chronology-hero h3 {
  margin: 3px 0 5px;
  color: #edf6ff;
  font-size: 26px;
  letter-spacing: 0.045em;
}

.dc-chronology-hero p,
.dc-route-summary p,
.dc-route-stage > header p,
.dc-route-copy p,
.dc-route-gap p {
  margin: 0;
  color: #8997af;
  font-size: 9px;
  line-height: 1.55;
}

.dc-chronology-kpis {
  display: grid;
  grid-template-columns: 0.9fr 0.65fr 1.35fr;
  gap: 7px;
}

.dc-chronology-kpis span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(118, 173, 217, 0.14);
  border-radius: 10px;
  background: rgba(2, 7, 12, 0.48);
}

.dc-chronology-kpis b {
  overflow: hidden;
  color: #d8edff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-chronology-kpis small {
  color: #70829d;
  font-size: 7px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.dc-route-picker {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid rgba(128, 158, 197, 0.11);
  border-radius: 12px;
  background: rgba(5, 9, 15, 0.78);
  scrollbar-width: thin;
}

.dc-route-picker button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #8390a8;
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dc-route-picker button[aria-pressed="true"] {
  border-color: rgba(101, 180, 238, 0.42);
  color: #f1f8ff;
  background: linear-gradient(115deg, rgba(46, 128, 188, 0.27), rgba(139, 50, 53, 0.16));
  box-shadow: 0 0 20px rgba(53, 138, 199, 0.16);
}

.dc-route-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(101, 160, 207, 0.14);
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(20, 42, 61, 0.75), rgba(9, 13, 20, 0.92));
}

.dc-route-summary span {
  color: #62b6ed;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.dc-route-summary h4 {
  margin: 3px 0;
  color: #e9f3ff;
  font-size: 19px;
}

.dc-route-summary button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(104, 173, 224, 0.28);
  border-radius: 9px;
  color: #b9daf1;
  background: rgba(49, 119, 166, 0.13);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.dc-route-stages {
  display: grid;
  gap: 11px;
}

.dc-route-stage {
  overflow: hidden;
  padding: 13px 14px 15px;
  border: 1px solid rgba(126, 155, 192, 0.12);
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(132, 165, 202, 0.022) 59px 60px),
    linear-gradient(180deg, rgba(12, 19, 28, 0.96), rgba(6, 10, 15, 0.98));
}

.dc-route-stage > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(130, 160, 198, 0.09);
}

.dc-route-stage > header > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(91, 166, 218, 0.2);
  border-radius: 50%;
  color: #69b9ec;
  background: rgba(38, 101, 145, 0.12);
  font-size: 8px;
  font-weight: 900;
}

.dc-route-stage h5 {
  margin: 1px 0 3px;
  color: #dcecff;
  font-size: 14px;
}

.dc-route-timeline {
  position: relative;
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.dc-route-timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 14px;
  left: 16px;
  width: 1px;
  background: linear-gradient(#4c9ed4, rgba(76, 158, 212, 0.08));
}

.dc-route-node,
.dc-route-gap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px 116px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 150px;
  padding: 9px 11px 9px 0;
  border: 1px solid rgba(121, 150, 187, 0.1);
  border-radius: 11px;
  background: rgba(3, 7, 12, 0.56);
}

.dc-route-gap {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 76px;
  border-style: dashed;
  border-color: rgba(214, 143, 75, 0.22);
  background: linear-gradient(110deg, rgba(127, 72, 29, 0.12), rgba(5, 9, 14, 0.62));
}

.dc-route-gap.recommended-gap {
  border-color: rgba(121, 151, 218, 0.22);
  background: linear-gradient(110deg, rgba(58, 84, 151, 0.11), rgba(5, 9, 14, 0.62));
}

.dc-route-index {
  align-self: stretch;
  display: grid;
  place-items: center;
  color: #609fc7;
  font-size: 8px;
  font-weight: 900;
}

.dc-route-card {
  width: 116px;
}

.collection-hall .dc-route-card .book-card,
.collection-hall .dc-route-card .book-card:nth-child(2n),
.collection-hall .dc-route-card .book-card:nth-child(3n),
.collection-hall .dc-route-card .book-card:nth-child(4n) {
  width: 116px !important;
  min-width: 116px !important;
  height: auto !important;
  margin: 0 !important;
  aspect-ratio: 0.665;
}

.dc-route-node-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-route-node-meta span,
.dc-route-gap span {
  color: #5eaedc;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.dc-route-node-meta b {
  color: #8494ac;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.dc-route-copy h6,
.dc-route-gap h6 {
  margin: 5px 0 4px;
  color: #e5effc;
  font-size: 16px;
}

.dc-route-copy h6 small {
  display: block;
  margin-top: 3px;
  color: #9ba8ba;
  font-size: 10px;
  font-weight: 550;
}

.dc-route-node.relation-branch {
  margin-left: 22px;
  border-color: rgba(150, 95, 190, 0.18);
  background: linear-gradient(110deg, rgba(82, 46, 111, 0.12), rgba(3, 7, 12, 0.58));
}

.dc-route-node.relation-context {
  border-color: rgba(177, 143, 83, 0.15);
}

.dc-route-node.relation-standalone {
  border-color: rgba(75, 169, 142, 0.17);
}

.dc-readiness {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(87, 184, 137, 0.28);
  border-radius: 999px;
  color: #8fe2b6;
  background: rgba(47, 140, 96, 0.1);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dc-readiness.done { color: #8fb9df; border-color: rgba(89, 146, 197, 0.24); background: rgba(43, 95, 139, 0.1); }
.dc-readiness.reading { color: #eed06f; border-color: rgba(222, 185, 64, 0.3); background: rgba(156, 121, 23, 0.12); }
.dc-readiness.ordered { color: #79e2ac; }
.dc-readiness.missing,
.dc-readiness.blocked { color: #e6a073; border-color: rgba(209, 114, 65, 0.27); background: rgba(133, 58, 27, 0.11); }
.dc-readiness.recommended { color: #f0c878; border-color: rgba(226, 174, 73, 0.3); background: rgba(145, 100, 25, 0.12); }
.dc-readiness.standalone { color: #87dfca; border-color: rgba(73, 173, 144, 0.27); }

/* Each world keeps the physical shelf but gets its own atmospheric skin. */

#batman-snyder { --world-accent: #7c95d7; --world-accent-2: #c2d0f4; }
#batman-core { --world-accent: #648bc8; --world-accent-2: #a8c9f3; }
#batman-standalones { --world-accent: #536f9e; --world-accent-2: #d0a557; }
#white-knight { --world-accent: #d9d7ce; --world-accent-2: #d34a43; }
#superman-batman { --world-accent: #3979b8; --world-accent-2: #d24b45; }
#millerverse { --world-accent: #b84f49; --world-accent-2: #e9d7b9; }
#gotham-dossiers { --world-accent: #7c88a7; --world-accent-2: #d6b96e; }
#dc-young-adult { --world-accent: #8d6ca8; --world-accent-2: #d7a8cb; }
#five-robins { --world-accent: #4f87b7; --world-accent-2: #d7bf68; }
#detective-comics-rebirth { --world-accent: #4879b2; --world-accent-2: #bc3d42; }
#jason-todd { --world-accent: #ad3d42; --world-accent-2: #e5b963; }
#dc-idw-crossovers { --world-accent: #5c9f82; --world-accent-2: #e2c35d; }
#harley-quinn { --world-accent: #d84f91; --world-accent-2: #70d8ff; }
#suicide-squad-new52 { --world-accent: #b22f48; --world-accent-2: #d8d3ba; }
#dc-legends { --world-accent: #bc8a38; --world-accent-2: #f0d190; }
#injustice { --world-accent: #b43a37; --world-accent-2: #667eb5; }
#crisis-continuum { --world-accent: #624eb7; --world-accent-2: #72c6e3; }
#flash { --world-accent: #c64137; --world-accent-2: #f0cb46; }
#reference-shelf { --world-accent: #6b86a0; --world-accent-2: #b9c9d5; }
#green-lantern { --world-accent: #2eb76b; --world-accent-2: #d5c93a; }
#dark-side { --world-accent: #9e3e50; --world-accent-2: #c58f72; }
#constantine { --world-accent: #7d8052; --world-accent-2: #c5a66d; }
#fables { --world-accent: #8a5d88; --world-accent-2: #d7bd78; }
#locke-key { --world-accent: #8d6a3f; --world-accent-2: #b8d3d0; }
#dark-visions { --world-accent: #4c756f; --world-accent-2: #c76d58; }
#marvel-author-stories { --world-accent: #b4454c; --world-accent-2: #d7bd61; }
#umbrella-academy { --world-accent: #5d668f; --world-accent-2: #d5a45f; }
#league-extraordinary { --world-accent: #99734b; --world-accent-2: #d7c79a; }
#moore-lovecraft { --world-accent: #4a775e; --world-accent-2: #b9946b; }
#etrigan { --world-accent: #b44d2e; --world-accent-2: #e8b357; }
#doom-patrol { --world-accent: #429ba2; --world-accent-2: #cb6ca4; }
#transmetropolitan { --world-accent: #39aeba; --world-accent-2: #efc748; }
#dceased { --world-accent: #4b8e59; --world-accent-2: #d46b52; }
#y-last-man { --world-accent: #c66a42; --world-accent-2: #e6d090; }
#moebius { --world-accent: #528bb4; --world-accent-2: #e9c95e; }
#x-men { --world-accent: #f2c94c; --world-accent-2: #2d7fd3; }
#jodoverse { --world-accent: #a45279; --world-accent-2: #d7b665; }
#three-body { --world-accent: #375d9e; --world-accent-2: #df5a50; }
#death-note { --world-accent: #8a3648; --world-accent-2: #d3d3cb; }
#rip { --world-accent: #606989; --world-accent-2: #b96e66; }
#adventure-time { --world-accent: #4aa894; --world-accent-2: #e1c154; }
#outside-dc { --world-accent: #7861b2; --world-accent-2: #5c9fc8; }

.collection-hall .collection-section:not(#metal):not(#bat-archive) {
  position: relative;
  overflow: hidden !important;
  padding: 12px 11px 15px !important;
  border: 1px solid color-mix(in srgb, var(--world-accent, #7786a4) 19%, transparent) !important;
  border-radius: 13px !important;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--world-accent, #7786a4) 18%, transparent), transparent 29%),
    radial-gradient(circle at 91% 0, color-mix(in srgb, var(--world-accent-2, #b5c1d8) 10%, transparent), transparent 31%),
    linear-gradient(180deg, color-mix(in srgb, var(--world-accent, #7786a4) 5%, #0b0f17), #060910 82%) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 17px 37px rgba(0, 0, 0, 0.37) !important;
}

.collection-hall .collection-section:not(#metal):not(#bat-archive)::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, var(--world-accent, #7786a4) 10%, transparent) 46px 47px),
    linear-gradient(115deg, transparent 0 71%, color-mix(in srgb, var(--world-accent-2, #b5c1d8) 8%, transparent) 71% 72%, transparent 72% 100%);
}

.collection-hall .collection-section:not(#metal):not(#bat-archive) > .head,
.collection-hall .collection-section:not(#metal):not(#bat-archive) > .shelf-wrap {
  position: relative;
  z-index: 1;
}

.collection-hall .collection-section:is(#batman-snyder, #batman-core, #batman-standalones, #white-knight, #superman-batman, #millerverse, #gotham-dossiers, #dc-young-adult, #five-robins, #detective-comics-rebirth, #jason-todd)::after {
  content: "" !important;
  position: absolute !important;
  right: -12px !important;
  bottom: 0 !important;
  left: 42% !important;
  display: block !important;
  height: 64px !important;
  pointer-events: none;
  opacity: 0.12;
  background:
    linear-gradient(74deg, transparent 0 7%, var(--world-accent) 7% 8%, transparent 8% 19%, var(--world-accent) 19% 20%, transparent 20%),
    repeating-linear-gradient(90deg, var(--world-accent) 0 9px, transparent 9px 17px);
  clip-path: polygon(0 70%, 7% 48%, 12% 72%, 20% 29%, 26% 65%, 35% 17%, 42% 64%, 52% 38%, 59% 72%, 68% 10%, 75% 58%, 83% 34%, 91% 67%, 100% 21%, 100% 100%, 0 100%);
}

.collection-hall .collection-section:is(#dc-legends, #injustice, #crisis-continuum, #flash, #green-lantern)::before {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--world-accent-2) 33%, transparent) 0 1px, transparent 1.5px) 0 0 / 31px 31px,
    radial-gradient(circle at 77% 8%, color-mix(in srgb, var(--world-accent) 22%, transparent), transparent 25%) !important;
  opacity: 0.34;
}

.collection-hall .collection-section:is(#dark-side, #constantine, #fables, #locke-key, #dark-visions, #marvel-author-stories, #umbrella-academy, #moore-lovecraft, #etrigan, #dceased)::before {
  background:
    repeating-radial-gradient(ellipse at 12% 110%, color-mix(in srgb, var(--world-accent) 13%, transparent) 0 8px, transparent 9px 27px),
    linear-gradient(120deg, transparent, color-mix(in srgb, var(--world-accent-2) 8%, transparent)) !important;
  opacity: 0.3;
}

.collection-hall .collection-section:is(#transmetropolitan, #moebius, #jodoverse, #three-body, #death-note, #rip, #adventure-time, #outside-dc)::before {
  background:
    linear-gradient(112deg, transparent 0 22%, color-mix(in srgb, var(--world-accent) 13%, transparent) 22% 23%, transparent 23% 63%, color-mix(in srgb, var(--world-accent-2) 10%, transparent) 63% 64%, transparent 64%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.022) 22px 23px) !important;
  opacity: 0.42;
}

@media (max-width: 1120px) {
  .hall-header {
    min-height: 82px !important;
    padding: 0 58px 35px 34px !important;
  }

  .hall-view-tools {
    top: auto;
    right: auto;
    bottom: 4px;
    left: 34px;
    width: 258px;
  }

  .dc-chronology-hero {
    grid-template-columns: 1fr;
  }

  .bat-archive-gateway {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px;
  }

  .bat-archive-signal {
    width: 48px;
    height: 48px;
  }

  .bat-archive-gateway-copy p,
  .bat-archive-gateway-stats {
    display: none;
  }

  .bat-archive-gateway-copy h3 {
    font-size: 19px;
  }

  .bat-archive-open {
    min-height: 36px;
    padding: 0 10px;
    font-size: 8px;
  }

  .bat-archive-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-grid,
  .all-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 7px;
  }
}

@media (max-width: 520px) {
  .dc-chronology-hero {
    padding: 13px;
  }

  .dc-chronology-hero h3 {
    font-size: 20px;
  }

  .dc-chronology-hero > div:first-child p {
    display: none;
  }

  .dc-chronology-kpis {
    grid-template-columns: 1fr 0.65fr;
  }

  .dc-chronology-kpis span:last-child {
    grid-column: 1 / -1;
  }

  .dc-route-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .dc-route-stage {
    padding: 10px;
  }

  .dc-route-node {
    grid-template-columns: 28px 88px minmax(0, 1fr);
    gap: 7px;
    min-height: 132px;
    padding-right: 7px;
  }

  .dc-route-gap {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .dc-route-timeline::before {
    left: 13px;
  }

  .dc-route-card {
    width: 88px;
  }

  .collection-hall .dc-route-card .book-card,
  .collection-hall .dc-route-card .book-card:nth-child(2n),
  .collection-hall .dc-route-card .book-card:nth-child(3n),
  .collection-hall .dc-route-card .book-card:nth-child(4n) {
    width: 88px !important;
    min-width: 88px !important;
  }

  .dc-route-copy h6,
  .dc-route-gap h6 {
    font-size: 12px;
  }

  .dc-route-copy p {
    display: none;
  }

  .dc-route-node.relation-branch {
    margin-left: 8px;
  }

  .bat-archive-dashboard {
    padding: 13px;
  }

  .bat-archive-dashboard-main {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
  }

  .bat-archive-mark {
    width: 42px;
    height: 42px;
  }

  .bat-archive-dashboard h3 {
    font-size: 19px;
  }

  .bat-archive-dashboard-main p,
  .bat-archive-footnote {
    display: none;
  }

  .bat-archive-scope {
    flex-wrap: wrap;
  }

  .bat-archive-scope > span {
    width: 100%;
    margin: 2px 0 0;
  }

  .bat-archive-group,
  .all-books-wall {
    padding: 10px;
  }

  .bat-archive-group-head h4 {
    font-size: 12px;
  }

  .all-books-head h3 {
    font-size: 17px;
  }

  .all-books-head p {
    display: none;
  }

  .collection-hall .archive-grid .book-card .hint,
  .collection-hall .all-books-grid .book-card .hint {
    display: none;
  }
}

@media (max-width: 349px) {
  .hall-view-tools {
    left: 27px;
    width: 244px;
  }

  .hall-view-tools button {
    padding: 0 4px;
    font-size: 7px;
  }

  .archive-grid,
  .all-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v8.22 · stable hover, visible price audit and clickable activity */
.collection-hall .book-card:hover,
.collection-hall .book-card:focus-visible {
  transform: scale(1.025) !important;
}

.book-peek {
  width: min(286px, calc(100vw - 24px)) !important;
  padding: 12px 13px !important;
  pointer-events: auto !important;
}

.book-peek p {
  -webkit-line-clamp: 3;
}

.book-peek .peek-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 10px !important;
  min-width: 0;
}

.book-peek .peek-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.peek-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.peek-price span {
  color: #8f9ab5;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.peek-price b {
  color: #ffdc93;
  font-size: 12px !important;
  text-align: right;
}

.peek-price[data-missing="true"] b {
  color: #ff9d87;
}

.missing-price-mark {
  position: absolute;
  z-index: 18;
  top: 8px;
  right: 40px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 224, 151, 0.8);
  border-radius: 50%;
  color: #2a1800;
  background: #ffdc93;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  font-weight: 950;
}

.gift-price {
  color: #9ff0bd !important;
}

#stat-spent,
.money-kpi-value {
  font-size: clamp(13px, 1.35vw, 22px) !important;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.interactive-list-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.interactive-list-item:hover,
.interactive-list-item:focus-visible {
  border-color: rgba(176, 108, 255, 0.45) !important;
  background: rgba(176, 108, 255, 0.09) !important;
  outline: none;
  transform: translateX(2px);
}

.book-list-dialog .vault-dialog-card {
  max-width: 650px;
}

.book-list-dialog-items {
  display: grid;
  gap: 7px;
  max-height: min(58vh, 520px);
  overflow: auto;
  margin-top: 15px;
  padding-right: 4px;
}

.book-list-dialog-items button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.book-list-dialog-items button:hover,
.book-list-dialog-items button:focus-visible {
  border-color: rgba(176, 108, 255, 0.48);
  background: rgba(176, 108, 255, 0.1);
  outline: none;
}

.book-list-dialog-items button > span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: rgba(176, 108, 255, 0.13);
}

.book-list-dialog-items b,
.book-list-dialog-items small {
  display: block;
}

.book-list-dialog-items small {
  margin-top: 3px;
  color: #8f9ab5;
  font-size: 10px;
}

.book-list-dialog-items em {
  color: #ffdc93;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

/* v8.23 · honest counts, collection sorting and comic achievement archive */

.right-rail .kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.right-rail .kpi[data-kpi="spent"] {
  grid-column: 1 / -1;
  min-height: 78px;
  padding-inline: 12px !important;
  border-color: rgba(255, 210, 123, 0.2);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 206, 105, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.kpi b.money-kpi-value,
#stat-spent {
  max-width: 100%;
  overflow: visible !important;
  font-size: clamp(17px, 1.05vw, 21px) !important;
  letter-spacing: -0.045em;
  text-overflow: clip !important;
  white-space: nowrap;
}

.catalog-kpi-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.catalog-kpi-line span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 7px 5px;
  border: 1px solid rgba(151, 174, 211, 0.09);
  border-radius: 9px;
  color: #7e8aa8;
  background: rgba(255, 255, 255, 0.018);
  font-size: 7px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.catalog-kpi-line b {
  color: #cbd6ef;
  font-size: 13px;
}

.catalog-kpi-line .complete b {
  color: #6ee0a2;
}

.catalog-kpi-line .warn b {
  color: #ffb66d;
}

.all-books-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(220px, 330px) minmax(180px, 1fr);
  gap: 9px;
  align-items: center;
  margin: -2px 0 14px;
  padding: 9px 10px;
  border: 1px solid rgba(152, 129, 207, 0.14);
  border-radius: 11px;
  background:
    radial-gradient(circle at 12% 0, rgba(164, 113, 229, 0.1), transparent 52%),
    rgba(5, 8, 14, 0.68);
}

.all-books-toolbar label {
  color: #9886b9;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.all-books-toolbar select {
  min-width: 0;
  min-height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid rgba(175, 135, 237, 0.25);
  border-radius: 9px;
  color: #f1eaff;
  background: #12121d;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.all-books-toolbar > span {
  color: #707b96;
  font-size: 8px;
  line-height: 1.35;
}

.achievement-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
}

.achievement-tools .hint {
  grid-column: 1 / -1;
}

.achievement-open-all {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(201, 159, 255, 0.3);
  border-radius: 9px;
  color: #f1e4ff;
  background:
    linear-gradient(115deg, rgba(147, 83, 224, 0.26), rgba(67, 103, 190, 0.17)),
    rgba(255, 255, 255, 0.025);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.achievement-open-all:hover,
.achievement-open-all:focus-visible {
  border-color: rgba(216, 183, 255, 0.62);
  outline: none;
  box-shadow: 0 0 20px rgba(155, 92, 232, 0.2);
}

.right-rail .medal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
}

.right-rail .medal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background:
    radial-gradient(circle, var(--medal-color, #b06cff) 0 1px, transparent 1.5px) 0 0 / 6px 6px,
    linear-gradient(135deg, transparent 0 62%, color-mix(in srgb, var(--medal-color, #b06cff) 15%, transparent) 62% 64%, transparent 64%);
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.right-rail .medal:hover,
.right-rail .medal:focus-visible {
  z-index: 2;
  border-color: color-mix(in srgb, var(--medal-color, #b06cff) 58%, white) !important;
  outline: none;
  transform: translateY(-3px) rotate(-0.35deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 18px color-mix(in srgb, var(--medal-color, #b06cff) 18%, transparent);
}

.right-rail .medal[data-availability="system"] {
  border-style: dashed;
}

.right-rail .medal[data-availability="legacy"]::after {
  content: "ЛЕТОПИСЬ";
  position: absolute;
  top: 8px;
  right: -22px;
  width: 78px;
  padding: 3px 0;
  color: #17100a;
  background: #d6ae65;
  font-size: 6px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(35deg);
}

.right-rail .medal-condition {
  display: none;
}

.achievement-comic-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.achievement-archive-dialog {
  z-index: 12000;
  align-items: stretch;
  overflow-y: auto;
  padding: clamp(10px, 2vw, 24px);
}

html.achievement-modal-open,
body.achievement-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.achievement-archive-card {
  width: min(1180px, 100%);
  max-height: none;
  margin: auto;
  overflow: visible;
  padding: clamp(16px, 2.2vw, 28px);
  border-color: rgba(197, 149, 255, 0.32);
  background:
    radial-gradient(circle at 8% 0, rgba(167, 92, 233, 0.25), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(64, 144, 220, 0.18), transparent 25%),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(211, 195, 255, 0.025) 55px 56px),
    linear-gradient(180deg, #151222, #080a11 42%, #05070c);
}

.achievement-archive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background: radial-gradient(circle, #d9c7ff 0 1px, transparent 1.3px) 0 0 / 7px 7px;
  mask-image: linear-gradient(135deg, #000, transparent 34%, #000 72%, transparent);
}

.achievement-archive-card > * {
  position: relative;
  z-index: 1;
}

.achievement-archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 2px 48px 17px 0;
  border-bottom: 1px solid rgba(200, 173, 237, 0.12);
}

.achievement-archive-hero h3 {
  margin: 4px 0 5px;
  font-size: clamp(28px, 4vw, 47px);
  line-height: 0.95;
  letter-spacing: 0.025em;
}

.achievement-archive-hero p {
  max-width: 68ch;
  margin: 0;
  color: #9ba6c5;
  font-size: 12px;
  line-height: 1.5;
}

.achievement-archive-total {
  display: grid;
  min-width: 148px;
  padding: 12px 14px;
  border: 1px solid rgba(199, 152, 255, 0.22);
  border-radius: 13px;
  background: rgba(9, 8, 17, 0.58);
  text-align: right;
}

.achievement-archive-total b {
  color: #e7d2ff;
  font-size: 27px;
  line-height: 1;
}

.achievement-archive-total span {
  margin-top: 4px;
  color: #81758f;
  font-size: 7px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.achievement-catalog-controls {
  display: grid;
  grid-template-columns: auto minmax(150px, 210px) minmax(190px, 1fr);
  gap: 9px;
  align-items: end;
  margin: 14px 0;
}

.achievement-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(190, 157, 230, 0.12);
  border-radius: 11px;
  background: rgba(4, 6, 11, 0.58);
}

.achievement-catalog-filters button,
.achievement-catalog-controls select,
.achievement-catalog-controls input {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e9edff;
  background: #11131c;
  font: inherit;
  font-size: 10px;
}

.achievement-catalog-filters button {
  padding: 0 11px;
  color: #8f99b6;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.achievement-catalog-filters button[aria-pressed="true"] {
  border-color: rgba(191, 139, 255, 0.4);
  color: #fff;
  background: rgba(164, 94, 232, 0.18);
}

.achievement-catalog-controls label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #7f8aa7;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-catalog-controls select,
.achievement-catalog-controls input {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  letter-spacing: 0;
  text-transform: none;
}

.achievement-focus {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 30px);
  min-height: 230px;
  overflow: hidden;
  padding: clamp(15px, 2vw, 23px);
  border: 1px solid color-mix(in srgb, var(--achievement-accent, #b06cff) 28%, transparent);
  border-radius: 17px;
  background:
    radial-gradient(circle at 10% 15%, color-mix(in srgb, var(--achievement-accent, #b06cff) 19%, transparent), transparent 35%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), rgba(3, 5, 10, 0.72));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.achievement-focus-art {
  display: grid;
  min-height: 185px;
  place-items: center;
}

.achievement-focus-art svg {
  width: min(180px, 100%);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.42));
}

.achievement-focus-copy {
  min-width: 0;
}

.achievement-focus-meta,
.achievement-focus-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: color-mix(in srgb, var(--achievement-accent, #b06cff) 74%, white);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.achievement-focus-meta b {
  color: #8b96b0;
  font-size: 9px;
}

.achievement-focus-copy h4 {
  margin: 7px 0 7px;
  color: #f3f5ff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.achievement-focus-copy > p {
  max-width: 70ch;
  margin: 0 0 14px;
  color: #aab4cc;
  font-size: 13px;
  line-height: 1.55;
}

.achievement-focus-status small {
  color: #8e98ae;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.achievement-focus-progress {
  height: 5px;
  overflow: hidden;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.achievement-focus-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--achievement-accent, #b06cff), #f2dcff);
  box-shadow: 0 0 12px color-mix(in srgb, var(--achievement-accent, #b06cff) 55%, transparent);
}

.achievement-related-books {
  margin-top: 16px;
}

.achievement-related-books > strong {
  color: #8490aa;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-related-books > div {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 7px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.achievement-related-books button {
  display: grid;
  grid-template-columns: 26px minmax(100px, 1fr);
  flex: 0 0 min(220px, 74vw);
  gap: 1px 7px;
  align-items: center;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: #e6ebfb;
  background: rgba(3, 6, 11, 0.56);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.achievement-related-books button:hover,
.achievement-related-books button:focus-visible {
  border-color: color-mix(in srgb, var(--achievement-accent, #b06cff) 48%, transparent);
  outline: none;
}

.achievement-related-books button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: var(--achievement-accent, #b06cff);
  background: color-mix(in srgb, var(--achievement-accent, #b06cff) 11%, transparent);
}

.achievement-related-books b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-related-books small {
  color: #74809a;
  font-size: 9px;
}

.achievement-related-books button[data-status="missing"] {
  opacity: 0.62;
}

.achievement-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.achievement-catalog-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 122px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--achievement-accent, #b06cff) 18%, transparent);
  border-radius: 12px;
  color: inherit;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--achievement-accent, #b06cff) 12%, transparent), transparent 45%),
    rgba(255, 255, 255, 0.018);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.achievement-catalog-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: radial-gradient(circle, var(--achievement-accent, #b06cff) 0 1px, transparent 1.3px) 0 0 / 6px 6px;
  mask-image: linear-gradient(120deg, #000, transparent 46%);
}

.achievement-catalog-item:hover,
.achievement-catalog-item:focus-visible,
.achievement-catalog-item.selected {
  border-color: color-mix(in srgb, var(--achievement-accent, #b06cff) 52%, white);
  outline: none;
  background: color-mix(in srgb, var(--achievement-accent, #b06cff) 9%, #0a0c13);
}

.achievement-catalog-item.locked {
  filter: saturate(0.5);
  opacity: 0.76;
}

.achievement-catalog-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.achievement-catalog-art svg {
  width: 72px;
}

.achievement-catalog-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 3px;
}

.achievement-catalog-copy small {
  color: color-mix(in srgb, var(--achievement-accent, #b06cff) 72%, white);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-catalog-copy b {
  overflow: hidden;
  color: #edf1ff;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-catalog-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: #8d98b3;
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.achievement-catalog-copy > span {
  margin-top: 3px;
  color: #bcc5db;
  font-size: 9px;
  font-weight: 800;
}

.achievement-catalog-copy > i {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.achievement-catalog-copy > i::after {
  content: "";
  display: block;
  width: var(--achievement-progress, 0%);
  height: 100%;
  background: var(--achievement-accent, #b06cff);
}

.achievement-catalog-empty {
  grid-column: 1 / -1;
  padding: 35px;
  border: 1px dashed rgba(175, 150, 210, 0.18);
  border-radius: 12px;
  color: #818ca6;
  text-align: center;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .right-rail .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .right-rail .kpi[data-kpi="spent"] {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .achievement-catalog-controls {
    grid-template-columns: 1fr 1fr;
  }

  .achievement-catalog-filters {
    grid-column: 1 / -1;
  }

  .achievement-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .catalog-kpi-line {
    grid-template-columns: 1fr;
  }

  .all-books-toolbar,
  .achievement-catalog-controls {
    grid-template-columns: 1fr;
  }

  .all-books-toolbar > span,
  .achievement-catalog-filters {
    grid-column: auto;
  }

  .achievement-catalog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-archive-hero,
  .achievement-focus {
    grid-template-columns: 1fr;
  }

  .achievement-archive-total {
    width: 100%;
    text-align: left;
  }

  .achievement-focus-art {
    min-height: 130px;
  }

  .achievement-focus-art svg {
    width: 128px;
  }

  .achievement-catalog-grid {
    grid-template-columns: 1fr;
  }

  .achievement-archive-dialog {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
}

/* v8.23.1 · mobile WebKit memory guard */

.collection-hall .book-card .cover > .cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  opacity: 0;
  transition: opacity 140ms ease;
}

.collection-hall .book-card .cover > .cover-image.loaded {
  opacity: 1;
}

.collection-hall .book-card .cover::after {
  z-index: 1;
}

.collection-hall .book-card .cover > .sig {
  position: absolute;
  z-index: 2;
}

/* v8.47 · compact filters, creator picker, ratings */
.filter-pills{display:grid!important;gap:7px!important}.filter-quick{display:flex;gap:5px;flex-wrap:wrap}.filter-more{min-width:0}.filter-more>summary{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border:1px solid rgba(176,108,255,.2);border-radius:999px;color:#aeb9d4;background:rgba(255,255,255,.025);font-size:9px;cursor:pointer;list-style:none}.filter-more>summary::-webkit-details-marker{display:none}.filter-more[open]>summary{color:#fff;border-color:rgba(176,108,255,.42);background:rgba(176,108,255,.13)}.filter-advanced{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px;padding:10px;border:1px solid rgba(176,108,255,.12);border-radius:12px;background:rgba(5,8,14,.48)}
.collection-author-toolbar{grid-template-columns:auto minmax(240px,390px) auto minmax(180px,1fr)}.creator-combobox{position:relative;min-width:0}.creator-combobox input{width:100%;min-height:36px;padding:0 34px 0 11px;border:1px solid rgba(175,135,237,.25);border-radius:9px;color:#f1eaff;background:#12121d;font:inherit;font-size:11px;font-weight:750}.creator-options{position:absolute;z-index:40;top:calc(100% + 5px);left:0;right:0;max-height:310px;overflow:auto;padding:5px;border:1px solid rgba(175,135,237,.3);border-radius:11px;background:#11131e;box-shadow:0 18px 40px #000a}.creator-options button{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:9px;border:0;border-radius:7px;text-align:left;color:#e7eaf4;background:transparent;font:inherit;font-size:11px;cursor:pointer}.creator-options button:hover,.creator-options button:focus{background:#a884e823;outline:none}.creator-options span{display:grid;gap:2px}.creator-options em{color:#8c97ae;font-size:8px;font-style:normal}.creator-options small{color:#b69adc}.collection-author-toolbar>[data-clear-author]{min-height:36px;padding:0 11px;border:1px solid rgba(175,135,237,.2);border-radius:9px;color:#bcb0d2;background:#12121d;cursor:pointer}.collection-author-toolbar>[data-clear-author]:disabled{opacity:.45;cursor:default}.card-rating{position:absolute;z-index:4;top:7px;right:7px;display:grid;place-items:center;min-width:30px;height:24px;padding:0 6px;border:1px solid #d2b3ff88;border-radius:999px;background:#17101ee8;color:#f0e4ff;font-size:10px;font-weight:900;box-shadow:0 4px 14px #0008}

@media(max-width:820px){.search-tools input{font-size:16px!important}.filter-quick{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.filter-more{width:100%}.filter-advanced{max-height:180px;overflow:auto}.collection-author-toolbar{grid-template-columns:1fr}.creator-combobox input{font-size:16px}.creator-options{position:relative;top:auto;margin-top:5px}.collection-author-toolbar>[data-clear-author]{width:100%}}

@media (max-width: 820px) {
  .collection-hall {
    box-shadow: none !important;
  }

  .collection-hall::after {
    inset: 0 0 auto !important;
    width: auto !important;
    height: 260px !important;
    background-size: auto 260px !important;
    filter: none !important;
  }

  .left-rail,
  .right-panel,
  .book-card .hint,
  .section-decor .prop,
  .modal,
  .vault-dialog {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .collection-hall .collection-section {
    content-visibility: auto;
    contain: layout paint style;
    contain-intrinsic-size: auto 292px;
  }

  .collection-hall .book-card,
  .collection-hall .book-card:nth-child(2n),
  .collection-hall .book-card:nth-child(3n),
  .collection-hall .book-card:nth-child(4n) {
    transform: none !important;
    transition: none !important;
    box-shadow: 7px 12px 18px rgba(0, 0, 0, 0.42) !important;
  }

  .collection-hall .book-card .cover > .cover-image {
    transition: none;
  }

  .collection-hall .book-card:hover,
  .collection-hall .book-card:focus-visible {
    transform: translateY(-3px) !important;
  }

  .collection-hall .book-card.cover-first .cover,
  .collection-hall .book-card.missing,
  .collection-hall .book-card.missing .cover,
  .right-rail .medal,
  .right-rail .medal-emblem,
  .achievement-focus-art svg,
  .achievement-catalog-item {
    filter: none !important;
  }

  .collection-hall .book-card.missing {
    opacity: 0.58;
  }

  .collection-hall .shelf {
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: auto;
    touch-action: pan-x pan-y pinch-zoom !important;
  }

  .right-rail .achievement-page {
    display: none !important;
    min-width: 100% !important;
  }

  .right-rail .achievement-page.mobile-achievement-page-active {
    display: grid !important;
  }

  .right-rail .medal::before,
  .achievement-archive-card::before,
  .achievement-catalog-item::after {
    display: none !important;
  }

  .achievement-comic-svg {
    overflow: hidden;
  }
}

/* v8.39 · complete Batman reading order and publication timeline */

.bat-reading-board,
.bat-timeline-board {
  display: grid;
  gap: 14px;
}

.bat-reading-hero,
.bat-timeline-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(115, 161, 236, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0, rgba(59, 113, 212, 0.25), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(128, 62, 181, 0.16), transparent 30%),
    repeating-linear-gradient(110deg, transparent 0 52px, rgba(151, 184, 235, 0.03) 52px 53px),
    linear-gradient(180deg, #0d1625, #060910);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.bat-timeline-hero {
  grid-template-columns: minmax(320px, 1fr) auto;
  border-color: rgba(182, 130, 239, 0.25);
  background:
    radial-gradient(circle at 90% 0, rgba(140, 79, 207, 0.24), transparent 35%),
    radial-gradient(circle at 6% 100%, rgba(45, 132, 204, 0.2), transparent 31%),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(188, 151, 231, 0.028) 63px 64px),
    linear-gradient(180deg, #151125, #070911);
}

.bat-reading-emblem {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(132, 177, 244, 0.25);
  border-radius: 18px;
  color: #8fbaff;
  background: rgba(54, 91, 151, 0.15);
  box-shadow: inset 0 0 24px rgba(103, 151, 231, 0.08);
}

.bat-reading-emblem svg {
  width: 48px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.bat-reading-hero h3,
.bat-timeline-hero h3 {
  margin: 4px 0 6px;
  color: #f0f5ff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.02em;
}

.bat-reading-hero p,
.bat-timeline-hero p {
  max-width: 780px;
  margin: 0;
  color: #96a4bc;
  font-size: 13px;
  line-height: 1.55;
}

.bat-reading-kpis,
.bat-timeline-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 8px;
}

.bat-reading-kpis span,
.bat-timeline-kpis span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(133, 174, 235, 0.15);
  border-radius: 11px;
  background: rgba(2, 6, 12, 0.48);
}

.bat-reading-kpis b,
.bat-timeline-kpis b {
  overflow: hidden;
  color: #e5efff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bat-reading-kpis small,
.bat-timeline-kpis small {
  color: #7f8da6;
  font-size: 12px;
}

.bat-reading-toolbar,
.bat-timeline-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(122, 156, 211, 0.13);
  border-radius: 13px;
  background: rgba(6, 10, 17, 0.86);
}

.bat-reading-toolbar > b,
.bat-timeline-controls > b {
  flex: 0 0 auto;
  margin-left: auto;
  color: #91a2bf;
  font-size: 12px;
}

.bat-reading-toolbar > button,
.bat-timeline-basis button,
.bat-decade-strip button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(124, 163, 226, 0.2);
  border-radius: 10px;
  color: #9eacc3;
  background: rgba(34, 55, 91, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.bat-reading-toolbar > button[aria-pressed="true"],
.bat-timeline-basis button[aria-pressed="true"],
.bat-decade-strip button[aria-pressed="true"] {
  border-color: rgba(126, 177, 255, 0.48);
  color: #f2f6ff;
  background: linear-gradient(120deg, rgba(61, 111, 190, 0.3), rgba(102, 62, 159, 0.22));
  box-shadow: 0 0 20px rgba(75, 126, 209, 0.14);
}

.bat-reading-legend,
.bat-timeline-basis,
.bat-decade-strip {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.bat-reading-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #9aa8bf;
  font-size: 12px;
}

.bat-reading-legend span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #7ca8ef;
}

.bat-reading-legend [data-reading-mode="parallel"]::before {
  background: #c785ef;
}

.bat-reading-legend [data-reading-mode="any"]::before {
  background: #73d7b6;
}

.bat-reading-lanes {
  display: grid;
  gap: 13px;
}

.bat-reading-lane {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(122, 156, 211, 0.13);
  border-radius: 15px;
  background:
    repeating-linear-gradient(90deg, transparent 0 71px, rgba(132, 165, 215, 0.025) 71px 72px),
    linear-gradient(180deg, rgba(13, 20, 32, 0.97), rgba(6, 9, 15, 0.98));
}

.bat-reading-lane.mode-parallel {
  border-color: rgba(177, 116, 223, 0.18);
}

.bat-reading-lane.mode-any {
  border-color: rgba(98, 204, 166, 0.17);
}

.bat-reading-lane > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(132, 164, 211, 0.1);
}

.bat-reading-lane > header > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(118, 168, 242, 0.25);
  border-radius: 50%;
  color: #88b7fa;
  background: rgba(62, 107, 174, 0.13);
  font-size: 12px;
  font-weight: 900;
}

.bat-reading-lane > header small {
  color: #7189b3;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.bat-reading-lane > header h4 {
  margin: 3px 0;
  color: #e5edfb;
  font-size: 18px;
}

.bat-reading-lane > header p {
  max-width: 900px;
  margin: 0;
  color: #8694aa;
  font-size: 12px;
  line-height: 1.5;
}

.bat-reading-lane > header > b {
  min-width: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(125, 164, 225, 0.18);
  border-radius: 9px;
  color: #acc8f5;
  background: rgba(47, 78, 127, 0.12);
  font-size: 13px;
  text-align: center;
}

.bat-reading-track {
  display: grid;
  grid-auto-columns: minmax(158px, 174px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 15px 3px 7px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(108, 151, 218, 0.38) transparent;
}

.bat-reading-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(124, 158, 207, 0.13);
  border-radius: 13px;
  background: rgba(2, 6, 11, 0.58);
  scroll-snap-align: start;
}

.bat-reading-step::after {
  content: "→";
  position: absolute;
  top: 102px;
  right: -16px;
  color: #526f9e;
  font-size: 16px;
  font-weight: 900;
}

.mode-any .bat-reading-step::after {
  content: "·";
  color: #4e917d;
}

.bat-reading-step-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid rgba(154, 194, 250, 0.4);
  border-radius: 9px;
  color: #edf5ff;
  background: rgba(6, 14, 26, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 900;
}

.collection-hall .bat-reading-cover .book-card,
.collection-hall .bat-reading-cover .book-card:nth-child(2n),
.collection-hall .bat-reading-cover .book-card:nth-child(3n),
.collection-hall .bat-reading-cover .book-card:nth-child(4n) {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  aspect-ratio: 0.665;
  transform: none !important;
}

.bat-reading-step-copy {
  display: grid;
  gap: 4px;
}

.bat-reading-step-copy > span {
  color: #79a9ed;
  font-size: 12px;
  font-weight: 850;
}

.status-read .bat-reading-step-copy > span {
  color: #7bd4b2;
}

.status-reading .bat-reading-step-copy > span {
  color: #d59bfd;
}

.bat-reading-step-copy h5 {
  margin: 0;
  color: #e2e8f3;
  font-size: 13px;
  line-height: 1.3;
}

.bat-reading-step-copy p,
.bat-reading-step-copy em {
  margin: 0;
  color: #8995aa;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.bat-reading-step-copy em {
  padding-top: 5px;
  border-top: 1px solid rgba(123, 157, 211, 0.1);
  color: #afc4e8;
}

.bat-timeline-controls {
  flex-wrap: wrap;
  border-color: rgba(170, 121, 221, 0.15);
}

.bat-timeline-basis {
  padding-right: 10px;
  border-right: 1px solid rgba(161, 126, 201, 0.16);
}

.bat-decade-strip {
  overflow-x: auto;
  flex: 1 1 420px;
  scrollbar-width: thin;
}

.bat-decade-strip button {
  flex: 0 0 auto;
}

.bat-timeline-stream {
  position: relative;
  display: grid;
  gap: 12px;
}

.bat-timeline-stream::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 67px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#6f9be2, #9d63ca 52%, #4b789f);
  box-shadow: 0 0 18px rgba(121, 126, 218, 0.25);
}

.bat-timeline-year {
  position: relative;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.bat-timeline-year-marker {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 118px;
  min-height: 72px;
  padding: 9px;
  border: 1px solid rgba(143, 154, 229, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(36, 49, 83, 0.97), rgba(17, 12, 29, 0.97));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.bat-timeline-year-marker::after {
  content: "";
  position: absolute;
  right: -25px;
  width: 12px;
  height: 12px;
  border: 3px solid #111624;
  border-radius: 50%;
  background: #8e84e8;
  box-shadow: 0 0 16px rgba(142, 132, 232, 0.6);
}

.bat-timeline-year-marker b {
  color: #f0ecff;
  font-size: 22px;
}

.bat-timeline-year-marker span {
  color: #8f98af;
  font-size: 12px;
}

.bat-timeline-year-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(141, 127, 195, 0.12);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(134, 86, 188, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(16, 17, 29, 0.96), rgba(7, 9, 15, 0.97));
}

.bat-timeline-entry {
  --timeline-accent: #719fe5;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--timeline-accent) 24%, transparent);
  border-radius: 12px;
  color: inherit;
  background: rgba(4, 7, 13, 0.72);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.bat-timeline-entry:hover,
.bat-timeline-entry:focus-visible {
  border-color: color-mix(in srgb, var(--timeline-accent) 60%, white 8%);
  background: color-mix(in srgb, var(--timeline-accent) 9%, #070a11);
  transform: translateY(-2px);
}

.bat-timeline-entry.continuity-alternate {
  --timeline-accent: #bd79e5;
}

.bat-timeline-entry.continuity-event {
  --timeline-accent: #e48367;
}

.bat-timeline-entry.continuity-standalone {
  --timeline-accent: #70c9aa;
}

.bat-timeline-entry.continuity-cinema {
  --timeline-accent: #d5b66d;
}

.bat-timeline-cover-art {
  position: relative;
  display: block;
  width: 72px;
  aspect-ratio: 0.665;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: linear-gradient(145deg, #2a3b59, #090c13);
  box-shadow: 5px 7px 14px rgba(0, 0, 0, 0.35);
}

.bat-timeline-cover-art::before {
  content: attr(data-symbol);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(214, 229, 255, 0.7);
  font-size: 18px;
  font-weight: 900;
}

.bat-timeline-cover-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bat-timeline-entry-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.bat-timeline-entry-copy small {
  color: var(--timeline-accent);
  font-size: 12px;
  font-weight: 850;
}

.bat-timeline-entry-copy strong {
  color: #e7ebf4;
  font-size: 14px;
  line-height: 1.25;
}

.bat-timeline-entry-copy em,
.bat-timeline-entry-copy span,
.bat-timeline-entry-copy i {
  overflow: hidden;
  color: #8f9aaf;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.bat-timeline-entry-copy em {
  white-space: nowrap;
}

.bat-timeline-entry-copy i {
  width: max-content;
  margin-top: 3px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--timeline-accent) 25%, transparent);
  border-radius: 999px;
  color: #b8c7de;
  background: color-mix(in srgb, var(--timeline-accent) 8%, transparent);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .bat-reading-hero,
  .bat-timeline-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .bat-reading-kpis,
  .bat-timeline-kpis {
    grid-column: 1 / -1;
  }

  .bat-timeline-hero > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .bat-reading-hero,
  .bat-timeline-hero {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .bat-reading-emblem {
    width: 54px;
    height: 54px;
  }

  .bat-reading-emblem svg {
    width: 38px;
  }

  .bat-reading-hero h3,
  .bat-timeline-hero h3 {
    font-size: 23px;
  }

  .bat-reading-kpis,
  .bat-timeline-kpis {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bat-reading-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bat-reading-legend {
    overflow-x: auto;
  }

  .bat-reading-toolbar > b,
  .bat-timeline-controls > b {
    margin-left: 0;
  }

  .bat-reading-lane {
    padding: 11px;
  }

  .bat-reading-lane > header {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .bat-reading-lane > header > span {
    width: 34px;
    height: 34px;
  }

  .bat-reading-lane > header p {
    display: none;
  }

  .bat-reading-track {
    grid-auto-columns: minmax(144px, 154px);
    gap: 15px;
  }

  .bat-timeline-basis {
    width: 100%;
    overflow-x: auto;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(161, 126, 201, 0.16);
  }

  .bat-timeline-basis button {
    flex: 1 0 auto;
  }

  .bat-timeline-year {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bat-timeline-stream::before {
    left: 18px;
  }

  .bat-timeline-year-marker {
    position: relative;
    top: auto;
    grid-template-columns: auto 1fr;
    gap: 9px;
    justify-items: start;
    width: max-content;
    min-height: 44px;
    margin-left: 0;
    padding: 7px 13px;
  }

  .bat-timeline-year-marker::after {
    right: auto;
    bottom: -13px;
    left: 12px;
  }

  .bat-timeline-year-marker b {
    font-size: 18px;
  }

  .bat-timeline-year-books {
    grid-template-columns: 1fr;
    margin-left: 26px;
  }
}

@media (max-width: 390px) {
  .bat-reading-kpis,
  .bat-timeline-kpis {
    grid-template-columns: 1fr;
  }

  .bat-timeline-entry {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .bat-timeline-cover-art {
    width: 62px;
  }
}
.dc-guide-board { --guide-accent: #98bde9; color: #e5edf8; }
.dc-guide-hero { display: grid; grid-template-columns: 84px minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 30px; border: 1px solid #405c80; border-radius: 22px; background: radial-gradient(ellipse at 0 0,#203b60,transparent 65%),linear-gradient(120deg,#101d30,#090f1b); }
.dc-guide-hero h3 { margin: 7px 0 10px; font-size: clamp(28px,3.8vw,46px); letter-spacing: -.035em; }
.dc-guide-hero p { margin: 0; max-width: 780px; color: #afbed2; line-height: 1.65; }
.dc-guide-insignia { display: grid; place-content: center; width: 80px; height: 80px; border: 2px solid #93b5df; border-radius: 50%; font-size: 29px; font-weight: 900; text-align: center; letter-spacing: -2px; box-shadow: 0 0 32px #4579b42b; }
.dc-guide-insignia span { font-size: 9px; letter-spacing: 3px; }
.dc-guide-stats { display: flex; gap: 20px; }
.dc-guide-stats span { display: grid; max-width: 110px; gap: 6px; color: #b0c0d5; font-size: 11px; }
.dc-guide-stats b { color: #f2f6fc; font-size: 28px; }
.dc-guide-family { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 10px; }
.dc-guide-family button,.dc-guide-links button { flex: 0 0 auto; min-height: 42px; padding: 9px 15px; border: 1px solid #354c68; border-radius: 10px; color: #becbe0; background: #0d1829; cursor: pointer; font: inherit; font-size: 12px; }
.dc-guide-family button[aria-pressed=true] { color: #eaf4ff; border-color: #8db5eb; background: #294669; box-shadow: 0 0 0 1px #8db5eb33; }
.dc-guide-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 14px 0; }
.dc-guide-controls label { display: flex; gap: 9px; align-items: center; color: #c1cde0; font-size: 12px; }
.dc-guide-controls select { min-height: 42px; max-width: 100%; border: 1px solid #43516a; border-radius: 8px; background: #111c2c; color: #e6edf7; font: inherit; padding: 8px 30px 8px 12px; }
.dc-guide-controls input { accent-color: #8db5eb; width: 17px; height: 17px; }
.dc-guide-key { display: flex; flex-wrap: wrap; gap: 9px 18px; color: #a5b7cf; font-size: 11px; padding: 10px 0; }
.dc-guide-key-gap { border-bottom: 1px dashed #9c9467; }
.dc-guide-disclaimer { margin: 2px 0 23px; max-width: 1000px; color: #8798b0; line-height: 1.6; font-size: 12px; }
.dc-guide-routes { display: grid; gap: 26px; }
.dc-guide-route { min-width: 0; border: 1px solid #314660; border-radius: 18px; background: #0b1320ed; overflow: hidden; }
.dc-guide-route.family-alternate { --guide-accent: #c6a3e3; border-color: #4e3b63; }
.dc-guide-route.family-vertigo { --guide-accent: #b3c69a; border-color: #445441; }
.dc-guide-route > header { display: flex; justify-content: space-between; gap: 22px; padding: 24px 24px 17px; background: linear-gradient(100deg,#92b8e011,transparent); }
.dc-guide-route > header small { color: var(--guide-accent); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.dc-guide-route h4 { margin: 5px 0 8px; color: #f0f4fa; font-size: 23px; letter-spacing: -.015em; }
.dc-guide-route > header p,.dc-guide-stage > p { margin: 0; color: #9fadc1; font-size: 13px; line-height: 1.6; max-width: 960px; }
.dc-guide-count { display: grid; align-content: start; flex-shrink: 0; gap: 4px; color: var(--guide-accent); font-size: 27px; font-weight: 800; text-align: right; }
.dc-guide-count small { font-size: 9px !important; line-height: 1.5; letter-spacing: .4px !important; }
.dc-guide-stage { min-width: 0; padding: 18px 23px 20px; border-top: 1px solid #92b8e012; }
.dc-guide-stage h5 { margin: 0 0 6px; color: #d6e3f5; font-size: 15px; }
.dc-guide-track { grid-auto-columns: 188px; padding-bottom: 12px; }
.dc-guide-step::after { color: var(--guide-accent); }
.dc-guide-step:last-child::after { content: none; }
.dc-guide-step h6 { margin: 0; font-size: 13px; font-weight: 750; line-height: 1.45; }
.dc-guide-step .bat-reading-step-copy > p { margin: 0; color: #b3bfd0; font-size: 12px; line-height: 1.5; }
.dc-guide-step .bat-reading-step-copy em { line-height: 1.6; font-style: normal; color: #a4b0c1; font-size: 11px; }
.dc-guide-relation { color: var(--guide-accent); font-size: 10px; margin: 4px 0; }
.dc-guide-gap { border: 1px dashed #807855; background: #28261633; }
.dc-guide-gap .bat-reading-cover { opacity: .58; }
.dc-guide-gap > p { color: #b8b59f; font-size: 12px; line-height: 1.7; }
.dc-guide-gap-label { color: #c7bc88; font-size: 9px; letter-spacing: 1px; line-height: 1.6; padding: 6px 0 20px; }
.dc-guide-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 23px 22px; }
.dc-guide-links:empty { display: none; }
.dc-guide-links button { font-size: 11px; min-height: 36px; }
.dc-guide-sources { margin-top: 20px; border-top: 1px solid #35415a; padding: 15px 4px; color: #9eabc0; font-size: 12px; line-height: 1.7; }
.dc-guide-sources summary,.bat-date-note summary,.bat-year-copy summary { cursor: pointer; }
.dc-guide-sources a,.bat-date-note a,.bat-year-copy a { color: #9fbfe9; text-decoration: underline; text-underline-offset: 3px; }
.dc-guide-board button:focus-visible,.dc-guide-board select:focus-visible,.dc-guide-board input:focus-visible,.bat-year-copy summary:focus-visible,.bat-date-note summary:focus-visible { outline: 2px solid #e1c675; outline-offset: 3px; }
.bat-timeline-hero { border-color: #8f7b483d; background: radial-gradient(ellipse at 100% 0,#d9b95b18,transparent 60%),linear-gradient(135deg,#101c2d,#090d15); }
.bat-timeline-year-content { min-width: 0; display: grid; gap: 10px; }
.bat-year-dossier { position: relative; isolation: isolate; overflow: hidden; min-height: 210px; border: 1px solid #b498503d; border-radius: 14px; background: #0a101a; }
.bat-year-art { position: absolute; z-index: -2; inset: 0 0 0 auto; height: 100%; width: 48%; object-fit: cover; object-position: center 28%; opacity: .6; filter: saturate(.75); }
.bat-year-dossier::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#0a101a 42%,#0a101ada 66%,#0a101a30); }
.bat-year-copy { padding: 22px 25px; max-width: 850px; }
.bat-year-copy > small { color: #cbb874; font-size: 9px; letter-spacing: 2px; }
.bat-year-copy h4 { margin: 10px 0; font-size: clamp(20px,2vw,27px); color: #eee8d8; }
.bat-year-copy p { color: #b4bed0; font-size: 13px; line-height: 1.7; margin: 0; max-width: 690px; }
.bat-year-copy aside { display: grid; gap: 6px; max-width: 670px; border-left: 2px solid #b99d53; padding-left: 12px; margin: 15px 0 12px; color: #c4c7ce; font-size: 12px; line-height: 1.6; }
.bat-year-copy aside b { color: #cbb874; text-transform: uppercase; font-size: 9px; letter-spacing: 1.4px; }
.bat-year-copy details { color: #8698b2; font-size: 10px; }
.bat-year-copy details a { display: inline-block; margin: 8px 14px 0 0; }
.bat-timeline-entry-wrap { min-width: 0; display: flex; flex-direction: column; align-self: start; }
.bat-timeline-entry-wrap > .bat-timeline-entry { width: 100%; text-align: left; }
.bat-date-note { padding: 9px; color: #8c9aaf; font-size: 10px; line-height: 1.6; }
.bat-date-note p { color: #aeb9c9; }
@media(max-width: 850px) {
 .dc-guide-hero { grid-template-columns: 65px minmax(0,1fr); gap: 16px; padding: 23px; }
 .dc-guide-insignia { width: 62px; height: 62px; font-size: 24px; }
 .dc-guide-stats { grid-column: 1/-1; }
 .dc-guide-stats span { max-width: none; }
 .dc-guide-stats b { font-size: 22px; }
 .dc-guide-controls { align-items: flex-start; }
 .dc-guide-controls label:first-child { flex-basis: 100%; }
}
@media(max-width: 600px) {
 .dc-guide-hero { padding: 19px 15px; grid-template-columns: 48px minmax(0,1fr); gap: 13px; }
 .dc-guide-insignia { width: 46px; height: 46px; font-size: 19px; }
 .dc-guide-insignia span { font-size: 6px; letter-spacing: 2px; }
 .dc-guide-hero h3 { font-size: 27px; }
 .dc-guide-hero p { font-size: 12px; }
 .dc-guide-hero .eyebrow { font-size: 8px; }
 .dc-guide-controls label:first-child { display: grid; width: 100%; }
 .dc-guide-route > header { padding: 18px 14px; gap: 10px; }
 .dc-guide-route h4 { font-size: 20px; }
 .dc-guide-route > header p { font-size: 12px; }
 .dc-guide-count { font-size: 22px; }
 .dc-guide-stage { padding: 16px 13px; }
 .dc-guide-track { grid-auto-columns: 174px; }
 .dc-guide-links { padding: 0 13px 17px; }
 .bat-year-copy { padding: 18px 15px; }
 .bat-year-art { width: 70%; opacity: .45; }
 .bat-year-dossier::before { background: linear-gradient(90deg,#0a101af5,#0a101ab8); }
 .bat-year-copy p { font-size: 12px; }
 .bat-year-copy > small { font-size: 8px; letter-spacing: 1.2px; }
}
