
  :root {
    --stacks-shell: min(1380px, calc(100vw - 48px));
  }
  html,
  body {
    background: var(--bg);
    min-height: 100%;
  }
  body {
    color: var(--text);
  }
  .nav {
    background: var(--blur-bg);
    border-bottom: none;
  }
  main {
    padding-bottom: 48px;
  }
  .archive-hero {
    position: relative;
    overflow: clip;
    padding: 44px 24px 24px;
  }
  .archive-hero::before,
  .archive-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    pointer-events: none;
  }
  .archive-hero::before {
    width: 340px;
    height: 340px;
    background: rgba(255, 255, 255, .22);
    top: -110px;
    left: -70px;
  }
  .archive-hero::after {
    width: 280px;
    height: 280px;
    background: rgba(255, 229, 0, .18);
    right: -70px;
    top: 26px;
  }
  .archive-hero-shell {
    position: relative;
    z-index: 1;
    max-width: var(--stacks-shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
    gap: 24px;
    align-items: stretch;
  }
  .archive-hero-copy,
  .archive-hero-panel,
  .library-controls-inner,
  .page-header,
  .library-section-head,
  .library-table,
  .library-empty,
  .library-load-more-wrap {
    box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
  }
  .archive-hero-copy {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-card-lg);
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(0, 0, 0, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .archive-hero-copy .sec-label {
    margin-bottom: 18px;
    color: var(--text2);
    letter-spacing: .22em;
  }
  .archive-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .06);
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: .12em;
    margin-bottom: 18px;
  }
  .archive-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yel);
    box-shadow: 0 0 0 6px rgba(255, 229, 0, .18);
  }
  .archive-hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(60px, 8vw, 112px);
    line-height: .92;
    letter-spacing: -.06em;
    text-transform: lowercase;
  }
  .archive-hero-copy p {
    max-width: 56ch;
    margin-top: 18px;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.65;
    color: var(--text2);
    text-transform: lowercase;
  }
  .archive-hero-notes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
  }
  .archive-hero-note {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
  }
  .archive-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-card-lg);
    background: var(--dark);
    color: var(--white);
    border: 2px solid rgba(255, 229, 0, 0.35);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
  }
  .archive-hero-panel::before {
    content: '';
    position: absolute;
    inset: auto -40px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 229, 0, .28), transparent 68%);
  }
  .archive-panel-topline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
  }
  .archive-panel-topline strong {
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: lowercase;
  }
  .archive-panel-topline span {
    color: rgba(255,255,255,.5);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: lowercase;
  }
  .archive-panel-focus {
    font-size: clamp(34px, 4vw, 54px);
    line-height: .95;
    letter-spacing: -.05em;
    text-transform: lowercase;
  }
  .archive-panel-copy {
    margin-top: 14px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 1.7;
    text-transform: lowercase;
  }
  .archive-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }
  .archive-stat {
    padding: 16px 16px 18px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
  }
  .archive-stat-value {
    display: block;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1;
    letter-spacing: -.05em;
  }
  .archive-stat-label {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.56);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: lowercase;
  }
  .archive-panel-footer {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: rgba(255,255,255,.5);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    line-height: 1.7;
    text-transform: lowercase;
  }
  .featured-research--hero {
    padding-top: 18px;
    overflow: visible;
    position: relative;
    z-index: 2;
  }
  .featured-research-shell {
    max-width: var(--stacks-shell);
    margin: 0 auto;
    overflow: visible;
  }
  .featured-research--hero .sec-label,
  .library-section-head .sec-label {
    margin-bottom: 0;
    color: var(--text2);
    letter-spacing: .18em;
  }
  .featured-research-head {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
  }
  .featured-research-copy {
    max-width: 58ch;
    color: var(--text2);
    font-size: 14px;
    line-height: 1.65;
    text-transform: lowercase;
  }
  .book-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(172px, 248px));
    gap: clamp(18px, 2.5vw, 28px);
    justify-content: start;
    max-width: 100%;
    padding: 0;
    margin-top: 12px;
    margin-bottom: 12px;
    overflow: visible;
  }
  .featured-book {
    display: block;
    text-decoration: none;
    color: inherit;
    perspective: 1100px;
    min-width: 0;
    transition: transform .22s var(--ease-delight);
  }
  .featured-book:hover {
    transform: translateY(-3px);
  }
  .featured-book:focus-visible {
    outline: 3px solid var(--dark);
    outline-offset: 6px;
    border-radius: 6px;
  }
  .featured-book-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-7deg);
    transition: transform .38s cubic-bezier(.25, .46, .45, .94);
  }
  .featured-book:hover .featured-book-inner {
    transform: rotateY(-2deg) translateX(3px);
  }
  .featured-book-pages {
    position: absolute;
    right: -5px;
    top: 5px;
    bottom: 5px;
    width: 6px;
    z-index: 0;
    border-radius: 0 2px 2px 0;
    background: repeating-linear-gradient(to right, #f2efe6 0 1px, #fffff0 1px 2px);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, .1);
    pointer-events: none;
  }
  .featured-book-face {
    position: relative;
    aspect-ratio: 2 / 3;
    max-height: 380px;
    border-radius: 3px 12px 12px 3px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 2px solid var(--dark);
    box-shadow:
      8px 10px 22px rgba(0, 0, 0, .32),
      -1px 0 3px rgba(0, 0, 0, .1),
      inset -2px 0 6px rgba(0, 0, 0, .1);
    background-size: cover;
    background-position: center;
  }
  .featured-book-face::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .35) 42%,
      rgba(0, 0, 0, .12) 68%,
      rgba(0, 0, 0, .2) 100%
    );
  }
  .featured-book-face::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255, 255, 255, .06), transparent);
  }
  .featured-book-face--g1 { background-image: linear-gradient(160deg, #0d1b2a 0%, #1b3a5c 40%, #0a2847 100%); }
  .featured-book-face--g2 { background-image: linear-gradient(160deg, #0e0e0e 0%, #1c1c1c 50%, #0e0e0e 100%); }
  .featured-book-face--g3 { background-image: linear-gradient(160deg, #0a2e2e 0%, #184848 50%, #0a2020 100%); }
  .featured-book-face--g4 { background-image: linear-gradient(160deg, #2a1a0a 0%, #4a3020 50%, #2a1a0a 100%); }
  .featured-book-face--g5 { background-image: linear-gradient(160deg, #0a1a2e 0%, #1a3050 50%, #0a1a2e 100%); }
  .featured-book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 16px;
    z-index: 3;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, .42) 0%,
      rgba(0, 0, 0, .14) 40%,
      rgba(255, 255, 255, .04) 70%,
      rgba(0, 0, 0, .1) 100%
    );
    pointer-events: none;
  }
  .featured-book-spine::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .07);
  }
  .featured-book-spine::after {
    content: 'research';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: 'DM Mono', monospace;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .2em;
    color: rgba(255, 229, 0, .72);
    text-transform: lowercase;
    white-space: nowrap;
  }
  .featured-book-brand {
    position: absolute;
    top: 14px;
    left: 24px;
    z-index: 2;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    color: var(--yel);
    letter-spacing: .22em;
    text-transform: lowercase;
  }
  .featured-book-date {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, .28);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .08em;
    text-transform: lowercase;
    max-height: 55%;
    overflow: hidden;
  }
  .featured-book-bottom {
    position: relative;
    z-index: 2;
    padding: 14px 16px 16px 22px;
  }
  .featured-book-lede {
    margin: 0 0 6px;
    max-width: 32ch;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .featured-book-ticker {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.06em;
    color: #fff;
    margin: 0;
    text-transform: lowercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  }
  .featured-book-face--photo {
    background-image: var(--cover-img);
    background-size: cover;
    background-position: center;
    background-color: #0d1b2a;
  }
  .featured-book-face--photo::before {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, .82) 0%,
      rgba(0, 0, 0, .28) 40%,
      rgba(0, 0, 0, .08) 65%,
      rgba(0, 0, 0, .18) 100%
    );
  }
  .page-header {
    max-width: var(--stacks-shell);
    margin: 0 auto 12px;
  }
  .library-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 10px;
  }
  .library-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .06);
    color: var(--text2);
    text-transform: lowercase;
  }
  .library-controls {
    top: var(--nav-h);
    padding-bottom: 18px;
    z-index: 60;
  }
  .library-controls-inner {
    max-width: var(--stacks-shell);
    padding: 14px;
    border-radius: var(--radius-card-lg);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(0, 0, 0, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform-origin: top center;
    transition:
      opacity .18s ease,
      transform .18s ease,
      max-width .18s ease,
      padding .18s ease,
      background .18s ease,
      box-shadow .18s ease,
      border-color .18s ease,
      backdrop-filter .18s ease,
      -webkit-backdrop-filter .18s ease;
  }
  .library-controls.is-stuck .library-controls-inner {
    opacity: 1;
    transform: scale(1);
    max-width: var(--stacks-shell);
    padding: 10px 14px;
    background-color: #fff;
    background-image: none;
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    isolation: isolate;
  }
  .library-controls.is-stuck:hover .library-controls-inner,
  .library-controls.is-stuck:focus-within .library-controls-inner {
    opacity: 1;
    transform: scale(1);
    background-color: #fff;
    background-image: none;
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 18px 32px rgba(0, 0, 0, .14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .library-controls.is-stuck .library-meta {
    display: none;
  }
  .library-controls.is-stuck .library-search,
  .library-controls.is-stuck .library-toolbar,
  .library-controls.is-stuck .filters,
  .library-controls.is-stuck .library-toolbar-right {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .library-controls.is-stuck .library-search-wrap {
    margin-bottom: 8px;
  }
  .library-controls.is-stuck .library-search {
    padding: 10px 14px;
    font-size: 13px;
  }
  .library-controls.is-stuck .library-toolbar {
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .library-controls.is-stuck .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
  .library-controls.is-stuck .filters::-webkit-scrollbar {
    display: none;
  }
  .library-controls.is-stuck .fb {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: .06em;
  }
  .library-controls.is-stuck .library-toolbar-right {
    flex-shrink: 0;
    gap: 8px;
  }
  .library-controls.is-stuck .library-select {
    min-width: 148px;
    padding: 10px 14px;
    font-size: 10px;
  }
  .library-controls.is-stuck .library-view-toggle {
    padding: 4px;
  }
  .library-controls.is-stuck .library-toggle-btn {
    padding: 7px 12px;
    font-size: 10px;
  }
  .library-search-wrap {
    margin-bottom: 10px;
  }
  .library-search {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 13px 16px;
    font-size: 14px;
  }
  .library-toolbar {
    align-items: flex-start;
    gap: 12px;
  }
  .filters {
    gap: 6px;
  }
  .fb {
    padding: 9px 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: lowercase;
    background: rgba(0, 0, 0, .06);
    color: var(--text2);
  }
  .fb:hover {
    background: rgba(0, 0, 0, .1);
  }
  .fb.active {
    background: var(--dark);
    color: var(--yel);
  }
  .fb-count {
    opacity: .76;
  }
  .library-select,
  .library-toggle-btn {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: lowercase;
  }
  .library-select {
    min-width: 156px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, .1);
  }
  .library-view-toggle {
    padding: 5px;
    background: rgba(0, 0, 0, .04);
  }
  .library-toggle-btn {
    color: var(--text2);
  }
  .library-toggle-btn.active {
    background: var(--dark);
    color: var(--yel);
  }
  .grid,
  .library-table-wrap,
  .library-load-more-wrap {
    max-width: var(--stacks-shell);
    padding-left: 0;
    padding-right: 0;
  }
  .grid {
    padding-bottom: 20px;
  }
  .library-section {
    margin-bottom: 28px;
  }
  .library-section-head {
    margin-bottom: 14px;
    padding: 18px 22px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(0, 0, 0, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .library-section-meta {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: normal;
    text-transform: lowercase;
  }
  .library-card-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
  }
  .library-section--archive .library-card-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rcard {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 288px;
    padding: 24px 24px 22px;
    border-radius: var(--radius-card-lg);
    border: 2px solid var(--dark);
    background: #fff9e5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
      transform .22s var(--ease-delight),
      box-shadow .22s var(--ease-delight),
      background .2s ease;
  }
  .rcard:hover {
    transform: translate(-4px, -4px);
    background: #fffef5;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .92);
  }
  .rcard:focus-visible {
    outline: 3px solid var(--dark);
    outline-offset: 4px;
  }
  .rcard.rcard--report {
    background: var(--white);
    border-color: var(--dark);
  }
  .rcard.rcard--report:hover {
    background: var(--white);
  }
  .rcard-main {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    flex: 1;
  }
  .rcard-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }
  .rcard-overline {
    color: var(--text2);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: lowercase;
  }
  .rcard-badges {
    justify-content: flex-end;
  }
  .library-badge {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: lowercase;
  }
  .library-badge--new {
    background: rgba(0, 0, 0, .08);
  }
  .library-badge--report {
    background: var(--yel);
    color: var(--dark);
  }
  .library-badge--free {
    background: #89E219;
    color: #0f1a00;
    border: 1px solid rgba(0, 0, 0, .12);
  }
  .rcard-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
  }
  .rcard-ident {
    min-width: 0;
    flex: 1;
  }
  .rcard-ticker {
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 700;
    line-height: .88;
    letter-spacing: -.08em;
  }
  .rcard-title {
    margin-top: 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-transform: lowercase;
  }
  .rcard-co {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-family: 'DM Mono', monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .rcard-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
  }
  .rcard-gauge {
    width: 96px;
    height: 56px;
    position: relative;
    border-radius: 0;
    overflow: visible;
  }
  .rcard-gauge svg {
    width: 96px;
    height: 56px;
    display: block;
  }
  .rcard-gauge .gauge-track {
    fill: none;
    /* Was rgba(0,0,0,.06) — invisible on cream cards; solid track reads like the white-card gauges */
    stroke: #a39e92;
    stroke-width: 5;
    stroke-linecap: round;
  }
  .rcard-gauge .gauge-fill {
    fill: none;
    stroke: var(--red);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset .7s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .rcard-gauge.gauge-init .gauge-fill {
    stroke-dashoffset: 100.53 !important;
  }

  /* Virtual scroll card entrance */
  .vcard-enter {
    opacity: 0;
    transform: translateY(16px);
  }
  .vcard-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .rcard-gauge .gauge-number {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
  }
  .rcard-score-label {
    display: block;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: lowercase;
  }
  .rcard-score-copy {
    min-width: 0;
  }
  .rcard-score-value {
    display: none;
  }
  .rcard-v {
    padding-top: 14px;
    font-size: 14px;
    line-height: 1.72;
    color: #3a3a3a;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    align-self: start;
  }
  .rcard-signalbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    align-self: end;
    padding-top: 16px;
  }
  .rcard-pos,
  .rcard-move,
  .rcard-date {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(0, 0, 0, .1);
  }
  .rcard-pos,
  .rcard-move {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: lowercase;
  }
  .rcard-date {
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: lowercase;
  }
  .rcard-pos.long,
  .rcard-move.long {
    color: var(--dark);
  }
  .rcard-pos.short,
  .rcard-move.short {
    color: var(--red);
  }
  .rcard-pos.neutral,
  .rcard-pos.hold,
  .rcard-move.neutral {
    color: var(--muted);
  }
  .library-results-meta {
    padding-top: 4px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: lowercase;
  }
  .library-table-wrap {
    padding-bottom: 24px;
  }
  .library-table {
    border-radius: var(--radius-card-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(0, 0, 0, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .library-row:hover {
    background: rgba(255, 255, 255, .45);
  }
  .library-load-more-wrap {
    padding: 0 24px 12px;
  }
  .library-load-more {
    background: var(--dark);
    color: var(--yel);
    padding: 14px 20px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: lowercase;
  }
  .library-empty {
    padding: 32px;
    border-radius: var(--radius-card-lg);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .08);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    text-transform: lowercase;
  }
  .library-empty .library-empty-text {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 20px;
  }
  .library-empty .library-empty-glyph {
    color: rgba(0, 0, 0, .1);
  }
  .library-row-na {
    color: var(--muted);
    opacity: .4;
  }
  .library-hover-preview {
    border-radius: var(--radius-card-lg);
    background: rgba(18, 18, 18, .94);
    color: #f6f0d8;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    z-index: 200;
  }
  @media (prefers-reduced-motion: reduce) {
    .rcard {
      transition: background .2s ease;
    }
    .featured-book {
      transition: none;
    }
    .featured-book:hover {
      transform: none;
    }
    .featured-book:hover .featured-book-inner {
      transform: none;
    }
    .rcard:hover {
      transform: none;
      box-shadow: none;
    }
  }
  @media (max-width: 1180px) {
    .archive-hero-shell {
      grid-template-columns: 1fr;
    }
    .book-row {
      justify-content: center;
    }
  }
  @media (max-width: 900px) {
    .library-card-stack {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 768px) {
    .archive-hero,
    .featured-research--hero,
    .library-controls,
    .grid,
    .library-load-more-wrap,
    .library-table-wrap {
      padding-left: 16px;
      padding-right: 16px;
    }
    .archive-hero {
      padding-top: 28px;
    }
    .archive-hero-shell,
    .featured-research-shell,
    .library-controls-inner,
    .grid,
    .library-table-wrap,
    .library-load-more-wrap {
      max-width: none;
    }
    .archive-hero-copy,
    .archive-hero-panel,
    .library-controls-inner,
    .library-section-head,
    .library-empty {
      border-radius: var(--radius-card);
    }
    .archive-hero-copy,
    .archive-hero-panel {
      padding: 22px;
    }
    .archive-hero-copy h1 {
      max-width: 9ch;
      font-size: clamp(46px, 14vw, 74px);
    }
    .archive-hero-copy p {
      font-size: 15px;
    }
    .archive-panel-topline {
      display: block;
    }
    .archive-panel-topline span {
      display: block;
      margin-top: 8px;
    }
    .archive-stats {
      grid-template-columns: 1fr 1fr;
    }
    .featured-research-head {
      display: block;
    }
    .featured-research-copy {
      margin-top: 8px;
    }
    .featured-book-inner {
      transform: rotateY(-3deg);
    }
    .featured-book:hover .featured-book-inner {
      transform: rotateY(-1deg);
    }
    .filters {
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding-bottom: 4px;
      mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
    }
    .filters::-webkit-scrollbar {
      display: none;
    }
    .fb {
      flex: 0 0 auto;
    }
    .library-toolbar-right {
      width: 100%;
      align-items: stretch;
      flex-direction: column;
    }
    .library-select {
      width: 100%;
      min-width: 0;
    }
    .rcard {
      min-height: 0;
      padding: 18px;
      gap: 16px;
    }
    .rcard-heading {
      flex-direction: column;
    }
    .rcard-score {
      flex-direction: row;
      align-items: center;
      gap: 12px;
    }
    .rcard-v {
      -webkit-line-clamp: 5;
    }
    .library-controls.is-stuck .library-toolbar,
    .library-controls.is-stuck .library-toolbar-right {
      flex-wrap: wrap;
    }
    .library-controls.is-stuck .filters {
      mask-image: none;
    }
  }
