@font-face {
  font-family: LibrarySerif;
  src: local("Georgia");
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #213e34;
  --muted: #66756d;
  --green: #244b3e;
  --cream: #f8f6ef;
  --line: #dedfd3;
  --clay: #a65d40;
  --gold: #c79a4d;
  --white: #fffefa;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #78988a;
  outline-offset: 1px;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
.serif,
h1,
h2,
h3 {
  font-family: LibrarySerif, Georgia, serif;
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 62px;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}
h3 {
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 20px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
}
.pill.available {
  background: #edf3e9;
  color: #345c3e;
  border-color: #d5e2cf;
}
.pill.borrowed {
  background: #f4ece2;
  color: #8b6337;
  border-color: #e8dcca;
}
.pill.overdue {
  background: #f8e8e2;
  color: #a34c32;
  border-color: #ecd3c7;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: var(--white);
  padding: 12px 19px;
  font-weight: 600;
  font-size: 13px;
  min-height: 44px;
  text-decoration: none;
}
.btn:hover {
  background: #18372d;
}
.btn.secondary {
  background: transparent;
  color: var(--green);
  border-color: #c8cfc2;
}
.btn.secondary:hover {
  background: #eef0e7;
}
.btn.light {
  background: var(--white);
  color: var(--green);
  border: 0;
}
.btn.small-btn {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 36px;
}
.link-button {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--green);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icon-button {
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  font-size: 26px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand svg {
  width: 36px;
  height: 36px;
}
.brand-name {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1.7;
}
.brand-name span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2.1px;
}
.site-header {
  height: 91px;
  border-bottom: 1px solid var(--line);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
}
.nav button {
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  color: var(--muted);
}
.nav button.active {
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 20px;
}
.access-label {
  font-size: 11px;
  color: var(--muted);
}
.exit {
  font-size: 11px;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 12px 0;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 46px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 52px 0 40px;
}
.hero p {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 26px;
}
.hero h1 em {
  color: var(--clay);
  font-weight: normal;
}
.shelf-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 275px;
}
.shelf-art:before {
  content: "";
  position: absolute;
  width: 275px;
  height: 275px;
  border-radius: 50%;
  background: #ececdd;
}
.book-stack {
  position: relative;
  width: 310px;
  transform: rotate(-5deg);
}
.stack-book {
  height: 53px;
  background: #315647;
  color: #f7edda;
  border: 1px solid #244435;
  margin-bottom: 5px;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 4px 5px 0 #d5d7c6;
  font-family: Georgia, serif;
  font-size: 18px;
  padding: 11px 23px;
  letter-spacing: 1px;
}
.stack-book:nth-child(2) {
  background: #c9a565;
  border-color: #b8975c;
  color: #4a3d26;
  margin-left: 18px;
  width: 270px;
}
.stack-book:nth-child(3) {
  background: #af6a50;
  border-color: #9d5943;
  width: 300px;
  margin-left: -8px;
}
.stack-book:nth-child(4) {
  background: #e6d6b5;
  border-color: #c7b996;
  color: #514b37;
  margin-left: 12px;
  width: 290px;
}
.stack-book span {
  font-family: Arial, sans-serif;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-left: 12px;
}
.art-caption {
  position: absolute;
  bottom: 4px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-stats {
  display: flex;
  gap: 26px;
  align-items: center;
}
.hero-stat {
  font-size: 12px;
  color: var(--muted);
}
.hero-stat strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
  margin-right: 5px;
}
.hero-stat + .hero-stat {
  border-left: 1px solid #d5d8cc;
  padding-left: 26px;
}
.toolbar {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.search {
  flex: 1;
  position: relative;
}
.search input {
  width: 100%;
  padding-left: 44px;
}
.search svg {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 15px;
  top: 15px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #d6d9cc;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input::placeholder {
  color: #8b9286;
}
.toolbar select {
  width: 180px;
}
.filters {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #e9ece2;
  border-radius: 7px;
}
.filters button {
  white-space: nowrap;
  padding: 9px 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  min-height: 38px;
}
.filters button.selected {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px #243f3410;
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}
.section-line p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.section-line h2 {
  font-size: 24px;
  margin: 0;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.book-card {
  border: 0;
  padding: 0;
  background: none;
  display: block;
  text-align: left;
  width: 100%;
  border-radius: 7px;
}
.cover-surface {
  height: 240px;
  background: #efeee4;
  border-radius: 7px;
  padding: 24px 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.book-card:hover .cover-surface {
  background: #e9e9dc;
}
.cover {
  height: 192px;
  width: 136px;
  max-width: 100%;
  color: #fff6dc;
  background: var(--cover, #3f6050);
  border-radius: 2px 5px 5px 2px;
  position: relative;
  box-shadow:
    8px 9px 13px #223b3426,
    inset 5px 0 0 #ffffff18;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
.cover:after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #f0dfa94d;
  pointer-events: none;
}
.cover-kicker {
  font-size: 7px;
  letter-spacing: 1.8px;
  max-width: 100%;
  text-transform: uppercase;
}
.cover-title {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.18;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: auto 0;
}
.cover-author {
  font-size: 8px;
  letter-spacing: 1px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-info {
  padding: 17px 0 8px;
}
.book-info h3 {
  font-size: 19px;
  font-weight: 400;
  margin: 0 0 4px;
  line-height: 1.3;
}
.book-author {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.book-category {
  font-size: 10px;
  color: var(--muted);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.community-note {
  margin: 40px 0 45px;
  border: 1px solid #d5dbcb;
  border-radius: 9px;
  padding: 26px 29px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #f0f1e6;
}
.community-note h3 {
  font-size: 24px;
  margin: 0 0 6px;
}
.community-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 28px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.empty {
  border: 1px dashed #c8cebc;
  border-radius: 8px;
  padding: 45px 24px;
  text-align: center;
  background: #f2f3e9;
  margin: 24px 0;
}
.empty h3 {
  margin: 0 0 9px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.empty .btn {
  margin-top: 4px;
}
.loading {
  padding: 80px 25px;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 24px;
}
.login-wrap {
  max-width: 1188px;
  margin: 0 auto;
  min-height: calc(100vh - 91px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
  padding: 65px 46px;
}
.login-story h1 {
  font-size: 65px;
}
.login-story > p {
  color: var(--muted);
  max-width: 410px;
  line-height: 1.8;
}
.login-story .shelf-art {
  justify-content: flex-start;
  margin-top: 38px;
  min-height: 250px;
}
.login-story .shelf-art:before {
  left: 18px;
  width: 235px;
  height: 235px;
}
.login-card {
  border: 1px solid #d9ddcf;
  background: var(--white);
  border-radius: 12px;
  padding: 38px 34px;
  box-shadow: 0 15px 45px #344b3410;
}
.login-card h2 {
  font-size: 30px;
  margin: 24px 0 12px;
}
.login-card p {
  font-size: 13px;
  color: var(--muted);
}
.login-card .btn {
  width: 100%;
  margin-top: 15px;
}
.login-card .filters {
  width: max-content;
  max-width: 100%;
}
.login-foot {
  font-size: 11px !important;
  margin: 22px 0 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  grid-column: 1/-1;
}
.form-error {
  color: #a34830;
  font-size: 13px;
  min-height: 20px;
  margin: 10px 0;
}
.help-note {
  padding: 14px 17px;
  background: #f0f2e8;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  margin: 15px 0;
}
.page-top {
  padding: 44px 0 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}
.page-top h1 {
  font-size: 48px;
  margin-bottom: 16px;
}
.page-top p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.page-top .btn {
  margin-top: 25px;
}
.club-feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0 36px;
}
.club-art {
  background: #315649;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
}
.club-art .cover {
  width: 150px;
  height: 220px;
  transform: rotate(-8deg);
  --cover: #be9760;
}
.club-art:before {
  content: "";
  width: 200px;
  height: 200px;
  border: 1px solid #577264;
  border-radius: 50%;
  position: absolute;
}
.club-text {
  padding: 35px 40px;
}
.club-text .eyebrow {
  color: #d8b778;
}
.club-text h2 {
  font-size: 34px;
}
.club-text .muted {
  color: #d1dcd1;
}
.club-text p {
  font-size: 14px;
  white-space: pre-line;
}
.club-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: #d4dfd4;
  margin-bottom: 16px;
}
.event-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px;
  display: flex;
  gap: 22px;
}
.date-tile {
  width: 57px;
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 17px;
  line-height: 1.1;
}
.date-tile span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clay);
  margin-bottom: 7px;
}
.date-tile strong {
  font-size: 30px;
  font-family: Georgia, serif;
  font-weight: 400;
}
.event-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.event-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  white-space: pre-line;
}
.event-card.past {
  opacity: 0.78;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 8px 0 30px;
}
.stat-card {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 7px;
}
.stat-card strong {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  display: block;
}
.stat-card.attention {
  background: #f5e8df;
  border-color: #e7d8c6;
  color: #995436;
}
.desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 30px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 14px 18px;
  background: #eef0e6;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}
td {
  padding: 15px 18px;
  border-top: 1px solid #e9eade;
  vertical-align: middle;
}
td strong {
  font-weight: 600;
}
td .sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.table-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.table-actions button {
  font-size: 11px;
  min-height: 36px;
  padding: 7px 10px;
}
dialog {
  width: min(600px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 32px;
  max-height: 90vh;
  box-shadow: 0 20px 80px #122b3340;
}
dialog::backdrop {
  background: #203b3470;
  backdrop-filter: blur(4px);
}
dialog .modal-close {
  position: absolute;
  top: 9px;
  right: 10px;
}
dialog h2 {
  margin-right: 24px;
}
dialog .eyebrow {
  margin-top: 8px;
}
dialog .cover {
  margin: 0 auto 20px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.copy-list {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.copy-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.copy-row .row {
  gap: 8px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100vw - 30px);
  background: var(--green);
  color: var(--white);
  padding: 13px 21px;
  border-radius: 8px;
  box-shadow: 0 6px 24px #0002;
  font-size: 13px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  z-index: 10;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%);
}
.inline-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 16px;
}
.import-scroll {
  max-height: 240px;
  overflow: auto;
}
.import-scroll td {
  padding: 8px;
  font-size: 11px;
}
.import-scroll th {
  padding: 8px;
}
.count-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.alert {
  padding: 14px 18px;
  border: 1px solid #e6cdbc;
  background: #f6ebe2;
  border-radius: 6px;
  color: #945236;
  margin-bottom: 20px;
  font-size: 13px;
}
.section-spacer {
  margin-top: 36px;
}
[hidden] {
  display: none !important;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.load-more {
  text-align: center;
  margin: 26px 0;
}
.palette-0 {
  --cover: #3c5b4d;
}
.palette-1 {
  --cover: #ac674f;
}
.palette-2 {
  --cover: #b29153;
}
.palette-3 {
  --cover: #5a6c78;
}
.palette-4 {
  --cover: #6d5a61;
}
@media (min-width: 1450px) {
  .container,
  .site-header {
    max-width: 1360px;
  }
  .book-grid {
    gap: 32px;
  }
  .cover-surface {
    height: 255px;
  }
  .cover {
    height: 210px;
    width: 147px;
  }
}
@media (max-width: 1000px) {
  .site-header,
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero {
    gap: 30px;
  }
  h1 {
    font-size: 52px;
  }
  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .cover-surface {
    padding: 22px 30px;
  }
  .access-label {
    display: none;
  }
  .nav {
    gap: 22px;
  }
  .login-wrap {
    gap: 45px;
  }
  .login-story h1 {
    font-size: 52px;
  }
  .stats-grid {
    gap: 12px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    min-width: 240px;
  }
  .event-list {
    grid-template-columns: 1fr;
  }
  .club-text {
    padding: 30px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 45px;
    letter-spacing: -1.5px;
  }
  .site-header {
    height: auto;
    min-height: 88px;
    padding: 20px 20px 0;
    flex-wrap: wrap;
    gap: 14px;
  }
  .brand-name {
    font-size: 10px;
  }
  .brand-name span {
    font-size: 8px;
  }
  .brand svg {
    width: 30px;
  }
  .header-end {
    gap: 12px;
    align-items: flex-start;
  }
  .nav {
    gap: 24px;
    order: 2;
    height: 40px;
  }
  .nav button {
    font-size: 12px;
    padding-bottom: 10px;
  }
  .exit {
    font-size: 10px;
    margin-top: 0;
    padding: 7px 0;
  }
  .site-header:has(.nav) {
    padding-bottom: 0;
  }
  .container {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 0 30px;
    gap: 0;
  }
  .hero h1 {
    margin-bottom: 18px;
  }
  .hero p {
    max-width: 390px;
    font-size: 14px;
    margin-bottom: 21px;
  }
  .hero .shelf-art {
    display: none;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
    letter-spacing: 2px;
  }
  .hero-stats {
    gap: 15px;
  }
  .hero-stat {
    font-size: 11px;
  }
  .hero-stat strong {
    font-size: 21px;
  }
  .hero-stat + .hero-stat {
    padding-left: 15px;
  }
  .toolbar {
    padding-top: 21px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .search {
    flex-basis: 100%;
    min-width: 0;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
    width: 130px;
    font-size: 12px;
  }
  .filters {
    gap: 0;
  }
  .filters button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .section-line {
    margin-bottom: 17px;
  }
  .section-line h2 {
    font-size: 22px;
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .cover-surface {
    height: 204px;
    padding: 17px;
  }
  .cover {
    width: 121px;
    height: 172px;
    padding: 18px 13px;
  }
  .cover-title {
    font-size: 19px;
  }
  .book-info {
    padding-top: 12px;
  }
  .book-info h3 {
    font-size: 17px;
  }
  .book-author {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .book-meta {
    align-items: flex-start;
    gap: 5px;
    flex-direction: column;
  }
  .book-category {
    font-size: 10px;
  }
  .pill {
    font-size: 10px;
    padding: 4px 8px;
  }
  .community-note {
    margin: 30px 0;
    padding: 22px;
    display: block;
  }
  .community-note h3 {
    font-size: 24px;
  }
  .community-note p {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .site-footer {
    display: block;
    font-size: 10px;
  }
  .site-footer span {
    display: block;
    margin-top: 7px;
  }
  .login-wrap {
    display: block;
    min-height: 0;
    padding: 32px 20px 45px;
  }
  .login-story h1 {
    font-size: 44px;
    margin-bottom: 16px;
  }
  .login-story > p {
    font-size: 13px;
    margin-bottom: 28px;
  }
  .login-story .shelf-art {
    display: none;
  }
  .login-card {
    padding: 27px 24px;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .page-top {
    padding-top: 32px;
    display: block;
  }
  .page-top h1 {
    font-size: 42px;
  }
  .page-top .btn {
    margin-top: 18px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 17px 19px;
  }
  .stat-card strong {
    font-size: 30px;
  }
  .club-feature {
    grid-template-columns: 1fr;
  }
  .club-art {
    min-height: 200px;
  }
  .club-art .cover {
    height: 166px;
    width: 117px;
  }
  .club-text {
    padding: 26px 25px;
  }
  .club-text h2 {
    font-size: 30px;
  }
  .event-card {
    padding: 22px 18px;
    gap: 15px;
  }
  .event-card h3 {
    font-size: 22px;
  }
  .date-tile {
    width: 50px;
    padding-right: 12px;
  }
  .desk-actions {
    gap: 8px;
  }
  .desk-actions .btn {
    padding: 10px 13px;
    font-size: 12px;
  }
  dialog {
    padding: 29px 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  dialog h2 {
    font-size: 28px;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .dialog-footer .btn {
    flex: 1;
  }
  td,
  th {
    padding: 12px;
  }
  .section-line.wrap {
    align-items: flex-start;
  }
  .hero-stat:last-child {
    padding-left: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.auth-setup-key {
  display: block;
  overflow-wrap: anywhere;
  font-family: monospace;
  letter-spacing: 0.08em;
  margin: 0.6rem 0;
}
/* Public catalogue and book-club additions. */
.cover {
  position: relative;
  overflow: hidden;
}
.book-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f2eb;
  z-index: 2;
}
.book-cover[hidden] {
  display: none;
}
.catalogue-table {
  width: 100%;
  min-width: 640px;
}
.catalogue-table td:first-child {
  width: 35%;
}
.book-title-button {
  text-align: left;
  font-weight: 700;
}
.next-gathering {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 36px;
}
.next-gathering h2 {
  margin: 0.35em 0;
}
.next-gathering .club-detail {
  color: var(--muted);
}
.club-books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 26px 0;
}
.club-reading {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 22px;
  background: var(--cream);
  border-radius: 12px;
  padding: 20px;
}
.club-reading .cover {
  height: 180px;
  width: 120px;
}
.club-reading h3 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.club-reading p {
  color: var(--muted);
  margin: 0;
}
.interest-panel {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.interest-panel .field {
  margin-bottom: 14px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin: 12px 0 18px;
}
.consent-label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.spam-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.interest-success {
  color: var(--green);
  font-weight: 700;
}
@media (max-width: 760px) {
  .club-books,
  .interest-panel {
    grid-template-columns: 1fr;
  }
  .next-gathering {
    padding: 20px;
  }
  .club-reading {
    grid-template-columns: 95px 1fr;
    padding: 15px;
    gap: 16px;
  }
  .club-reading .cover {
    width: 95px;
    height: 145px;
  }
  .club-reading h3 {
    font-size: 23px;
  }
  .header-end .access-label {
    display: none;
  }
}
.book-entry { min-width:0; }
.book-entry-actions { display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;font-size:13px;color:var(--muted); }
.working-name { border:1px solid #d9dfd1;border-radius:6px;background:#f0f3e9;color:#244b3e;padding:8px 11px;font:inherit;font-size:12px;cursor:pointer; }
.rota-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0 70px; }
.rota-day { border:1px solid #dedfd4;border-radius:14px;padding:24px;background:#fffef9;min-width:0; }
.rota-day.is-today { border-color:#537b5c;box-shadow:0 0 0 1px #537b5c; }
.rota-day h2 { display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 20px;font-size:25px; }
.rota-slot { display:flex;flex-direction:column;gap:8px;padding:16px 0;border-top:1px solid #e6e5db; }
.rota-slot strong { font-size:16px; }
.rota-slot>span { color:#486b52; }
.today-hours { background:#edf1e6;border-radius:14px;padding:28px; }
.today-hours h2 { font-size:26px;margin:12px 0; }
.volunteer-checks { border:1px solid #dedfd4;border-radius:8px;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0;padding:16px; }
.volunteer-checks label { display:flex;align-items:center;gap:8px; }
.volunteer-checks input { width:auto; }
@media(max-width:1000px){.rota-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.rota-grid{grid-template-columns:1fr;}.working-name{max-width:180px;}.today-hours h2{font-size:21px;}.volunteer-checks{grid-template-columns:1fr;}.book-entry-actions{flex-direction:column;align-items:flex-start;}}
