:root {
  color-scheme: light;
  --ink: #201813;
  --muted: #7d6d5d;
  --line: #4b382a;
  --paper: #e2d2b7;
  --panel: #f5ead6;
  --surface: #fff8ec;
  --mist: #d8c5a5;
  --ember: #a8472f;
  --ember-dark: #7e2f22;
  --green: #304437;
  --blue: #2d4a5b;
  --gold: #b98b45;
  --brass: #c49a55;
  --espresso: #211811;
  --charcoal: #161514;
  --ivory: #fff4dc;
  --shadow: 0 22px 46px rgba(18, 13, 10, 0.34);
  --archive-wide: 1480px;
  --archive-detail-wide: 1360px;
}

.missing-details-launch{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;background:#fff6df;border:1px solid #b78b47;border-radius:.55rem}
.missing-details-launch div{display:grid;gap:.2rem}
.missing-details-review{margin:1rem 0 1.4rem;padding:clamp(1rem,2vw,1.5rem);background:#fff8e8;border:2px solid #aa7b32;border-radius:.65rem;box-shadow:0 10px 25px #49321c24}
.missing-details-review>header{display:flex;justify-content:space-between;align-items:start;gap:1rem;border-bottom:1px solid #ccb27d;padding-bottom:.8rem}
.missing-details-review>header h2{margin:.15rem 0}
.missing-details-list{display:grid;gap:1rem;margin:1rem 0}
.missing-detail-field{padding:1rem;border:1px solid #c8ae78;background:#fffdf7}
.missing-detail-field legend{padding:0 .45rem;font-weight:800;color:#49331e}
.missing-detail-field>p{margin:.35rem 0}
.missing-detail-options{display:grid;gap:.55rem;margin:.75rem 0}
.missing-detail-options label{display:grid;grid-template-columns:auto 1fr;gap:.6rem;align-items:start;padding:.65rem;background:#f4e6c7;border-radius:.35rem}
.missing-detail-options span{display:grid;gap:.2rem}
.missing-detail-options small{color:#6c5538}
.missing-detail-apply{display:flex;gap:.5rem;align-items:center;font-weight:750}
.replacement-warning{display:block;margin:.35rem 0;color:#834338}
.missing-details-review footer{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1rem}
@media(max-width:760px){.missing-details-launch,.missing-details-review>header,.missing-details-review footer{align-items:stretch;flex-direction:column}.missing-details-review footer button{width:100%}}
.owner-edit-review-actions{display:flex;justify-content:flex-end;align-items:start;gap:1rem;margin-top:1rem}
.owner-edit-review-actions>div{display:grid;justify-items:end;gap:.35rem;max-width:31rem;text-align:right}
.owner-edit-review-actions small{color:var(--muted);line-height:1.35}
.owner-edit-review-actions small[role="alert"]{color:#7a2f25;font-weight:700}
@media(max-width:760px){.owner-edit-review-actions{flex-direction:column}.owner-edit-review-actions,.owner-edit-review-actions>div{align-items:stretch;justify-items:stretch;text-align:left}.owner-edit-review-actions button{width:100%}}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% 8%, rgba(196, 154, 85, 0.18), transparent 22rem),
    radial-gradient(circle at top left, rgba(25, 22, 19, 0.74), transparent 32rem),
    linear-gradient(180deg, rgba(34, 24, 17, 0.72), rgba(18, 15, 13, 0.86)),
    linear-gradient(90deg, rgba(196, 154, 85, 0.045) 1px, transparent 1px),
    #2a211a;
  background-size: auto, auto, auto, 42px 42px, auto;
  color: var(--ink);
  font-family:
    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.archive-image {
  position: relative;
  cursor: pointer;
}

.archive-image img {
  transition:
    filter 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.archive-image:hover img,
.archive-image:focus-visible img {
  filter: brightness(1.14);
  transform: scale(1.035);
}

.archive-image:focus-visible {
  outline: 3px solid rgba(196, 154, 85, 0.42);
  outline-offset: 3px;
}

.image-inspect-cue {
  position: absolute;
  z-index: 4;
  right: 0.65rem;
  bottom: 0.65rem;
  border: 1px solid rgba(255, 231, 175, 0.44);
  border-radius: 999px;
  background: rgba(16, 12, 9, 0.82);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  opacity: 0;
  padding: 0.34rem 0.58rem;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.archive-image:hover .image-inspect-cue,
.archive-image:focus-visible .image-inspect-cue {
  opacity: 1;
  transform: translateY(0);
}

.home-cover-link .image-inspect-cue {
  display: none;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 96px;
  padding: 0.9rem clamp(1rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(196, 154, 85, 0.24);
  background: rgba(31, 24, 18, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(196, 154, 85, 0.45);
  background: #14100d;
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ivory);
}

.brand small {
  color: rgba(255, 244, 220, 0.68);
  font-size: 0.92rem;
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.main-nav a {
  position: relative;
  min-height: 58px;
  border: 1px solid rgba(196, 154, 85, 0.34);
  border-left: 7px solid rgba(196, 154, 85, 0.62);
  border-radius: 5px 8px 8px 5px;
  background:
    linear-gradient(90deg, rgba(20, 15, 11, 0.22), transparent 24%),
    linear-gradient(180deg, #f2e3c8, #d9c09a);
  color: #241912;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 800;
  padding: 0.9rem 0.8rem 0.75rem;
  box-shadow: 0 8px 18px rgba(64, 48, 36, 0.08);
}

.main-nav a.active {
  color: var(--ink);
  transform: translateY(-2px);
}

.main-nav a::after {
  position: absolute;
  right: 0.35rem;
  bottom: 0.15rem;
  left: 0.35rem;
  height: 2px;
  background: transparent;
  content: "";
}

.main-nav a.active::after,
.main-nav a:hover::after {
  background: var(--brass);
}

main {
  padding: clamp(1rem, 4vw, 3rem);
}

main:has(.home-page) {
  padding-inline: clamp(1rem, 2.5vw, 2.2rem);
}

.home-page {
  display: grid;
  gap: 1.2rem;
  max-width: 1760px;
  margin: 0 auto;
}

.ang-beta-note {
  position: relative;
  z-index: 10;
  justify-self: end;
  width: min(34rem, 100%);
  margin: 0 1.2rem -2.15rem 0;
  color: #3f2a1b;
}

.ang-beta-note-toggle {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.ang-beta-note-fold {
  position: relative;
  display: grid;
  min-height: 8.25rem;
  place-content: center;
  gap: 0.15rem;
  overflow: hidden;
  border: 1px solid #b69151;
  background:
    linear-gradient(155deg, transparent 0 46%, rgba(111, 76, 38, 0.08) 47% 49%, transparent 50%),
    linear-gradient(8deg, #ead39c, #fff1c9 58%, #dcc083);
  padding: 0.65rem 2.4rem 0.65rem 1rem;
  text-align: center;
  transform: rotate(-2.35deg) translateY(0.15rem);
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
  box-shadow: 0 9px 18px rgba(35, 21, 13, 0.36);
}

.ang-beta-note-fold::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  border-left: 1px solid rgba(91, 62, 35, 0.3);
  border-bottom: 1px solid rgba(91, 62, 35, 0.3);
  background: linear-gradient(225deg, #b89554, #f5dda4 72%);
  content: "";
  box-shadow: -3px 3px 5px rgba(70, 43, 22, 0.14);
}

.ang-beta-note-fold strong { font: 800 1.5rem/1.1 "Segoe Print", "Bradley Hand", Georgia, serif; }
.ang-note-purpose { color: #5f391f; font-size: 0.9rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.ang-beta-note-fold small { color: #5f391f; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; }
.ang-beta-note-toggle:hover .ang-beta-note-fold,.ang-beta-note-toggle:focus-visible .ang-beta-note-fold { transform: rotate(-1.35deg) translateY(0); box-shadow: 0 10px 22px rgba(35,21,13,.42),0 0 0 3px rgba(224,179,64,.25); }

.ang-beta-note.is-open {
  justify-self: center;
  width: min(100%, 68rem);
  margin: 0 auto;
}

.ang-beta-note.is-open .ang-beta-note-toggle { width: 34rem; max-width: 100%; margin: 0 auto -0.45rem; }
.ang-beta-note.is-open .ang-beta-note-fold small { font-size: 0; }
.ang-beta-note.is-open .ang-beta-note-fold small::after { content: "Fold note"; font-size: 0.67rem; }

.ang-beta-letter {
  border: 1px solid #b69151;
  border-radius: 4px;
  background:
    repeating-linear-gradient(180deg, transparent 0 1.8rem, rgba(119, 82, 52, 0.08) 1.8rem calc(1.8rem + 1px)),
    linear-gradient(100deg, rgba(255,255,255,.34), transparent 28%),
    #f7e7bc;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 20px 45px rgba(29, 18, 12, 0.34), inset 0 0 45px rgba(137, 94, 46, 0.09);
  animation: angNoteUnfold .32s ease-out both;
}

.ang-beta-letter p,.ang-beta-letter li { font-size: clamp(0.98rem, 1.2vw, 1.08rem); line-height: 1.62; }
.ang-beta-letter p { margin: 0 0 1rem; }
.ang-beta-letter ul { display: grid; gap: 0.2rem; margin: 0 0 1rem; padding-left: 1.35rem; }
.ang-beta-letter h2 { margin: 1.8rem 0 0.65rem; color: #6d291c; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.ang-beta-letter > h2:first-child { margin-top: 0; }
.ang-beta-letter h3 { margin: 1.35rem 0 0.35rem; color: #49291d; font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.ang-beta-salutation { font: 800 clamp(1.3rem, 2vw, 1.65rem)/1.2 "Segoe Print", "Bradley Hand", Georgia, serif; }
.ang-beta-letter .ang-beta-signature { margin: 1.2rem 0 0!important; text-align: left; font: 800 clamp(2rem, 4vw, 2.75rem)/1 "Segoe Print", "Bradley Hand", Georgia, serif; }
.ang-beta-email-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 1.4rem; }
.ang-beta-email { display: flex; width: fit-content; max-width: 100%; justify-content: center; border: 1px solid #70412a; border-radius: 999px; background: #4c2b1d; color: #fff3d2; padding: 0.7rem 1rem; font-weight: 900; text-align: center; text-decoration: none; box-shadow: 0 5px 12px rgba(57,35,23,.2); cursor: pointer; }
.ang-beta-email:hover,.ang-beta-email:focus-visible { background: #6b3a26; color: white; }
.ang-beta-email-secondary { border-bottom: 1px solid currentColor; color: #5d301f; font-weight: 800; }
.ang-beta-email-secondary:hover,.ang-beta-email-secondary:focus-visible { color: #8a3524; }

.site-footer { display: grid; width: min(calc(100% - 2rem), var(--archive-wide)); justify-items: center; gap: 0.65rem; margin: 1rem auto 1.5rem; color: #f3dfb2; font-size: 0.82rem; text-align: center; }
.site-footer-feedback { display: flex; align-items: center; justify-content: center; gap: 0.7rem; }
.site-footer-affiliate { margin: 0; color: rgba(243,223,178,.88); }
.site-footer-copy { border: 1px solid rgba(243,223,178,.45); border-radius: 999px; background: rgba(31,22,16,.72); color: #fff1cb; padding: 0.4rem 0.7rem; font-weight: 800; cursor: pointer; }
.site-footer-copy:hover,.site-footer-copy:focus-visible { border-color: #e0b340; background: #4b2c1d; }

@media (max-width: 560px) {
  .site-footer-feedback { flex-direction: column; }
}

@keyframes angNoteUnfold {
  from { transform: perspective(700px) rotateX(-12deg) translateY(-0.5rem); transform-origin: top; }
  to { transform: none; }
}

@media (max-width: 640px) {
  .ang-beta-note { justify-self: center; margin: 0 auto -1.6rem; }
  .ang-beta-note.is-open { width: 100%; margin-bottom: 0; }
  .ang-beta-letter { padding: 1.2rem 1rem; }
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(260px, 380px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 85, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 13, 10, 0.98), rgba(54, 35, 24, 0.95) 52%, rgba(34, 48, 37, 0.92)),
    var(--ink);
  color: white;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.home-hero-copy { grid-column: 1; }
.home-hero > .ang-beta-note { grid-column: 2; align-self: center; justify-self: center; margin: 0; }
.home-hero > .hero-cover-stack { grid-column: 3; }
.home-hero > .ang-beta-note.is-open { grid-column: 1 / -1; grid-row: 2; width: min(100%, 68rem); }

.home-hero::before {
  position: absolute;
  inset: -18% -10% auto auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 210, 130, 0.36), transparent 62%);
  content: "";
  pointer-events: none;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, 0.035) 9% 10%, transparent 10% 19%),
    linear-gradient(180deg, transparent 0 16%, rgba(255, 255, 255, 0.028) 16% 17%, transparent 17% 100%);
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.home-hero .eyebrow {
  color: var(--brass);
}

.home-hero-copy {
  display: grid;
  gap: 0.75rem;
  max-width: 660px;
}

.home-hero h1 {
  max-width: 20ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.home-hero-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 244, 220, 0.78);
  font-size: 1.1rem;
}

.ang-beta-letter { color: #3f2a1b; }
.ang-beta-letter p,.ang-beta-letter li { color: #3f2a1b; }

.tagline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 620px;
  opacity: 0.72;
}

.admin-tagline {
  align-items: center;
  opacity: 0.9;
}

.admin-label {
  border: 1px solid rgba(246, 201, 130, 0.28);
  border-radius: 999px;
  color: #f6c982;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.25rem 0.45rem;
  text-transform: uppercase;
}

.tagline-controls select,
.tagline-controls input {
  min-height: 34px;
  border: 1px solid rgba(112, 77, 52, 0.26);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink);
  font-size: 0.86rem;
  padding: 0.35rem 0.55rem;
}

.brooks-observation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.75rem;
  opacity: 0.86;
}

.brooks-observation-controls select,
.brooks-observation-controls input {
  min-height: 34px;
  max-width: min(100%, 420px);
  border: 1px solid rgba(196, 154, 85, 0.32);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.86);
  color: var(--ink);
  font-size: 0.84rem;
  padding: 0.35rem 0.55rem;
}

.brooks-observation-controls input {
  flex: 1 1 260px;
}

.brooks-host .brooks-observation-controls select,
.brooks-host .brooks-observation-controls input,
.shelf-inspector .brooks-observation-controls select,
.shelf-inspector .brooks-observation-controls input,
.release-desk-brief .brooks-observation-controls select,
.release-desk-brief .brooks-observation-controls input,
.brooks-office-note .brooks-observation-controls select,
.brooks-office-note .brooks-observation-controls input,
.brooks-room-observation .brooks-observation-controls select,
.brooks-room-observation .brooks-observation-controls input {
  background: rgba(255, 250, 242, 0.12);
  color: var(--ivory);
}

.home-hero .tagline-controls select,
.home-hero .tagline-controls input {
  background: rgba(255, 250, 242, 0.12);
  color: white;
}

.hero-cover-stack {
  position: relative;
  z-index: 1;
  min-height: 245px;
}

.home-cover-link {
  display: block;
}

.stack-cover {
  position: absolute;
  width: min(34vw, 168px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.stack-cover-1 {
  right: 6.2rem;
  top: 0.4rem;
  z-index: 3;
  transform: rotate(-8deg);
}

.stack-cover-2 {
  right: 1.1rem;
  top: 2rem;
  z-index: 2;
  transform: rotate(7deg);
}

.stack-cover-3 {
  right: 4rem;
  top: 4.9rem;
  z-index: 1;
  transform: rotate(-1deg);
}

.home-cover {
  aspect-ratio: 3 / 4.15;
  border-radius: 8px;
}

.home-grid,
.foyer-room {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.foyer-gold-seal-legend {
  display: flex;
  width: fit-content;
  max-width: min(100%, 46rem);
  gap: 0.8rem;
  align-items: center;
  margin: 1rem auto 0;
  border: 1px solid rgba(196, 154, 85, 0.58);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 247, 222, 0.96), rgba(224, 194, 124, 0.9));
  color: #4a2d16;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  box-shadow: 0 8px 20px rgba(57, 35, 23, 0.14), 0 0 18px rgba(232, 190, 68, 0.2);
}

.foyer-gold-seal-star {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  border: 3px double #fff1a8;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1a2 0 13%, #e9bd3e 42%, #9a6211 100%);
  box-shadow: 0 2px 7px rgba(57, 35, 23, 0.35), 0 0 0 2px rgba(74, 43, 4, 0.72);
  color: #4a2d04;
  font: 900 1.35rem/1 Georgia, "Times New Roman", serif;
}

.foyer-gold-seal-legend p { margin: 0.08rem 0 0; font-size: 0.88rem; line-height: 1.25; }
.brooks-host-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-top: 1rem; }
.brooks-host-actions .primary-link { flex: 0 0 auto; margin-top: 0; }
.brooks-host-copy .foyer-gold-seal-legend { flex: 0 1 auto; width: fit-content; max-width: 100%; margin: 0 0 0 auto; padding-right: .85rem; }
.brooks-host-copy .foyer-gold-seal-legend p { color: #5b3a20; font-size: 0.78rem; white-space: normal; }

.foyer-room {
  grid-template-columns: minmax(270px, 1fr) minmax(420px, 1.55fr) minmax(250px, 0.9fr);
  gap: 1.1rem 1.35rem;
  align-items: start;
  padding: clamp(0.6rem, 2vw, 1rem);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(58, 35, 23, 0.08), rgba(58, 35, 23, 0.16)),
    linear-gradient(90deg, rgba(61, 37, 24, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0 72%, rgba(70, 42, 25, 0.12) 72% 74%, transparent 74%);
  background-size: auto, 92px 100%, auto;
}

.foyer-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
}

.reading-nook {
  grid-area: chair;
}

.fame-nook {
  grid-area: fame;
}

.thread-nook {
  grid-area: thread;
}

.desk-nook {
  align-self: auto;
}

.vault-nook {
  grid-area: vault;
}

.brooks-nook {
  grid-area: brooks;
}

.home-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 220px;
  border: 1px solid rgba(196, 154, 85, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.86), rgba(218, 196, 158, 0.76)),
    var(--panel);
  padding: 1rem;
  box-shadow:
    0 18px 34px rgba(57, 35, 23, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brooks-host {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(300px, 1fr) minmax(320px, 460px);
  gap: clamp(1.3rem, 3vw, 2.4rem);
  align-items: center;
  border: 1px solid rgba(196, 154, 85, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 20%, rgba(196, 154, 85, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(20, 17, 14, 0.98), rgba(55, 36, 25, 0.96)),
    var(--ink);
  color: var(--ivory);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  box-shadow: var(--shadow);
}

.brooks-host-copy {
  min-width: 0;
}

.brooks-portrait-frame {
  margin: 0;
  border: 1px solid rgba(196, 154, 85, 0.48);
  border-radius: 6px;
  overflow: hidden;
  background: #120e0b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 220, 0.08),
    0 18px 36px rgba(10, 7, 5, 0.32);
}

.brooks-portrait-frame .archive-image,
.brooks-portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
}

.brooks-portrait-frame img {
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.ang-foyer-frame {
  position: relative;
  align-self: stretch;
  min-height: 320px;
  margin: 0;
  border: 1px solid rgba(196, 154, 85, 0.5);
  border-radius: 5px;
  background: #120e0b;
  padding: 0.4rem;
  transform: rotate(0.7deg);
  box-shadow:
    0 20px 40px rgba(8, 5, 3, 0.42),
    inset 0 0 0 1px rgba(255, 244, 220, 0.09);
}

.ang-foyer-frame::before {
  position: absolute;
  z-index: 2;
  top: -0.6rem;
  left: 50%;
  width: 5.2rem;
  height: 1.35rem;
  background: rgba(214, 190, 145, 0.76);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 2px 4px rgba(20, 12, 7, 0.28);
}

.ang-foyer-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
}

.ang-foyer-frame .archive-image {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.ang-foyer-frame .image-inspect-cue {
  top: 0.65rem;
  bottom: auto;
}

.brooks-sticky-note {
  position: absolute;
  right: clamp(0.45rem, 2vw, 1rem);
  bottom: clamp(0.45rem, 2vw, 1rem);
  display: grid;
  width: min(78%, 17rem);
  gap: 0.12rem;
  border: 1px solid rgba(102, 72, 35, 0.34);
  background: linear-gradient(145deg, #f2dea5, #d9bd78);
  color: #3d291a;
  padding: 0.75rem 0.9rem;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  line-height: 1.25;
  transform: rotate(-2deg);
  box-shadow: 0 8px 18px rgba(12, 8, 5, 0.38);
}

.brooks-sticky-note strong {
  font-size: 1.1em;
}

.brooks-sticky-note em {
  justify-self: end;
  margin-top: 0.15rem;
}

.brooks-host h2 {
  color: var(--ivory);
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 0.95;
  text-shadow: 0 2px 0 rgba(196, 154, 85, 0.16);
}

@media (max-width: 1180px) and (min-width: 861px) {
  .brooks-host {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .ang-foyer-frame {
    grid-column: 1 / -1;
    min-height: 0;
    transform: none;
  }

  .ang-foyer-frame img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

.brooks-host p {
  max-width: 72ch;
  margin: 0.55rem 0 0;
  color: rgba(255, 244, 220, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.45;
}

.brooks-inline-observation {
  border-left: 2px solid rgba(196, 154, 85, 0.54);
  color: rgba(255, 244, 220, 0.88) !important;
  font-style: italic;
  padding-left: 0.75rem;
}

.brooks-host .primary-link {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px solid rgba(196, 154, 85, 0.72);
  background: rgba(196, 154, 85, 0.08);
  color: var(--ivory);
  padding: 0.75rem 1rem;
}

.reading-nook {
  min-height: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(246, 201, 130, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(255, 246, 232, 0.78), rgba(224, 202, 176, 0.62));
}

.fame-nook,
.thread-nook {
  background:
    linear-gradient(180deg, rgba(255, 244, 226, 0.76), rgba(232, 212, 184, 0.62)),
    linear-gradient(90deg, transparent 0 48%, rgba(88, 52, 32, 0.08) 48% 52%, transparent 52%);
}

.thread-nook {
  background:
    linear-gradient(135deg, rgba(132, 51, 34, 0.1), rgba(246, 201, 130, 0.12)),
    linear-gradient(180deg, rgba(255, 244, 226, 0.82), rgba(232, 212, 184, 0.62));
}

.desk-nook {
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.76), rgba(218, 196, 169, 0.58)),
    linear-gradient(0deg, rgba(86, 50, 31, 0.13) 0 9px, transparent 9px);
}

.foyer-utility-card,
.temperature-advisory-card {
  display: grid;
  gap: 0.55rem;
  min-height: 0;
  border: 1px solid rgba(132, 51, 34, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.86), rgba(235, 218, 190, 0.72)),
    var(--panel);
  color: var(--ink);
  padding: 0.9rem;
  box-shadow:
    inset 3px 0 0 rgba(132, 51, 34, 0.34),
    0 10px 20px rgba(64, 48, 36, 0.08);
}

.foyer-utility-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.38;
}

.foyer-utility-card dl {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid rgba(112, 77, 52, 0.16);
  padding-top: 0.6rem;
}

.foyer-utility-card div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
}

.foyer-utility-card dt {
  color: var(--ember-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.foyer-utility-card dd {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.12;
}

.foyer-utility-card > span {
  color: var(--ember-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.foyer-activity-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.7rem;
  min-height: 0;
  max-height: 300px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  border-color: rgba(196, 154, 85, 0.5);
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.98), rgba(226, 206, 176, 0.9));
}

.foyer-activity-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.foyer-activity-heading h2 {
  margin: 0.12rem 0 0;
  overflow-wrap: normal;
  word-break: normal;
}

.foyer-activity-list,
.activity-history-list,
.recent-activity-disclosure > div {
  display: grid;
  gap: 0.5rem;
}

.archive-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid rgba(185, 139, 69, 0.72);
  background: rgba(255, 253, 247, 0.66);
}

.archive-activity-row p {
  margin: 0.08rem 0 0;
  line-height: 1.28;
}

.archive-activity-row time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.recent-activity-disclosure {
  position: relative;
}

.recent-activity-disclosure summary {
  cursor: pointer;
  color: var(--ember-dark);
  font-weight: 900;
}

.recent-activity-disclosure[open] > div {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: calc(100% + 0.45rem);
  width: min(560px, calc(100vw - 2rem));
  max-height: min(60vh, 520px);
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid rgba(112, 77, 52, 0.35);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.activity-empty,
.activity-ledger-unavailable {
  margin: 0;
  padding: 0.85rem;
  border: 1px dashed rgba(112, 77, 52, 0.3);
  background: rgba(255, 253, 247, 0.48);
}

.activity-warning {
  color: var(--ember-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.activity-history-page {
  width: min(var(--archive-detail-wide), 100%);
  margin: 0 auto;
}
.tracked-loose-ends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.tracked-work-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:1rem;align-items:start;border:1px dashed rgba(112,77,52,.38);border-radius:8px;background:rgba(255,248,230,.72);padding:.9rem}
.tracked-work-card h3,.tracked-work-card p{margin:.2rem 0}.tracked-work-cover{display:grid;place-items:center;min-height:132px;border:1px solid rgba(112,77,52,.28);background:rgba(72,47,31,.08);color:var(--muted);font-size:.72rem;font-weight:900;text-align:center;text-transform:uppercase}
.tracked-work-cover img{width:100%;height:132px;object-fit:contain}.tracked-work-unavailable{padding:.8rem;border:1px dashed rgba(112,77,52,.3)}
@media(max-width:720px){.tracked-loose-ends{grid-template-columns:1fr}.tracked-work-card{grid-template-columns:72px minmax(0,1fr)}.tracked-work-cover,.tracked-work-cover img{min-height:104px;height:104px}}

.temperature-advisory-card strong {
  color: var(--ember-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.12;
}

.temperature-index,
.temperature-advisory-card em {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  line-height: 1.38;
}

.temperature-index {
  color: var(--ember-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.temperature-advisory-card em {
  border-top: 1px solid rgba(112, 77, 52, 0.16);
  font-size: 0.96rem;
  font-weight: 700;
  padding-top: 0.55rem;
}

.temperature-link {
  color: var(--ember-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wide-panel {
  grid-column: span 2;
}

.brooks-home-panel {
  background:
    radial-gradient(circle at 10% 12%, rgba(63, 95, 120, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(42, 55, 72, 0.15), rgba(94, 54, 35, 0.12)),
    rgba(238, 226, 211, 0.76);
}

.panel-heading {
  display: grid;
  gap: 0.2rem;
}

.panel-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.reading-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 1.05rem);
  align-items: start;
  border: 1px solid rgba(112, 77, 52, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(92, 50, 31, 0.13), transparent 42%),
    rgba(246, 234, 216, 0.82);
  padding: clamp(0.95rem, 2vw, 1.2rem);
  box-shadow: inset 4px 0 0 rgba(132, 51, 34, 0.16);
}

.reading-empty {
  border-style: dashed;
}

.empty-chair {
  min-height: 138px;
  border: 1px solid rgba(112, 77, 52, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(132, 51, 34, 0.2), transparent 2.7rem),
    linear-gradient(180deg, rgba(255, 250, 242, 0.68), rgba(226, 204, 178, 0.62));
}

.report-file-header {
  display: grid;
  grid-template-columns: minmax(92px, 118px) minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 1.05rem);
  align-items: center;
}

.report-title-block {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.report-title-block > span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.report-title-block > strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.06;
}

.report-author {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 70%, var(--muted));
  font-weight: 700;
}

.report-note {
  margin: 0;
  border-left: 3px solid rgba(132, 51, 34, 0.42);
  color: color-mix(in srgb, var(--ink) 84%, var(--ember-dark));
  font-size: clamp(1.06rem, 1.2vw, 1.2rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.5;
  padding-left: 0.85rem;
}

.report-entry,
.brooks-margin-note {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(112, 77, 52, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.46);
  padding: 0.82rem;
}

.report-entry > span,
.brooks-margin-note > span {
  color: var(--ember-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brooks-margin-note p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.42;
}

.reading-curator-controls {
  position: relative;
}

.curator-book-combobox {
  position: relative;
}

.curator-book-combobox > label,
.curator-selected-book span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.curator-book-combobox > input {
  width: 100%;
}

.curator-book-results {
  position: absolute;
  z-index: 20;
  top: 4.1rem;
  right: 0;
  left: 0;
  display: grid;
  max-height: min(360px, 48vh);
  overflow-y: auto;
  border: 1px solid rgba(112, 77, 52, 0.28);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 14px 32px rgba(45, 28, 18, 0.22);
  padding: 0.35rem;
}

.curator-book-results button {
  display: grid;
  gap: 0.15rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0.65rem;
  text-align: left;
}

.curator-book-results button:hover,
.curator-book-results button.active {
  background: rgba(132, 51, 34, 0.12);
}

.curator-book-results button span {
  color: var(--muted);
  font-size: 0.82rem;
}

.curator-book-results button em,
.curator-selected-book em {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.curator-book-results.empty {
  position: static;
}

.curator-selected-book {
  display: grid;
  gap: 0.2rem;
  margin: 0.55rem 0 0;
  border-left: 3px solid rgba(132, 51, 34, 0.34);
  padding-left: 0.65rem;
}

.curator-report-save {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.curator-report-save p {
  margin: 0;
  font-weight: 700;
}

.report-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.report-facts div {
  border: 1px solid rgba(112, 77, 52, 0.14);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.48);
  padding: 0.5rem;
}

.report-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-facts dd {
  margin: 0.1rem 0 0;
  color: var(--ink);
  font-weight: 900;
}

.admin-control {
  display: grid;
  gap: 0.6rem;
  border: 1px dashed rgba(112, 77, 52, 0.36);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.6);
  padding: 0.8rem;
}

.reading-nook .admin-control {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.48rem;
  background: rgba(255, 250, 242, 0.42);
  padding: 0.65rem;
}

.reading-nook .admin-control .eyebrow {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  opacity: 0.82;
}

.reading-nook .admin-control textarea {
  min-height: 38px;
  max-height: 58px;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  padding: 0.65rem 0.7rem;
  resize: vertical;
}

.reading-cover,
.series-cover {
  aspect-ratio: 3 / 4.15;
  border-radius: 6px;
}

.reading-cover {
  max-width: 132px;
}

.reading-cover {
  box-shadow: 0 14px 24px rgba(57, 35, 23, 0.18);
}

.reading-cover.case-file-complete { overflow: visible; }
.reading-cover .completed-file-frame { inset: 3px; border-width: 2px; outline-width: 1px; outline-offset: 1px; }
.reading-cover .completed-file-seal { right: -0.38rem; top: -0.38rem; width: 1.45rem; border-width: 2px; font-size: 0.76rem; box-shadow: 0 2px 6px rgba(0,0,0,.4),0 0 0 2px rgba(74,43,4,.72),0 0 10px rgba(255,211,79,.68); }
.reading-cover .completed-file-ribbon { display: none; }
.report-complete-file-pill {
  justify-self: start;
  border: 1px solid #c89728;
  border-radius: 999px;
  background: #fff3c9;
  color: #5a3905;
  padding: 0.22rem 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 9px rgba(226,178,52,.26);
}

.reading-card span,
.series-preview-item span,
.upcoming-release span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reading-card strong,
.series-preview-item strong {
  display: block;
  margin-top: 0.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.reading-card strong {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.reading-card p,
.series-preview-item p,
.brooks-preview p,
.vault-preview p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.panel-link {
  display: inline-flex;
  width: fit-content;
  color: var(--ember-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.favorite-strip,
.favorite-reasons {
  display: grid;
  gap: 0.75rem;
}

.favorite-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.favorite-reasons {
  grid-template-columns: 1fr;
}

.favorite-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  border-top: 1px solid rgba(112, 77, 52, 0.22);
  padding-top: 0.75rem;
}

.favorite-cover-group {
  display: grid;
  gap: 0.35rem;
}

.rank {
  color: var(--ember-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.favorite-cover {
  aspect-ratio: 3 / 4.15;
  border-radius: 7px;
}

.favorite-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.15;
}

.favorite-card p {
  margin: 0.25rem 0 0;
  border-left: 2px solid rgba(196, 154, 85, 0.42);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  padding-left: 0.55rem;
}

.movement {
  border-left: 0 !important;
  padding-left: 0 !important;
  color: var(--ember-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.moved-up {
  color: #3f6b49;
}

.moved-down {
  color: #8f3b2e;
}

.unchanged {
  color: var(--muted);
}

.new-entry {
  color: #6b4d9a;
}

.explore-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel-note {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.recommendation-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  justify-content: start;
}

.recommendation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 0.8rem;
  align-items: start;
  min-height: 190px;
  border: 1px solid rgba(112, 77, 52, 0.18);
  border-left: 4px solid rgba(132, 51, 34, 0.66);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.92), rgba(235, 219, 193, 0.78)),
    var(--panel);
  color: var(--ink);
  padding: 0.95rem;
  box-shadow: 0 12px 24px rgba(64, 48, 36, 0.1);
}

.recommendation-card:first-child {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) 86px;
  min-height: 210px;
  border-left-color: rgba(196, 154, 85, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(230, 207, 170, 0.84)),
    var(--panel);
}

.recommendation-copy {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.recommendation-cover {
  width: 72px;
  max-width: 100%;
  aspect-ratio: 3 / 4.15;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(64, 48, 36, 0.18);
}

.recommendation-card:first-child .recommendation-cover {
  width: 86px;
}

.recommendation-kicker {
  color: var(--ember-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.recommendation-title {
  display: block;
  margin-top: 0.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.05;
}

.recommendation-reason {
  margin: 0.25rem 0 0;
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.42;
}

.mini-shelf {
  display: grid;
  gap: 0.55rem;
}

.mini-shelf h3 {
  font-size: 0.95rem;
}

.mini-shelf > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(54px, 1fr));
  gap: 0.55rem;
  align-items: end;
  border-bottom: 10px solid rgba(81, 48, 30, 0.28);
  padding-bottom: 0.45rem;
}

.mini-cover-link .home-cover {
  border-radius: 6px;
}

.series-preview-list {
  display: grid;
  gap: 0.7rem;
}

.foyer-thread-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.foyer-thread-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(132, 51, 34, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.68);
  padding: 0.5rem;
  box-shadow: inset 3px 0 0 rgba(132, 51, 34, 0.18);
}

.foyer-thread-card .series-cover {
  width: 54px;
}

.foyer-thread-card div {
  min-width: 0;
}

.foyer-thread-card span {
  display: block;
  overflow: hidden;
  color: var(--ember-dark);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.foyer-thread-card strong {
  display: block;
  margin-top: 0.18rem;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foyer-thread-card b {
  display: inline-flex;
  margin-top: 0.35rem;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 0.74rem;
  line-height: 1;
  padding: 0.35rem 0.45rem;
}

.series-preview-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.upcoming-release,
.vault-preview,
.brooks-preview {
  border: 1px dashed rgba(112, 77, 52, 0.34);
  border-radius: 8px;
  background: rgba(246, 235, 219, 0.56);
  padding: 0.9rem;
}

.upcoming-release strong {
  display: block;
  margin-top: 0.15rem;
}

.vault-preview,
.vault-entry {
  display: grid;
  min-height: 150px;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.24);
}

.vault-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 33, 31, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 3rem),
    linear-gradient(135deg, #5b5851, #24211f 55%, #777268);
  color: white;
  padding: 1rem;
}

.vault-wheel {
  display: block;
  width: 84px;
  height: 84px;
  border: 9px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 10px rgba(36, 33, 31, 0.38),
    0 0 0 5px rgba(255, 255, 255, 0.18);
}

.vault-entry strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.vault-entry p {
  color: rgba(255, 255, 255, 0.78);
}

.brooks-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-height: 150px;
  font-family: Georgia, "Times New Roman", serif;
}

.brooks-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #3f5f78;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.brooks-mark.large {
  width: 76px;
  height: 76px;
  font-size: 2.4rem;
}

.brooks-emblem {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(246, 201, 130, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 18%, transparent 18%),
    linear-gradient(135deg, #2f536c, #213342);
  color: white;
  box-shadow:
    inset 6px 0 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(22, 18, 15, 0.22);
}

.brooks-emblem.large {
  width: 86px;
  height: 86px;
}

.brooks-emblem strong {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.brooks-emblem.large strong {
  font-size: 2.55rem;
}

.emblem-book,
.emblem-lens {
  position: absolute;
  display: block;
}

.emblem-book {
  inset: 14px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-left-width: 5px;
  border-radius: 4px;
}

.emblem-lens {
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(246, 201, 130, 0.82);
  border-radius: 999px;
}

.emblem-lens::after {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 3px;
  background: rgba(246, 201, 130, 0.82);
  content: "";
  transform: rotate(42deg);
}

.brooks-office {
  display: grid;
  gap: 1.1rem;
}

.vault-chamber {
  display: grid;
  gap: 1rem;
}

.vault-open {
  grid-template-columns: minmax(440px, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
}

.vault-locked {
  grid-template-columns: minmax(440px, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
  min-height: 460px;
}

.vault-door-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  border: 1px solid rgba(36, 33, 31, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74px center, rgba(255, 255, 255, 0.2), transparent 7rem),
    linear-gradient(135deg, #4d4941, #24211f 58%, #79736a);
  color: white;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.vault-gate-layout {
  min-height: 420px;
}

.vault-access-panel {
  grid-template-columns: clamp(110px, 12vw, 170px) minmax(0, 1fr);
  background:
    radial-gradient(circle at 95px center, rgba(246, 201, 130, 0.18), transparent 7rem),
    linear-gradient(135deg, #1d1d1c, #3c332b 52%, #1f2d27);
}

.vault-door-graphic {
  display: grid;
  place-items: center;
}

.vault-success-panel {
  grid-template-columns: 1fr;
  align-self: stretch;
  min-height: 100%;
  background:
    radial-gradient(circle at 88% 16%, rgba(196, 154, 85, 0.18), transparent 12rem),
    linear-gradient(135deg, #1d1a17, #3a2a20 56%, #202d26);
}

.vault-success-panel h2 {
  max-width: 12ch;
  text-transform: uppercase;
}

.vault-success-panel .primary-link {
  margin-top: 0.85rem;
  border-color: rgba(196, 154, 85, 0.62);
  background: rgba(255, 244, 220, 0.12);
  color: var(--ivory);
}

.vault-brooks-line {
  border-left: 2px solid rgba(196, 154, 85, 0.54);
  margin-top: 0.8rem !important;
  color: rgba(255, 244, 220, 0.88) !important;
  font-style: italic;
  padding-left: 0.75rem;
}

.vault-brooks-research {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.85rem;
  border: 1px solid rgba(196, 154, 85, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(35, 24, 17, 0.94), rgba(18, 13, 10, 0.96)),
    var(--espresso);
  color: var(--ivory);
  padding: 0.8rem;
  box-shadow: var(--shadow);
}

.vault-research-artifact {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 85, 0.42);
  border-radius: 7px;
  background: #120e0b;
}

.vault-research-artifact img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
}

.vault-brooks-research h2 {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}

.vault-brooks-research p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: rgba(255, 244, 220, 0.78);
}

.vault-door-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.vault-door-panel p:not(.eyebrow) {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.76);
}

.access-code-field {
  max-width: 320px;
  margin-top: 1rem;
}

.access-code-field input {
  background: rgba(255, 250, 242, 0.92);
}

.vault-contact {
  margin-top: 0.65rem !important;
  font-weight: 800;
}

.vault-wheel.large {
  width: 132px;
  height: 132px;
  border-width: 12px;
}

.vault-book-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(143, 59, 46, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 246, 232, 0.8), rgba(232, 211, 187, 0.64)),
    var(--panel);
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(57, 35, 23, 0.08);
}

.vault-cover {
  aspect-ratio: 3 / 4.15;
  border-radius: 7px;
}

.vault-book-card h2 {
  margin-bottom: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.vault-book-card p:not(.eyebrow) {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vault-detail-panel {
  grid-column: 1 / -1;
  border-color: rgba(143, 59, 46, 0.28);
  background: #fff4eb;
}

.vault-detail-panel dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brooks-office {
  display: grid;
  gap: 1rem;
}

.brooks-office-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 85, 0.42);
  border-radius: 8px;
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.brooks-office-hero .archive-image,
.brooks-office-hero img {
  display: block;
  width: 100%;
  height: 100%;
}

.brooks-office-hero img {
  filter: brightness(1.04) contrast(1.02) saturate(1.03);
  object-fit: cover;
}

.brooks-office-hero .archive-image:hover img,
.brooks-office-hero .archive-image:focus-visible img {
  filter: brightness(1.18) contrast(1.02) saturate(1.03);
}

.brooks-status-ribbon,
.brooks-room-observation {
  display: grid;
  border: 1px solid rgba(196, 154, 85, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(42, 30, 21, 0.95), rgba(20, 15, 12, 0.96)),
    var(--espresso);
  color: var(--ivory);
}

.brooks-room-observation {
  gap: 0.7rem;
  padding: 0.95rem;
}

.brooks-status-ribbon {
  grid-template-columns: repeat(4, minmax(135px, 0.72fr)) minmax(300px, 1.35fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(18, 13, 10, 0.22);
}

.archive-ribbon-stat,
.brooks-ribbon-note {
  display: grid;
  align-content: center;
  gap: 0.18rem;
  min-width: 0;
  border-right: 1px solid rgba(196, 154, 85, 0.22);
  padding: 0.95rem;
}

.archive-ribbon-stat span,
.brooks-ribbon-note span {
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.archive-ribbon-stat strong {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.brooks-ribbon-note {
  gap: 0.55rem;
  border-right: 0;
}

.brooks-ribbon-note p,
.brooks-room-observation p {
  margin: 0;
  color: rgba(255, 248, 236, 0.86);
  font-size: 1.02rem;
  line-height: 1.45;
  font-style: italic;
}

.connie-desk-status {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  border-top: 1px solid rgba(196, 154, 85, 0.2);
  margin-top: 0.15rem;
  padding-top: 0.65rem;
}

.connie-status-mark {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 248, 236, 0.46);
  border-radius: 50%;
  background: #8a6f58;
  box-shadow: 0 0 0 3px rgba(138, 111, 88, 0.14);
}

.connie-desk-status.available .connie-status-mark {
  background: #7fa06b;
  box-shadow: 0 0 0 3px rgba(127, 160, 107, 0.16);
}

.connie-desk-status.unavailable .connie-status-mark {
  background: #a06b5e;
  box-shadow: 0 0 0 3px rgba(160, 107, 94, 0.16);
}

.connie-desk-status strong,
.connie-desk-status small {
  display: block;
}

.connie-desk-status strong {
  color: rgba(255, 248, 236, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.2;
}

.connie-desk-status small {
  margin-top: 0.12rem;
  color: rgba(255, 248, 236, 0.62);
  font-size: 0.76rem;
  line-height: 1.3;
}

.connie-backup-control {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.connie-backup-button {
  justify-self: start;
  border-color: rgba(196, 154, 85, 0.4);
  background: rgba(255, 248, 236, 0.9);
  color: var(--ink);
}

.connie-backup-button:disabled {
  cursor: default;
  opacity: 0.46;
}

.connie-backup-hint,
.connie-backup-result {
  margin: 0;
  color: rgba(255, 248, 236, 0.66);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.connie-backup-result strong,
.connie-backup-result small {
  display: block;
}

.connie-backup-result.success strong {
  color: #c9dda9;
}

.connie-backup-result.failed strong {
  color: #efb4a5;
}

.morning-repository-report {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(117, 75, 39, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 246, 226, 0.96), rgba(226, 207, 176, 0.94)),
    var(--panel);
  color: var(--ink);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: 0 18px 36px rgba(16, 12, 9, 0.18);
}

.morning-repository-report > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(112, 77, 52, 0.2);
  padding-bottom: 0.85rem;
}

.morning-repository-report h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.report-revision {
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
}

.morning-report-lede {
  max-width: 76ch;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.repository-inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.repository-inventory-grid > div {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(112, 77, 52, 0.18);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.58);
  padding: 0.7rem;
}

.repository-inventory-grid dt,
.reading-status-inventory > span,
.morning-report-priority > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repository-inventory-grid dd {
  margin: 0;
  color: var(--ember-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.reading-status-inventory {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}

.reading-status-inventory strong {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 0.86rem;
}

.morning-report-priority {
  display: grid;
  gap: 0.25rem;
  border-left: 4px solid var(--ember-dark);
  background: rgba(255, 250, 242, 0.5);
  padding: 0.75rem 0.9rem;
}

.morning-report-priority p,
.morning-repository-report footer {
  margin: 0;
}

.morning-report-priority p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.morning-repository-report footer {
  color: var(--muted);
  font-size: 0.76rem;
}

.morning-repository-report.pending,
.morning-repository-report.unavailable {
  gap: 0.35rem;
}

.morning-repository-report.unavailable p {
  margin: 0;
  color: var(--muted);
}

.preservation-ledger {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(196, 154, 85, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 27, 19, 0.97), rgba(19, 14, 11, 0.98)),
    var(--espresso);
  color: var(--ivory);
  padding: clamp(0.9rem, 2vw, 1.2rem);
  box-shadow: 0 12px 28px rgba(16, 12, 9, 0.2);
}

.preservation-ledger.attention,
.preservation-ledger.critical {
  border-color: rgba(208, 112, 89, 0.52);
}

.repository-protection-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.preservation-ledger h2,
.preservation-ledger h3 {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
}

.preservation-ledger h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.preservation-ledger header p:not(.eyebrow),
.preservation-ledger.empty > p,
.preservation-ledger.unavailable > p {
  margin: 0.3rem 0 0;
  color: rgba(255, 248, 236, 0.72);
}

.repository-protection-status {
  border: 1px solid rgba(201, 221, 169, 0.34);
  border-radius: 999px;
  color: #c9dda9;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.preservation-ledger.attention .repository-protection-status,
.preservation-ledger.critical .repository-protection-status {
  border-color: rgba(239, 180, 165, 0.42);
  color: #efb4a5;
}

.repository-protection-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.repository-protection-summary > div {
  display: grid;
  gap: 0.15rem;
  border-radius: 5px;
  background: rgba(255, 248, 236, 0.06);
  padding: 0.55rem 0.65rem;
}

.repository-protection-summary dt {
  color: rgba(255, 248, 236, 0.54);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repository-protection-summary dd {
  margin: 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
}

.repository-protection-summary .protection-attention-count dd {
  color: #efb4a5;
}

.preservation-history {
  border-top: 1px solid rgba(196, 154, 85, 0.22);
  padding-top: 0.7rem;
}

.preservation-history > summary {
  width: max-content;
  cursor: pointer;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.preservation-history-columns,
.preservation-entry-summary {
  display: grid;
  grid-template-columns: 6.5rem minmax(10rem, 1.5fr) 6rem 5rem 5rem 5rem 7rem;
  gap: 0.65rem;
  align-items: center;
}

.preservation-history-columns {
  min-width: 53rem;
  margin-top: 0.8rem;
  padding: 0 0.55rem 0.4rem;
  color: rgba(255, 248, 236, 0.48);
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preservation-history-list {
  max-height: min(32rem, 62vh);
  min-width: 53rem;
  overflow-y: auto;
}

.preservation-history[open] {
  overflow-x: auto;
}

.preservation-entry {
  border-top: 1px solid rgba(196, 154, 85, 0.18);
  padding: 0.55rem;
}

.preservation-entry.invalid {
  background: rgba(208, 112, 89, 0.07);
}

.preservation-entry-summary {
  color: rgba(255, 248, 236, 0.78);
  font-size: 0.76rem;
}

.preservation-seal,
.latest-preservation {
  color: #c9dda9;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preservation-entry.invalid .preservation-seal,
.preservation-issues {
  color: #efb4a5;
}

.latest-preservation {
  border: 1px solid rgba(201, 221, 169, 0.34);
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  text-align: center;
  white-space: nowrap;
}

.preservation-inspection {
  margin-top: 0.45rem;
  padding-left: 7.15rem;
}

.preservation-inspection summary {
  color: var(--brass);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preservation-inspection dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0.7rem;
  background: rgba(255, 248, 236, 0.04);
}

.preservation-inspection dl > div {
  display: grid;
  gap: 0.1rem;
}

.preservation-inspection dt {
  color: rgba(255, 248, 236, 0.54);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preservation-inspection dd {
  margin: 0;
  color: rgba(255, 248, 236, 0.86);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.preservation-issues {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
}

.brooks-office-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.observation-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.observation-card {
  border: 1px solid rgba(196, 154, 85, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.92), rgba(226, 210, 181, 0.86)),
    var(--panel);
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(18, 13, 10, 0.18);
}

.brooks-desk-drawers {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(360px, 1.7fr) minmax(220px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.brooks-desk-drawer {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  border: 1px solid rgba(196, 154, 85, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 14%, rgba(196, 154, 85, 0.18), transparent 9rem),
    linear-gradient(180deg, rgba(255, 244, 220, 0.9), rgba(224, 205, 174, 0.82)),
    var(--panel);
  padding: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 16px 34px rgba(18, 13, 10, 0.2);
}

.archive-conversations-panel {
  grid-column: span 2;
  min-height: 330px;
  background:
    radial-gradient(circle at 82% 12%, rgba(196, 154, 85, 0.24), transparent 12rem),
    linear-gradient(180deg, rgba(255, 244, 220, 0.96), rgba(224, 205, 174, 0.88)),
    var(--panel);
}

.archive-conversation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.brooks-visitor-counter {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(196, 154, 85, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(42, 30, 21, 0.98), rgba(73, 48, 28, 0.95));
  color: var(--ivory);
  padding: 1rem 1.2rem;
  box-shadow: 0 14px 30px rgba(18, 13, 10, 0.2);
}

.brooks-visitor-counter h2,
.brooks-visitor-counter p { margin: 0; }
.brooks-visitor-counter h2 { color: var(--ivory); font-family: Georgia, "Times New Roman", serif; }
.brooks-visitor-counter p:not(.eyebrow) { margin-top: 0.35rem; color: rgba(255, 248, 236, 0.76); }
.visitor-count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.visitor-count-grid > div { display: grid; gap: 0.25rem; border: 1px solid rgba(196, 154, 85, 0.28); border-radius: 7px; background: rgba(255, 248, 236, 0.06); padding: 0.8rem; text-align: center; }
.visitor-count-grid span { color: var(--brass); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.visitor-count-grid strong { color: var(--ivory); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }

.brooks-desk-drawer h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.05;
}

.archive-conversations-panel h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.65rem);
}

.archive-conversations-panel p:not(.eyebrow) {
  font-size: clamp(1.08rem, 1.25vw, 1.18rem);
}

.brooks-desk-drawer p:not(.eyebrow) {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.45;
}

.drawer-count {
  color: var(--ember-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.1;
}

.drawer-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-list li {
  border-left: 3px solid rgba(132, 51, 34, 0.32);
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.28;
  padding-left: 0.55rem;
}

.drawer-link {
  color: var(--ember-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-curator-notes li {
  padding-left: 0;
}

.live-curator-notes a {
  display: grid;
  gap: 0.18rem;
  color: inherit;
  padding-left: 0.55rem;
  text-decoration: none;
}

.live-curator-notes a:hover strong,
.live-curator-notes a:focus-visible strong,
.case-file-row a:hover,
.case-file-row a:focus-visible {
  color: var(--ember-dark);
}

.live-curator-notes span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.work-desk-clear {
  border-left: 3px solid rgba(70, 112, 75, 0.48);
  padding-left: 0.65rem;
}

.case-category-list {
  display: grid;
  gap: 0.4rem;
}

.case-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(132, 51, 34, 0.18);
  border-radius: 5px;
  background: rgba(255, 248, 236, 0.34);
  color: var(--ink);
  padding: 0.48rem 0.58rem;
  text-decoration: none;
}

.case-category-list a:hover,
.case-category-list a:focus-visible {
  border-color: rgba(132, 51, 34, 0.46);
  background: rgba(255, 248, 236, 0.62);
}

.case-category-list strong {
  color: var(--ember-dark);
}

.open-cases-panel:has(.brooks-case-files) {
  grid-column: 1 / -1;
}

.brooks-case-files {
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid rgba(132, 51, 34, 0.22);
  margin-top: 0.2rem;
  padding-top: 0.8rem;
}

.brooks-case-files > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.brooks-case-files h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.case-file-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.case-file-filters a {
  border: 1px solid rgba(132, 51, 34, 0.22);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.3rem 0.55rem;
  text-decoration: none;
}

.case-file-filters a[aria-current="page"] {
  border-color: var(--ember-dark);
  background: var(--ember-dark);
  color: var(--ivory);
}

.case-file-list {
  display: grid;
  max-height: min(30rem, 58vh);
  overflow-y: auto;
  border-block: 1px solid rgba(132, 51, 34, 0.18);
}

.case-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.68rem 0.2rem;
}

.case-file-row + .case-file-row {
  border-top: 1px solid rgba(132, 51, 34, 0.14);
}

.case-file-row > div {
  display: grid;
  gap: 0.14rem;
}

.case-file-row span {
  color: var(--ember-dark);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brooks-desk-drawer .case-file-row p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.repository-intake-drawer {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(91, 55, 31, 0.98), rgba(56, 33, 21, 0.98)),
    var(--espresso);
}

.repository-intake-receipt-shell {
  padding: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(245, 222, 174, 0.28), transparent 38%),
    linear-gradient(180deg, #fff9ec, #f1dfbb);
}

.repository-intake-success {
  width: min(920px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(117, 78, 31, 0.32);
  border-left: 6px double #a06d22;
  border-radius: 16px;
  background: #fffaf0;
  color: #2f241b;
  box-shadow: 0 18px 45px rgba(63, 43, 22, 0.15);
  padding: clamp(1.4rem, 4vw, 3rem);
}

.repository-intake-receipt-mark {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px solid rgba(117, 78, 31, 0.28);
  background: linear-gradient(145deg, #4a3223, #221812);
  color: #f1cf82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.repository-intake-receipt-mark img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: contain;
}

.repository-intake-receipt-copy {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.repository-intake-receipt-copy .eyebrow {
  margin: 0;
  color: #765015;
}

.repository-intake-receipt-copy h3,
.repository-intake-receipt-copy h4,
.repository-intake-receipt-copy p {
  margin: 0;
  color: #2f241b;
}

.repository-intake-receipt-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.repository-intake-receipt-copy h4 {
  margin-top: 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.repository-intake-receipt-author {
  font-weight: 700;
}

.repository-intake-receipt-copy small {
  color: #66513d;
  overflow-wrap: anywhere;
}

.repository-intake-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.repository-intake-success-actions .primary-link {
  background: #9c671e;
  border-color: #7f5117;
  color: #fffaf0;
}

.repository-intake-success-actions .receipt-return-action {
  margin-left: auto;
}

.repository-protection-drawer > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.repository-protection-drawer > details > summary small {
  color: #486a55;
  font-family: inherit;
}

.repository-protection-drawer.attention > details > summary small {
  color: #8a3f3f;
}

.repository-protection-drawer-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.repository-protection-drawer .preservation-ledger {
  margin-top: 0.85rem;
  box-shadow: none;
}

.cover-docket-panel {
  grid-column: 1 / -1;
  gap: 1rem;
  border-color: rgba(132, 51, 34, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 247, 229, 0.96), rgba(226, 207, 176, 0.9)),
    var(--panel);
}

.cover-docket-heading,
.cover-docket-hold,
.cover-evidence-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cover-docket-heading > span {
  flex: 0 0 auto;
  border: 1px solid rgba(132, 51, 34, 0.28);
  color: var(--ember-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
}

.cover-docket-inventory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(112, 77, 52, 0.2);
}

.cover-docket-inventory > div {
  padding: 0.8rem;
}

.cover-docket-inventory > div + div {
  border-left: 1px solid rgba(112, 77, 52, 0.2);
}

.cover-docket-inventory dd {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.cover-provider-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.cover-provider-readiness > div {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(112, 77, 52, 0.24);
  background: rgba(255, 250, 242, 0.42);
  padding: 0.7rem;
}

.cover-provider-readiness > div.ready {
  border-left: 4px solid rgba(68, 106, 88, 0.55);
}

.cover-provider-readiness > div.needs-key {
  border-left: 4px solid rgba(180, 127, 47, 0.58);
}

.cover-provider-readiness strong {
  font-family: Georgia, "Times New Roman", serif;
}

.cover-provider-readiness span {
  color: var(--ember-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-provider-readiness code {
  overflow-wrap: anywhere;
}

.cover-docket-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
  gap: 1.25rem;
  align-items: start;
}

.cover-active-volume,
.cover-evidence-tray {
  display: grid;
  gap: 0.85rem;
}

.cover-mode-actions {
  display: flex;
  justify-content: flex-end;
}

.replacement-cover-results {
  display: grid;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
}

.replacement-cover-results button {
  display: grid;
  gap: 0.15rem;
  border: 1px solid rgba(112, 77, 52, 0.22);
  background: rgba(255, 250, 242, 0.55);
  color: var(--ink);
  cursor: pointer;
  padding: 0.55rem;
  text-align: left;
}

.replacement-cover-results button:hover,
.replacement-cover-results button:focus-visible {
  border-color: rgba(132, 51, 34, 0.5);
}

.replacement-cover-results span {
  color: var(--muted);
  font-size: 0.82rem;
}

.replacement-current-cover {
  width: min(130px, 100%);
  max-height: 190px;
  object-fit: contain;
}

.cover-active-record {
  display: grid;
  gap: 0.3rem;
  border-top: 4px double rgba(132, 51, 34, 0.35);
  padding-top: 0.85rem;
}

.cover-active-record > span,
.cover-evidence-heading span {
  color: var(--ember-dark);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-active-record h3,
.cover-evidence-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.cover-active-record dl,
.cover-candidate-details dl {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.cover-active-record dd,
.cover-checksum {
  overflow-wrap: anywhere;
}

.cover-evidence-heading code,
.cover-tray-message code {
  color: var(--ember-dark);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.cover-tray-message {
  border-block: 1px solid rgba(112, 77, 52, 0.2);
  padding: 1rem 0;
}

.cover-candidate-grid {
  display: grid;
}

.cover-candidate-card {
  display: grid;
  grid-template-columns: minmax(110px, 155px) minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding: 1rem 0;
}

.cover-candidate-card.selected {
  border-color: rgba(132, 51, 34, 0.42);
  background: rgba(255, 250, 242, 0.42);
}

.cover-selection-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  box-sizing: border-box;
  min-width: 9.25rem;
  height: 1.8rem;
  border: 1px solid rgba(112, 77, 52, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: var(--ember-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.selectable-cover-card {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.selectable-cover-card:hover,
.selectable-cover-card:focus-visible {
  border-color: rgba(132, 51, 34, 0.58);
  box-shadow: 0 8px 18px rgba(52, 35, 27, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.selectable-cover-card.selected .cover-selection-status {
  border-color: #315b49;
  background: #315b49;
  color: #fffaf0;
}

.selectable-cover-card.selected .cover-selection-status::before {
  content: "\2713";
  margin-right: 0.4rem;
  font-size: 1rem;
}

.cover-inspection-note {
  display: grid;
  gap: 0.35rem;
  border-left: 3px solid rgba(180, 127, 47, 0.55);
  background: rgba(255, 250, 242, 0.48);
  padding: 0.65rem 0.75rem;
}

.cover-inspection-note p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.cover-inspection-note.clear {
  border-left-color: rgba(68, 106, 88, 0.58);
}

.cover-inspection-note.blocked {
  border-left-color: rgba(132, 51, 34, 0.58);
}

.cover-search-action {
  justify-self: start;
}

.cover-search-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.cover-search-inline-status {
  margin: 0;
  color: rgba(57, 38, 28, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cover-search-results,
.remote-cover-details,
.cover-match-evidence {
  display: grid;
  gap: 0.7rem;
}

.cover-provider-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cover-comparison-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-block: 1px solid rgba(112, 77, 52, 0.2);
  padding-block: 0.75rem;
}

.cover-comparison-toolbar > span {
  color: rgba(57, 38, 28, 0.75);
  font-size: 0.84rem;
}

.direct-cover-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(112, 77, 52, 0.22);
  padding-bottom: 0.7rem;
}

.direct-cover-heading span {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.direct-cover-heading h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.direct-cover-heading p {
  margin: 0;
  color: rgba(57, 38, 28, 0.76);
  font-size: 0.86rem;
}

.direct-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

.direct-cover-candidate {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid rgba(112, 77, 52, 0.24);
  background: rgba(255, 250, 242, 0.48);
  padding: 0.85rem;
}

.direct-cover-candidate.selected {
  border: 4px solid #315b49;
  background: rgba(221, 236, 216, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 250, 240, 0.95), 0 0 0 6px rgba(49, 91, 73, 0.34), 0 12px 24px rgba(52, 35, 27, 0.16);
  padding: calc(0.85rem - 3px);
}

.reference-cover-card {
  cursor: default;
  opacity: 0.86;
}

.preview-only-cover-drawer {
  border-top: 1px solid rgba(112, 77, 52, 0.25);
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

.preview-only-cover-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--ember-dark);
  font-weight: 900;
}

.preview-only-cover-drawer > summary span {
  border: 1px solid rgba(112, 77, 52, 0.28);
  padding: 0.2rem 0.45rem;
}

.preview-only-cover-drawer > p {
  color: rgba(57, 38, 28, 0.76);
  font-size: 0.86rem;
}

.reference-only-cover-grid {
  margin-top: 0.75rem;
}

.direct-cover-image {
  position: relative;
  justify-self: center;
  width: min(320px, 100%);
  aspect-ratio: 2 / 3;
  background: rgba(41, 31, 26, 0.08);
}

.direct-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.direct-cover-details {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-width: 0;
}

.direct-cover-details .cover-evidence-ribbon {
  justify-self: start;
}

.direct-cover-details h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.cover-search-briefing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cover-search-briefing > div {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  border: 1px solid rgba(112, 77, 52, 0.22);
  background: rgba(255, 250, 242, 0.42);
  padding: 0.75rem;
}

.cover-search-briefing span:not(.cover-evidence-ribbon) {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-search-briefing strong:not(.cover-evidence-ribbon) {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.cover-search-briefing p,
.cover-selection-pending {
  margin: 0;
  color: rgba(57, 38, 28, 0.76);
  font-size: 0.86rem;
}

.better-source-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(132, 51, 34, 0.2);
  background: rgba(255, 247, 224, 0.66);
  padding: 0.75rem;
}

.better-source-callout p {
  margin: 0;
  color: rgba(64, 42, 26, 0.86);
  font-weight: 700;
}

.better-source-callout > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.cover-best-match .cover-evidence-ribbon {
  justify-self: start;
}

.cover-selection-pending {
  border-left: 3px solid rgba(180, 127, 47, 0.48);
  padding: 0.65rem 0.75rem;
}

.selected-cover-summary {
  display: grid;
  grid-template-columns: minmax(110px, 145px) minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid rgba(68, 106, 88, 0.4);
  background: rgba(255, 250, 242, 0.52);
  padding: 0.85rem;
}

.selected-cover-thumbnail {
  position: relative;
  aspect-ratio: 2 / 3;
  min-width: 0;
  background: rgba(41, 31, 26, 0.08);
}

.selected-cover-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-cover-record {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-width: 0;
}

.selected-cover-record .cover-evidence-ribbon {
  justify-self: start;
}

.selected-cover-record h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.cover-comparison-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 13, 10, 0.86);
  padding: 1rem;
}

.cover-comparison-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  width: min(1240px, 100%);
  height: min(820px, calc(100vh - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 1px solid rgba(196, 154, 85, 0.58);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8ead2, #dfc9a9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.cover-comparison-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cover-comparison-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cover-comparison-heading p:not(.eyebrow) {
  margin: 0.35rem 0 0;
}

.cover-comparison-close {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(112, 77, 52, 0.35);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.94);
  color: var(--ember-dark);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.cover-comparison-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1rem;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0.15rem 0.15rem 0.65rem;
  scrollbar-gutter: stable;
}

.cover-comparison-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.8rem;
  min-width: 0;
  border: 1px solid rgba(112, 77, 52, 0.24);
  background: rgba(255, 250, 242, 0.48);
  padding: 0.75rem;
}

.cover-comparison-item.selected {
  border-color: rgba(68, 106, 88, 0.62);
  box-shadow: inset 0 0 0 2px rgba(68, 106, 88, 0.16);
}

.cover-comparison-image {
  display: grid;
  place-items: center;
  min-height: 0;
  background: rgba(41, 31, 26, 0.08);
}

.cover-comparison-image img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: min(48vh, 480px);
  object-fit: contain;
}

.cover-comparison-details {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.cover-comparison-details h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.cover-comparison-details dl {
  display: grid;
  gap: 0.35rem;
}

.cover-comparison-details dl > div {
  display: grid;
  gap: 0.1rem;
}

.cover-comparison-details dd {
  margin: 0;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.comparison-select-cover {
  justify-self: stretch;
  min-height: 2.25rem;
}

.cover-provider-ledger > span {
  border: 1px solid rgba(112, 77, 52, 0.24);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.32rem 0.45rem;
}

.cover-provider-status.available {
  border-color: rgba(68, 106, 88, 0.4);
  color: #365f4c;
}

.cover-provider-status.unavailable {
  border-color: rgba(132, 51, 34, 0.38);
  color: var(--ember-dark);
}

.remote-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.remote-cover-card {
  display: grid;
  grid-template-columns: minmax(145px, 180px) minmax(0, 1fr);
  gap: 0.8rem;
  border: 1px solid rgba(112, 77, 52, 0.22);
  background: rgba(255, 250, 242, 0.42);
  padding: 0.75rem;
}

.remote-cover-card.selected {
  border-color: rgba(132, 51, 34, 0.58);
  box-shadow: inset 0 0 0 2px rgba(132, 51, 34, 0.2), 0 8px 18px rgba(52, 35, 27, 0.12);
}

.remote-cover-image {
  position: relative;
  aspect-ratio: 2 / 3;
  background: rgba(41, 31, 26, 0.08);
}

.remote-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-preview-trigger {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.cover-preview-trigger > span {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  left: 0.45rem;
  border: 1px solid rgba(255, 244, 220, 0.35);
  border-radius: 6px;
  background: rgba(30, 21, 16, 0.88);
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.42rem;
  text-align: center;
}

.cover-candidate-preview.cover-preview-trigger > span {
  color: var(--ivory);
  padding: 0.42rem;
}

.cover-preview-trigger:focus-visible {
  outline: 3px solid rgba(180, 127, 47, 0.6);
  outline-offset: 2px;
}

.cover-preview-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 13, 10, 0.82);
  padding: 1rem;
}

.cover-large-preview-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.65fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: min(920px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(196, 154, 85, 0.58);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8ead2, #dfc9a9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.cover-large-preview-image {
  display: grid;
  place-items: center;
  min-width: 0;
  background: rgba(41, 31, 26, 0.1);
}

.cover-large-preview-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 5.2rem);
  object-fit: contain;
}

.cover-large-preview-details {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-width: 0;
}

.cover-large-preview-details h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.cover-large-preview-details dl {
  display: grid;
  gap: 0.65rem;
}

.cover-large-preview-details dl > div {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(112, 77, 52, 0.2);
  padding-bottom: 0.55rem;
}

.cover-large-preview-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cover-preview-close {
  position: absolute;
  z-index: 1;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(112, 77, 52, 0.35);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.94);
  color: var(--ember-dark);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.cover-provider-name {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-visual-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  color: rgba(57, 38, 28, 0.78);
  font-size: 0.82rem;
}

.cover-candidate-evidence {
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding-top: 0.55rem;
}

.cover-candidate-evidence summary {
  color: var(--ember-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.cover-candidate-evidence-body {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.cover-candidate-evidence-body dl {
  display: grid;
  gap: 0.35rem;
}

.cover-candidate-evidence-body dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.45rem;
}

.cover-candidate-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.cover-candidate-rank > span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.cover-evidence-ribbon {
  border: 1px solid rgba(112, 77, 52, 0.24);
  font-size: 0.76rem;
  padding: 0.32rem 0.45rem;
}

.cover-fileability-ribbon {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(95, 70, 42, 0.28);
  background: rgba(255, 250, 235, 0.72);
  color: #50331f;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0.38rem 0.48rem;
}

.cover-fileability-ribbon.fileable {
  border-color: rgba(64, 104, 76, 0.45);
  background: rgba(221, 236, 216, 0.62);
}

.cover-fileability-ribbon.too-small,
.cover-fileability-ribbon.preview-only,
.cover-fileability-ribbon.needs-better-source {
  border-color: rgba(160, 120, 48, 0.45);
  background: rgba(249, 232, 184, 0.64);
}

.cover-fileability-ribbon.unsupported-format,
.cover-fileability-ribbon.failed-inspection,
.cover-fileability-ribbon.source-problem {
  border-color: rgba(132, 51, 34, 0.42);
  background: rgba(242, 214, 202, 0.68);
}

.cover-fileability-note {
  margin: 0;
  color: rgba(66, 42, 26, 0.84);
  font-size: 0.9rem;
  line-height: 1.38;
}

.cover-evidence-ribbon.excellent {
  border-color: rgba(48, 116, 76, 0.45);
  background: rgba(79, 145, 102, 0.12);
  color: #285f40;
}

.cover-evidence-ribbon.strong {
  border-color: rgba(54, 112, 85, 0.42);
  background: rgba(79, 145, 102, 0.08);
  color: #315f48;
}

.cover-evidence-ribbon.alternate-english {
  border-color: rgba(151, 111, 32, 0.42);
  background: rgba(203, 157, 53, 0.11);
  color: #76581e;
}

.cover-evidence-ribbon.foreign {
  border-color: rgba(153, 91, 38, 0.42);
  background: rgba(196, 114, 52, 0.11);
  color: #80471f;
}

.cover-evidence-ribbon.likely {
  border-color: rgba(163, 128, 25, 0.44);
  background: rgba(205, 169, 50, 0.12);
  color: #725d15;
}

.cover-evidence-ribbon.review {
  border-color: rgba(181, 101, 38, 0.44);
  background: rgba(205, 124, 54, 0.12);
  color: #87461f;
}

.cover-evidence-ribbon.unlikely {
  border-color: rgba(148, 50, 43, 0.45);
  background: rgba(170, 66, 54, 0.12);
  color: #7b2d28;
}

.cover-edition-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cover-edition-notes span {
  border: 1px solid rgba(132, 51, 34, 0.22);
  color: var(--ember-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.38rem;
}

.remote-cover-details h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.remote-cover-details dl {
  display: grid;
  gap: 0.35rem;
}

.remote-cover-details dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.45rem;
}

.provider-record-id {
  overflow-wrap: anywhere;
}

.cover-match-evidence p {
  border-left: 3px solid rgba(180, 127, 47, 0.5);
  font-size: 0.78rem;
  padding-left: 0.45rem;
}

.cover-match-evidence p.match {
  border-left-color: rgba(68, 106, 88, 0.52);
  color: #365f4c;
}

.cover-match-evidence p.duplicate {
  border-left-color: rgba(91, 76, 128, 0.48);
  color: #51466d;
}

.cover-source-link {
  justify-self: start;
  color: var(--ember-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  opacity: 0.72;
}

.manual-cover-intake {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding-top: 0.85rem;
}

.manual-cover-intake > h3 {
  margin: 0;
  color: var(--ember-dark);
  font-weight: 800;
}

.manual-cover-intake-purpose {
  margin: 0;
  color: rgba(57, 38, 28, 0.78);
  font-size: 0.88rem;
}

.manual-cover-dropzone {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 170px;
  border: 2px dashed rgba(132, 51, 34, 0.34);
  background: rgba(255, 250, 242, 0.38);
  padding: 1rem;
  text-align: center;
}

.manual-cover-dropzone.dragging {
  border-color: rgba(68, 106, 88, 0.7);
  background: rgba(68, 106, 88, 0.1);
}

.manual-cover-dropzone p,
.manual-cover-dropzone small {
  margin: 0;
}

.manual-cover-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.manual-cover-file-label {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
}

.manual-cover-upload-status {
  margin: 0;
  border-left: 3px solid rgba(180, 127, 47, 0.55);
  padding: 0.55rem 0.7rem;
}

.temporary-cover-records {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(107, 67, 35, 0.25);
}

.temporary-cover-records > p {
  margin: 0;
}

.temporary-cover-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.temporary-cover-record span {
  min-width: 0;
}

.temporary-cover-record b,
.temporary-cover-record small {
  display: block;
  overflow-wrap: anywhere;
}

.remove-temporary-cover {
  margin-top: 0.5rem;
}

.manual-cover-upload-status.success { border-left-color: rgba(68, 106, 88, 0.6); }
.manual-cover-upload-status.error { border-left-color: rgba(132, 51, 34, 0.6); }

.cover-candidate-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(112, 77, 52, 0.25);
  background: rgba(255, 250, 242, 0.72);
}

.cover-candidate-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-candidate-preview span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  padding: 0.5rem;
}

.cover-candidate-details h4 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.cover-candidate-warnings {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.cover-candidate-warnings p {
  border-left: 3px solid rgba(132, 51, 34, 0.36);
  padding-left: 0.55rem;
}

.cover-candidate-warnings p.clear {
  border-left-color: rgba(68, 106, 88, 0.45);
}

.cover-docket-hold {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding-top: 0.9rem;
}

.cover-docket-footer-copy {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
}

.cover-docket-footer-copy:only-child,
.cover-approval-note {
  max-width: 70ch;
}

.cover-docket-footer-copy p {
  margin: 0;
}

.cover-approval-note {
  color: rgba(57, 38, 28, 0.78);
  font-size: 0.88rem;
}

.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cover-assignment-review {
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(112, 77, 52, 0.25);
  background: rgba(255, 250, 242, 0.58);
  padding: 1rem;
}

.cover-assignment-review.clear {
  border-color: rgba(68, 106, 88, 0.42);
}

.cover-assignment-review.blocked {
  border-color: rgba(132, 51, 34, 0.42);
}

.cover-assignment-review > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cover-assignment-review span {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-assignment-review h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.cover-assignment-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 1rem;
}

.cover-assignment-summary dl,
.cover-assignment-findings {
  display: grid;
  gap: 0.55rem;
}

.cover-assignment-summary dl > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 0.6rem;
}

.cover-assignment-summary dd,
.cover-assignment-summary code {
  overflow-wrap: anywhere;
}

.cover-assignment-findings p {
  border-left: 3px solid rgba(180, 127, 47, 0.52);
  padding-left: 0.55rem;
}

.cover-assignment-findings p.blocker {
  border-left-color: rgba(132, 51, 34, 0.55);
}

.cover-assignment-findings p.clear {
  border-left-color: rgba(68, 106, 88, 0.5);
}

.cover-assignment-hold {
  color: var(--ember-dark);
  font-weight: 800;
}

.cover-docket-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.repository-intake-drawer-front {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1rem, 2vw, 1.25rem);
}

.repository-work-launchers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.repository-work-launchers .mini-action,
.repository-work-launchers .primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-inline: 0.75rem;
  text-align: center;
}

.repository-work-launchers .mini-action {
  border-color: rgba(255, 231, 175, 0.38);
  background: rgba(255, 248, 236, 0.92);
  color: #2f241b;
}

.repository-work-launchers .primary-link {
  background: #c18a37;
  border-color: #e0b764;
  color: #201813;
  font-weight: 900;
}

.repository-docket-launch span {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  min-height: 1.55rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #3c2a1f;
  color: #fff4dc;
  font-size: 0.72rem;
}

.reading-status-reconciliation {
  margin: 0.9rem 0;
  padding: 0.9rem;
  border: 1px solid rgba(185, 132, 51, 0.38);
  border-radius: 0.85rem;
  background: rgba(255, 246, 224, 0.92);
  color: #302218;
}

.reading-status-reconciliation h3,
.reading-status-reconciliation p {
  margin-top: 0;
}

.reading-status-preview {
  display: grid;
  gap: 0.55rem;
}

.reading-status-preview ul {
  margin: 0;
  padding-left: 1.2rem;
  max-height: 11rem;
  overflow: auto;
}

@media (max-width: 1080px) and (min-width: 721px) {
  .repository-work-launchers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repository-work-launchers .repository-docket-launch {
    grid-column: 1 / -1;
  }
}

.brooks-work-route {
  width: min(1440px, 92vw);
  margin: 1.25rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.brooks-work-route > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(112, 77, 52, 0.22);
  background: linear-gradient(180deg, #fff8ec, #ead6b3);
  padding: clamp(1rem, 3vw, 1.75rem);
}

.brooks-work-route > header h1,
.brooks-work-route > header p {
  margin: 0;
}

.cover-docket-route .cover-docket-panel {
  width: 100%;
}

.repository-intake-drawer-front .eyebrow,
.repository-intake-drawer-front h2,
.repository-intake-drawer-front p {
  color: var(--ivory);
}

.repository-intake-drawer-front .eyebrow {
  color: var(--brass);
}

.repository-intake-drawer-front p:not(.eyebrow) {
  max-width: 68ch;
  color: rgba(255, 248, 236, 0.74);
  font-weight: 600;
}

.repository-intake-toggle {
  flex: 0 0 auto;
  border-color: rgba(255, 231, 175, 0.4);
  background: rgba(255, 248, 236, 0.9);
  color: var(--ink);
  min-height: 40px;
  padding-inline: 0.85rem;
}

.repository-intake-workspace {
  display: grid;
  gap: 1.15rem;
  border-top: 1px solid rgba(255, 231, 175, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.97), rgba(226, 207, 176, 0.94)),
    var(--panel);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.repository-intake-dialogue {
  border-bottom: 1px solid rgba(112, 77, 52, 0.2);
  padding-bottom: 0.9rem;
}

.repository-intake-dialogue > span,
.filing-review-bookplate > span,
.repository-enclosures span,
.filing-review-hold > span {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repository-intake-dialogue h3 {
  margin-top: 0.2rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.repository-intake-dialogue p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.repository-intake-validation {
  display: grid;
  gap: 0.35rem;
  border-block: 1px solid rgba(132, 51, 34, 0.32);
  background: rgba(132, 51, 34, 0.07);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}

.repository-intake-validation > span {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repository-intake-validation ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
}

.repository-intake-validation li {
  line-height: 1.45;
}

.repository-intake-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

.repository-intake-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.repository-intake-fields .intake-title-field,
.repository-intake-fields .intake-notes-field {
  grid-column: 1 / -1;
}

.repository-intake-fields textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  padding: 0.7rem;
}

.repository-enclosures {
  display: grid;
  border-block: 1px solid rgba(112, 77, 52, 0.2);
}

.repository-enclosures > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
}

.repository-enclosures > div + div {
  border-top: 1px solid rgba(112, 77, 52, 0.2);
}

.repository-enclosures strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.repository-enclosures p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.repository-intake-cover-dropzone {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 13rem;
  padding: 1rem;
  border: 1px dashed rgba(112, 77, 52, 0.48);
  border-radius: 0.9rem;
  background: rgba(255, 250, 242, 0.72);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.repository-intake-cover-dropzone.is-dragging {
  border-color: var(--accent);
  background: rgba(255, 250, 242, 0.94);
  box-shadow: 0 0 0 3px rgba(112, 77, 52, 0.12);
}

.repository-intake-cover-dropzone .intake-cover-preview {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.repository-intake-cover-dropzone .intake-cover-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.55rem;
  background: rgba(112, 77, 52, 0.08);
}

.repository-intake-cover-dropzone .intake-cover-preview-meta {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.repository-intake-cover-dropzone .intake-cover-filename {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.repository-intake-cover-dropzone .intake-cover-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 42rem) {
  .repository-intake-cover-dropzone .intake-cover-preview {
    grid-template-columns: minmax(4.75rem, 5.75rem) minmax(0, 1fr);
    gap: 0.7rem;
  }
}

.repository-intake-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding-top: 0.9rem;
}

.repository-intake-actions > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.repository-intake-action-buttons,
.owner-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.destructive-secondary {
  color: #8a3f3f;
  border-color: rgba(138, 63, 63, 0.45);
}

.destructive-action {
  color: #fff8f3;
  background: #7b2f32;
  border-color: #7b2f32;
}

.destructive-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.owner-book-controls {
  border-color: rgba(138, 63, 63, 0.25);
}

.owner-delete-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(19, 14, 12, 0.72);
  overflow-y: auto;
}

.owner-delete-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgba(138, 63, 63, 0.45);
  border-radius: 18px;
  background: var(--paper, #f6efe4);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.owner-delete-dialog > img {
  width: 110px;
  max-height: 165px;
  object-fit: cover;
  float: right;
  margin: 0 0 1rem 1rem;
}

.owner-delete-dialog dl { display: grid; gap: 0.45rem; }
.owner-delete-dialog dl > div { display: grid; grid-template-columns: minmax(8rem, 0.35fr) 1fr; gap: 0.75rem; }
.owner-delete-dialog dt { font-weight: 700; }
.delete-warning { color: #7c581e; }
.delete-blocker { color: #8a2f34; font-weight: 700; }

button.primary-link {
  min-height: 40px;
  border: 1px solid rgba(132, 51, 34, 0.34);
  background: rgba(255, 250, 242, 0.78);
  cursor: pointer;
  font: inherit;
  padding: 0.55rem 0.8rem;
}

button.primary-link.not-ready {
  border-color: rgba(112, 77, 52, 0.24);
  background: rgba(255, 250, 242, 0.48);
  color: rgba(80, 51, 31, 0.72);
}

.filing-review-workspace {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

.filing-review-workspace .repository-intake-dialogue,
.filing-review-workspace .repository-intake-actions {
  grid-column: 1 / -1;
}

.repository-filing-review {
  display: grid;
  gap: 1rem;
  border-left: 5px double rgba(132, 51, 34, 0.48);
  padding: 0.25rem 0 0.25rem 1rem;
}

.filing-review-bookplate h3 {
  margin-top: 0.2rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
}

.filing-review-bookplate p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.filing-review-id {
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.filing-review-notices {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding-top: 0.9rem;
}

.filing-review-notice {
  border-left: 3px solid rgba(112, 77, 52, 0.34);
  padding-left: 0.75rem;
}

.filing-review-notice.duplicate {
  border-left-color: var(--ember-dark);
}

.filing-review-notice strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.filing-review-notice p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.connie-dry-run {
  margin-top: 0.2rem;
}

.dry-run-label {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dry-run-finding {
  border-top: 1px solid rgba(112, 77, 52, 0.14);
  padding-top: 0.4rem;
}

.dry-run-finding.blocker {
  color: var(--ember-dark);
}

.filing-review-hold.filed {
  border-color: rgba(65, 105, 70, 0.45);
  background: rgba(65, 105, 70, 0.08);
}

.filing-review-hold.failed {
  border-color: rgba(132, 51, 34, 0.42);
  background: rgba(132, 51, 34, 0.08);
}

.repository-filing-review dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.repository-filing-review dl > div {
  display: grid;
  gap: 0.15rem;
}

.repository-filing-review .filing-review-notes {
  grid-column: 1 / -1;
}

.repository-filing-review dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repository-filing-review dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.filing-review-hold {
  align-self: start;
  display: grid;
  gap: 0.35rem;
  border-block: 1px solid rgba(132, 51, 34, 0.24);
  padding: 0.9rem 0;
}

.filing-review-hold strong {
  color: var(--ember-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.filing-review-hold p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-actions {
  justify-content: flex-end;
}

.disabled-filing-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.conversation-preview {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(112, 77, 52, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.58);
  margin-top: 0.25rem;
  padding: 0.9rem;
}

.conversation-preview span {
  color: var(--ember-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.conversation-preview strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.conversation-preview small {
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.conversation-preview p {
  font-size: 0.98rem !important;
}

.case-file-preview {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.case-file-preview:hover,
.case-file-preview:focus-visible {
  border-color: rgba(132, 51, 34, 0.38);
  box-shadow: 0 12px 22px rgba(18, 13, 10, 0.14);
  transform: translateY(-2px);
}

.case-file-preview em,
.drawer-link {
  color: var(--ember-dark);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .archive-conversations-panel { grid-column: auto; }
  .archive-conversation-grid,
  .brooks-visitor-counter,
  .visitor-count-grid { grid-template-columns: 1fr; }
}

.case-file-mini-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.case-file-mini-meta div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: baseline;
}

.case-file-mini-meta dt {
  color: var(--ember-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-file-mini-meta dd {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-weight: 800;
}

.observation-card h3 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.observation-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.35;
}

.room-page {
  display: grid;
  gap: 1.25rem;
  max-width: var(--archive-wide);
  margin: 0 auto;
}

.room-page:has(.brooks-office) {
  width: min(100%, calc(100vw - clamp(1rem, 3vw, 3rem)));
  max-width: 1760px;
}

.unfinished-business-room {
  width: min(100%, calc(100vw - clamp(1rem, 3vw, 3rem)));
  max-width: 1760px;
}

.room-intro {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(196, 154, 85, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.9), rgba(229, 211, 181, 0.88)),
    var(--panel);
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}

.room-intro h1 {
  font-size: clamp(3rem, 6.5vw, 5.6rem);
}

.room-intro p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.58vw, 1.4rem);
  line-height: 1.55;
}

.room-intro .tagline-controls {
  max-width: 760px;
}

.room-intro .tagline-controls select {
  min-width: min(360px, 100%);
}

.room-cover-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.room-cover .home-cover {
  box-shadow: var(--shadow);
}

.hall-exhibit {
  justify-self: center;
  width: min(100%, 1120px);
  overflow: hidden;
  border: 1px solid rgba(196, 154, 85, 0.42);
  border-radius: 8px;
  background: rgba(18, 13, 10, 0.92);
  box-shadow: var(--shadow);
}

.museum-page {
  width: min(92vw, 1640px);
  max-width: none;
  margin-inline: auto;
}

.museum-entrance {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.58fr) minmax(520px, 1fr);
  min-height: min(730px, calc(100vh - 9rem));
  overflow: hidden;
  border: 1px solid rgba(196,154,85,.48);
  border-radius: 12px;
  background: linear-gradient(135deg,rgba(25,17,12,.98),rgba(52,34,22,.95));
  box-shadow: 0 28px 60px rgba(20,12,7,.3);
  color: var(--ivory);
}

.museum-entrance-copy {
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.5rem,3vw,3.5rem);
}

.museum-entrance h1 {
  max-width: 8ch;
  margin: 0;
  color: var(--ivory);
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(3.2rem,6vw,7.5rem);
  line-height: .85;
}

.museum-lede { max-width: 54ch; color: rgba(255,248,236,.82); font-size: clamp(1rem,1.25vw,1.28rem); }
.museum-entrance blockquote { max-width: 55ch; margin: 0; border-left: 3px solid var(--brass); padding-left: 1rem; color: rgba(255,248,236,.88); }
.museum-entrance blockquote cite { display:block; margin-top:.45rem; color:var(--brass); font-style:normal; font-size:.82rem; text-transform:uppercase; }

.museum-brooks-anchor { position:relative; display:grid; align-items:end; min-width:0; background:radial-gradient(circle at 55% 45%,rgba(196,154,85,.2),transparent 55%); }
.museum-brooks-artifact { height:100%; min-height:560px; background:transparent; }
.museum-brooks-artifact img { width:100%; height:100%; object-fit:contain; object-position:center bottom; }

.museum-directory { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.museum-directory a { display:grid; gap:.12rem; border:1px solid rgba(196,154,85,.3); border-radius:7px; background:rgba(255,248,232,.06); color:var(--ivory); padding:.65rem .75rem; text-decoration:none; }
.museum-directory a:hover,.museum-directory a:focus-visible { background:rgba(196,154,85,.16); outline:2px solid rgba(196,154,85,.45); }
.museum-directory span { color:rgba(255,248,236,.6); font-size:.72rem; text-transform:uppercase; }

.museum-navigation-bar {
  display:grid;
  grid-template-columns:repeat(7,minmax(130px,1fr));
  gap:.5rem;
  overflow-x:auto;
  margin:1rem 0;
  border:1px solid rgba(112,77,52,.32);
  border-radius:10px;
  background:linear-gradient(180deg,#f7e9c9,#ddc496);
  padding:.65rem;
  box-shadow:0 12px 28px rgba(42,27,17,.18);
}
.museum-navigation-bar a {
  display:grid;
  align-content:center;
  gap:.18rem;
  min-height:4.2rem;
  border:1px solid rgba(112,77,52,.28);
  border-radius:7px;
  background:rgba(255,250,238,.72);
  color:var(--ink);
  padding:.65rem .72rem;
  text-decoration:none;
}
.museum-navigation-bar a:hover,.museum-navigation-bar a:focus-visible { border-color:var(--ember-dark); outline:2px solid rgba(128,65,38,.24); }
.museum-navigation-bar a.active { border-color:var(--ember-dark); background:linear-gradient(145deg,#4a2d1f,#251711); color:var(--ivory); box-shadow:inset 0 0 0 1px rgba(196,154,85,.4); }
.museum-navigation-bar span { color:var(--muted); font-size:.67rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.museum-navigation-bar a.active span { color:var(--brass); }

.museum-featured { display:grid; gap:.2rem; border:1px solid rgba(196,154,85,.48); border-radius:8px; background:linear-gradient(135deg,rgba(196,154,85,.19),rgba(255,248,232,.06)); color:var(--ivory); padding:.8rem; text-decoration:none; }
.museum-featured span { color:var(--brass); font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.museum-featured p { margin:0; color:rgba(255,248,236,.7); font-size:.88rem; }

.museum-room-tabs { position:sticky; z-index:5; top:5.5rem; display:flex; gap:.45rem; overflow-x:auto; margin:1rem 0; border-block:1px solid rgba(196,154,85,.28); background:rgba(25,17,12,.94); padding:.65rem; }
.museum-room-tabs a { flex:0 0 auto; border-radius:999px; color:var(--ivory); padding:.55rem .75rem; text-decoration:none; }
.museum-room-tabs a:hover,.museum-room-tabs a:focus-visible { background:rgba(196,154,85,.18); }

.museum-room { min-height:440px; border:1px solid rgba(196,154,85,.34); border-radius:10px; background:linear-gradient(180deg,rgba(255,248,232,.96),rgba(232,214,181,.94)); padding:clamp(1.2rem,2.5vw,2.5rem); box-shadow:var(--shadow); }
.museum-room>header { display:grid; gap:.4rem; max-width:75ch; margin-bottom:1.4rem; }
.museum-room h2 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,4vw,4.5rem); }
.permanent-plinths { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; margin-bottom:1.5rem; }
.ranking-rail { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.museum-exhibit-card { min-width:0; border:1px solid rgba(112,77,52,.22); border-radius:8px; background:rgba(255,250,239,.82); padding:.8rem; box-shadow:0 10px 24px rgba(64,48,36,.09); }
.museum-exhibit-card.permanent { background:linear-gradient(145deg,rgba(255,241,199,.98),rgba(218,190,139,.9)); }
.museum-exhibit-card>a { display:grid; grid-template-columns:minmax(100px,170px) minmax(0,1fr); gap:.5rem 1rem; color:inherit; text-decoration:none; }
.museum-exhibit-card .museum-cover { grid-row:1/7; aspect-ratio:2/3; }
.museum-series-covers { grid-row:1/7; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-self:start; align-items:start; gap:.2rem; min-width:0; }
.museum-series-covers .museum-series-cover { width:100%; min-width:0; aspect-ratio:2/3; border-radius:3px; box-shadow:0 5px 9px rgba(45,28,17,.2); }
.museum-series-covers .museum-series-cover:nth-child(even) { transform:translateY(.45rem); }
.museum-series-covers .museum-series-cover .case-file-seal,.museum-series-covers .museum-series-cover .case-file-ribbon { display:none; }
.museum-exhibit-card .series-favorite-card { grid-template-columns:minmax(230px,1.35fr) minmax(0,1fr); }
.hall-gallery-heading { margin:1.25rem 0 .35rem; font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.35rem,2vw,2rem); }
.hall-gallery-note { margin:0 0 1rem; color:var(--muted); }
.favorites-rail { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
.favorites-rail .museum-exhibit-card { display:flex; align-self:stretch; flex-direction:column; height:100%; }
.favorites-rail .museum-exhibit-card>a { display:flex; flex:1; flex-direction:column; gap:.55rem; }
.favorites-rail .museum-exhibit-card .museum-cover { grid-row:auto; width:100%; min-width:0; aspect-ratio:2/3; }
.favorites-rail .museum-exhibit-card h3 { min-height:2.35em; margin-top:.15rem; }
.favorites-rail .museum-exhibit-card h3,.favorites-rail .museum-exhibit-card p,.favorites-rail .museum-exhibit-card blockquote { width:100%; min-width:0; overflow-wrap:anywhere; }
.favorites-rail .museum-exhibit-card blockquote.museum-reason-collapsed { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.favorites-rail .museum-exhibit-card.reason-expanded blockquote.museum-reason-collapsed { display:block; overflow:visible; }
.museum-reason-toggle { align-self:flex-start; margin:.55rem 0 0; border:0; background:transparent; padding:.2rem 0; color:var(--ember-dark); font-weight:900; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.museum-drag-hint { display:block; margin:-.2rem 0 .55rem; border:1px dashed rgba(112,77,52,.38); border-radius:5px; background:rgba(196,154,85,.1); padding:.42rem; color:var(--ember-dark); font-size:.68rem; font-weight:900; letter-spacing:.08em; text-align:center; text-transform:uppercase; cursor:grab; }
.draggable-favorite { position:relative; cursor:grab; transition:transform .16s ease,opacity .16s ease,box-shadow .16s ease; }
.draggable-favorite:active { cursor:grabbing; }
.draggable-favorite>a { user-select:none; }
.draggable-favorite.is-dragging { opacity:.42; transform:scale(.97); }
.draggable-favorite.drop-before::before,.draggable-favorite.drop-after::after { content:""; position:absolute; z-index:4; top:-.35rem; bottom:-.35rem; width:.35rem; border-radius:999px; background:var(--brass); box-shadow:0 0 0 3px rgba(196,154,85,.22); }
.draggable-favorite.drop-before::before { left:-.65rem; }
.draggable-favorite.drop-after::after { right:-.65rem; }
.museum-plaque-rank { color:var(--ember-dark); font-weight:900; text-transform:uppercase; }
.museum-exhibit-card h3 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.25rem,2vw,2rem); }
.museum-exhibit-card blockquote { margin:.4rem 0; border-left:2px solid var(--brass); padding-left:.65rem; color:var(--muted); }
.museum-exhibit-card small { color:var(--muted); text-transform:uppercase; }
.museum-entry-controls { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.75rem; border-top:1px solid var(--line); padding-top:.65rem; }
.museum-entry-controls button { border:1px solid var(--line); border-radius:6px; background:var(--panel); padding:.45rem .6rem; cursor:pointer; }

.collecting-evidence { display:grid; align-content:center; justify-items:center; text-align:center; background:radial-gradient(circle at center,rgba(255,248,232,.98),rgba(218,195,155,.93)); }
.brooks-room-line { max-width:36ch; font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.25rem,2.3vw,2.2rem); }
.evidence-progress,.museum-empty-room { max-width:54rem; margin-top:1rem; border:1px dashed rgba(112,77,52,.36); border-radius:8px; padding:1rem; }
.archive-record-foundation { display:grid; margin-top:1rem; }
.archive-record-foundation strong { color:var(--ember-dark); font-family:Georgia,"Times New Roman",serif; font-size:clamp(4rem,10vw,9rem); line-height:.8; }

.archive-record-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.archive-record-cabinet { display:grid; align-content:start; gap:.65rem; border:1px solid rgba(112,77,52,.3); border-radius:9px; background:linear-gradient(145deg,rgba(255,249,235,.98),rgba(224,203,165,.92)); padding:1.1rem; box-shadow:0 12px 25px rgba(55,37,24,.1); }
.archive-record-cabinet.record-hidden { opacity:.65; border-style:dashed; }
.archive-record-cabinet header span,.preview-badge { color:var(--ember-dark); font-size:.7rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.archive-record-cabinet h3 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.25rem,2vw,1.9rem); }
.archive-record-value { color:var(--ember-dark); font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.6rem,3vw,2.8rem); }
.archive-record-winner { font-weight:900; }
.archive-record-visuals { display:flex; align-items:flex-end; gap:.55rem; min-height:9.5rem; overflow-x:auto; padding:.15rem .1rem .6rem; scrollbar-width:thin; }
.archive-record-visual { position:relative; flex:0 0 clamp(4.5rem,8.5vw,6.25rem); color:inherit; text-decoration:none; transition:transform .18s ease,filter .18s ease; }
.archive-record-visual:hover,.archive-record-visual:focus-visible { z-index:2; transform:translateY(-.35rem) rotate(-1deg); filter:drop-shadow(0 10px 9px rgba(49,30,18,.28)); }
.archive-record-art { display:grid; place-items:center; aspect-ratio:2/3; overflow:hidden; border:2px solid rgba(112,77,52,.48); border-radius:5px; background:#1b120d; box-shadow:0 7px 14px rgba(49,30,18,.2); }
.archive-record-art>img { width:100%; height:100%; object-fit:cover; }
.archive-record-art .archive-record-cover { width:100%; height:100%; min-height:0; aspect-ratio:2/3; border:0; border-radius:0; box-shadow:none; }
.archive-record-art .archive-record-cover img { width:100%; height:100%; object-fit:cover; }
.archive-record-visual>span { display:block; margin-top:.25rem; color:var(--muted); font-size:.62rem; font-weight:900; letter-spacing:.06em; text-align:center; text-transform:uppercase; }
.archive-record-visual.fan-art .archive-record-art { border-color:var(--brass); box-shadow:0 0 0 2px rgba(194,145,49,.18),0 7px 14px rgba(49,30,18,.24); }
.archive-record-links { display:flex; flex-wrap:wrap; gap:.35rem; }
.archive-record-links a { border:1px solid rgba(112,77,52,.22); border-radius:999px; background:rgba(255,255,255,.45); color:var(--ember-dark); padding:.3rem .55rem; font-size:.78rem; text-decoration:none; }
.archive-record-cabinet dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; margin:0; }
.archive-record-cabinet dl div { border-top:1px solid rgba(112,77,52,.18); padding-top:.45rem; }
.archive-record-cabinet dt { color:var(--muted); font-size:.68rem; font-weight:900; text-transform:uppercase; }
.archive-record-cabinet dd { margin:0; }
.record-provenance { color:var(--muted); font-size:.82rem; }
.favorite-tenure-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-top:1.25rem; }
.favorite-tenure-card { border:1px solid rgba(112,77,52,.26); border-radius:9px; background:rgba(255,250,239,.82); padding:.75rem; }
.favorite-tenure-card>a { display:grid; grid-template-columns:5.25rem minmax(0,1fr); gap:.8rem; align-items:center; color:inherit; text-decoration:none; }
.favorite-tenure-card .movement-cover { aspect-ratio:2/3; }
.favorite-tenure-card .museum-series-covers { grid-row:auto; grid-column:1/-1; min-height:8rem; }
.favorite-tenure-card span { display:grid; gap:.22rem; }
.favorite-tenure-card b { color:var(--ember-dark); }

.visitor-preview-banner { position:sticky; z-index:40; top:0; display:flex; align-items:center; justify-content:center; gap:1.25rem; border-block:1px solid #d2a240; background:linear-gradient(90deg,#f8dfa1,#fff4cf,#f8dfa1); padding:.65rem 1rem; color:#3c2715; box-shadow:0 8px 22px rgba(45,27,14,.24); }
.visitor-preview-banner[hidden] { display:none; }
.visitor-preview-banner>div { display:flex; flex-wrap:wrap; align-items:baseline; gap:.25rem .8rem; }
.visitor-preview-banner strong { font-family:Georgia,"Times New Roman",serif; font-size:1.08rem; }
.visitor-preview-launch { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; margin:1rem 0; border-color:#b98934; background:linear-gradient(135deg,#f7e8bd,#ddbc71); color:#332114; }
.visitor-preview-launch h2 { margin:.1rem 0 .35rem; }
.visitor-preview-active .tagline-controls,
.visitor-preview-active .admin-control,
.visitor-preview-active .gallery-add-action,
.visitor-preview-active .gallery-import-panel,
.visitor-preview-active .gallery-card-actions,
.visitor-preview-active .gallery-drag-hint,
.visitor-preview-active .gallery-credit-form,
.visitor-preview-active .photo-gallery-detail-actions .mini-action,
.visitor-preview-active .owner-book-controls,
.visitor-preview-active .museum-edit-desk,
.visitor-preview-active #toggleMuseumEdit { display:none!important; }
.visitor-reading-notes { display:grid; gap:.7rem; margin:0; }
.visitor-reading-notes div { border-top:1px solid var(--line); padding-top:.55rem; }
.visitor-reading-notes dt { color:var(--muted); font-size:.72rem; font-weight:900; text-transform:uppercase; }
.visitor-reading-notes dd { margin:.25rem 0 0; white-space:pre-wrap; }
.visitor-journal-copy { margin:0; white-space:pre-wrap; }

.future-museum-room { display:grid; align-content:start; gap:.85rem; }
.movement-thresholds,.museum-form-preview { max-width:62rem; border:1px dashed rgba(112,77,52,.38); border-radius:9px; background:rgba(255,250,239,.58); padding:1rem; }
.museum-form-preview { display:grid; gap:.8rem; }
.preview-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.preview-form-grid label { display:grid; gap:.3rem; font-weight:800; }
.preview-form-grid .full { grid-column:1/-1; }
.preview-form-grid input,.preview-form-grid select,.preview-form-grid textarea { width:100%; border:1px solid rgba(112,77,52,.28); border-radius:6px; background:#eee4d1; padding:.6rem; color:#665b4f; }
.preview-form-grid textarea { min-height:5rem; resize:none; }
.museum-form-preview button[disabled] { justify-self:start; border:1px solid rgba(112,77,52,.25); border-radius:6px; background:#d6c7ab; color:#62584b; padding:.6rem .8rem; }
.compact-preview ul { display:grid; gap:.35rem; padding-left:1.25rem; }

.museum-edit-desk { display:grid; grid-template-columns:minmax(220px,.45fr) minmax(0,1fr); gap:1rem; margin-top:1rem; border:1px solid rgba(196,154,85,.45); border-radius:10px; background:rgba(23,16,11,.96); color:var(--ivory); padding:1rem; }
.museum-edit-desk form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.museum-edit-desk label { display:grid; gap:.3rem; font-weight:800; }
.museum-edit-desk .full { grid-column:1/-1; }
.museum-edit-desk select,.museum-edit-desk textarea { width:100%; border:1px solid rgba(196,154,85,.45); border-radius:6px; background:#fff8e8; padding:.65rem; }
.museum-edit-desk textarea { min-height:6rem; resize:vertical; }
.retired-exhibits { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; border-top:1px solid rgba(196,154,85,.25); padding-top:.75rem; }

@media (max-width: 980px) {
  .museum-page { width:min(96vw,920px); }
  .museum-entrance { grid-template-columns:1fr; }
  .museum-brooks-anchor { order:-1; max-height:52vh; }
  .museum-brooks-artifact { min-height:330px; }
  .museum-entrance-copy { align-content:start; }
  .museum-entrance h1 { max-width:none; }
  .museum-navigation-bar { grid-template-columns:repeat(7,minmax(150px,1fr)); }
  .favorites-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .museum-page { width:100%; }
  .museum-entrance { border-radius:8px; }
  .museum-directory { grid-template-columns:1fr; }
  .museum-navigation-bar { grid-template-columns:repeat(7,minmax(145px,1fr)); }
  .permanent-plinths,.ranking-rail,.museum-edit-desk,.museum-edit-desk form { grid-template-columns:1fr; }
  .archive-record-grid,.preview-form-grid,.archive-record-cabinet dl { grid-template-columns:1fr; }
  .museum-exhibit-card>a { grid-template-columns:5rem minmax(0,1fr); }
  .museum-exhibit-card .museum-cover { grid-row:1/7; }
  .favorites-rail { grid-template-columns:1fr; }
  .favorites-rail .museum-exhibit-card>a { display:flex; }
  .favorites-rail .museum-exhibit-card .museum-cover { grid-row:auto; }
  .visitor-preview-banner,.visitor-preview-launch { align-items:stretch; flex-direction:column; }
}

.hall-exhibit-artifact {
  display: block;
  background: #120e0b;
}

.hall-exhibit-artifact img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(700px, 70vh);
  margin: 0 auto;
  object-fit: contain;
}

.hall-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(190px, 230px);
  gap: 1rem;
  align-items: start;
}

.hall-room-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.hall-reason-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(196, 154, 85, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.94), rgba(236, 219, 189, 0.92)),
    var(--panel);
  padding: 0.95rem;
  box-shadow: 0 8px 22px rgba(64, 48, 36, 0.07);
}

.hall-reason-card.permanent-rank {
  border-color: rgba(196, 154, 85, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 241, 200, 0.98), rgba(218, 190, 139, 0.92)),
    var(--panel);
}

.hall-reason-cover {
  aspect-ratio: 3 / 4.15;
  border-radius: 7px;
}

.hall-reason-card h2 {
  margin-bottom: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hall-reason-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.42;
}

.hall-reason-card p:not(.eyebrow, .movement, .rank-history) {
  border-left: 2px solid rgba(196, 154, 85, 0.42);
  padding-left: 0.6rem;
  font-style: italic;
}

.rank-history {
  border-top: 1px solid rgba(112, 77, 52, 0.18);
  margin-top: 0.8rem !important;
  padding-top: 0.65rem;
  font-size: 0.86rem !important;
}

.hall-reason-card > .rank {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 0.55rem;
  min-width: 4.4rem;
  border: 1px solid rgba(255, 238, 186, 0.48);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(198, 145, 57, 0.98), rgba(105, 61, 25, 0.98));
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  padding: 0.5rem 0.42rem;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 18px rgba(20, 12, 7, 0.24);
}

.hall-reason-card.permanent-rank > .rank {
  min-width: 5rem;
  background:
    linear-gradient(180deg, #f0c56d, #91601d);
  color: #1f160e;
  text-shadow: 0 1px 0 rgba(255, 244, 220, 0.42);
}

.movement.permanent {
  color: #785015;
}

.release-monitoring-layout {
  display: grid;
  grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.release-monitoring-desk {
  position: sticky;
  top: 6.25rem;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.release-desk-image-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(196, 154, 85, 0.5);
  border-radius: 8px;
  background: rgba(16, 12, 9, 0.82);
  box-shadow: 0 22px 44px rgba(16, 12, 9, 0.32);
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
}

.release-desk-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.release-desk-image-frame span {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  border: 1px solid rgba(255, 231, 175, 0.44);
  border-radius: 999px;
  background: rgba(16, 12, 9, 0.82);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  opacity: 0;
  padding: 0.45rem 0.7rem;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.release-desk-image-frame:hover img,
.release-desk-image-frame:focus-visible img {
  filter: brightness(1.16);
  transform: scale(1.035);
}

.release-desk-image-frame:hover span,
.release-desk-image-frame:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.release-desk-image-frame:focus-visible {
  outline: 3px solid rgba(196, 154, 85, 0.44);
  outline-offset: 3px;
}

.release-desk-brief {
  border: 1px solid rgba(196, 154, 85, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 25, 17, 0.9), rgba(20, 15, 12, 0.94)),
    var(--espresso);
  color: var(--ivory);
  padding: 1rem;
  box-shadow: 0 14px 28px rgba(16, 12, 9, 0.22);
}

.release-desk-brief .eyebrow {
  color: var(--brass);
  margin-bottom: 0.45rem;
}

.release-desk-brief h2 {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.release-desk-comment {
  border-top: 1px solid rgba(196, 154, 85, 0.28);
  color: rgba(255, 248, 236, 0.82);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin: 0;
  padding-top: 0.75rem;
  text-transform: uppercase;
}

.release-cases {
  min-width: 0;
}

.unfinished-business-page {
  display: grid;
  gap: 1.2rem;
}

.unfinished-business-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.unfinished-business-hero .release-monitoring-desk {
  position: static;
  grid-template-areas:
    "art brief"
    "art rhythm";
  grid-template-columns: minmax(0, 2.85fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: start;
}

.unfinished-business-hero .release-desk-image-frame {
  grid-area: art;
}

.unfinished-business-hero .release-desk-image-frame img {
  width: 100%;
  height: auto;
  max-height: 608px;
  object-fit: contain;
  object-position: center top;
}

.unfinished-business-hero .release-desk-brief {
  grid-area: brief;
  align-self: start;
  height: auto;
  padding: 0.9rem;
}

.unfinished-business-hero .release-desk-brief h2 {
  margin-bottom: 0.7rem;
}

.investigation-summary-grid {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.investigation-count {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid rgba(196, 154, 85, 0.38);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.08);
  color: var(--ivory);
  padding: 0.55rem 0.65rem;
}

.investigation-count span {
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.investigation-count strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.release-desk-rhythm {
  grid-area: rhythm;
  display: grid;
  gap: 0.6rem;
  border: 1px solid rgba(196, 154, 85, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 25, 17, 0.82), rgba(20, 15, 12, 0.9)),
    var(--espresso);
  color: var(--ivory);
  padding: 0.85rem;
  box-shadow: 0 12px 24px rgba(16, 12, 9, 0.18);
}

.release-desk-rhythm div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  border-top: 1px solid rgba(196, 154, 85, 0.2);
  padding-top: 0.55rem;
}

.release-desk-rhythm div:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.release-desk-rhythm span {
  color: rgba(255, 248, 236, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.release-desk-rhythm strong {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.unfinished-business-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.series-bucket-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  border: 1px solid rgba(196, 154, 85, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.88), rgba(226, 206, 176, 0.72)),
    var(--panel);
  padding: clamp(0.9rem, 2vw, 1.15rem);
  box-shadow: 0 18px 36px rgba(16, 12, 9, 0.18);
}

.series-bucket-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(112, 77, 52, 0.18);
  padding-bottom: 0.85rem;
}

.series-bucket-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.series-bucket-header p:not(.eyebrow) {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.series-bucket-header > strong {
  display: grid;
  min-width: 58px;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(132, 51, 34, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.74);
  color: var(--ember-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.series-bucket-card .thread-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1rem;
}

.unfinished-business-layout > .series-bucket-card > .thread-board,
.unfinished-business-layout > .series-bucket-card > .thread-more,
.unfinished-business-layout > .series-bucket-card > .thread-more-toggle {
  min-width: 0;
}

.thread-card {
  display: grid;
  grid-template-columns: clamp(92px, 24%, 142px) minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 1.2rem);
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.1rem);
  border: 1px solid rgba(112, 77, 52, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  align-items: start;
}

.thread-card-cover,
.thread-card-copy {
  min-width: 0;
}

.thread-card-cover .thread-cover {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.thread-card-copy h2 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  line-height: 1.12;
}

.monitoring-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.85rem;
}

.monitoring-facts div {
  min-width: 0;
}

.monitoring-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.monitoring-facts dd {
  margin: 0.1rem 0 0;
  overflow-wrap: break-word;
}

.thread-card-actions,
.release-bucket-actions,
.series-status-review header,
.series-status-confirm > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.series-status-review {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(196, 154, 85, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.96), rgba(235, 218, 188, 0.92));
}

.series-status-review header {
  justify-content: space-between;
}

.series-status-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.series-status-fields label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-weight: 800;
}

.series-status-fields .wide {
  grid-column: 1 / -1;
}

.series-draft-gap-panel {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid rgba(112, 77, 52, 0.24);
  border-radius: 0.75rem;
  background: rgba(255, 250, 242, 0.82);
}

.series-draft-gap-panel p {
  margin: 0;
}

.brooks-series-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  border-block: 1px solid rgba(112,77,52,.2);
  margin:.65rem 0;
  padding:.65rem 0;
}
.brooks-series-health>div{display:grid;gap:.12rem}.brooks-series-health small{color:var(--muted);font-weight:700}

.brooks-series-health.attention {
  border-color: rgba(154, 92, 42, 0.48);
}

.brooks-book-combobox {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.brooks-book-combobox input {
  width: 100%;
  min-height: 48px;
}

.brooks-book-results {
  display: grid;
  max-height: min(52vh, 430px);
  overflow: auto;
  border: 1px solid rgba(112, 77, 52, 0.34);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(32, 24, 19, 0.18);
}

.brooks-book-results button {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(112, 77, 52, 0.14);
  background: transparent;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  text-align: left;
}

.brooks-book-results button:hover,
.brooks-book-results button.active,
.brooks-book-results button:focus-visible {
  background: rgba(196, 154, 85, 0.2);
  outline: 2px solid rgba(126, 47, 34, 0.5);
  outline-offset: -2px;
}

.brooks-book-results small {
  color: var(--muted);
}

.brooks-book-no-results {
  margin: 0;
  padding: 0.85rem;
  color: var(--muted);
}

.series-case-resolution,
.brooks-case-detail {
  display: grid;
  gap: 1rem;
}

.series-case-resolution {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(126, 47, 34, 0.3);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.94);
}

.series-case-resolution > div {
  display: grid;
  gap: 0.55rem;
}

.case-resolution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.case-reading-targets {
  display: grid;
  gap: 0.8rem;
}

.case-reading-targets label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(112, 77, 52, 0.22);
  border-radius: 7px;
  background: var(--surface);
}

.case-reading-targets small {
  color: var(--muted);
}

.case-reading-targets select {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.thread-more {
  display: grid;
  gap: 0.85rem;
}

.thread-more summary {
  cursor: pointer;
  color: var(--ember-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.thread-more[open] summary {
  margin-bottom: 0.85rem;
}

.thread-more-toggle {
  justify-self: start;
  margin-top: 0.85rem;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 8, 6, 0.86);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  width: min(94vw, 1500px);
  max-height: 92vh;
  border: 1px solid rgba(196, 154, 85, 0.52);
  border-radius: 10px;
  background: rgba(18, 13, 10, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.56);
  padding: 0.8rem;
}

.lightbox-panel img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 4.8rem);
  border-radius: 7px;
  object-fit: contain;
}

.lightbox-caption {
  display: grid;
  gap: 0.15rem;
  color: var(--ivory);
  padding: 0 0.2rem 0.2rem;
  text-align: center;
}

.lightbox-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.lightbox-caption span {
  color: rgba(255, 244, 220, 0.72);
  font-size: 1rem;
}

.lightbox-close {
  justify-self: end;
  min-height: 40px;
  border: 1px solid rgba(196, 154, 85, 0.42);
  border-radius: 7px;
  background: rgba(255, 248, 236, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 0.45rem 0.75rem;
}

.thread-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.thread-card {
  position: relative;
  display: block;
  border: 1px solid rgba(112, 77, 52, 0.2);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.82);
  min-width: 0;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 24px rgba(64, 48, 36, 0.08);
}

.thread-card-front {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 178px;
  padding: 0.85rem;
}

.thread-cover {
  aspect-ratio: 3 / 4.15;
  border-radius: 7px;
}

.thread-card-copy {
  min-width: 0;
}

.thread-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.08;
}

.thread-card-back {
  display: none;
}

.countdown-badge {
  display: grid;
  align-content: center;
  width: min(100%, 18rem);
  min-height: 6.25rem;
  margin-top: 0.85rem;
  border: 3px double #a96e19;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 251, 226, 0.96), rgba(226, 179, 80, 0.92)),
    var(--paper);
  color: #572313;
  box-shadow: 0 7px 16px rgba(94, 55, 18, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1;
  padding: 0.8rem 1rem 0.9rem;
  text-align: center;
}

.countdown-badge.is-pending {
  background: linear-gradient(135deg, rgba(255, 251, 226, 0.96), rgba(221, 202, 159, 0.88));
  color: #6d5137;
  font-size: 1.15rem;
  line-height: 1.15;
}

.countdown-badge::before {
  content: "Countdown to release";
  margin-bottom: 0.4rem;
  color: #8f3b2e;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gold-seal-progress {
  margin: 0.9rem 0 0;
  border-top: 1px solid rgba(143, 59, 46, 0.18);
  padding-top: 0.75rem;
  color: var(--wine);
  line-height: 1.45;
}

.gold-seal-achievement {
  width: min(520px, calc(100vw - 2rem));
  border: 2px solid #c69a3c;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff8df, #ead19a);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(24, 13, 7, 0.55);
  padding: 1.6rem;
  text-align: center;
}

.gold-seal-achievement::backdrop {
  background: rgba(17, 10, 6, 0.72);
  backdrop-filter: blur(3px);
}

.gold-seal-achievement-star {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  margin: 0 auto 0.75rem;
  border: 4px double #8b5c16;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3a8, #d59a24 72%);
  color: #4a260e;
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(74, 38, 14, 0.28);
}

.gold-seal-achievement h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
}

.gold-seal-achievement .primary-link {
  margin-top: 0.75rem;
}

.dropped-section {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(143, 59, 46, 0.18);
  border-radius: 8px;
  background: rgba(255, 246, 232, 0.74);
  padding: 1rem;
}

.hall-side-panel {
  position: sticky;
  top: 112px;
  background:
    linear-gradient(180deg, rgba(35, 24, 17, 0.92), rgba(18, 13, 10, 0.94)),
    var(--espresso);
  border-color: rgba(196, 154, 85, 0.3);
  color: var(--ivory);
  box-shadow: 0 14px 28px rgba(16, 12, 9, 0.22);
}

.hall-side-panel .eyebrow {
  color: var(--brass);
}

.dropped-list {
  display: grid;
  gap: 0.65rem;
}

.dropped-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.dropped-cover {
  aspect-ratio: 3 / 4.15;
  border-radius: 6px;
  opacity: 0.76;
}

.dropped-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.08;
}

.dropped-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.hall-side-panel .dropped-card p {
  color: rgba(255, 244, 220, 0.68);
}

.thread-table {
  display: grid;
  gap: 0.45rem;
}

.thread-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid rgba(112, 77, 52, 0.2);
  border-radius: 8px;
  background: rgba(246, 235, 219, 0.56);
  padding: 0.7rem;
}

.thread-head {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  padding-block: 0;
  text-transform: uppercase;
}

.thread-row strong {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.compact-thread-table .thread-row {
  grid-template-columns: 1fr;
}

.compact-thread-table .thread-head {
  display: none;
}

.library-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 235px) minmax(0, 1fr) minmax(300px, 410px);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.library-layout::before {
  content: "";
  display: block;
  grid-column: 2 / 4;
  height: 44px;
  border: 1px solid rgba(196, 154, 85, 0.36);
  border-radius: 8px 8px 3px 3px;
  background:
    linear-gradient(90deg, rgba(255, 231, 175, 0.2), transparent 18%, rgba(255, 231, 175, 0.16) 42%, transparent 68%),
    linear-gradient(180deg, #9b6337 0%, #74411f 42%, #4d2a17 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 196, 0.38),
    inset 0 -8px 12px rgba(39, 19, 10, 0.28),
    0 10px 18px rgba(16, 12, 9, 0.18);
}

.filter-panel {
  container-type: inline-size;
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.7rem;
  max-height: calc(100vh - 13rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.88);
  box-shadow: var(--shadow);
  scrollbar-gutter: stable;
}

.shelf-inspector {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0;
  min-width: 0;
  border: 1px solid rgba(196, 154, 85, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(35, 24, 17, 0.94), rgba(18, 13, 10, 0.96)),
    var(--espresso);
  box-shadow: 0 20px 44px rgba(16, 12, 9, 0.34);
  overflow: hidden;
}
.shelf-inspector-shell {
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
}

.shelf-inspector figure {
  margin: 0;
  padding: 0.52rem 0.52rem 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(196, 154, 85, 0.18), transparent 18%),
    rgba(14, 10, 8, 0.82);
}

.shelf-inspector img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: contain;
  border: 1px solid rgba(196, 154, 85, 0.36);
  border-radius: 6px;
  background: #120e0b;
}

.shelf-inspector-caption {
  color: var(--ivory);
  padding: 0.72rem 0.9rem 0.9rem;
}

.shelf-inspector-caption .eyebrow {
  color: var(--brass);
  margin-bottom: 0.35rem;
}

.shelf-inspector-caption h2 {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.45vw, 1.45rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.shelf-inspector-caption strong {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 0.98rem;
  color: rgba(255, 248, 236, 0.88);
}

.audit-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0.8rem;
  padding: 0;
  list-style: none;
}

.audit-list li {
  color: rgba(255, 248, 236, 0.78);
  font-size: 0.88rem;
}

.audit-list span {
  color: var(--brass);
  font-weight: 900;
}

.inspector-observation {
  border-top: 1px solid rgba(196, 154, 85, 0.28);
  margin: 0;
  color: rgba(255, 248, 236, 0.84);
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.45;
  padding-top: 0.8rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--ember-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

.filter-panel h1 {
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 700;
  line-height: 1.12;
}

.filter-panel .tagline-controls select,
.filter-panel .tagline-controls input {
  width: 100%;
}

.shelf-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.55rem;
}

.clear-filters-button {
  min-width: 108px;
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
}

@container (max-width: 340px) {
  .shelf-search-row {
    grid-template-columns: 1fr;
  }

  .clear-filters-button {
    width: 100%;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span,
.multi-field legend {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.96), rgba(229, 211, 181, 0.92)),
    var(--panel);
  color: var(--ink);
  padding: 0.6rem 0.7rem;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ember-dark) 50%),
    linear-gradient(135deg, var(--ember-dark) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 244, 220, 0.96), rgba(229, 211, 181, 0.92));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.72);
  cursor: pointer;
  padding-right: 2.25rem;
}

.field select option {
  background: #f4e5c8;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.book-card:focus-visible,
.back-link:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid rgba(181, 72, 49, 0.28);
  outline-offset: 2px;
}

.filter-grid {
  display: grid;
  gap: 0.55rem;
}

.reading-data-panel {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(67, 56, 202, 0.22);
  border-radius: 8px;
  background: rgba(245, 243, 255, 0.74);
  padding: 0.8rem;
}

.reading-data-panel h2 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.reading-data-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.reading-data-actions {
  display: grid;
  gap: 0.45rem;
}

.reading-data-message {
  border-top: 1px solid rgba(67, 56, 202, 0.16);
  padding-top: 0.55rem;
  font-weight: 800;
}

.multi-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.multi-field > div {
  display: grid;
  gap: 0.35rem;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.45rem;
}

.multi-field label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
  font-size: 0.82rem;
}

.multi-field input {
  width: 16px;
  min-height: 16px;
  margin-top: 0.12rem;
}

.boolean-filter-field{min-width:0;border:0;margin:0;padding:0}
.boolean-filter-field legend{margin-bottom:.35rem;color:var(--muted);font-size:.8rem;font-weight:800}
.boolean-filter-field label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:.55rem;align-items:start;border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.82);padding:.65rem;cursor:pointer}
.boolean-filter-field input{width:18px;min-height:18px;margin:.12rem 0 0}
.boolean-filter-field span{display:grid;gap:.18rem}
.boolean-filter-field strong{color:var(--ink);font-size:.86rem}
.boolean-filter-field small{color:var(--muted);font-size:.74rem;line-height:1.35}
.boolean-filter-field input:focus-visible{outline:3px solid rgba(181,72,49,.28);outline-offset:2px}

.ghost-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.ghost-button:disabled {
  cursor: default;
  opacity: 0.46;
}

.library-results {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 0;
  align-content: start;
  max-height: calc(100vh - 18rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.library-results::after {
  content: "";
  display: block;
  height: 12px;
  order: 2;
  margin: 0 1.1rem;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(36, 20, 11, 0.7), rgba(36, 20, 11, 0));
}

.shelf-command-header {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  gap: 0;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(196, 154, 85, 0.28);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, rgba(38, 25, 16, 0.98), rgba(24, 17, 12, 0.98)),
    var(--espresso);
  box-shadow:
    0 14px 28px rgba(13, 9, 6, 0.34),
    inset 0 1px 0 rgba(255, 244, 220, 0.08);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.82rem 0.58rem;
}

.alphabet-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  border-block: 1px solid rgba(196, 154, 85, 0.18);
  overflow-x: hidden;
  padding: 0.65rem 0.82rem 0.72rem;
  background: rgba(13, 9, 6, 0.18);
  scrollbar-width: thin;
}

.alphabet-jump-button {
  flex: 0 0 auto;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid rgba(196, 154, 85, 0.34);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.96), rgba(229, 211, 181, 0.9)),
    var(--panel);
  color: var(--ember-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.alphabet-jump-button.disabled,
.alphabet-jump-button:disabled {
  cursor: default;
  border-color: rgba(196, 154, 85, 0.12);
  background: rgba(20, 15, 12, 0.22);
  color: rgba(255, 244, 220, 0.3);
  opacity: 1;
}

.alphabet-jump-button.active {
  border-color: rgba(255, 226, 160, 0.82);
  background:
    linear-gradient(180deg, rgba(196, 154, 85, 0.98), rgba(139, 82, 38, 0.96)),
    var(--gold);
  color: #fff8ec;
  box-shadow:
    0 0 0 2px rgba(196, 154, 85, 0.18),
    0 8px 16px rgba(8, 5, 3, 0.24);
}

.results-header h2 {
  flex: 0 0 auto;
  color: #f7f0e6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  white-space: nowrap;
}

.results-controls {
  display: grid;
  grid-template-columns: auto minmax(150px, 180px) minmax(0, 1fr);
  align-items: end;
  justify-content: flex-end;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}

.gold-seal-shelf-filter {
  align-self: end;
  display: inline-flex;
  min-height: 42px;
  gap: .42rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 184, 70, .68);
  border-radius: 999px;
  background: rgba(255, 235, 166, .08);
  color: #f7dda0;
  padding: .45rem .72rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.gold-seal-shelf-filter > span { color: #f2c64e; font-size: 1.05rem; text-shadow: 0 0 8px rgba(244,198,64,.55); }
.gold-seal-shelf-filter b { display: grid; min-width: 1.45rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: rgba(255,243,201,.14); font-size: .72rem; }
.gold-seal-shelf-filter:hover,.gold-seal-shelf-filter:focus-visible { background: rgba(255, 235, 166, .16); }
.gold-seal-shelf-filter.active { border-color: #ffe68b; background: linear-gradient(180deg,#f6d875,#c38c22); color: #3f2807; box-shadow: 0 0 14px rgba(242,198,75,.46); }
.gold-seal-shelf-filter.active > span { color: #5a3705; text-shadow: none; }
.gold-seal-shelf-filter.active b { background: rgba(69,42,4,.14); }

.results-controls .field {
  min-width: 0;
}

.results-controls .field span {
  color: rgba(247, 240, 230, 0.72);
}

.archive-census {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
  color: #f7f0e6;
  text-align: right;
}

.archive-census strong {
  color: #f6c982;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.1;
}

.archive-census span {
  color: rgba(247, 240, 230, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.book-grid {
  order: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  border-top: 1px solid rgba(196, 154, 85, 0.18);
  padding-top: 1rem;
}

.book-card {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 11rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(64, 48, 36, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.book-card-cover-link,
.book-card-info-link,
.book-card-rating-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.book-card-cover-link { position: relative; }

.book-card-info-link {
  height: 100%;
}

.book-card-cover-link:focus-visible,
.book-card-info-link:focus-visible,
.book-card-rating-link:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: -3px;
}

.book-card-info-link:hover h3,
.book-card-info-link:focus-visible h3 {
  color: var(--ember-dark);
  text-decoration: underline;
}

.book-card-primary {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.book-card-dossier {
  display: grid;
  align-content: end;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(244, 232, 207, 0.48), rgba(255, 248, 232, 0.82));
  padding: 0.55rem 0.65rem 0.65rem;
}

.shelf-personal-signals {
  display: grid;
  gap: 0.3rem;
}

.shelf-personal-signals > div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.4rem;
}

.shelf-personal-signals span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shelf-personal-signals strong {
  font-size: 0.72rem;
  line-height: 1.2;
}

.book-card-gallery {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid rgba(107, 76, 47, 0.18);
  padding-top: 0.5rem;
}

.book-card-gallery strong {
  font-family: Georgia, "Times New Roman", serif;
}

.book-card-gallery span {
  color: var(--muted);
  font-size: 0.78rem;
}

.book-card-gallery > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.personal-rating-readout {
  display: grid;
  gap: 0.4rem;
}

.book-card-dossier > .personal-rating-readout {
  gap: 0.28rem;
}

.book-card-dossier > .personal-rating-readout > div {
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.35rem;
}

.personal-rating-readout > div {
  display: grid;
  gap: 0.1rem;
}

.personal-rating-readout span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.personal-rating-readout strong {
  font-size: 0.72rem;
  line-height: 1.2;
}

.book-card-dossier .mini-action {
  min-height: 1.85rem;
  padding: 0.32rem 0.48rem;
  font-size: 0.7rem;
}

.personal-rating-intake {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.personal-rating-control {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 248, 232, 0.65);
  padding: 0.8rem;
}

.personal-rating-control legend {
  padding: 0 0.3rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.personal-rating-control legend span {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
}

.rating-unrated label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.rating-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(2.5rem, 1fr));
  align-items: end;
  margin-top: 0.55rem;
  background: linear-gradient(var(--line), var(--line)) center 1.1rem / calc(100% - 3rem) 1px no-repeat;
}

.rating-scale label {
  display: grid;
  justify-items: center;
  cursor: pointer;
}

.rating-scale input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rating-emoji {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--panel);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1.35rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.rating-scale label.selected .rating-emoji,
.rating-scale input:focus-visible + .rating-emoji {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(107, 76, 47, 0.2);
}

.rating-marker {
  min-height: 1rem;
  color: var(--gold-deep, #8d642f);
  font-size: 0.72rem;
}

.rating-phrase {
  min-height: 2.4em;
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.personal-ratings-panel {
  grid-column: span 2;
}

.personal-ratings-panel > .personal-rating-readout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-ratings-editor,
.personal-ratings-review {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.personal-ratings-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-rating-save-status {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 6px;
  background: rgba(255, 248, 232, 0.72);
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  font-weight: 800;
}

.personal-rating-save-status.saved {
  color: #315c3c;
}

.personal-rating-save-status.failed {
  color: #8a2f25;
}

.personal-ratings-editor > p,
.personal-ratings-editor > .series-edit-errors,
.personal-ratings-editor > .series-edit-actions {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .repository-intake-drawer-front,
  .brooks-work-route > header {
    align-items: stretch;
    flex-direction: column;
  }

  .repository-work-launchers {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  .personal-rating-intake,
  .personal-ratings-editor,
  .personal-ratings-panel > .personal-rating-readout {
    grid-template-columns: 1fr;
  }

  .personal-ratings-panel {
    grid-column: auto;
  }
}

.book-cover {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  padding: 1rem;
  color: white;
  background: #2c2926;
}

.book-cover.archive-image {
  cursor: pointer;
}

.book-cover::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(135deg, #544236, #1f2e37);
}

.book-cover::after {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  content: "";
}

.book-cover img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover.case-file-complete,.gallery-hero-cover.case-file-complete{box-shadow:inset 0 0 0 5px #e8c85f,inset 0 0 0 9px #6d460b,0 0 25px rgba(241,199,73,.72)}
.completed-file-frame{position:absolute;inset:6px;z-index:3;border:3px double #ffe99a;outline:2px solid rgba(97,59,7,.94);outline-offset:2px;box-shadow:inset 0 0 15px rgba(251,219,104,.35);pointer-events:none}
.completed-file-seal{position:absolute;right:.55rem;top:.55rem;z-index:5;display:grid;place-items:center;width:2.65rem;aspect-ratio:1;border:3px double #fff1a8;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff1a2 0 13%,#e9bd3e 42%,#9a6211 100%);box-shadow:0 3px 10px rgba(0,0,0,.55),0 0 0 3px rgba(74,43,4,.82),0 0 16px rgba(255,211,79,.8);color:#4a2d04;font-family:Georgia,"Times New Roman",serif;font-size:1.45rem;font-weight:900;line-height:1;pointer-events:none;text-shadow:0 1px rgba(255,255,255,.55)}
.completed-file-ribbon{position:absolute;left:50%;bottom:.75rem;z-index:5;min-width:76%;transform:translateX(-50%);border-top:2px solid #fff0a1;border-bottom:2px solid #7b4c08;background:linear-gradient(90deg,#8e5810,#e0b338 16%,#ffe589 50%,#e0b338 84%,#8e5810);box-shadow:0 3px 9px rgba(0,0,0,.52),0 0 13px rgba(244,198,64,.5);color:#3e2604;padding:.28rem .4rem;text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:.68rem;font-weight:900;letter-spacing:.1em;line-height:1;text-transform:uppercase;white-space:nowrap;pointer-events:none;text-shadow:0 1px rgba(255,255,255,.48)}
.book-card.case-file-complete{border:2px solid #d5ab38;background:linear-gradient(180deg,#fff8d8,#f5e5b7);box-shadow:0 0 0 3px rgba(91,55,7,.7),0 0 24px rgba(235,188,53,.58)}
.book-card.case-file-complete:hover{box-shadow:0 0 0 3px rgba(91,55,7,.8),0 0 34px rgba(247,201,65,.82);transform:translateY(-4px)}
.gallery-hero-cover{position:relative;isolation:isolate}
.gallery-hero-cover.case-file-complete{overflow:visible}
.gallery-hero-cover .completed-file-frame{inset:3px}
.gallery-hero-cover .completed-file-seal{right:-.45rem;top:-.45rem;width:1.65rem;border-width:2px;font-size:.85rem}
.gallery-hero-cover .completed-file-ribbon{display:none}
.gallery-complete-file-label{display:inline-flex;align-items:center;gap:.3rem;border:1px solid #c89728;border-radius:999px;background:#f7dda0;color:#5a3905;padding:.22rem .55rem;font-size:.7rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 0 11px rgba(226,178,52,.38)}

.book-cover.archive-image:hover img,
.book-cover.archive-image:focus-visible img {
  box-shadow: 0 0 28px rgba(196, 154, 85, 0.38);
}

.cover-fallback {
  position: relative;
  z-index: 0;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.book-cover:not(.cover-missing)::before,
.book-cover:not(.cover-missing)::after,
.book-cover:not(.cover-missing) .cover-fallback {
  display: none;
}

.book-cover.cover-missing .image-inspect-cue {
  display: none;
}

.cover-fallback strong {
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.02;
}

.cover-fallback span,
.cover-fallback em {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-cover {
  aspect-ratio: 3 / 4.15;
}

.large-cover {
  width: min(300px, 100%);
  aspect-ratio: 3 / 4.15;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-cover[data-theme="storm"]::before {
  background: linear-gradient(145deg, #111824, #3b4d67 52%, #c3c8cd);
}

.book-cover[data-theme="rose"]::before {
  background: linear-gradient(145deg, #3f141d, #9b2638 52%, #e8b1a4);
}

.book-cover[data-theme="editorial"]::before {
  background: linear-gradient(145deg, #17494a, #e7c47b);
}

.book-cover[data-theme="lab"]::before {
  background: linear-gradient(145deg, #244a62, #f07f6e);
}

.book-cover[data-theme="heather"]::before {
  background: linear-gradient(145deg, #314438, #7a668b 55%, #c79b3d);
}

.book-cover[data-theme="shore"]::before {
  background: linear-gradient(145deg, #1e6d7a, #f7ba64 58%, #f6e3bd);
}

.book-cover[data-theme="regency"]::before {
  background: linear-gradient(145deg, #526b53, #d8c48f);
}

.book-cover[data-theme="office"]::before {
  background: linear-gradient(145deg, #36384f, #9d6eb3 55%, #f0b8aa);
}

.book-cover[data-theme="moon"]::before {
  background: linear-gradient(145deg, #202442, #62568a 58%, #d6d2de);
}

.card-body {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 100%;
  padding: 0.75rem;
}

.vault-flag {
  display: inline-flex;
  width: fit-content;
  margin: 0 0.25rem 0.3rem 0;
  border-radius: 999px;
  background: rgba(36, 33, 31, 0.88);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.22rem 0.45rem;
  text-transform: uppercase;
}

.vault-badge {
  background: rgba(132, 51, 34, 0.92);
}

.dnf-badge {
  background: #4338ca;
}

.card-body h3 {
  font-size: 1rem;
  line-height: 1.2;
  min-block-size: 2.4em;
  margin: 0;
}

.card-body p,
.byline,
.summary {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.42;
}

dl {
  margin: 0;
}

.card-body dl,
.detail-panel dl {
  display: grid;
  gap: 0.65rem;
}

.card-body dl div,
.detail-panel dl div {
  display: grid;
  gap: 0.1rem;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-row.compact {
  align-self: end;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(68, 106, 88, 0.25);
  border-radius: 999px;
  background: rgba(68, 106, 88, 0.1);
  color: #31503f;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
}

.book-detail {
  display: grid;
  gap: 1.25rem;
  max-width: var(--archive-detail-wide);
  margin: 0 auto;
}

.back-link,
.primary-link {
  justify-self: start;
  border-radius: 7px;
  color: var(--ember-dark);
  font-weight: 800;
}

.back-link,
.return-link {
  border: 1px solid rgba(196, 154, 85, 0.58);
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.98), rgba(224, 197, 154, 0.94));
  box-shadow: 0 8px 18px rgba(20, 13, 9, 0.18);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.book-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.book-detail-nav-bottom {
  justify-content: flex-start;
  margin-top: 1rem;
  border-top: 1px solid rgba(196, 154, 85, 0.32);
  padding-top: 1rem;
}

.book-card.shelf-return-highlight {
  outline: 3px solid rgba(238, 180, 83, 0.86);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(238, 180, 83, 0.16);
}

.book-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.book-step-nav > span:not(.mini-action) {
  color: rgba(255, 244, 220, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
}

.book-step-nav .disabled {
  cursor: default;
  opacity: 0.45;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  column-gap: clamp(1.4rem, 4vw, 3rem);
  row-gap: 0.8rem;
  align-items: start;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.detail-intro {
  display: grid;
  gap: 0.85rem;
}

.book-detail:not(.series-detail) .detail-hero > .detail-intro {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.kindle-unlimited-badge {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2.65rem 1fr;
  width: min(300px, 100%);
  grid-column: 1;
  grid-row: 2;
  align-items: center;
  gap: 0.1rem 0.7rem;
  border: 2px solid #c39738;
  border-radius: 12px;
  background: radial-gradient(circle at 90% 10%, rgba(112, 203, 244, 0.3), transparent 25%), linear-gradient(135deg, #0b2e4a, #17658e 64%, #0f496c);
  color: #fff;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 7px 18px rgba(20, 55, 82, 0.24);
  text-transform: uppercase;
}
.kindle-unlimited-badge::after { content: "✦"; position: absolute; right: 0.65rem; top: 0.25rem; color: #fff2b0; font-size: 1rem; }
.ku-badge-mark { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 2px solid #ffe9a1; border-radius: 50%; background: #082d49; color: #ffd66d; font-weight: 900; letter-spacing: -0.04em; box-shadow: inset 0 0 0 3px rgba(255,255,255,.08); }
.kindle-unlimited-badge strong { letter-spacing: 0.055em; line-height: 1; }
.kindle-unlimited-badge small { font-size: 0.62rem; opacity: 0.82; letter-spacing: 0.025em; }
.detail-hero.has-ku .book-purchase-options { grid-row: 3; }
.book-detail:not(.series-detail) .detail-hero.has-ku > .detail-intro { grid-row: 1 / span 3; }
.owner-edit-checkbox { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; }
.owner-edit-checkbox input { width: 1.15rem; height: 1.15rem; }

.shelf-symbol-legend { display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; padding: 0.45rem 1rem 0.6rem; color: #f5dfaa; font-size: 0.75rem; }
.shelf-ku-medallion { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem; border: 2px solid #f2c760; border-radius: 50%; background: #082d49; color: #ffd66d; font-family: Georgia, "Times New Roman", serif; font-size: 0.72rem; font-weight: 900; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.3), inset 0 0 0 2px rgba(255,255,255,.08); }
.shelf-status-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.shelf-status-badges .shelf-ku-medallion { width: 1.6rem; height: 1.6rem; flex-basis: 1.6rem; border-width: 1px; font-size: 0.58rem; box-shadow: 0 2px 5px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.08); }

.book-purchase-options {
  display: grid;
  width: min(300px, 100%);
  grid-column: 1;
  grid-row: 2;
  gap: 0.55rem;
  align-self: start;
  justify-self: start;
  border: 1px solid #b38a42;
  border-radius: 10px;
  background: linear-gradient(145deg, #fffaf0, #f7e8c5);
  padding: 0.75rem 0.9rem;
  box-shadow: 0 6px 16px rgba(72, 48, 25, 0.12);
}

.book-purchase-heading { display: grid; gap: 0.15rem; }
.book-purchase-options p,
.book-purchase-options small { margin: 0; }
.book-purchase-disclosure { color: #684c38; font-size: 0.72rem; line-height: 1.3; text-align: center; }
.affiliate-link-label { font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.book-purchase-links { display: grid; gap: 0.45rem; }
.book-purchase-link { width: 100%; border: 1px solid #2c180f; border-radius: 8px; background: #3d2115; color: #fff3cf; padding: 0.78rem 1rem; font-size: clamp(.86rem, 1.35vw, .98rem); font-weight: 900; line-height: 1.3; text-align: center; text-decoration: none; box-shadow: 0 4px 10px rgba(48, 29, 18, 0.2); }
.book-purchase-series-link { background: #7a4a20; border-color: #5a3218; }
.book-purchase-link:hover,
.book-purchase-link:focus-visible { background: #6b3822; color: #fff; }

@media (max-width: 760px) {
  .book-detail:not(.series-detail) .detail-hero > .detail-intro,
  .book-purchase-options,
  .kindle-unlimited-badge,
  .detail-hero.has-ku .book-purchase-options,
  .book-detail:not(.series-detail) .detail-hero.has-ku > .detail-intro { grid-column: auto; grid-row: auto; }
}

.detail-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.summary {
  max-width: 68ch;
  font-size: 1.05rem;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 620px;
}

.quick-stat,
.character-spotlight > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(241, 238, 232, 0.72);
  padding: 0.75rem;
}

.quick-stat span,
.character-spotlight span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-stat strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.character-spotlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 620px;
}

.character-spotlight strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  align-items: start;
  gap: 1rem;
}

.detail-panel,
.empty-state,
.detail-empty {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(64, 48, 36, 0.07);
}

.reason-panel {
  grid-column: 1 / -1;
  border-color: rgba(68, 106, 88, 0.28);
  background: #fbf8ef;
}

.reason-panel dd {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.28;
}

.detail-panel h2 {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

.acquisition-record-panel {
  grid-column: span 2;
  border-color: rgba(132, 51, 34, 0.28);
  background: #fbf8ef;
}

.acquisition-record-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(112, 77, 52, 0.2);
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
}

.acquisition-record-heading h2 {
  margin: 0.15rem 0 0;
}

.acquisition-record-heading > span {
  border: 1px solid rgba(132, 51, 34, 0.3);
  color: var(--ember-dark);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
}

.acquisition-record-panel dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.acquisition-record-wide {
  grid-column: 1 / -1;
}

.acquisition-record-wide dd {
  line-height: 1.5;
}
.acquisition-record-panel dd a{color:#6f2f20;text-decoration-thickness:1px;text-underline-offset:3px;font-weight:700}
.acquisition-record-panel dd a:hover,.acquisition-record-panel dd a:focus-visible{color:#a24d2e;text-decoration-thickness:2px}
.acquisition-record-links{display:grid;gap:.25rem}
.acquisition-record-panel.is-complete{border-color:#b78a2b;background:linear-gradient(145deg,#fffdf5,#fbf3d8);box-shadow:0 0 0 2px rgba(196,151,48,.16),0 0 24px rgba(218,174,67,.28)}
.acquisition-record-panel.is-complete .acquisition-record-heading>span{border-color:#b78a2b;background:#fff3bd;color:#6c4b06;box-shadow:0 0 14px rgba(218,174,67,.35)}
.repository-source-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;border:1px solid rgba(112,77,52,.28);border-radius:7px;padding:.75rem}
.repository-source-choices legend{padding:0 .3rem;font-weight:800}
.repository-source-choices>p{grid-column:1/-1;margin:0 0 .2rem;color:#6b5542;font-size:.8rem}
.repository-source-choices label{display:flex;align-items:center;gap:.4rem}
.repository-source-choices input{width:auto}

.dnf-detail-panel {
  border-color: rgba(67, 56, 202, 0.28);
  background: #f5f3ff;
}

.reading-status-panel {
  border-color: rgba(67, 56, 202, 0.28);
  background: #f5f3ff;
}

.panel-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.panel-heading-row h2 {
  margin-bottom: 0;
}

.series-details-panel {
  grid-column: span 2;
}

.series-details-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.series-details-editor,
.series-edit-review {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  margin-top: 1rem;
  padding-top: 1rem;
}

.series-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.series-edit-grid .field {
  display: grid;
  gap: 0.35rem;
}

.series-edit-grid input,
.series-edit-grid select {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.65rem;
}

.series-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.series-edit-errors,
.series-edit-error {
  border-left: 3px solid var(--ember-dark);
  background: rgba(132, 51, 34, 0.07);
  padding: 0.65rem 0.75rem;
}

.series-edit-errors ul,
.series-edit-affected ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.series-edit-scope {
  border-left: 3px solid rgba(67, 56, 202, 0.34);
  padding-left: 0.65rem;
}

.series-edit-review > dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.series-edit-affected {
  max-height: 13rem;
  overflow-y: auto;
  border-block: 1px solid rgba(112, 77, 52, 0.18);
  padding-block: 0.65rem;
}

.series-edit-affected li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.series-reading-order-panel {
  grid-column: 1 / -1;
}

.series-reading-order-panel > p {
  color: var(--muted);
  font-weight: 800;
}

.series-reading-order-panel ol {
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.series-reading-order-panel a,
.series-reading-order-panel .tracked-reading-order-entry button {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 0.55rem 0;
  text-decoration: none;
}

.series-reading-order-panel .tracked-reading-order-entry button {
  width: 100%;
  border: 0;
  border-top: 1px dashed rgba(67, 56, 202, 0.34);
  background: rgba(67, 56, 202, 0.07);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.series-reading-order-panel .tracked-reading-order-entry em {
  border: 1px solid rgba(67, 56, 202, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #4338ca;
  padding: 0.22rem 0.45rem;
}

.upcoming-releases-editor {
  display: grid;
  gap: 0.75rem;
}

.upcoming-release-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.55fr) minmax(12rem, 1.4fr) minmax(10rem, 0.9fr) auto;
  gap: 0.65rem;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.loose-end-lifecycle-action,
.upcoming-release-preserved-details {
  display: grid;
  gap: .35rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(109, 77, 47, .24);
  border-radius: .85rem;
  background: rgba(255, 250, 240, .72);
}
.loose-end-lifecycle-action .mini-action {
  justify-self: start;
}
.upcoming-release-correction-dialog form {
  display: grid;
  gap: 1rem;
}
.owner-pending-navigation-notice {
  position: fixed;
  z-index: 10020;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(28rem, calc(100vw - 2rem));
  padding: .9rem 1rem;
  border: 1px solid rgba(105, 67, 33, .45);
  border-radius: .8rem;
  background: #fff8e8;
  color: #3d2818;
  box-shadow: 0 12px 34px rgba(45, 29, 18, .22);
  font-weight: 700;
}

.optional-source-details {
  border-top: 1px dashed var(--line);
  padding-top: 0.65rem;
}

.optional-source-details > label {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.upcoming-release-card-list {
  display: grid;
  gap: 0.35rem;
}

.upcoming-release-card-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.5rem;
  border-left: 3px solid rgba(67, 56, 202, 0.34);
  padding-left: 0.5rem;
}

.upcoming-release-card-list span,
.upcoming-release-card-list small {
  color: var(--muted);
  font-size: 0.72rem;
}

.upcoming-release-card-list small {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .upcoming-release-row {
    grid-template-columns: 1fr;
  }
}

.series-reading-order-panel em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.series-reading-order-panel .supplemental-entry a,
.series-validation-books li.supplemental-entry {
  background: rgba(67, 56, 202, 0.05);
}

.mini-action {
  border: 1px solid rgba(67, 56, 202, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  color: #312e81;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.42rem 0.6rem;
}

.mini-action.danger {
  border-color: rgba(132, 51, 34, 0.32);
  color: #843322;
}

.reading-status-editor {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(67, 56, 202, 0.2);
  padding-top: 1rem;
}

.reading-status-editor .field textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  padding: 0.6rem 0.7rem;
}

.reading-status-editor .checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.reading-status-editor .checkbox-field input {
  width: 1rem;
  min-height: 1rem;
}

.journal-panel {
  display: grid;
  gap: 0.75rem;
}

.journal-editor {
  display: grid;
  gap: 0.7rem;
}

.journal-editor .field {
  display: grid;
  gap: 0.38rem;
}

.journal-editor .field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journal-editor textarea {
  width: 100%;
  min-height: 5rem;
  border: 1px solid rgba(112, 77, 52, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.86), rgba(244, 232, 211, 0.74)),
    var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 0.8rem;
  resize: vertical;
}

.memory-jogger-panel textarea {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.45;
}

.ang-verdict-panel {
  border-color: rgba(132, 51, 34, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 246, 232, 0.9), rgba(231, 211, 185, 0.78)),
    var(--panel);
}

.brooks-verdict-panel {
  border-color: rgba(196, 154, 85, 0.34);
  background:
    linear-gradient(135deg, rgba(38, 27, 19, 0.94), rgba(18, 13, 10, 0.96)),
    var(--espresso);
  color: var(--ivory);
}

.brooks-verdict-panel h2 {
  color: var(--brass);
}

.brooks-verdict-panel p {
  margin: 0;
  color: rgba(255, 248, 236, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.34;
}

.dnf-editor-fields {
  display: grid;
  gap: 0.75rem;
}

.dnf-editor-fields.hidden {
  display: none;
}

.reading-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.notes-panel {
  border-color: rgba(181, 72, 49, 0.28);
  background: #fffaf6;
}

.notes-panel dd {
  min-height: 5rem;
  color: var(--muted);
  font-size: 1rem;
}

.metadata-panel {
  grid-column: 1 / -1;
}

.metadata-panel dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brooks-final-assessment-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  grid-column: span 2;
  border-color: rgba(196, 154, 85, 0.34);
  background:
    radial-gradient(circle at 88% 12%, rgba(196, 154, 85, 0.16), transparent 10rem),
    linear-gradient(135deg, rgba(38, 27, 19, 0.95), rgba(18, 13, 10, 0.98)),
    var(--espresso);
  color: var(--ivory);
}

.brooks-final-assessment-panel .eyebrow {
  color: var(--brass);
  margin-bottom: 0;
}

.brooks-final-assessment-panel h2 {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
  line-height: 1.02;
  margin-bottom: 0;
}

.assessment-copy {
  margin: 0;
  color: rgba(255, 248, 236, 0.88);
  font-size: clamp(1.03rem, 1.32vw, 1.18rem);
  font-style: italic;
  font-weight: 750;
  line-height: 1.52;
  white-space: pre-line;
}

.assessment-verdict {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  border-top: 1px solid rgba(196, 154, 85, 0.38);
  padding-top: 0.9rem;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.35;
}

.assessment-verdict span {
  color: var(--brass);
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ang-transcript-link {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.85rem;
  border: 1px solid rgba(196, 154, 85, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, #3b271d, #211610);
  color: #fff8ec;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 7px 18px rgba(37, 23, 15, 0.18);
}

.ang-transcript-link span {
  color: #d7ae70;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ang-transcript-link strong {
  color: #fff8ec;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.ang-transcript-link:hover,
.ang-transcript-link:focus-visible {
  border-color: #e4bd7c;
  background: linear-gradient(135deg, #513321, #2b1a12);
}

.assessment-case-link {
  display: grid;
  gap: 0.25rem;
  align-self: end;
  border: 1px solid rgba(196, 154, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.08);
  color: var(--ivory);
  margin-top: 0.3rem;
  padding: 0.8rem;
}

.assessment-case-link span {
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.assessment-case-link strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-empty {
  display: grid;
  gap: 0.8rem;
  max-width: 680px;
  margin: 3rem auto;
}

.archive-case-viewer {
  display: grid;
  gap: 1.1rem;
  width: min(100%, 1180px);
  max-width: var(--archive-detail-wide);
  margin: 0 auto;
}

.archive-update-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: min(100%, 980px);
  margin: 0 auto;
  border: 1px solid rgba(196, 154, 85, 0.42);
  background: linear-gradient(90deg, rgba(255, 247, 231, 0.96), rgba(232, 211, 176, 0.92));
  box-shadow: 0 8px 20px rgba(24, 15, 9, 0.14);
  padding: 0.72rem 0.9rem;
}

.archive-update-notice .eyebrow,
.archive-update-notice time { margin: 0; }
.archive-update-notice time { color: #604a38; font-size: 0.84rem; font-weight: 750; }

.archive-update-dialog {
  width: min(calc(100% - 2rem), 650px);
  max-height: min(82vh, 760px);
  margin: auto;
  border: 1px solid rgba(196, 154, 85, 0.64);
  border-radius: 4px;
  background: #f6e8cf;
  color: #332319;
  box-shadow: 0 24px 70px rgba(12, 8, 5, 0.48);
  padding: 0;
  overflow-y: auto;
}

.archive-update-dialog::backdrop { background: rgba(20, 12, 8, 0.7); }
.archive-update-dialog-inner { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.6rem); }
.archive-update-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(112, 77, 52, 0.28); padding-bottom: 0.9rem; }
.archive-update-dialog h2 { margin: 0.2rem 0 0.35rem; font-family: Georgia, "Times New Roman", serif; color: var(--ember-dark); }
.archive-update-dialog time { color: #604a38; font-size: 0.86rem; font-weight: 750; }
.archive-update-close { min-height: 44px; border: 1px solid rgba(112, 77, 52, 0.38); background: #fff7e8; color: #4a2e20; cursor: pointer; font-weight: 850; padding: 0.55rem 0.75rem; }
.archive-update-summary { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.archive-update-dialog ul { display: grid; gap: 0.7rem; margin: 0; padding-left: 1.25rem; line-height: 1.5; }

@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  .archive-update-notice { align-items: flex-end; gap: 0.55rem; padding: 0.6rem 0.7rem; }
  .archive-update-notice .eyebrow { font-size: 0.67rem; }
  .archive-update-notice time { font-size: 0.75rem; }
  .archive-update-notice .mini-action { min-height: 40px; flex: 0 0 auto; }
  .archive-update-dialog { width: min(calc(100% - 1rem), 650px); max-height: calc(100vh - 1rem); }
  .archive-update-dialog-inner { padding: 0.9rem; }
}

.archive-return-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.archive-return-navigation .primary-link,
.archive-return-navigation .mini-action {
  margin: 0;
}

.archive-return-bottom {
  border-top: 1px solid rgba(196, 154, 85, 0.32);
  padding-top: 1rem;
}

.archive-case-hero,
.investigation-file,
.closing-assessment {
  border: 1px solid rgba(196, 154, 85, 0.3);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(18, 13, 10, 0.18);
}

.archive-case-hero {
  display: grid;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(196, 154, 85, 0.16), transparent 13rem),
    linear-gradient(135deg, rgba(38, 27, 19, 0.96), rgba(18, 13, 10, 0.98)),
    var(--espresso);
  color: var(--ivory);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.archive-case-hero .eyebrow,
.closing-assessment .eyebrow {
  color: var(--brass);
}

.archive-case-hero h1 {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.archive-case-subtitle {
  margin: -0.25rem 0 0;
  color: #e6c98f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.15;
}

.case-file-meta-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 0.75fr));
  gap: 0.65rem;
}

.archive-case-hero .quick-stat {
  border-color: rgba(196, 154, 85, 0.26);
  background: rgba(255, 248, 236, 0.08);
}

.archive-case-hero .quick-stat span {
  color: var(--brass);
}

.archive-case-hero .quick-stat strong {
  color: var(--ivory);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.spoiler-warning {
  border: 1px solid rgba(196, 154, 85, 0.34);
  border-radius: 8px;
  background: rgba(132, 51, 34, 0.22);
  color: var(--ivory);
  font-weight: 750;
  line-height: 1.4;
  padding: 0.75rem 0.85rem;
}

.spoiler-warning strong {
  color: #f2c66f;
  text-transform: uppercase;
}

.related-records {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.related-records span,
.related-records a {
  border: 1px solid rgba(196, 154, 85, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.archive-topic-navigation {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(196, 154, 85, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.94), rgba(230, 211, 179, 0.88)),
    var(--panel);
  padding: clamp(0.9rem, 2vw, 1.15rem);
  box-shadow: 0 12px 26px rgba(18, 13, 10, 0.14);
}

.archive-topic-navigation > strong {
  color: var(--ember-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.archive-topic-navigation > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-topic-navigation button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  border: 1px solid rgba(112, 77, 52, 0.28);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.archive-topic-navigation button small {
  color: var(--ember-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-topic-navigation button:hover,
.archive-topic-navigation button:focus-visible {
  border-color: rgba(132, 51, 34, 0.6);
  background: #fff8ec;
  outline: 2px solid rgba(132, 51, 34, 0.22);
  outline-offset: 2px;
}

.archive-topic-stack {
  display: grid;
  gap: 0.75rem;
}

.archive-topic {
  scroll-margin-top: 1rem;
  border: 1px solid rgba(196, 154, 85, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.95), rgba(230, 211, 179, 0.88)),
    var(--panel);
  box-shadow: 0 12px 28px rgba(18, 13, 10, 0.15);
  overflow: clip;
}

.archive-topic > summary {
  display: grid;
  grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 64px;
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
}

.archive-topic > summary::-webkit-details-marker {
  display: none;
}

.archive-topic > summary:hover,
.archive-topic > summary:focus-visible {
  background: rgba(255, 250, 242, 0.52);
  outline: 3px solid rgba(132, 51, 34, 0.2);
  outline-offset: -3px;
}

.archive-topic-number {
  color: var(--ember-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-topic-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 850;
  line-height: 1.1;
}

.archive-topic-disclosure {
  min-width: 3.2rem;
  color: var(--ember-dark);
  font-size: 0;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.archive-topic-disclosure::before {
  content: "Open";
  font-size: 0.7rem;
}

.archive-topic[open] .archive-topic-disclosure::before {
  content: "Close";
}

.archive-topic-body {
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding: clamp(0.85rem, 2vw, 1.35rem);
}

.archive-transcript-column {
  display: grid;
  width: min(100%, 52rem);
  margin: 0 auto;
}

.archive-turn {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.9rem;
  border-top: 1px solid rgba(112, 77, 52, 0.16);
  padding: 1rem 0.35rem;
}

.archive-turn:first-child {
  border-top: 0;
}

.archive-turn h3 {
  margin: 0;
  color: var(--ember-dark);
  font-family: system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.archive-turn.speaker-brooks h3 {
  color: #735228;
}

.archive-turn-copy {
  min-width: 0;
}

.archive-turn-copy p {
  margin: 0 0 0.72rem;
  color: color-mix(in srgb, var(--ink) 87%, var(--muted));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 650;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.archive-turn-copy p:last-child {
  margin-bottom: 0;
}

.archive-turn.speaker-ang {
  border-left: 3px solid rgba(132, 51, 34, 0.48);
  padding-left: 0.8rem;
}

.archive-turn.speaker-brooks {
  border-left: 3px solid rgba(185, 139, 69, 0.58);
  padding-left: 0.8rem;
}

.archive-closing-assessment {
  background:
    linear-gradient(135deg, rgba(38, 27, 19, 0.97), rgba(18, 13, 10, 0.99)),
    var(--espresso);
  color: var(--ivory);
}

.archive-closing-assessment .archive-topic-number,
.archive-closing-assessment .archive-topic-disclosure {
  color: var(--brass);
}

.archive-closing-assessment .archive-topic-title {
  color: var(--ivory);
}

.archive-closing-assessment > summary:hover,
.archive-closing-assessment > summary:focus-visible {
  background: rgba(255, 248, 236, 0.08);
}

.archive-closing-copy {
  display: grid;
  gap: 0.8rem;
  width: min(100%, 52rem);
  margin: 0 auto;
  border-top: 1px solid rgba(196, 154, 85, 0.34);
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.archive-closing-copy p {
  margin: 0;
  color: rgba(255, 248, 236, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  font-style: italic;
  font-weight: 750;
  line-height: 1.55;
}

.related-records span {
  color: var(--brass);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.related-records a {
  color: var(--ivory);
  font-weight: 900;
}

.investigation-stack {
  display: grid;
  gap: 1rem;
}

.investigation-file {
  display: grid;
  gap: 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.94), rgba(230, 211, 179, 0.86)),
    var(--panel);
  padding: clamp(1rem, 2vw, 1.25rem);
}

.investigation-file h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.08;
}

.session-divider {
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  border-block: 1px solid rgba(112, 77, 52, 0.22);
  margin: 0.2rem 0 0.35rem;
  padding: 0.72rem 1rem;
  text-align: center;
}

.session-divider span {
  color: var(--ember-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-divider p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 70%, var(--muted));
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 800;
}

.transcript-block {
  display: grid;
  gap: 1rem;
}

.transcript-line {
  display: grid;
  gap: 0.28rem;
  max-width: 74%;
}

.transcript-line.speaker-brooks {
  justify-self: start;
}

.transcript-line.speaker-ang {
  justify-self: end;
  justify-items: end;
}

.transcript-speaker {
  color: var(--ember-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.transcript-bubble {
  margin: 0;
  border: 1px solid rgba(112, 77, 52, 0.16);
  border-radius: 8px;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.48;
  padding: 0.82rem 0.95rem;
  box-shadow: 0 8px 18px rgba(18, 13, 10, 0.06);
}

.speaker-brooks .transcript-bubble {
  background:
    linear-gradient(180deg, rgba(237, 221, 192, 0.92), rgba(221, 199, 166, 0.9)),
    var(--paper);
}

.speaker-ang .transcript-bubble {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(244, 232, 211, 0.92)),
    var(--surface);
}

.closing-assessment {
  display: grid;
  gap: 0.55rem;
  background:
    linear-gradient(135deg, rgba(38, 27, 19, 0.95), rgba(18, 13, 10, 0.98)),
    var(--espresso);
  color: var(--ivory);
  padding: clamp(1rem, 2vw, 1.25rem);
}

.closing-assessment p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 248, 236, 0.88);
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.5;
  white-space: pre-line;
}

@media (min-width: 1280px) {
  main {
    padding-inline: clamp(2rem, 4vw, 4.5rem);
  }

  .home-page,
  .room-page,
  .book-detail {
    gap: 1.2rem;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) auto minmax(300px, 410px);
  }

  .foyer-room {
    grid-template-columns: minmax(270px, 1fr) minmax(420px, 1.55fr) minmax(250px, 0.9fr);
    align-items: start;
  }

  .foyer-room .home-panel {
    min-height: 0;
  }

  .foyer-room .reading-nook {
    align-self: start;
    min-height: 0;
  }

  .reading-nook .reading-report-card {
    min-height: 0;
  }

  .reading-nook .reading-curator-controls {
    align-self: end;
  }

  .foyer-room .recommendation-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-cover-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .hall-room-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .thread-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .library-layout {
  grid-template-columns: minmax(205px, 250px) minmax(0, 1fr) minmax(320px, 430px);
  }

  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }

  .detail-hero {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }

  .detail-stat-grid,
  .character-spotlight {
    max-width: 760px;
  }

  .detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reason-panel,
  .notes-panel,
  .brooks-final-assessment-panel {
    grid-column: span 2;
  }

  .summary,
  .room-intro p:not(.eyebrow),
  .home-hero p:not(.eyebrow) {
    max-width: 68ch;
  }
}

@media (max-width: 1100px) {
  .hall-layout {
    grid-template-columns: 1fr;
  }

  .hall-side-panel {
    position: static;
  }

  .hall-layout .added-section {
    order: 2;
  }

  .hall-room-list {
    order: 1;
  }

  .hall-layout .dropped-section {
    order: 3;
  }

  .release-monitoring-layout {
    grid-template-columns: 1fr;
  }

  .unfinished-business-hero,
  .unfinished-business-layout {
    grid-template-columns: 1fr;
  }

  .unfinished-business-hero .release-monitoring-desk {
    grid-template-areas:
      "art"
      "brief"
      "rhythm";
    grid-template-columns: 1fr;
  }

  .release-monitoring-desk {
    position: static;
  }

  .release-desk-image-frame {
    max-width: 720px;
  }

  .release-desk-image-frame span {
    opacity: 1;
    transform: translateY(0);
  }

  .image-inspect-cue {
    opacity: 1;
    transform: translateY(0);
  }

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

  .brooks-status-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brooks-ribbon-note {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(196, 154, 85, 0.22);
  }

  .brooks-office-workspace {
    grid-template-columns: 1fr;
  }

  .brooks-desk-drawers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .series-bucket-card .thread-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .brooks-series-health {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .thread-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 0.75rem;
  }

  .monitoring-facts,
  .series-status-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .thread-card-actions > *,
  .case-resolution-actions > *,
  .series-status-review header > button,
  .series-status-review header > .primary-link {
    width: 100%;
    justify-content: center;
  }

  .case-reading-targets label {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-reading-targets select {
    grid-column: 1;
    grid-row: auto;
  }

  .foyer-activity-heading,
  .archive-activity-row {
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
  }

  .foyer-activity-panel {
    max-height: none;
  }

  .recent-activity-disclosure[open] > div {
    position: fixed;
    inset: auto 0.5rem 0.5rem;
    width: auto;
    max-height: 72vh;
  }
}

@media (max-width: 860px) {
  .room-page:has(.brooks-office) {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .home-hero,
  .brooks-host,
  .library-layout,
  .vault-open,
  .vault-locked,
  .detail-hero,
  .detail-grid,
  .case-file-meta-grid,
  .brooks-status-ribbon,
  .observation-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy { grid-column: 1; grid-row: 1; }
  .home-hero > .ang-beta-note { grid-column: 1; grid-row: 2; }
  .home-hero > .hero-cover-stack { grid-column: 1; grid-row: 3; }

  .ang-foyer-frame {
    min-height: 0;
    transform: none;
  }

  .ang-foyer-frame img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .acquisition-record-panel {
    grid-column: 1 / -1;
  }

  .acquisition-record-panel dl {
    grid-template-columns: 1fr;
  }

  .acquisition-record-wide {
    grid-column: auto;
  }

  .transcript-line {
    max-width: min(92%, 40rem);
  }

  .archive-topic-navigation > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-topic-navigation button {
    width: 100%;
  }

  .archive-ribbon-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(196, 154, 85, 0.22);
  }

  .brooks-ribbon-note {
    border-top: 0;
  }

  .repository-intake-drawer-front,
  .repository-intake-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .repository-intake-toggle,
  .repository-intake-actions button {
    width: 100%;
  }

  .repository-intake-ledger,
  .filing-review-workspace,
  .repository-intake-fields,
  .repository-filing-review dl {
    grid-template-columns: 1fr;
  }

  .brooks-office,
  .brooks-office-workspace,
  .brooks-desk-drawers,
  .cover-docket-panel,
  .cover-docket-hold,
  .cover-docket-footer-copy,
  .cover-docket-actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .cover-docket-heading,
  .cover-evidence-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .cover-docket-hold {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cover-docket-actions {
    justify-content: flex-start;
  }

  .cover-docket-heading > span {
    align-self: flex-start;
  }

  .cover-docket-inventory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-docket-inventory > div + div {
    border-left: 0;
  }

  .cover-docket-inventory > div:nth-child(even) {
    border-left: 1px solid rgba(112, 77, 52, 0.2);
  }

  .cover-docket-workbench,
  .cover-candidate-card,
  .cover-assignment-summary,
  .remote-cover-grid,
  .remote-cover-card {
    grid-template-columns: 1fr;
  }

  .cover-large-preview-card {
    grid-template-columns: 1fr;
  }

  .cover-comparison-toolbar,
  .cover-comparison-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-cover-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-cover-grid {
    grid-template-columns: 1fr;
  }

  .cover-search-briefing,
  .selected-cover-summary {
    grid-template-columns: 1fr;
  }

  .selected-cover-thumbnail {
    width: min(180px, 100%);
  }

  .cover-comparison-close {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
  }

  .cover-comparison-panel {
    position: relative;
  }

  .cover-comparison-row {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .cover-provider-readiness {
    grid-template-columns: 1fr;
  }

  .remote-cover-image {
    width: min(240px, 100%);
  }

  .cover-assignment-review > header {
    flex-direction: column;
  }

  .cover-candidate-preview {
    width: min(180px, 100%);
  }

  .repository-intake-fields .intake-title-field,
  .repository-intake-fields .intake-notes-field,
  .repository-filing-review .filing-review-notes {
    grid-column: auto;
  }

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

  .morning-repository-report > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brooks-portrait-frame img {
    aspect-ratio: 16 / 10;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero h1 {
    max-width: 13ch;
  }

  .hero-cover-stack {
    min-height: 230px;
  }

  .stack-cover {
    width: 138px;
  }

  .stack-cover-1 {
    left: 0.5rem;
    right: auto;
  }

  .stack-cover-2 {
    left: 6.8rem;
    right: auto;
  }

  .stack-cover-3 {
    left: 3.8rem;
    right: auto;
  }

  .home-grid,
  .foyer-room {
    grid-template-columns: minmax(0, 1fr);
  }

  .foyer-room {
    grid-template-columns: minmax(0, 1fr);
  }

  .thread-board,
  .hall-room-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hall-reason-card {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
    overflow: visible;
    position: static;
  }

  .library-layout::before {
    grid-column: 1;
    grid-row: auto;
  }

  .library-results {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .shelf-command-header {
    top: 76px;
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .archive-census {
    justify-items: start;
    max-width: none;
    text-align: left;
  }

  .shelf-inspector {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

  .shelf-inspector img {
    max-height: 680px;
  }

  .filter-panel h1 {
    max-width: 16ch;
  }

  .shelf-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .large-cover {
    justify-self: center;
  }

  .metadata-panel dl {
    grid-template-columns: 1fr;
  }

  .vault-detail-panel dl,
  .observation-grid {
    grid-template-columns: 1fr;
  }

  .vault-door-panel,
  .vault-access-panel {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .archive-case-viewer {
    gap: 0.75rem;
  }

  .archive-return-navigation {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-return-navigation a {
    width: 100%;
    text-align: center;
  }

  .archive-case-hero {
    gap: 0.72rem;
    padding: 0.9rem;
  }

  .archive-case-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .archive-case-subtitle {
    font-size: 1.12rem;
  }

  .archive-topic-navigation {
    padding: 0.78rem;
  }

  .archive-topic-navigation > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-topic > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.55rem;
    min-height: 58px;
    padding: 0.75rem 0.8rem;
  }

  .archive-topic-number {
    grid-column: 1 / -1;
  }

  .archive-topic-title {
    font-size: 1.16rem;
  }

  .archive-topic-body {
    padding: 0.65rem 0.75rem 0.9rem;
  }

  .archive-turn {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.32rem;
    padding-block: 0.85rem;
  }

  .archive-turn-copy p {
    font-size: 1rem;
    line-height: 1.52;
  }

  .archive-closing-copy {
    padding: 0.9rem;
  }
}

@media (max-width: 540px) {
  main {
    overflow-x: hidden;
    padding: 0.85rem;
  }

  .library-results {
    max-height: calc(100vh - 1.7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-margin-top: 285px;
    scrollbar-gutter: stable;
  }

  .shelf-command-header {
    top: 0;
  }

  .home-page,
  .home-hero,
  .brooks-host,
  .foyer-room,
  .home-panel {
    max-width: 100%;
    min-width: 0;
  }

  .image-inspect-cue {
    display: none;
  }

  .main-nav a {
    font-size: 0.86rem;
    padding: 0.45rem 0.5rem;
  }

  .home-hero {
    padding: 1rem;
  }

  .brooks-host {
    padding: 0.85rem;
  }

  .brooks-host h2 {
    font-size: 2.45rem;
  }

  .home-hero h1 {
    font-size: 2.05rem;
  }

  .hero-cover-stack {
    min-height: 160px;
  }

  .stack-cover {
    width: 88px;
  }

  .stack-cover-2 {
    left: 4.2rem;
  }

  .stack-cover-3 {
    left: 2.2rem;
    top: 4.2rem;
  }

  .home-grid,
  .foyer-room,
  .explore-columns {
    grid-template-columns: 1fr;
  }

  .foyer-room.has-activity-panel {
    padding: 0;
    background: transparent;
  }

  .favorite-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recommendation-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommendation-card:first-child {
    grid-column: auto;
  }

  .recommendation-cover {
    width: 68px;
  }

  .reading-nook .admin-control {
    grid-template-columns: 1fr;
  }

  .foyer-thread-list {
    grid-template-columns: 1fr;
  }

  .favorite-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .wide-panel {
    grid-column: span 1;
  }

  .mini-shelf > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-panel,
  .detail-hero {
    padding: 1rem;
  }

  .shelf-search-row {
    grid-template-columns: 1fr;
  }

  .clear-filters-button {
    width: 100%;
  }

  .detail-stat-grid,
  .character-spotlight {
    grid-template-columns: 1fr;
  }

  .reading-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hall-reason-card {
    grid-template-columns: 1fr;
  }

  .thread-board,
  .hall-room-list {
    grid-template-columns: 1fr;
  }

  .series-bucket-header {
    align-items: start;
    flex-direction: column;
  }

  .unfinished-business-hero .release-desk-image-frame img {
    max-height: none;
  }

  .thread-card-front {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hall-reason-cover {
    width: min(180px, 100%);
  }

  .thread-row {
    grid-template-columns: 1fr;
  }

  .thread-head {
    display: none;
  }

  .thread-row > *::before {
    display: block;
    color: var(--muted);
    content: attr(data-label);
    font-family:
      Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .thread-head > *::before {
    content: "";
  }

  .vault-book-card,
  .brooks-desk,
  .vault-door-panel {
    grid-template-columns: 1fr;
  }

  .vault-cover {
    width: min(170px, 100%);
  }
}

.series-validation-page {
  margin: 0 auto;
  max-width: 1440px;
  padding: 1.5rem;
}

.series-validation-header {
  margin-bottom: 1.5rem;
}

.series-validation-header h1 {
  margin: 0.2rem 0 0.5rem;
}

.series-validation-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
  max-width: 780px;
}

.series-validation-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 1rem;
}

.series-validation-tools {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem;
}

.series-validation-search {
  display: grid;
  gap: 0.4rem;
}

.series-validation-search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.series-validation-search input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
}

.series-validation-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.series-validation-filter {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
}

.series-validation-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.series-validation-filter strong {
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.series-validation-result-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
}

.series-validation-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}

.series-validation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
}
.series-validation-evidence{margin:.65rem 0 1rem;padding:.65rem .8rem;border-left:2px solid rgba(151,105,40,.45);background:rgba(255,248,225,.38)}
.series-validation-evidence div{display:flex;justify-content:space-between;gap:1rem;padding:.18rem 0}
.series-validation-evidence dt{font-weight:700}
.series-validation-evidence dd{margin:0;text-align:right}
.series-validation-evidence small{display:block;color:var(--muted-ink)}

.series-validation-card.has-gaps {
  border-color: #b7791f;
}

.series-validation-card.unknown-total {
  background: color-mix(in srgb, var(--surface) 88%, #f7fafc);
}

.series-validation-card-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.series-validation-card h2 {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
}

.series-validation-card-header p {
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

.series-status,
.validation-flag,
.series-book-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.25rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.series-status.complete,
.validation-flag.ok {
  background: #f0fff4;
  border-color: #9ae6b4;
  color: #276749;
}

.series-status.incomplete,
.validation-flag.gap {
  background: #fffaf0;
  border-color: #f6ad55;
  color: #975a16;
}

.series-status.unknown,
.validation-flag.unknown {
  background: #edf2f7;
  color: #4a5568;
}

.validation-flag.omnibus,
.series-book-badge {
  background: #ebf8ff;
  border-color: #90cdf4;
  color: #2b6cb0;
}

.validation-flag.future {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #075985;
}

.series-validation-facts {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.series-validation-facts div {
  background: color-mix(in srgb, var(--surface) 90%, var(--line));
  border-radius: 6px;
  padding: 0.55rem;
}

.series-validation-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.series-validation-facts dd {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0.2rem 0 0;
}

.series-validation-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.series-validation-books {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.series-validation-books li {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
}

.series-validation-books li.omnibus-record {
  background: #ebf8ff;
  border-color: #90cdf4;
}

.series-book-number {
  color: color-mix(in srgb, var(--ink) 68%, var(--muted));
  font-size: 0.88rem;
  font-weight: 900;
}

.series-book-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  min-width: 0;
}

.series-validation-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 1.25rem;
}

.series-validation-empty h2 {
  margin: 0 0 0.35rem;
}

.series-validation-empty p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .repository-protection-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .repository-protection-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brooks-case-files > header,
  .case-file-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .brooks-case-files > header {
    flex-direction: column;
  }

  .case-file-row .mini-action {
    justify-self: start;
  }

  .series-details-panel {
    grid-column: auto;
  }

  .series-details-facts,
  .series-edit-grid,
  .series-edit-review > dl {
    grid-template-columns: 1fr;
  }

  .series-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .series-reading-order-panel a {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .series-reading-order-panel em {
    grid-column: 2;
  }

  .series-validation-page {
    padding: 0.85rem;
  }

  .series-validation-summary,
  .series-validation-grid,
  .series-validation-facts {
    grid-template-columns: 1fr;
  }

  .series-validation-card-header,
  .series-validation-books li {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .series-validation-card-header {
    display: grid;
  }
}

.visual-gallery-page {
  display: grid;
  gap: 1rem;
  width: min(100%, 90rem);
  min-height: 70vh;
  margin-inline: auto;
  padding: clamp(0.8rem, 2vw, 1.5rem);
}

.visual-gallery-header,
.gallery-import-panel > header,
.gallery-thumbnail footer,
.gallery-viewer > header,
.gallery-viewer > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.visual-gallery-header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(5rem, 10vw, 8rem) minmax(0, 1fr) auto;
  align-items: center;
  min-height: clamp(12rem, 24vw, 17rem);
  border: 1px solid rgba(196, 154, 85, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(28, 22, 18, 0.98), rgba(72, 47, 30, 0.96));
  color: var(--ivory);
  padding: clamp(1rem, 3vw, 1.7rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-hero-backdrop {
  position: absolute;
  inset: -2rem;
  z-index: -2;
  width: calc(100% + 4rem);
  height: calc(100% + 4rem);
  object-fit: cover;
  filter: blur(18px) saturate(0.65);
  opacity: 0.28;
}

.visual-gallery-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(20, 15, 12, 0.94), rgba(47, 31, 22, 0.82) 58%, rgba(20, 15, 12, 0.9));
}

.gallery-hero-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(246, 201, 130, 0.48);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(145deg, #67462e, #201712);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.gallery-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hero-cover span {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.gallery-hero-copy {
  min-width: 0;
}

.gallery-hero-copy h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.gallery-hero-copy > p:last-child {
  margin: 0.6rem 0 0;
  color: rgba(255, 244, 220, 0.72);
}

.gallery-hero-actions {
  display: grid;
  justify-items: stretch;
  gap: 0.6rem;
}

.gallery-back-link,
.gallery-add-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid rgba(246, 201, 130, 0.48);
  border-radius: 5px;
  color: var(--ivory);
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.gallery-back-link:hover,
.gallery-back-link:focus-visible {
  background: rgba(246, 201, 130, 0.13);
}

.visual-gallery-header h1,
.gallery-viewer h2 {
  color: inherit;
  margin: 0.15rem 0;
}

.gallery-status,
.gallery-empty,
.gallery-import-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.gallery-status {
  margin: 0;
  color: var(--ink);
}

.gallery-connection-status {
  margin: 0;
  border-left: 3px solid var(--gold);
  background: rgba(246, 201, 130, 0.16);
  color: var(--ink);
  padding: 0.6rem 0.75rem;
}

.gallery-empty {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  min-height: 11rem;
  align-content: center;
}

.gallery-empty h2,
.gallery-empty p {
  margin: 0;
}

.gallery-dropzone {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  border: 2px dashed rgba(107, 76, 47, 0.45);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.68);
  padding: clamp(1.2rem, 4vw, 2.4rem);
  text-align: center;
  transition: background 150ms ease, border-color 150ms ease;
}

.gallery-dropzone.drag-over,
.gallery-dropzone:focus-visible {
  border-color: var(--gold);
  background: rgba(246, 201, 130, 0.2);
  outline: 2px solid rgba(196, 154, 85, 0.35);
}

.gallery-dropzone span,
.gallery-import-item span,
.gallery-thumbnail footer span {
  color: var(--muted);
  font-size: 0.8rem;
}

.gallery-import-review {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
  max-height: 28rem;
  overflow: auto;
}

.gallery-import-item {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.gallery-import-item img,
.gallery-preview-loading {
  width: 6rem;
  height: 5rem;
  object-fit: contain;
  border-radius: 4px;
  background: #211b17;
}

.gallery-import-item > div:nth-child(2) {
  display: grid;
  gap: 0.3rem;
}

.gallery-import-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.visual-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  padding: 0.2rem;
}

.visual-gallery-grid.single-visual {
  grid-template-columns: minmax(0, min(100%, 48rem));
  justify-content: center;
  max-height: none;
  overflow: visible;
}

.gallery-thumbnail {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(57, 35, 23, 0.09);
}
.gallery-thumbnail[draggable="true"]{cursor:grab;transition:transform .14s ease,box-shadow .14s ease,opacity .14s ease}
.gallery-thumbnail[draggable="true"]:active{cursor:grabbing}
.gallery-thumbnail.is-dragging{opacity:.42;transform:scale(.98)}
.gallery-thumbnail.drop-before::before,.gallery-thumbnail.drop-after::after{content:"";position:absolute;z-index:8;top:.35rem;bottom:.35rem;width:5px;border-radius:999px;background:#e0b338;box-shadow:0 0 12px rgba(244,198,64,.9)}
.gallery-thumbnail.drop-before::before{left:-.48rem}.gallery-thumbnail.drop-after::after{right:-.48rem}
.gallery-drag-hint{position:absolute;z-index:6;left:.55rem;top:.55rem;border:1px solid rgba(255,240,173,.82);border-radius:999px;background:rgba(35,25,18,.82);color:#fff2bb;padding:.22rem .48rem;font-size:.66rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;pointer-events:none;opacity:0;transform:translateY(-3px);transition:opacity .14s ease,transform .14s ease}
.gallery-thumbnail[draggable="true"]:hover .gallery-drag-hint{opacity:1;transform:none}
.gallery-order-button{min-width:2rem!important;font-size:1rem!important;padding:.28rem .42rem!important}

.gallery-thumbnail-button {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  background: #211b17;
  color: var(--ivory);
  cursor: zoom-in;
  padding: 0;
}

.gallery-thumbnail-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #211b17; }
.gallery-thumbnail-media .gallery-thumbnail-button { height: 100%; }
.gallery-spoiler-blanket {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.45rem;
  width: 100%;
  border: 0;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(223, 178, 74, 0.12) 48% 52%, transparent 52%),
    radial-gradient(circle at center, #3a251c, #17110e 72%);
  color: #fff3ce;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 4px #1d120d, inset 0 0 0 6px rgba(222, 180, 73, 0.72);
}
.gallery-spoiler-blanket span { color: #e4bd58; font: 900 1.1rem/1 Georgia, "Times New Roman", serif; letter-spacing: 0.12em; text-transform: uppercase; }
.gallery-spoiler-blanket strong { max-width: 22ch; font-size: 0.92rem; line-height: 1.25; }
.gallery-spoiler-blanket small { color: rgba(255, 243, 206, 0.72); font-size: 0.72rem; text-transform: uppercase; }
.gallery-spoiler-blanket:hover,.gallery-spoiler-blanket:focus-visible { background: radial-gradient(circle at center, #563326, #17110e 75%); }
.gallery-viewer-canvas.has-spoiler-blanket { position: relative; }
.gallery-viewer-spoiler { position: absolute; inset: clamp(1rem, 4vw, 3rem); width: auto; border: 1px solid rgba(228, 189, 88, 0.75); border-radius: 8px; }
.gallery-viewer-spoiler span { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.gallery-viewer-spoiler strong { font-size: clamp(1rem, 2vw, 1.4rem); }

.gallery-thumbnail-button img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.gallery-thumbnail footer {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  width: 100%;
  background: #f4ead4;
  color: #322217;
  padding: 0.65rem;
}

.single-visual .gallery-thumbnail-button {
  min-height: 0;
}

.single-visual .gallery-thumbnail-button img {
  height: 100%;
}

.gallery-thumbnail footer > div {
  display: grid;
  min-width: 0;
}

.gallery-thumbnail footer strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}
.gallery-card-actions{display:flex!important;align-items:center;gap:.35rem}
.gallery-card-actions .mini-action{min-height:2.25rem;padding:.35rem .55rem;font-size:.72rem;line-height:1}
.gallery-thumbnail-description{display:-webkit-box;overflow:hidden;margin:.3rem 0 0;color:#5f4a38;font-size:.82rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.gallery-viewer-description{max-width:70ch;margin:.35rem 0;color:rgba(255,248,233,.88);line-height:1.4}
.gallery-credit-form textarea{width:100%;resize:vertical}
.gallery-spoiler-editor{display:grid;gap:.65rem;margin:.25rem 0;border:1px solid rgba(122,76,35,.35);border-radius:7px;background:#f9edcf;padding:.8rem}
.gallery-spoiler-editor legend{padding:0 .35rem;font-family:Georgia,"Times New Roman",serif;font-size:1rem;font-weight:800}
.gallery-spoiler-editor legend span{color:#7d5639;font-family:inherit;font-size:.7rem;font-weight:500;text-transform:uppercase}
.gallery-spoiler-editor .gallery-spoiler-toggle{display:flex;grid-template-columns:none;gap:.5rem;align-items:center;font-weight:800}
.gallery-spoiler-toggle input{width:auto;margin:0}
.gallery-spoiler-editor>small{color:#6d513c;line-height:1.35}
.gallery-focus-editor{display:grid;gap:.65rem;margin:.25rem 0;border:1px solid rgba(91,62,35,.28);border-radius:7px;background:#fff8e9;padding:.8rem}
.gallery-focus-editor legend{padding:0 .35rem;font-family:Georgia,"Times New Roman",serif;font-size:1rem;font-weight:800}
.gallery-focus-editor>p{margin:0;color:#5f4a38;font-size:.84rem;line-height:1.35}
.gallery-focus-quality-note{border-left:3px solid #b66b37;padding-left:.55rem!important;color:#7b4128!important;font-weight:700}
.gallery-focus-preview{width:100%;aspect-ratio:4/3;overflow:hidden;border:1px solid rgba(91,62,35,.35);border-radius:5px;background:#211b17}
.gallery-focus-preview img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-focus-editor label{grid-template-columns:1fr auto!important;align-items:center}
.gallery-focus-editor label input{grid-column:1/-1;width:100%}
.gallery-focus-editor output{font-variant-numeric:tabular-nums;font-weight:800}
.gallery-focus-editor .mini-action{justify-self:start}
.gallery-crop-stage{position:relative;width:100%;overflow:hidden;border:1px solid rgba(91,62,35,.45);border-radius:5px;background:#211b17;line-height:0;touch-action:none;user-select:none}
.gallery-crop-stage>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.gallery-crop-box{position:absolute;box-sizing:border-box;border:3px dashed #fff8e9;outline:2px solid rgba(71,32,17,.78);background:rgba(255,248,233,.08);box-shadow:0 0 0 9999px rgba(11,8,6,.58);cursor:move;touch-action:none;line-height:1}
.gallery-crop-box>span{position:absolute;left:.3rem;top:.3rem;border-radius:3px;background:rgba(33,27,23,.86);color:#fff8e9;padding:.18rem .32rem;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.gallery-crop-box:focus-visible{outline:3px solid #df8b4d;outline-offset:2px}
.gallery-crop-box.is-moving{cursor:grabbing}
.gallery-crop-handle{position:absolute;right:-8px;bottom:-8px;width:22px;height:22px;border:2px solid #4d2718;border-radius:50%;background:#fff8e9;cursor:nwse-resize;padding:0;touch-action:none}
.gallery-crop-handle::before{content:"";position:absolute;inset:5px;border-right:2px solid #7d4028;border-bottom:2px solid #7d4028}

.gallery-viewer-backdrop,
.gallery-delete-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(18, 13, 10, 0.88);
  padding: 1rem;
  overflow: hidden;
}

.gallery-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(96vw, 92rem);
  height: min(calc(100dvh - 2rem), 70rem);
  max-height: calc(100dvh - 2rem);
  border: 1px solid rgba(196, 154, 85, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: #17120f;
  color: var(--ivory);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.gallery-viewer > header,
.gallery-viewer > footer {
  padding: 0.75rem 1rem;
}

.gallery-viewer-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gallery-viewer-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0f0c0a;
  padding: 0.75rem;
}

.gallery-viewer-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.gallery-viewer-canvas.is-fit img {
  position: absolute;
  inset: 0.75rem;
  width: calc(100% - 1.5rem);
  height: calc(100% - 1.5rem);
}

.gallery-viewer-canvas.is-zoomed {
  place-items: start center;
  overflow: auto;
}

.gallery-viewer-canvas.is-zoomed img {
  position: static;
  min-width: 100%;
  min-height: 100%;
}

.gallery-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-delete-dialog {
  display: grid;
  gap: 0.75rem;
  width: min(92vw, 32rem);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(196, 154, 85, 0.45);
  border-radius: 8px;
  background: var(--panel);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.gallery-delete-dialog img {
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
  background: #211b17;
}

.gallery-delete-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 720px) {
  .visual-gallery-header,
  .gallery-import-panel > header,
  .gallery-viewer > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-gallery-header {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    min-height: 11rem;
    padding: 0.85rem;
  }

  .gallery-hero-copy h1 {
    font-size: clamp(1.65rem, 9vw, 2.5rem);
  }

  .gallery-hero-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .gallery-import-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .gallery-import-item img,
  .gallery-preview-loading {
    width: 4.5rem;
    height: 4.5rem;
  }

  .gallery-import-item > .mini-action {
    grid-column: 2;
    justify-self: start;
  }

  .visual-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .single-visual .gallery-thumbnail-button {
    min-height: min(54vh, 30rem);
  }

  .single-visual .gallery-thumbnail-button img {
    height: min(52vh, 29rem);
  }

  .gallery-viewer > footer {
    flex-wrap: wrap;
  }

  .gallery-zoom-controls {
    order: -1;
    width: 100%;
    justify-content: center;
  }
}
/* Hall of Fame Museum — Phase 3 subjective wings */
.museum-featured.populated{display:grid;grid-template-columns:5rem 1fr;gap:.35rem 1rem;align-items:center;text-decoration:none}
.museum-featured.populated .museum-featured-cover{grid-row:1/5;width:5rem;aspect-ratio:2/3}
.museum-featured.populated span,.museum-featured.populated strong,.museum-featured.populated p{grid-column:2;margin:0}
.museum-edit-modes{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.museum-edit-modes button{border:1px solid rgba(107,73,38,.35);border-radius:999px;background:#f4ead4;color:#3b291d;padding:.65rem 1rem;font:inherit;cursor:pointer}
.museum-edit-modes button.active{background:#3d281b;color:#fff2d4;border-color:#b88a4d}
.museum-portrait-choices{grid-column:1/-1;border:1px solid rgba(107,73,38,.25);border-radius:12px;padding:1rem}
.museum-portrait-thumbs{display:flex;gap:.6rem;overflow:auto;margin:.5rem 0 1rem}
.museum-portrait-thumb{position:relative;display:block;flex:0 0 auto;border:2px solid transparent;border-radius:9px;background:none;padding:0;cursor:pointer}
.museum-portrait-thumb:hover,.museum-portrait-thumb:focus-visible{border-color:#d7aa55;outline:2px solid rgba(255,225,157,.35);outline-offset:2px}
.museum-portrait-thumb.selected{border-color:#ffd878;box-shadow:0 0 0 3px rgba(255,216,120,.26),0 0 18px rgba(255,196,75,.42)}
.museum-portrait-thumb.selected::after{position:absolute;right:-.35rem;bottom:-.35rem;display:grid;width:1.35rem;height:1.35rem;place-items:center;border:1px solid #7c511f;border-radius:999px;background:#f3c75f;color:#351f12;content:"✓";font-size:.82rem;font-weight:900}
.museum-portrait-thumbs img{display:block;width:5rem;height:5rem;object-fit:contain;background:#211b18;border-radius:7px}
.museum-portrait-choices>label{display:grid;gap:.3rem;width:min(100%,34rem);margin-top:.65rem}
.museum-portrait-choices>label select{width:100%;max-width:34rem}
.museum-portrait-hover-preview{position:fixed;z-index:3000;display:grid;width:clamp(17rem,24vw,22rem);max-height:min(72vh,28rem);place-items:center;gap:.45rem;border:2px solid #d8aa55;border-radius:12px;background:#17110d;color:#fff1d0;padding:.75rem;box-shadow:0 24px 60px rgba(0,0,0,.62);pointer-events:none}
.museum-portrait-hover-preview img{display:block;width:100%;height:min(55vh,22rem);object-fit:contain;border-radius:7px;background:#0e0b09}
.museum-portrait-hover-preview strong{max-width:100%;font-size:.95rem;text-align:center;overflow-wrap:anywhere}
.museum-portrait-hover-preview small{color:#d8bd88;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.museum-character-suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}
.museum-character-suggestions button{border:1px solid rgba(107,73,38,.3);background:#fff8e9;border-radius:999px;padding:.4rem .7rem;cursor:pointer}
.character-award-grid,.shame-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:1rem}
.award-category,.shame-category{padding:1rem;border:1px solid rgba(101,69,36,.24);border-radius:14px;background:rgba(255,249,234,.72)}
.character-award-card,.shame-exhibit-card{display:grid;grid-template-columns:5.5rem 1fr;gap:1rem;margin-top:.75rem;padding:.85rem;border-top:1px solid rgba(101,69,36,.18)}
.award-art img,.award-art .book-cover{width:5.5rem;max-height:8rem;object-fit:contain}
.museum-portrait-button{border:0;background:none;padding:0;cursor:zoom-in}
.character-award-card blockquote,.shame-exhibit-card blockquote{margin:.55rem 0;font-size:.9rem}
.award-category.has-winners{grid-column:1/-1}
.award-favorites-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,20rem));gap:1rem;align-items:stretch;justify-content:start}
.character-award-card{display:flex;flex:1;flex-direction:column;gap:.8rem;padding:.85rem 0 0}
.character-award-card .award-art{width:100%;overflow:hidden;border-radius:10px;background:#1c1511}
.character-award-card .museum-portrait-button{display:block;width:100%}
.character-award-card .award-art img,.character-award-card .award-art .book-cover{display:block;width:100%;height:clamp(13rem,18vw,19rem);max-height:none;object-fit:contain;margin:0 auto;background:#1c1511}
.character-award-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:0 .15rem .2rem}
.award-character-name{margin-top:.22rem;font-size:1.12rem;line-height:1.2}
.award-book-title{margin-top:.15rem;color:#6d351f;font-weight:750;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.character-award-card .character-award-copy blockquote{width:100%;margin:.85rem 0 .65rem;padding:.75rem 0 0;border-top:1px solid rgba(101,69,36,.2);font-size:.94rem;line-height:1.5}
.character-award-copy>small{margin-top:auto;color:#72563e}
.add-another-award{align-self:flex-start;margin-top:1rem}
.spoiler-award-category{border-color:#a84b3b;background:linear-gradient(145deg,#fff8e8,#f3dec0)}
.spoiler-category-warning{display:inline-flex;margin-left:.45rem;border:1px solid #9a3c30;border-radius:999px;background:#7b281f;color:#fff3dc;padding:.18rem .45rem;font-size:.62rem;letter-spacing:.07em;text-transform:uppercase;vertical-align:middle}
.spoiler-loss-card{position:relative;overflow:hidden;border:1px solid rgba(146,57,43,.45);border-radius:10px;background:#f9eed8;padding-bottom:.75rem}
.loss-cover-trigger{display:block;width:100%;border:0;background:#1c1511;padding:0;color:#fff0c7;cursor:pointer}
.loss-cover-trigger .book-cover{width:100%!important}
.loss-cover-trigger>span{display:block;border-top:1px solid rgba(255,220,145,.25);padding:.65rem;font-size:.72rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.loss-cover-trigger:hover>span,.loss-cover-trigger:focus-visible>span{background:#6e2c22;color:#fff}
.loss-spoiler-warning{display:grid;justify-items:center;gap:.65rem;margin:.75rem;border:3px solid #b64d3d;border-radius:10px;background:repeating-linear-gradient(135deg,#76281f 0 16px,#541d18 16px 32px);color:#fff4dc;padding:1rem;text-align:center;box-shadow:inset 0 0 0 4px rgba(255,218,129,.18)}
.loss-spoiler-warning>span{border:1px solid #ffd884;border-radius:999px;padding:.22rem .55rem;color:#ffd884;font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.loss-spoiler-warning>strong{font-size:1.15rem;line-height:1.25}
.loss-spoiler-warning>p{margin:0;color:#f6d7c5;font-size:.85rem}
.loss-spoiler-warning>div{display:flex;flex-wrap:wrap;justify-content:center;gap:.55rem}
.spoiler-loss-card.spoiler-revealed{overflow:visible}
.award-status{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;color:#7a4e23}
.award-successor{padding:.55rem;background:rgba(181,132,69,.12);border-left:3px solid #a6793f}
.award-history{margin-top:1.25rem;padding:1rem;border-top:1px solid rgba(101,69,36,.24)}
.book-detail-museum{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 1rem}
.book-detail-museum-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.book-detail-museum-heading h2{margin:.1rem 0 0}
.book-detail-museum>a{color:inherit;text-decoration-thickness:1px;text-underline-offset:3px}
.book-detail-museum .featured-plaque{color:#7f501d}
.book-detail-museum>p,.book-detail-museum>details{grid-column:1/-1;margin:.15rem 0}
.book-detail-museum details summary{cursor:pointer;font-weight:700}
.book-detail-museum details a,.book-detail-museum details span{display:block;margin:.35rem 0}
.photo-gallery-quick-stat{position:relative;text-decoration:none;color:inherit;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.photo-gallery-quick-stat:hover,.photo-gallery-quick-stat:focus-visible{transform:translateY(-2px);outline:3px solid rgba(151,99,32,.3);outline-offset:2px}
.photo-gallery-quick-stat.has-photos{border-color:#b67b2f;background:linear-gradient(145deg,#fff3ce,#e6bd70 58%,#bf7d27);box-shadow:0 8px 20px rgba(91,55,18,.24),inset 0 1px 0 rgba(255,255,255,.7);color:#3c2715}
.photo-gallery-quick-stat.has-photos::after{content:"";position:absolute;right:.7rem;top:.7rem;width:1.05rem;height:.8rem;border:1.5px solid currentColor;border-radius:2px;opacity:.7;background:linear-gradient(145deg,transparent 44%,currentColor 46% 54%,transparent 56%)}
.photo-gallery-quick-stat.has-photos strong{padding-right:1.4rem}
.photo-gallery-quick-stat.is-empty{opacity:.86}
.movement-gallery-room{display:grid;gap:1.25rem}
.movement-gallery-room>header{max-width:58rem}
.movement-exhibit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.movement-exhibit{min-height:16rem;border:1px solid rgba(107,73,38,.28);border-radius:16px;background:linear-gradient(145deg,rgba(255,249,234,.92),rgba(231,212,174,.72));padding:1.15rem;box-shadow:0 8px 24px rgba(46,30,19,.1)}
.movement-exhibit.collecting{border-style:dashed}
.movement-exhibit h3{margin:.15rem 0 .7rem;font-family:var(--font-display,Georgia,serif);font-size:1.35rem}
.movement-exhibit details{margin-top:.85rem;border-top:1px solid rgba(91,62,35,.2);padding-top:.65rem}
.movement-exhibit summary{cursor:pointer;font-weight:800}
.movement-winners{display:grid;gap:.65rem}
.movement-winners>a{display:grid;grid-template-columns:5rem 1fr;gap:.8rem;align-items:center;color:inherit;text-decoration:none}
.movement-winners>a:hover strong,.movement-winners>a:focus-visible strong{text-decoration:underline}
.movement-cover{width:5rem;aspect-ratio:2/3;padding:.25rem}
.movement-winners span{display:grid;gap:.18rem}
.movement-winners small,.movement-winners em{color:var(--muted)}
.movement-snapshot-desk{border:1px solid rgba(151,99,32,.4);border-radius:16px;background:linear-gradient(145deg,#f7ead0,#e8cf9d);padding:1.15rem}
.movement-snapshot-desk.review{display:grid;gap:.65rem}
.movement-snapshot-desk ol{columns:2;margin:.2rem 0;padding-left:1.5rem}
.movement-snapshot-desk li{break-inside:avoid;margin:.25rem 0}
.movement-snapshot-desk label{display:grid;gap:.3rem}
.movement-snapshot-desk textarea{min-height:5rem}
.movement-snapshot-desk>div{display:flex;flex-wrap:wrap;gap:.6rem}
.ranking-history-panel{grid-column:1/-1}
.ranking-history-panel:focus{outline:3px solid rgba(151,99,32,.35);outline-offset:3px}
.ranking-history-heading{margin-bottom:.85rem}
.ranking-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.ranking-history-summary>div{border-left:3px solid rgba(151,99,32,.45);padding:.3rem .6rem}
.ranking-history-summary dt{color:var(--muted);font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.ranking-history-summary dd{margin:.2rem 0 0;font-weight:800}
.ranking-history-list{display:grid;gap:.45rem;margin:1rem 0 0;padding:0;list-style:none}
.ranking-history-list li{display:grid;grid-template-columns:8rem 9rem minmax(0,1fr);gap:.7rem;border-top:1px solid rgba(91,62,35,.18);padding:.6rem 0}
.ranking-history-list small{color:var(--muted)}
.photo-gallery-detail-panel{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.photo-gallery-detail-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.gallery-credit-form{position:relative;z-index:2;display:grid;gap:.7rem;background:#f4ead4;color:#322217;padding:1rem;border-top:1px solid rgba(91,62,35,.2)}
.gallery-credit-form label{display:grid;gap:.25rem}
.book-card-info-heading,
.book-card-info-metadata{height:auto}
.vault-card-labels{
  position:static;
  z-index:auto;
  display:grid;
  justify-items:start;
  gap:.3rem;
  width:100%;
}
.vault-card-labels .vault-flag{margin:0;max-width:100%}
.trigger-warning-button{
  inline-size:max-content;
  max-inline-size:100%;
  min-block-size:1.45rem;
  padding:.16rem .48rem;
  border:1px solid rgba(105,72,39,.55);
  background:rgba(255,248,231,.58);
  color:#5b3d25;
  font:700 .64rem/1.15 "Iowan Old Style","Palatino Linotype",Palatino,serif;
  letter-spacing:.025em;
  text-align:left;
  text-transform:none;
  white-space:nowrap;
  cursor:pointer;
}
.trigger-warning-button:hover{border-color:#80562d;background:#f7e6c4;color:#392617}
.trigger-warning-button:focus-visible{outline:2px solid #9d6f2f;outline-offset:2px}
@media(max-width:360px){.trigger-warning-button{white-space:normal}}
.trigger-warning-dialog{max-width:min(32rem,calc(100vw - 2rem));border:1px solid #aa7b3f;border-radius:14px;background:#f7ecd2;color:#2f2118;padding:1.4rem}
.trigger-warning-dialog::backdrop{background:rgba(18,12,8,.72)}
.vault-details-editor{margin-top:1rem;border-top:1px solid rgba(91,62,35,.2);padding-top:.8rem}
.vault-details-editor form{display:grid;gap:.8rem;margin-top:.8rem}
.vault-details-editor label{display:grid;gap:.3rem}
.vault-details-editor textarea{min-height:7rem}

.vault-state-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin-top:1rem}
.vault-essential-explanation{max-width:58rem;margin-top:1rem;border:1px solid rgba(225,190,128,.55);border-left:5px solid var(--brass);border-radius:8px;background:rgba(255,248,236,.1);padding:.85rem .95rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}
.vault-essential-explanation h3{margin:0 0 .65rem;color:#fff4dc;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.35rem,2.4vw,1.8rem)}
.vault-essential-explanation p{max-width:68ch!important;margin:.48rem 0!important;color:rgba(255,250,240,.9)!important;font-size:.96rem;line-height:1.48}
.vault-essential-explanation strong{color:#fff4dc}
.vault-purpose-panel{margin-top:1rem}
.vault-pending-destination{border-left:4px solid var(--brass);background:rgba(255,248,236,.1);padding:.75rem 1rem;font-weight:800}
.vault-visibility-census small{display:block;margin-top:.3rem;color:var(--muted);font-size:.72rem;font-weight:800}
.vault-series-placeholder{display:grid;place-content:center;min-height:28rem;border:2px dashed rgba(115,78,38,.48);border-radius:8px;background:linear-gradient(145deg,rgba(74,52,35,.12),rgba(192,154,91,.18));padding:1.2rem;text-align:center;box-sizing:border-box}
.vault-series-placeholder span{color:var(--muted);font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.vault-series-placeholder strong{margin:.4rem 0 1.1rem;font-family:Georgia,"Times New Roman",serif;font-size:1.65rem;color:var(--ink)}
.vault-series-placeholder button{min-height:44px;border:1px solid #8d6936;border-radius:999px;background:#efe0b9;color:var(--ink);padding:.65rem 1rem;font-weight:900;cursor:pointer}
.vault-confirmation-route{padding:clamp(1rem,4vw,3rem)}
.vault-unlock-page{margin:clamp(1rem,8vh,5rem) auto}
.vault-unlock-dialog{width:min(92vw,650px);border:1px solid #8c6b36;border-radius:10px;background:#f1e2bc;color:var(--ink);padding:1.4rem;box-shadow:0 24px 70px rgba(20,12,7,.48)}
.vault-unlock-dialog::backdrop{background:rgba(23,14,8,.76)}
.vault-unlock-dialog h2{margin-top:0;font-family:Georgia,"Times New Roman",serif}
.vault-unlock-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.2rem}
.book-card.vault-return-highlight{outline:5px solid #d2a240;outline-offset:5px;box-shadow:0 0 0 10px rgba(210,162,64,.22),0 18px 42px rgba(48,31,15,.35);animation:vault-return-pulse .7s ease-in-out 2}
@keyframes vault-return-pulse{50%{transform:translateY(-4px)}}
@media(max-width:620px){.vault-unlock-actions,.vault-state-actions{display:grid}.vault-unlock-actions button,.vault-state-actions>*{width:100%}.vault-series-placeholder{min-height:12rem}}
@media (max-width:1220px) and (min-width:961px){.vault-access-panel{grid-template-columns:minmax(0,1fr)}.vault-access-panel .vault-door-graphic{display:none}.vault-door-panel h2{font-size:clamp(1.9rem,3.2vw,2.5rem)}}
@media (max-width:960px) and (min-width:701px),(max-width:960px) and (orientation:landscape){.vault-open,.vault-locked{grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);gap:.7rem}.vault-access-panel{grid-template-columns:minmax(0,1fr);padding:.8rem}.vault-access-panel .vault-door-graphic{display:none}.vault-door-panel h2{font-size:clamp(1.55rem,3.7vw,2.15rem)}.vault-essential-explanation{margin-top:.75rem;padding:.7rem .75rem}.vault-essential-explanation h3{font-size:clamp(1.12rem,2.8vw,1.45rem)}.vault-essential-explanation p{font-size:clamp(.78rem,1.7vw,.9rem);line-height:1.38}.vault-brooks-research{padding:.65rem}.vault-state-actions{gap:.45rem}.vault-state-actions>*{padding:.58rem .68rem}}
@media (max-width:700px) and (orientation:portrait){.vault-open,.vault-locked{grid-template-columns:minmax(0,1fr)}.vault-access-panel{grid-template-columns:minmax(0,1fr)}.vault-access-panel .vault-door-graphic{display:none}.vault-research-artifact,.vault-research-artifact img{height:auto}}
@media(max-width:700px){.character-award-grid,.shame-category-grid{grid-template-columns:1fr}.character-award-card,.shame-exhibit-card{grid-template-columns:4.5rem 1fr}.museum-featured.populated{grid-template-columns:4rem 1fr}}
@media(max-width:700px){.photo-gallery-detail-panel{align-items:flex-start;flex-direction:column}}

/* Book files read like a packed case desk, not equal-height dashboard rows. */
@media (min-width: 701px) {
  .detail-grid {
    display: block;
    column-count: 2;
    column-gap: 1rem;
  }

  .detail-grid > .detail-panel {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    break-inside: avoid;
    grid-column: auto;
  }

  .detail-grid > .photo-gallery-detail-panel,
  .detail-grid > .metadata-panel {
    column-span: all;
  }
}

/* Photo cards crop around their saved focal point; the full viewer stays uncropped. */
.gallery-thumbnail-button img,
.single-visual .gallery-thumbnail-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.gallery-thumbnail-button img.gallery-cropped-image,
.single-visual .gallery-thumbnail-button img.gallery-cropped-image{right:auto;bottom:auto;height:auto;max-width:none;max-height:none;object-fit:initial}
@media(max-width:700px){.book-detail-museum{grid-template-columns:1fr}.book-detail-museum>*{grid-column:1}}
@media(max-width:760px){.movement-exhibit-grid{grid-template-columns:1fr}.movement-snapshot-desk ol{columns:1}.ranking-history-summary{grid-template-columns:1fr}.ranking-history-list li{grid-template-columns:1fr;gap:.15rem}}
/* Foyer geography: one clear report column and one wide archive column. */
.foyer-room {
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.78fr);
}

@media(max-width:1180px){
  .foyer-room{grid-template-columns:minmax(240px,0.82fr) minmax(0,1.78fr)}
  .foyer-activity-panel{max-height:none}
}

@media (min-width: 761px) and (max-width: 900px) {
  .foyer-left-column .report-file-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .foyer-left-column .empty-chair {
    min-height: 92px;
  }
}

.foyer-archive-update {
  width: 100%;
  margin: 0;
  border-left: 5px solid rgba(132, 51, 34, 0.7);
  padding: clamp(0.8rem, 1.6vw, 1rem) clamp(0.9rem, 2vw, 1.25rem);
}

.archive-update-unread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(100%, 840px);
  margin: 0 auto;
  border: 1px solid rgba(196, 154, 85, 0.52);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(51, 31, 21, 0.97), rgba(91, 50, 33, 0.95));
  color: var(--ivory);
  padding: 0.62rem 0.75rem;
  box-shadow: 0 8px 20px rgba(24, 15, 9, 0.18);
}

.archive-update-unread p,
.archive-update-unread strong {
  margin: 0;
}

.archive-update-unread .eyebrow {
  color: rgba(255, 239, 203, 0.76);
  font-size: 0.68rem;
}

.archive-update-unread strong {
  display: block;
  margin-top: 0.1rem;
  font-family: Georgia, "Times New Roman", serif;
}

.archive-update-unread .mini-action {
  flex: 0 0 auto;
  border-color: rgba(255, 232, 178, 0.6);
  background: rgba(255, 247, 231, 0.94);
}

.reading-curator-disclosure {
  border-top: 1px solid rgba(112, 77, 52, 0.2);
  padding-top: 0.65rem;
}

.reading-curator-disclosure > summary {
  cursor: pointer;
  color: var(--ember-dark);
  font-weight: 900;
  list-style-position: inside;
}

.reading-curator-disclosure[open] > summary {
  margin-bottom: 0.65rem;
}

.foyer-right-column .recommendation-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foyer-right-column .recommendation-card:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 760px), (max-width: 950px) and (max-height: 500px) {
  .foyer-room,
  .foyer-room.has-activity-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-update-unread,
  .foyer-archive-update {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .archive-update-unread,
  .foyer-archive-update {
    padding: 0.65rem 0.7rem;
  }

  .foyer-right-column .recommendation-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .foyer-right-column .recommendation-card:first-child {
    grid-column: auto;
  }
}

/* Unfinished Business uses compact archive files, never cover-art billboards. */
.unfinished-business-intro {
  gap: 0.35rem;
  padding: 0.9rem 1.2rem;
}

.unfinished-business-intro h1 {
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  line-height: 1;
}

.unfinished-business-hero .release-monitoring-desk {
  grid-template-areas: "art brief rhythm";
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.72fr) minmax(230px, 0.72fr);
  gap: 0.85rem;
}

.unfinished-business-hero .release-desk-image-frame img {
  display: block;
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
}

.unfinished-business-hero .release-desk-brief,
.unfinished-business-hero .release-desk-rhythm {
  padding: 0.75rem;
}

.series-bucket-card .thread-board,
.thread-more .thread-board,
.tracked-loose-ends {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.thread-card {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.thread-card-front {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-height: 190px;
  padding: 0.8rem;
}

.thread-card-cover {
  display: grid;
  width: 92px;
  min-width: 0;
  place-items: start center;
  align-self: start;
  border-radius: 7px;
  background: rgba(72, 47, 31, 0.06);
}

.thread-card-cover .archive-image,
.thread-card-cover .thread-cover,
.thread-card-cover img.thread-cover {
  display: block;
  width: 100%;
  height: 138px;
  max-height: 138px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

.thread-card-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.38rem;
}

.thread-card-copy > * {
  margin-top: 0;
  margin-bottom: 0;
}

.thread-card h2 {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thread-card-copy > p:not(.eyebrow):not(.thread-local-status) {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.monitoring-facts {
  gap: 0.3rem 0.65rem;
}

.monitoring-facts dd,
.brooks-monitoring-note,
.loose-end-status {
  font-size: 0.82rem;
  line-height: 1.2;
}

.brooks-monitoring-note {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-card-actions {
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.thread-card-actions .mini-action,
.thread-card-actions .primary-link {
  min-height: 34px;
  padding: 0.38rem 0.44rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.tracked-work-card {
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 190px;
  gap: 0.75rem;
  padding: 0.8rem;
}

.tracked-work-cover,
.tracked-work-cover img {
  width: 82px;
  height: 120px;
  min-height: 120px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .series-bucket-card .thread-board,
  .thread-more .thread-board,
  .tracked-loose-ends {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .unfinished-business-hero .release-monitoring-desk {
    grid-template-areas: "art brief" "art rhythm";
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.85fr);
  }
}

@media (max-width: 860px) {
  .unfinished-business-hero .release-monitoring-desk {
    grid-template-areas: "art" "brief" "rhythm";
    grid-template-columns: minmax(0, 1fr);
  }

  .unfinished-business-hero .release-desk-image-frame img {
    height: auto;
    max-height: 280px;
  }

  .series-bucket-card .thread-board,
  .thread-more .thread-board,
  .tracked-loose-ends {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .thread-card-front {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 0;
    padding: 0.7rem;
  }

  .thread-card-cover {
    width: 78px;
  }

  .thread-card-cover .archive-image,
  .thread-card-cover .thread-cover,
  .thread-card-cover img.thread-cover {
    height: 116px;
    max-height: 116px;
  }
}
.owner-edit-book-action{background:linear-gradient(135deg,#d9b869,#a9792e);color:#24190f;border-color:#e8cf8b;margin-right:.75rem}.owner-book-controls .destructive-secondary{margin-left:auto}
.owner-book-editor{width:min(1120px,92vw);margin:2rem auto;padding:clamp(1rem,3vw,2rem);background:linear-gradient(145deg,#f2e7cb,#ddcba4);border:1px solid #9c783e;box-shadow:0 20px 55px #1d130e55;color:#2d2118}.owner-book-editor>header{display:grid;grid-template-columns:1fr auto;gap:.5rem 1rem;align-items:end;border-bottom:1px solid #9c783e;padding-bottom:1rem}.owner-book-editor>header h1,.owner-book-editor>header p{grid-column:1}.owner-book-editor>header a{grid-column:2;grid-row:1/4}
.owner-edit-context{display:flex;flex-wrap:wrap;gap:.6rem 1rem;padding:1rem 0;font-size:.9rem}.owner-edit-context span,.owner-edit-context a{padding:.4rem .65rem;background:#fff7e6;border:1px solid #c5a56b;border-radius:999px}.owner-edit-context small{flex-basis:100%}.owner-book-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.owner-edit-field{display:grid;gap:.35rem}.owner-edit-field input,.owner-edit-field select,.owner-edit-field textarea,.edit-repository-panel select{width:100%;padding:.72rem;border:1px solid #9c783e;background:#fffaf0;color:#2d2118;border-radius:.35rem}.owner-edit-field textarea{min-height:7rem;resize:vertical}.owner-edit-field.targeted-field{padding:.65rem;border:2px solid #b67f22;background:#f8edce}.owner-edit-actions{grid-column:1/-1;display:flex;justify-content:space-between;gap:1rem;margin-top:1rem}
.repository-intake-fields input,
.repository-intake-fields select,
.repository-intake-fields textarea,
.owner-book-edit-form input,
.owner-book-edit-form select,
.owner-book-edit-form textarea,
.edit-repository-panel select{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-size:1rem;
  font-weight:500;
  line-height:1.45;
}
.repository-intake-fields input::placeholder,
.repository-intake-fields textarea::placeholder,
.owner-book-edit-form input::placeholder,
.owner-book-edit-form textarea::placeholder{
  color:#796b5c;
  font:inherit;
  opacity:.82;
}
.repository-intake-fields :is(input,select,textarea):disabled,
.owner-book-edit-form :is(input,select,textarea):disabled,
.edit-repository-panel select:disabled{
  color:#71675d;
  -webkit-text-fill-color:#71675d;
  opacity:.72;
}
.owner-book-editor>header .owner-edit-cancel-note{grid-column:2;grid-row:4;text-align:right;color:var(--muted)}.owner-edit-actions>div{display:grid;gap:.35rem}.owner-edit-actions small{max-width:28rem;color:var(--muted)}.owner-edit-save-step{justify-items:end;text-align:right}.owner-edit-actions button:disabled{cursor:not-allowed;filter:grayscale(.35);opacity:.5}
.owner-edit-review dl{display:grid;gap:.65rem}.owner-edit-review dl>div{display:grid;grid-template-columns:minmax(9rem,.35fr) 1fr;gap:1rem;padding:.75rem;border-bottom:1px solid #bfa675}.owner-edit-review dd{display:grid;gap:.3rem}.owner-edit-review del{color:#7c3f35}.owner-edit-review ins{color:#315f3f;text-decoration:none;font-weight:700}.owner-edit-review>div{display:flex;justify-content:flex-end;gap:1rem;margin-top:1rem}.edit-repository-panel label{display:grid;gap:.4rem;margin:1rem 0}.edit-repository-panel .primary-link{margin-right:.5rem}
.owner-series-scope{display:grid;gap:.6rem;margin:1rem 0;padding:1rem;border:1px solid #a77d38;background:#fff5d9}.owner-series-scope legend{padding:0 .4rem;font-weight:800}.owner-series-scope label{display:flex;align-items:flex-start;gap:.55rem}.owner-series-impact{margin:1rem 0;padding:1rem;border-left:4px solid #a9792e;background:#f5e7c4}.owner-series-impact-list{display:grid;gap:.55rem}.owner-series-impact-list article{display:grid;grid-template-columns:minmax(9rem,1fr) minmax(10rem,1fr) 7rem 1fr 1fr 7rem;gap:.5rem;align-items:center;padding:.6rem;border-top:1px solid #c4a871}.owner-series-impact-list article.already-matches{opacity:.68}.owner-series-impact-list code{overflow-wrap:anywhere;font-size:.75rem}.owner-series-impact-list ins{text-decoration:none;color:#315f3f;font-weight:800}
.actionable-series-issue ul{display:grid;gap:.6rem;padding-left:1.2rem}.actionable-series-issue li{padding:.35rem}.series-exception-ledger{margin-top:1.25rem;padding:1rem;background:#eadcba;border:1px solid #9c783e}.series-exception-ledger>div{display:flex;justify-content:space-between;gap:1rem;padding:.5rem;border-top:1px solid #bda371}.series-clean-state{padding:1.25rem;margin:1rem 0;background:#e8dfc3;border:1px solid #8b743f}
.cover-provider-disclosure{margin:1rem 0;border:1px solid #806944;background:#eadfc2}.cover-provider-disclosure>summary{cursor:pointer;padding:.85rem 1rem;font-weight:700;min-height:44px}.cover-provider-disclosure[open]>summary span{display:inline-block;transform:rotate(90deg)}.cover-provider-disclosure .cover-provider-readiness{margin:0;border:0;border-top:1px solid #a88c56}
.cover-docket-compact-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin:.8rem 0}
.cover-docket-disclosure{border-top:1px solid rgba(113,80,43,.35);margin-top:.65rem}
.cover-docket-disclosure>summary{cursor:pointer;min-height:44px;padding:.75rem .15rem;font-weight:700;color:var(--ink)}
.cover-docket-disclosure[open]>summary span{display:inline-block;transform:rotate(90deg)}
.manual-cover-selection-review{display:grid;grid-template-columns:minmax(120px,190px) 1fr;gap:1rem;margin:1rem 0;padding:1rem;border:1px solid rgba(150,105,44,.55);background:rgba(255,247,220,.62)}
.manual-cover-selection-review img{width:100%;max-height:260px;object-fit:contain;background:#241c15}
.manual-cover-selection-review dl{margin:.6rem 0}.manual-cover-selection-review dl div{display:grid;grid-template-columns:110px 1fr;gap:.5rem}.manual-cover-selection-review dd{margin:0}
.manual-cover-review-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.8rem}
.repository-title-lookup{position:relative}
.repository-title-lookup>label{font-weight:700}
.repository-title-matches{position:absolute;z-index:25;top:100%;left:0;right:0;max-height:320px;overflow:auto;padding:.4rem;background:#f4e7c6;border:1px solid #806944;box-shadow:0 14px 28px rgba(35,23,12,.25)}
.repository-title-matches article{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem;border-bottom:1px solid rgba(128,105,68,.35)}
.repository-title-matches article:last-child{border-bottom:0}.repository-title-matches article div{display:grid;gap:.12rem}.repository-title-matches em{color:#7a321e;font-style:normal;font-weight:700}
@media(max-width:620px){.manual-cover-selection-review{grid-template-columns:1fr}.manual-cover-selection-review img{max-height:320px}.repository-title-matches article{align-items:flex-start;flex-direction:column}}
.owner-decision-dialog{width:min(92vw,620px);max-height:88vh;padding:0;border:1px solid #8c6b36;border-radius:10px;color:var(--ink);background:#f1e2bc;box-shadow:0 24px 70px rgba(20,12,7,.48)}
.owner-decision-dialog::backdrop{background:rgba(23,14,8,.72)}
.owner-decision-dialog form{display:grid;gap:1rem;padding:1.25rem}.owner-decision-dialog header{position:relative;padding-right:3rem}.owner-decision-dialog h2{margin:.1rem 0}.owner-decision-close{position:absolute;right:0;top:0;width:44px;height:44px;border:1px solid #84683f;background:transparent;font-size:1.5rem;cursor:pointer}
.owner-decision-detail{padding:.75rem;border-left:3px solid #9c7438;background:rgba(255,250,232,.48)}.owner-decision-dialog label{display:grid;gap:.35rem;font-weight:700}.owner-decision-dialog input,.owner-decision-dialog textarea{width:100%;box-sizing:border-box}.owner-decision-dialog textarea{min-height:100px}
.owner-decision-dialog fieldset{margin:0;padding:.75rem;border:1px solid rgba(112,78,39,.35);border-radius:.7rem}.owner-decision-choices{display:flex;flex-wrap:wrap;gap:.55rem}.owner-decision-choices label{display:flex;align-items:center;gap:.35rem;padding:.45rem .65rem;border:1px solid rgba(112,78,39,.35);border-radius:999px;background:rgba(255,250,232,.5)}.owner-decision-choices input{width:auto}
.owner-decision-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.65rem}.owner-decision-dialog .destructive-action{min-height:44px;padding:.7rem 1rem;border:1px solid #69271d;background:#7b3024;color:#fff;cursor:pointer}
.loose-end-loading-dialog{width:min(92vw,560px)}
.loose-end-loading-content{display:grid;gap:1rem;box-sizing:border-box;padding:clamp(1.5rem,4vw,2rem);text-align:left}
.loose-end-loading-content header,.loose-end-loading-content p{margin:0}
.loose-end-loading-content h2{margin:.2rem 0 0;line-height:1.15}
.loose-end-loading-status{padding:.85rem 1rem;border-left:3px solid #9c7438;border-radius:4px;background:rgba(255,250,232,.55)}
.loose-end-loading-content footer{margin-top:.25rem}

/* Action readiness: strong when actionable, quiet only when unavailable. */
button.primary-link:not(:disabled),
button[type="submit"].primary-link:not(:disabled) {
  border-color: #4b2d1d;
  background: linear-gradient(180deg, #5b3824, #3a2117);
  color: #fff8e9;
  box-shadow: 0 5px 12px rgba(35, 20, 13, 0.2);
}
button.primary-link:not(:disabled):hover,
button.primary-link:not(:disabled):focus-visible {
  background: linear-gradient(180deg, #744b2d, #472719);
  outline: 3px solid rgba(202, 153, 71, 0.72);
  outline-offset: 2px;
}
button.primary-link:active:not(:disabled) { transform: translateY(1px); }
button.primary-link:disabled,
button.primary-link.not-ready,
.mini-action:disabled,
.ghost-button:disabled {
  border-color: rgba(96, 72, 53, 0.25);
  background: #e8ddca;
  color: #766a5e;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.destructive-action:not(:disabled) {
  border-color: #69271d;
  background: #7b3024;
  color: #fff8f3;
}
.clear-filters-button:not(:disabled) {
  border-color: #4b2d1d;
  background: #4a2b1d;
  color: #fff8e9;
}
button[aria-busy="true"] { cursor: wait; }
.mini-action:not(:disabled) {
  border-color: #4b2d1d;
  background: linear-gradient(180deg, #5b3824, #3a2117);
  color: #fff8e9;
}
.mini-action.destructive-action:not(:disabled) {
  border-color: #69271d;
  background: #7b3024;
  color: #fff8f3;
}
button[aria-busy="true"]:disabled {
  border-color: rgba(96, 72, 53, 0.25);
  background: #e8ddca;
  color: #766a5e;
  opacity: 1;
}

.repository-author-lookup { position: relative; }
.repository-author-matches {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid #9c783e;
  border-radius: 0 0 .5rem .5rem;
  background: #fffaf0;
  box-shadow: 0 14px 28px rgba(38, 24, 15, .22);
}
.repository-author-matches button {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(156,120,62,.25);
  background: transparent;
  color: #2d2118;
  padding: .7rem .8rem;
  text-align: left;
  cursor: pointer;
}
.repository-author-matches button:hover,
.repository-author-matches button:focus-visible,
.repository-author-matches button.active {
  background: #ead8ad;
  outline: 2px solid #8b6027;
  outline-offset: -2px;
}

.mobile-filter-toggle,
.mobile-filter-heading,
.mobile-filter-actions,
.shelf-filter-backdrop { display: none; }

@media (max-width: 1100px) and (orientation: portrait),
       (max-width: 1000px) and (max-height: 520px) and (orientation: landscape) {
  .library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-layout::before { grid-column: 1; }
  .library-results { grid-column: 1; }
  .shelf-inspector {
    position: static;
  }
  .shelf-inspector-shell { grid-column: 1; grid-row: auto; }
  .mobile-filter-toggle {
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 46px;
    width: min(15rem, 100%);
  }
  .mobile-filter-toggle span {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
    border-radius: 999px;
    background: #f3dfb2;
    color: #3b2518;
    font-size: .75rem;
  }
  .shelf-filter-backdrop {
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(25, 16, 11, .58);
  }
  .shelf-filter-backdrop.open { display: block; }
  .filter-panel {
    position: fixed;
    z-index: 1000;
    display: block;
    top: .5rem;
    left: .5rem;
    bottom: .5rem;
    width: min(34rem, calc(100vw - 1rem));
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(1rem, 3vw, 1.35rem);
    border-radius: 12px;
    background: #fbf3e4;
    transform: translateX(calc(-100% - 1rem));
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms;
  }
  .filter-panel.mobile-open {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-filter-heading {
    position: sticky;
    z-index: 2;
    top: -1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -1rem -1rem 0;
    padding: 1rem;
    border-bottom: 1px solid rgba(91,62,35,.24);
    background: #fbf3e4;
  }
  .filter-panel h1 { max-width: none; font-size: clamp(1.25rem, 4vw, 1.65rem); }
  .shelf-search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .shelf-search-row input { width: 100%; min-width: 0; }
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .8rem;
  }
  .filter-grid fieldset {
    min-width: 0;
    max-height: 17rem;
    overflow: auto;
  }
  .mobile-filter-actions {
    position: sticky;
    bottom: -1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
    margin: .5rem -1rem -1rem;
    padding: 1rem;
    border-top: 1px solid rgba(91,62,35,.24);
    background: #fbf3e4;
  }
}

@media (max-width: 520px) {
  .filter-grid,
  .shelf-search-row,
  .mobile-filter-actions { grid-template-columns: 1fr; }
  .mobile-filter-toggle { width: 100%; }
  .filter-panel { width: calc(100vw - 1rem); }
  .filter-grid fieldset { max-height: 14rem; }
}

.tracked-series-work-panel article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tracked-series-work-panel article > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.tracked-series-work-panel article span,
.tracked-series-work-panel article small {
  display: block;
}

.series-maintenance-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .tracked-series-work-panel article {
    align-items: stretch;
    flex-direction: column;
  }

  .tracked-series-work-panel article .mini-action {
    align-self: flex-start;
  }
}
@media(max-width:520px){.owner-decision-dialog footer{display:grid}.owner-decision-dialog footer button{width:100%}.loose-end-loading-content{padding:1.5rem;gap:.85rem}}
@media(max-width:760px){.owner-book-edit-form{grid-template-columns:1fr}.owner-book-editor>header{display:block}.owner-book-editor>header a{display:inline-block;margin-top:.75rem}.owner-edit-review dl>div{grid-template-columns:1fr}.owner-edit-actions,.owner-edit-review>div{flex-direction:column}.owner-series-impact-list article{grid-template-columns:1fr}.series-exception-ledger>div{align-items:flex-start;flex-direction:column}}
@media (max-width: 720px) {
  .repository-intake-success {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .repository-intake-receipt-mark {
    width: min(150px, 48vw);
    min-height: 120px;
    justify-self: center;
  }

  .repository-intake-success-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .repository-intake-success-actions .receipt-return-action {
    margin-left: 0;
  }
}
.owner-file-field input[type="file"] {
  min-height: 4.5rem;
  padding: 1rem;
  border: 1px dashed currentColor;
  cursor: pointer;
}

.loose-end-cover-dropzone {
  display: grid;
  gap: 0.6rem;
  min-height: 8rem;
  place-content: center;
  text-align: center;
}

.loose-end-cover-dropzone.drag-over {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.loose-end-cover-dropzone img {
  width: min(9rem, 35vw);
  max-height: 13rem;
  object-fit: contain;
  margin-inline: auto;
}

.loose-end-cover-dropzone > div {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: min(100%, 24rem);
  min-width: 0;
}

.loose-end-cover-dropzone > div small,
.loose-end-cover-dropzone > div strong {
  display: block;
  width: 100%;
}

.loose-end-cover-dropzone > div strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.loose-end-cover-dropzone > div .mini-action {
  justify-self: center;
  width: auto;
  margin-top: 0.2rem;
}

@media (max-width: 520px) {
  .loose-end-cover-dropzone {
    padding-inline: 0.75rem;
  }

  .loose-end-cover-dropzone > div .mini-action {
    max-width: 100%;
  }
}
.omnibus-constituents-panel {
  grid-column: 1 / -1;
}

.omnibus-constituent-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.omnibus-constituent-card {
  padding: 1rem;
  border: 1px solid rgba(126, 92, 45, 0.25);
  border-radius: 0.9rem;
  background: rgba(255, 250, 239, 0.62);
}

.omnibus-constituent-heading {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.omnibus-constituent-heading > span {
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 999px;
  background: var(--gold, #a67c35);
  color: #fff;
  font-weight: 700;
}

.omnibus-constituent-heading h3,
.omnibus-constituent-heading p {
  margin: 0;
}

.omnibus-constituent-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.omnibus-constituent-facts div {
  display: grid;
  gap: 0.15rem;
}

.omnibus-constituent-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.omnibus-constituent-facts dd {
  margin: 0;
  font-weight: 700;
}

/* Shelf filter information architecture: tall multi-select sidebar + compact toolbar. */
.filter-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow-x: hidden;
}

.shelf-multiselect-filters {
  min-height: 0;
  grid-template-rows: minmax(13rem, 0.42fr) minmax(18rem, 1fr);
}

.shelf-multiselect-filters .multi-field,
.shelf-multiselect-filters .multi-field > div {
  min-height: 0;
}

.shelf-multiselect-filters .multi-field > div {
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.shelf-multiselect-filters .multi-field label {
  min-width: 0;
}

.shelf-multiselect-filters .multi-field label span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
}

.shelf-multiselect-filters .filter-option-label-long {
  font-size: 0.78rem;
  line-height: 1.35;
}

.mobile-secondary-filters {
  display: none;
}

.results-header {
  align-items: flex-start;
}

.shelf-result-statement {
  margin-left: auto;
  color: #f1dca9;
  font-size: 0.98rem;
  text-align: right;
}

.shelf-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
  border-top: 1px solid rgba(196, 154, 85, 0.18);
  padding: 0.62rem 0.82rem 0.7rem;
  background: rgba(13, 9, 6, 0.12);
}

.shelf-toolbar-controls,
.mobile-secondary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: end;
}

.mobile-secondary-filters {
  display: none;
}

.shelf-toolbar-controls .field,
.mobile-secondary-filters .field {
  flex: 1 1 7.5rem;
  min-width: 6.8rem;
  max-width: 11rem;
  gap: 0.2rem;
}

.shelf-toolbar-controls .field span {
  color: rgba(247, 240, 230, 0.72);
  font-size: 0.7rem;
  line-height: 1;
}

.shelf-toolbar-controls > .field > span,
.mobile-secondary-filters > .field > span,
.series-type-label-row {
  min-height: 0.9rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shelf-toolbar-controls > .field > span,
.mobile-secondary-filters > .field > span {
  display: flex;
}

.shelf-toolbar-controls > .field:has(select[data-filter="sortBy"]) > span,
.shelf-toolbar-controls > .field:has(select[data-filter="spiceLevel"]) > span,
.mobile-secondary-filters > .field:has(select[data-filter="sortBy"]) > span,
.mobile-secondary-filters > .field:has(select[data-filter="spiceLevel"]) > span {
  font-size: 0.78rem;
  font-weight: 900;
}

.shelf-series-type-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.2rem;
  flex: 1 1 11.5rem;
  min-width: min(100%, 10.5rem);
  max-width: 14rem;
}

.series-type-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.series-type-label-row > span {
  white-space: nowrap;
}

.series-type-label-separator {
  color: rgba(247, 240, 230, 0.48) !important;
  font-weight: 500 !important;
}

.shelf-toolbar-controls .shelf-series-type-filter {
  min-width: 9.7rem;
}

.series-completed-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  min-height: 0;
  color: #f5dfaa;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 520px) and (orientation: portrait) {
  .mobile-secondary-filters .series-type-label-row {
    flex-wrap: wrap;
    row-gap: 0.2rem;
    white-space: normal;
  }
}

.shelf-series-type-filter .series-completed-checkbox input {
  appearance: auto;
  width: 0.9rem;
  height: 0.9rem;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  accent-color: #d2a84e;
  box-shadow: none;
}

.series-completed-checkbox:has(input:focus-visible) {
  border-radius: 4px;
  outline: 2px solid #ffe68b;
  outline-offset: 3px;
}

.shelf-toolbar-controls .field select,
.mobile-secondary-filters .field select {
  min-height: 36px;
  padding-block: 0.42rem;
  font-size: 0.78rem;
}

.shelf-filter-toggle {
  flex: 0 1 auto;
  min-height: 36px;
  border: 1px solid rgba(196, 154, 85, 0.5);
  border-radius: 999px;
  background: rgba(255, 244, 220, 0.08);
  color: #f5dfaa;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.05;
  padding: 0.48rem 0.68rem;
  white-space: nowrap;
}

.shelf-filter-toggle:hover,
.shelf-filter-toggle:focus-visible {
  border-color: rgba(255, 226, 160, 0.82);
  background: rgba(255, 235, 166, 0.15);
}

.shelf-filter-toggle.active {
  border-color: #ffe68b;
  background: linear-gradient(180deg, #f6d875, #c38c22);
  color: #3f2807;
  box-shadow: 0 0 12px rgba(242, 198, 75, 0.34);
}

.shelf-right-filter-stack {
  display: grid;
  gap: 0.38rem;
  align-self: end;
  justify-items: end;
}

.shelf-ku-filter,
.shelf-right-filter-stack .gold-seal-shelf-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 34px;
  border: 1px solid rgba(196, 154, 85, 0.5);
  border-radius: 999px;
  background: rgba(255, 244, 220, 0.08);
  color: #f5dfaa;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.38rem 0.62rem;
  white-space: nowrap;
}

.shelf-ku-filter > span {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  min-height: 1.2rem;
  border-radius: 999px;
  background: #f3dfb2;
  color: #402812;
  font-size: 0.66rem;
  font-weight: 950;
}

.shelf-ku-filter:hover,
.shelf-ku-filter:focus-visible,
.shelf-right-filter-stack .gold-seal-shelf-filter:hover,
.shelf-right-filter-stack .gold-seal-shelf-filter:focus-visible {
  border-color: rgba(255, 226, 160, 0.84);
  background: rgba(255, 235, 166, 0.15);
}

.shelf-ku-filter.active,
.shelf-right-filter-stack .gold-seal-shelf-filter.active {
  border-color: #ffe68b;
  background: linear-gradient(180deg, #f6d875, #c38c22);
  color: #3f2807;
  box-shadow: 0 0 12px rgba(242, 198, 75, 0.32);
}

.shelf-gold-explanation {
  justify-self: end;
  width: min(16rem, 100%);
  max-width: 16rem;
  color: rgba(247, 240, 230, 0.78);
  font-size: 0.68rem;
  line-height: 1.28;
  text-align: right;
}

.shelf-gold-explanation summary {
  width: fit-content;
  margin-left: auto;
  cursor: pointer;
  color: #f1dca9;
  font-weight: 800;
}

.shelf-gold-explanation summary:focus-visible {
  border-radius: 3px;
  outline: 2px solid #ffe68b;
  outline-offset: 3px;
}

.shelf-gold-explanation p {
  margin: 0.35rem 0 0;
  text-align: left;
}

.owner-format-filter {
  border-top: 1px solid rgba(196, 154, 85, 0.16);
  color: #f1dca9;
  padding: 0.38rem 0.82rem 0.5rem;
}

.owner-format-filter summary {
  width: fit-content;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.owner-format-filter > div {
  width: min(17rem, 100%);
  padding-top: 0.42rem;
}

.owner-format-filter .field span {
  font-size: 0.7rem;
}

@media (max-width: 1450px) and (min-width: 861px),
       (max-width: 1100px) and (orientation: landscape) {
  .library-layout {
    grid-template-columns: minmax(190px, 225px) minmax(0, 1fr);
  }

  .library-layout::before {
    grid-column: 2;
  }

  .filter-panel {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 5.5rem);
    overflow: hidden;
  }

  .library-results {
    grid-column: 2;
    grid-row: 2;
    max-height: calc(100vh - 8.5rem);
    overflow-y: auto;
  }

  .filter-panel .shelf-sidebar-heading,
  .filter-panel .shelf-search-row,
  .filter-panel .shelf-multiselect-filters,
  .filter-panel .mobile-secondary-filters {
    margin-bottom: 0.8rem;
  }

  .shelf-inspector-shell {
    grid-column: 2;
    grid-row: 3;
  }

  .shelf-inspector {
    position: static;
  }

  .mobile-filter-toggle,
  .shelf-filter-backdrop {
    display: none;
  }

  .results-header {
    align-items: flex-start;
    flex-direction: row;
  }

  .archive-census {
    justify-items: end;
    text-align: right;
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  .topbar {
    min-height: 64px;
    padding: 0.42rem 0.55rem;
    flex-direction: row;
    gap: 0.45rem;
  }

  .brand {
    flex: 0 0 auto;
    gap: 0.42rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .main-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.2rem;
  }

  .main-nav a {
    flex: 1 1 auto;
    min-height: 38px;
    border-left-width: 4px;
    font-size: 0.7rem;
    line-height: 1.05;
    padding: 0.42rem 0.38rem;
    text-align: center;
  }

  main {
    padding: 0.55rem;
  }

  .library-layout {
    grid-template-columns: minmax(170px, 205px) minmax(0, 1fr);
    gap: 0.65rem;
  }

  .library-layout::before {
    display: none;
  }

  .filter-panel {
    grid-row: 1;
    top: 70px;
    gap: 0.45rem;
    max-height: calc(100vh - 4.8rem);
    padding: 0.62rem;
  }

  .library-results {
    grid-row: 1;
    max-height: calc(100vh - 4.8rem);
  }

  .shelf-sidebar-heading {
    display: none;
  }

  .shelf-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf-search-row .clear-filters-button {
    width: 100%;
  }

  .shelf-multiselect-filters {
    grid-template-rows: minmax(7rem, 0.42fr) minmax(10rem, 1fr);
  }

  .results-header {
    gap: 0.55rem;
    padding: 0.55rem 0.62rem;
  }

  .results-header h2 {
    font-size: 1.08rem;
  }

  .archive-census span,
  .archive-census small {
    font-size: 0.66rem;
  }

  .archive-census strong {
    font-size: 0.9rem;
  }

  .shelf-toolbar {
    padding: 0.5rem 0.62rem 0.58rem;
  }

  .shelf-toolbar-controls .field {
    flex-basis: 6.4rem;
    min-width: 5.9rem;
  }

  .shelf-toolbar-controls .field select,
  .shelf-filter-toggle {
    font-size: 0.7rem;
  }

  .alphabet-jump {
    gap: 0.18rem;
    padding: 0.42rem 0.62rem 0.5rem;
  }

  .alphabet-jump-button {
    min-width: 1.62rem;
    min-height: 1.62rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 1100px) and (orientation: portrait),
       (max-width: 1000px) and (max-height: 520px) and (orientation: landscape) {
  .shelf-toolbar {
    display: none;
  }

  .mobile-secondary-filters {
    display: flex;
    border-top: 1px solid rgba(91, 62, 35, 0.2);
    padding-top: 0.8rem;
  }

  .mobile-secondary-filters .field span {
    color: var(--muted);
    font-size: 0.74rem;
  }

  .mobile-secondary-filters .shelf-filter-toggle {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
  }

  .mobile-secondary-filters .shelf-filter-toggle.active {
    border-color: #9c6a1d;
    background: linear-gradient(180deg, #f6d875, #c38c22);
    color: #3f2807;
  }

  .shelf-multiselect-filters {
    grid-template-rows: none;
  }

  .shelf-multiselect-filters .multi-field > div {
    max-height: 17rem;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .mobile-secondary-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-secondary-filters .field {
    width: 100%;
    max-width: none;
  }

  .mobile-secondary-filters .shelf-filter-toggle {
    width: 100%;
  }

}

.phone-shelf-command-bar,
.shelf-mobile-navigation,
.shelf-nav-backdrop,
.phone-orientation-tip {
  display: none;
}

@media (max-width: 520px) and (orientation: portrait),
       (max-width: 1000px) and (max-height: 520px) and (orientation: landscape) {
  body:has(.library-layout) .topbar {
    display: none;
  }

  main {
    padding: 0.45rem;
  }

  .library-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .library-layout::before,
  .shelf-toolbar,
  .shelf-command-header > .owner-format-filter {
    display: none;
  }

  .phone-shelf-command-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.42rem;
    min-height: 44px;
    border: 1px solid rgba(196, 154, 85, 0.42);
    border-radius: 8px;
    background: rgba(30, 21, 15, 0.97);
    box-shadow: 0 8px 18px rgba(13, 9, 6, 0.3);
    color: var(--ivory);
    padding: 0.34rem 0.42rem;
  }

  .phone-shelf-command-bar > strong {
    grid-column: 2;
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .phone-command-button,
  .phone-shelf-command-bar .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: auto;
    min-height: 34px;
    border: 1px solid rgba(196, 154, 85, 0.5);
    border-radius: 7px;
    background: rgba(255, 244, 220, 0.1);
    color: #f7e5bd;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 0.3rem 0.48rem;
  }

  .phone-menu-button {
    grid-column: 1;
  }

  .phone-shelf-command-bar .mobile-filter-toggle {
    grid-column: 3;
  }

  .phone-shelf-command-bar .mobile-filter-toggle span {
    min-width: 1.2rem;
    min-height: 1.2rem;
    background: #f3dfb2;
    color: #3b2518;
  }

  .shelf-nav-backdrop {
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: rgba(25, 16, 11, 0.62);
  }

  .shelf-nav-backdrop.open {
    display: block;
  }

  .shelf-mobile-navigation {
    position: fixed;
    z-index: 1002;
    inset: 0 auto 0 0;
    display: grid;
    grid-template-rows: auto repeat(6, auto) 1fr;
    align-content: start;
    gap: 0.5rem;
    width: min(19rem, calc(100vw - 2.4rem));
    border-right: 1px solid rgba(196, 154, 85, 0.48);
    background: #221812;
    box-shadow: 18px 0 34px rgba(10, 7, 5, 0.45);
    padding: 0.8rem;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms;
  }

  .shelf-mobile-navigation.open {
    transform: translateX(0);
    visibility: visible;
  }

  .shelf-mobile-navigation header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: var(--ivory);
    padding-bottom: 0.55rem;
  }

  .shelf-mobile-navigation a {
    border: 1px solid rgba(196, 154, 85, 0.3);
    border-radius: 7px;
    background: rgba(255, 244, 220, 0.08);
    color: #f7e5bd;
    font-weight: 800;
    padding: 0.68rem 0.75rem;
  }

  .filter-panel {
    position: fixed;
    z-index: 1000;
    grid-column: 1;
    grid-row: 1;
    top: 0.35rem;
    bottom: 0.35rem;
    max-height: none;
    overflow-y: auto;
  }

  .mobile-filter-context {
    display: grid;
    flex: 1 0 100%;
    gap: 0.45rem;
    border: 1px solid rgba(91, 62, 35, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    padding: 0.65rem;
  }

  .mobile-filter-context .shelf-right-filter-stack {
    justify-items: start;
  }

  .mobile-filter-context .shelf-gold-explanation {
    justify-self: start;
    max-width: 28rem;
    color: var(--muted);
    text-align: left;
  }

  .mobile-filter-context .shelf-gold-explanation summary {
    margin-left: 0;
    color: var(--ink);
  }

  .mobile-filter-context .owner-format-filter {
    width: 100%;
    border-top-color: rgba(91, 62, 35, 0.2);
    color: var(--ink);
    padding: 0.45rem 0 0;
  }

  .shelf-multiselect-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(12rem, auto);
    min-height: 12rem;
  }

  .shelf-multiselect-filters .multi-field {
    max-height: none;
    overflow: visible;
  }

  .shelf-multiselect-filters .multi-field > div {
    height: 12rem;
    max-height: 12rem;
  }

  .mobile-filter-context > span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.76rem;
  }

.mobile-filter-context .gold-seal-shelf-filter {
    justify-self: start;
    min-height: 36px;
  }

  .library-results {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .shelf-command-header {
    position: static;
    top: auto;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 18px rgba(13, 9, 6, 0.26);
  }

  .results-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.58rem;
  }

  .results-header h2 {
    font-size: 1rem;
  }

  .shelf-result-statement {
    font-size: 0.86rem;
  }

  .alphabet-jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.4rem 0.5rem 0.46rem;
    scrollbar-width: thin;
  }

  .alphabet-jump-button {
    min-width: 1.72rem;
    min-height: 1.72rem;
    font-size: 0.68rem;
  }

  .shelf-inspector-shell {
    grid-column: 1;
    grid-row: 3;
  }
}

  .mobile-secondary-filters .shelf-series-type-filter {
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
  }

@media (max-width: 520px) and (orientation: portrait) {
  .shelf-multiselect-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf-multiselect-filters .multi-field > div {
    height: 15rem;
    max-height: 15rem;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .book-card {
    min-width: 0;
  }

  .phone-orientation-tip {
    position: fixed;
    z-index: 50;
    right: 0.55rem;
    bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(18rem, calc(100vw - 1.1rem));
    border: 1px solid rgba(196, 154, 85, 0.5);
    border-radius: 999px;
    background: rgba(34, 24, 18, 0.94);
    box-shadow: 0 8px 22px rgba(13, 9, 6, 0.36);
    color: #f7e5bd;
    font-size: 0.72rem;
    padding: 0.38rem 0.45rem 0.38rem 0.68rem;
  }

  .phone-orientation-tip button {
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    cursor: pointer;
  }
}

@media (max-width: 1000px) and (max-height: 520px) and (orientation: landscape) {
  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .phone-command-label {
    display: none;
  }
}

/* Canonical Archive Transcript workspace */
.archive-spoiler-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 2px solid rgba(238, 180, 83, 0.72);
  border-left: 7px solid #a84735;
  background: linear-gradient(90deg, rgba(107, 28, 26, 0.88), rgba(69, 28, 22, 0.72));
  box-shadow: 0 8px 20px rgba(11, 7, 5, 0.24);
  padding: 0.9rem 1rem;
}

.archive-spoiler-banner strong {
  color: #ffd58a;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-spoiler-banner p {
  margin: 0;
  color: #fff8ec;
  font-weight: 750;
  line-height: 1.45;
}

.archive-workspace {
  display: grid;
  grid-template-columns: minmax(15rem, 31%) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: start;
  scroll-margin-top: 7rem;
}

.archive-case-index {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 0.55rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  border: 1px solid rgba(196, 154, 85, 0.42);
  background: linear-gradient(180deg, #f4e4c4, #dfc79f);
  box-shadow: 0 12px 28px rgba(18, 13, 10, 0.18);
  padding: 1rem;
  scrollbar-width: thin;
}

.archive-case-index h2 {
  margin: 0;
  color: var(--ember-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.archive-case-index > p {
  margin: 0;
  color: #604a38;
  font-size: 0.83rem;
  line-height: 1.4;
}

.archive-case-index nav {
  display: grid;
  gap: 0.42rem;
}

.archive-index-entry {
  display: grid;
  gap: 0.16rem;
  width: 100%;
  border: 1px solid rgba(103, 68, 43, 0.28);
  border-left: 4px solid transparent;
  border-radius: 2px;
  background: rgba(255, 250, 240, 0.6);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.65rem 0.72rem;
  text-align: left;
}

.archive-index-entry:hover,
.archive-index-entry:focus-visible {
  border-color: rgba(132, 51, 34, 0.64);
  outline: 2px solid rgba(132, 51, 34, 0.24);
  outline-offset: 2px;
}

.archive-index-entry.is-selected {
  border-left-color: var(--ember);
  background: #fff9ed;
  box-shadow: inset 0 0 0 1px rgba(132, 51, 34, 0.22);
}

.archive-index-number,
.archive-index-entry small {
  color: var(--ember-dark);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.archive-index-entry strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.2;
}

.archive-index-closing {
  border-color: rgba(180, 133, 62, 0.55);
  background: #302218;
  color: var(--ivory);
}

.archive-index-closing .archive-index-number,
.archive-index-closing small {
  color: #efc777;
}

.archive-index-closing.is-selected {
  border-left-color: #efc777;
  background: #1e1510;
}

.archive-phone-topic-chooser {
  display: none;
}

.archive-selected-reader {
  min-width: 0;
  scroll-margin-top: 7rem;
}

.archive-reader-empty,
.archive-reader-filing {
  border: 1px solid rgba(196, 154, 85, 0.38);
  border-radius: 3px;
  background: linear-gradient(180deg, #f8ebd1, #e7d1aa);
  box-shadow: 0 14px 30px rgba(18, 13, 10, 0.18);
}

.archive-reader-empty {
  display: grid;
  min-height: 18rem;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

.archive-reader-empty h2 {
  margin: 0.15rem 0 0.55rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.archive-reader-empty p:last-child {
  margin: 0;
  color: #66503d;
}

.archive-reader-heading {
  position: relative;
  display: grid;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(112, 77, 52, 0.24);
  padding: 1rem 6.8rem 1rem 1.15rem;
}

.archive-reader-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}

.archive-reader-heading h2:focus-visible {
  outline: 3px solid rgba(132, 51, 34, 0.32);
  outline-offset: 3px;
}

.archive-reader-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 1px solid rgba(112, 77, 52, 0.3);
  border-radius: 2px;
  background: rgba(255, 250, 242, 0.76);
  color: var(--ember-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.48rem 0.6rem;
}

.archive-transcript-column {
  gap: 0.72rem;
  width: 100%;
}

.archive-turn {
  grid-template-columns: 5.2rem minmax(0, 1fr);
  width: 94%;
  border-top: 0;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(51, 34, 24, 0.08);
  padding: 1rem;
  text-align: left;
}

.archive-turn.speaker-ang {
  justify-self: start;
  border: 1px solid rgba(132, 51, 34, 0.18);
  border-left: 5px solid #963e35;
  background: #f7e3dc;
  padding-left: 1rem;
}

.archive-turn.speaker-brooks {
  justify-self: end;
  border: 1px solid rgba(153, 108, 45, 0.24);
  border-right: 5px solid #a97931;
  background: #efe0bd;
  padding-left: 1rem;
}

.archive-turn h3,
.archive-turn-copy,
.archive-turn-copy p {
  text-align: left;
}

.archive-reader-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  border-top: 1px solid rgba(112, 77, 52, 0.24);
  padding: 0.9rem 1rem 1rem;
}

.archive-reader-navigation button {
  min-height: 42px;
  border: 1px solid rgba(112, 77, 52, 0.32);
  border-radius: 2px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--ember-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.55rem;
}

.archive-reader-navigation button:hover,
.archive-reader-navigation button:focus-visible,
.archive-reader-close:hover,
.archive-reader-close:focus-visible {
  border-color: var(--ember);
  outline: 2px solid rgba(132, 51, 34, 0.24);
  outline-offset: 2px;
}

.archive-reader-navigation button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.archive-phone-wording {
  display: none;
}

.archive-reader-final {
  border-color: rgba(218, 170, 85, 0.58);
  background: linear-gradient(145deg, #302117, #17100d);
  color: var(--ivory);
}

.archive-reader-final .archive-reader-heading {
  border-bottom-color: rgba(218, 170, 85, 0.38);
}

.archive-reader-final .archive-reader-heading h2,
.archive-reader-final .archive-reader-heading > strong {
  color: var(--ivory);
}

.archive-reader-final .archive-reader-close,
.archive-reader-final .archive-reader-navigation button {
  border-color: rgba(218, 170, 85, 0.42);
  background: rgba(255, 248, 236, 0.08);
  color: #f2d18e;
}

.archive-full-spoilers-badge {
  justify-self: start;
  border: 1px solid #f0bd58;
  background: #772d25;
  color: #fff5dc;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.48rem;
  text-transform: uppercase;
}

@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  .archive-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .archive-selected-reader {
    scroll-margin-top: 14rem;
  }

  .archive-workspace {
    scroll-margin-top: 14rem;
  }

  .archive-case-index {
    display: none;
  }

  .archive-phone-topic-chooser {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgba(196, 154, 85, 0.4);
    background: linear-gradient(180deg, #f4e4c4, #dfc79f);
    padding: 0.72rem;
  }

  .archive-phone-topic-chooser > span {
    color: var(--ember-dark);
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .archive-phone-topic-chooser select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(112, 77, 52, 0.38);
    border-radius: 2px;
    background: #fff9ed;
    color: var(--ink);
    font: inherit;
    font-weight: 750;
    padding: 0.55rem;
  }

  .archive-spoiler-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .archive-reader-empty {
    min-height: 10rem;
    padding: 1.2rem;
  }

  .archive-reader-heading {
    padding: 0.85rem 0.85rem 0.75rem;
  }

  .archive-reader-close {
    position: static;
    justify-self: start;
    margin-top: 0.25rem;
  }

  .archive-turn,
  .archive-turn.speaker-ang,
  .archive-turn.speaker-brooks {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.32rem;
    padding: 0.85rem;
  }

  .archive-turn.speaker-ang {
    border-left: 5px solid #963e35;
    border-right: 1px solid rgba(132, 51, 34, 0.18);
  }

  .archive-turn.speaker-brooks {
    border-left: 1px solid rgba(153, 108, 45, 0.24);
    border-right: 5px solid #a97931;
  }

  .archive-reader-navigation {
    gap: 0.3rem;
    padding: 0.7rem;
  }

  .archive-reader-navigation button {
    min-width: 0;
    font-size: 0.7rem;
    padding: 0.45rem 0.25rem;
  }

  .archive-desktop-wording {
    display: none;
  }

  .archive-phone-wording {
    display: inline;
  }
}

@media (min-width: 701px) and (max-width: 1100px) and (min-height: 501px) {
  .archive-case-index {
    top: 10rem;
    max-height: calc(100vh - 11rem);
  }

  .archive-selected-reader {
    scroll-margin-top: 10rem;
  }

  .archive-workspace {
    scroll-margin-top: 10rem;
  }
}

@media (max-width: 950px) and (max-height: 500px) {
  .archive-selected-reader {
    scroll-margin-top: 4.5rem;
  }

  .archive-workspace {
    scroll-margin-top: 4.5rem;
  }
}
