/* FOR'U personal library — quiet editorial archive, aligned with Wardrobe. */
.bk-library-tabs { border-top:0; gap:24px; }
.bk-library-tabs button { font-size:16px; }
.bk-app .bk-library-tabs button[aria-current="page"] { border-bottom:1px solid var(--bk-green); color:var(--bk-green); }
.bk-library-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin:22px 0; }
.bk-library-toolbar p { margin:0; max-width:480px; }
.bk-library-card { min-width:0; }
.bk-library-card > .bk-book { width:100%; }
.bk-library-card > .bk-actions { margin:8px 0 0; gap:6px 14px; }
.bk-library-card .bk-quiet { font-size:12px; min-height:40px; }
.bk-personal-text { white-space:pre-wrap; line-height:1.7; }
.bk-dialog [data-book-review] { min-width:0; display:grid; gap:12px; border:1px solid var(--bk-line); padding:16px; }
.bk-dialog [data-book-review],.bk-dialog .bk-candidate-question { grid-column:1 / -1; }
.bk-loading { display:grid; gap:18px; padding:32px 0; }
.bk-loading span { display:block; height:24px; width:65%; background:var(--line,#d2d1c8); opacity:.45; }
.bk-loading span:nth-child(2) { width:43%; }
.bk-rating { color:var(--brass,#a3864d); font:400 22px/1.3 var(--sans,Inter,sans-serif); letter-spacing:2px; white-space:nowrap; }
.bk-rating-picker { border:0; padding:0; margin:0; min-width:0; }
.bk-rating-picker legend { padding:0; margin-bottom:6px; }
.bk-rating-picker input[type="hidden"] { display:none!important; }
.bk-rating-options { display:flex; gap:2px; }
.bk-dialog button.bk-rating-star { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--brass,#a3864d); font:400 30px/1 var(--sans,Inter,sans-serif); box-shadow:none; }
.bk-dialog button.bk-rating-star:focus-visible { outline:2px solid var(--accent-green,#3d4f3c); outline-offset:2px; }
.bk-dialog button.bk-rating-star:hover { color:var(--bk-ink,#24251f); }
.bk-summary-text { font-size:15px; line-height:1.7; max-width:680px; }
.bk-overview .bk-actions { flex-wrap:wrap; }
.bk-slide-track { display:flex; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; width:100%; min-width:0; border:1px solid var(--bk-line); }
.bk-summary-slides { min-width:0; grid-column:1 / -1; }
.bk-summary-slide { flex:0 0 100%; min-width:0; min-height:360px; padding:28px 22px; scroll-snap-align:start; display:flex; flex-direction:column; justify-content:center; overflow-wrap:anywhere; }
.bk-summary-slide .bk-slide-idea { font-size:18px; line-height:1.6; }
.bk-slide-title { align-items:center; text-align:center; gap:12px; }
.bk-slide-title .bk-cover { width:120px; height:170px; object-fit:cover; }
.bk-slide-title h3 { font-size:32px; }
.bk-slide-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; }
.bk-slide-controls button { min-height:44px; }
.bk-slide-controls button:disabled { opacity:.4; cursor:default; }
.bk-share-page { --paper:#f2f0eb; margin:0; background:var(--paper); }
.bk-guest.bk-share-book,.bk-guest.bk-share-slides-page { max-width:760px; margin-inline:auto; padding:32px 20px; min-height:100svh; }
.bk-share-book .bk-share-cover { display:block; width:160px; max-width:100%; height:230px; aspect-ratio:auto; object-fit:contain; margin:24px 0; }
.bk-share-summary,.bk-share-review { margin-top:28px; border-top:1px solid var(--bk-line); padding-top:20px; }
.bk-share-review .bk-summary-text { white-space:pre-wrap; }
.bk-share-slides-page .bk-slide-title .bk-share-cover { margin:0; }
#appShell.books-mode-active > :not(.topbar):not(#foruBooksRoot):not(dialog[open]){display:none!important}
#appShell.books-mode-active > .topbar{display:flex!important}
#appShell.books-mode-active > .topbar,
#appShell.books-mode-active > .topbar::before{background:var(--paper,#f1f0ea)}
#foruBooksRoot{position:relative;z-index:0}
#foruBooksRoot[hidden]{display:none!important}
.bk-app,
.bk-dialog,
.bk-guest {
  --bk-paper: var(--paper, #f1f0ea);
  --bk-ink: var(--ink, #24251f);
  --bk-muted: var(--muted, #717169);
  --bk-line: var(--line, #d2d1c8);
  --bk-green: var(--moss-dark, #3d4f3c);
  --bk-error: #874c40;
  box-sizing: border-box;
  color: var(--bk-ink);
  background: var(--bk-paper);
  font: 400 14px/1.55 var(--sans, Inter, sans-serif);
}

.bk-app *,
.bk-dialog *,
.bk-guest * {
  box-sizing: border-box;
}

.bk-app {
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  max-width: 1160px;
  margin-inline: auto;
  padding: 24px 36px 88px;
}

.bk-guest {
  width: 100%;
  min-height: 100dvh;
  padding: 26px 36px 56px;
}

.bk-app :where(h1, h2, h3, h4),
.bk-guest :where(h1, h2, h3, h4),
.bk-dialog :where(h1, h2, h3, h4) {
  color: var(--bk-ink);
  font-family: "Cormorant Garamond", Cormorant, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.06;
}

.bk-app h1,
.bk-guest h1,
.bk-dialog h1 {
  margin: 12px 0 8px;
  font-size: clamp(38px, 5vw, 56px);
}

.bk-app h2,
.bk-guest h2,
.bk-dialog h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.bk-app h3,
.bk-guest h3,
.bk-dialog h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.bk-app p,
.bk-guest p,
.bk-dialog p {
  margin: 0 0 12px;
}

.bk-app button,
.bk-app a,
.bk-dialog button,
.bk-dialog a,
.bk-guest button,
.bk-guest a {
  color: inherit;
  font: inherit;
}

.bk-app button,
.bk-dialog button,
.bk-guest button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.bk-app :focus-visible,
.bk-dialog :focus-visible,
.bk-guest :focus-visible {
  outline: 2px solid var(--bk-green);
  outline-offset: 3px;
}

.bk-header {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0 0 26px;
}

.bk-header :where(h1, h2) {
  margin: 0;
}

.bk-header p {
  margin: 8px 0 0;
  color: var(--bk-muted);
}

.bk-tabs {
  display: flex;
  gap: 14px;
  margin: 24px 0 28px;
  overflow-x: auto;
  border-top: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  scrollbar-width: none;
}

.bk-tabs::-webkit-scrollbar {
  display: none;
}

.bk-tabs button,
.bk-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 8px 9px;
  border-bottom: 1px solid transparent;
  color: var(--bk-muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.bk-tabs :where([aria-current="page"], [aria-selected="true"], [aria-pressed="true"], .is-active) {
  border-bottom-color: var(--bk-green);
  color: var(--bk-green);
}

.bk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 18px;
}

.bk-book {
  display: block;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.bk-book :where(h2, h3, strong) {
  display: block;
  margin: 10px 0 3px;
  overflow: hidden;
  font: 500 19px/1.2 "Cormorant Garamond", Cormorant, Georgia, serif;
  text-overflow: ellipsis;
}

.bk-book p {
  margin: 3px 0 0;
  color: var(--bk-muted);
  font-size: 13px;
}

.bk-cover {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bk-line) 75%, transparent);
  background: color-mix(in srgb, var(--bk-line) 42%, var(--bk-paper));
  color: var(--bk-ink);
  text-align: center;
}

.bk-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-cover > :not(img) {
  max-width: 80%;
}

.bk-cover:has(img[src]:not([src=""])) > :not(img) {
  display: none;
}

.bk-section {
  margin: 30px 0;
}

.bk-section + .bk-section {
  padding-top: 22px;
  border-top: 1px solid var(--bk-line);
}

.bk-label {
  display: block;
  margin: 0 0 8px;
  color: var(--bk-muted);
  font: 500 11px/1.4 var(--sans, Inter, sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bk-meta {
  color: var(--bk-muted);
  font-size: 13px;
}

.bk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--bk-line);
}

.bk-row > :first-child {
  min-width: 0;
  flex: 1;
}

.bk-row h3,
.bk-row p {
  margin: 0;
}

.bk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0;
}

.bk-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bk-green) !important;
  color: var(--bk-paper) !important;
  font-weight: 500 !important;
  text-decoration: none;
  transition: opacity .16s ease, transform .16s ease;
}

.bk-main:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.bk-quiet {
  padding-inline: 0 !important;
  color: var(--bk-green) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bk-drop {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 18px 0;
  padding: 26px 18px;
  border: 1px dashed var(--bk-line);
  color: var(--bk-muted);
  text-align: center;
}

.bk-drop strong {
  color: var(--bk-ink);
  font: italic 24px/1.15 "Cormorant Garamond", Cormorant, Georgia, serif;
  font-weight: 500;
}

.bk-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 0;
}
.bk-drop { position: relative; cursor: pointer; }
.bk-drop:focus-within { outline: 2px solid var(--bk-green); outline-offset: 3px; }
.bk-error:empty { display: none; }
.bk-app, .bk-dialog { overflow-wrap: anywhere; }
.bk-app .bk-reading { display:grid; grid-template-columns:90px minmax(0,1fr); gap:20px; margin:16px 0; }
.bk-reading .bk-cover { width:90px; }
.bk-reading .bk-actions { margin:8px 0; }
.bk-reading .bk-progress { margin:12px 0 4px; }
.bk-book-hero { width:130px; margin-bottom:20px; }
.bk-book-heading { display:flex; flex-direction:column; align-items:flex-start; position:static; clear:both; gap:12px; }
.bk-book-heading > .bk-header { display:flex; flex-direction:column; align-items:flex-start; position:static; inset:auto; width:100%; margin:0; }
.bk-book-heading > .bk-header h1 { max-width:100%; overflow-wrap:anywhere; }
.bk-book-heading > [data-bk="home"] { position:static; margin:0; }
.bk-cover-actions { flex-wrap:wrap; }
.bk-dialog > [data-close] { margin-left:auto; }
.bk-dialog button.bk-quiet[data-close] { display:inline-flex; width:auto; border:0; border-radius:0; font-size:14px; flex:0 1 auto; }
.bk-dialog .bk-fields > * { min-width:0; max-width:100%; }
.bk-dialog .bk-fields > .bk-drop { grid-column:1 / -1; }
.bk-dialog .bk-actions { min-width:0; }
.bk-dialog .bk-actions button { max-width:100%; }
.bk-app .bk-health-actions { display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:24px; }
.bk-section > .bk-quiet + .bk-quiet { margin-left:16px; }
.bk-crisis { margin-top:24px!important; padding-top:16px; border-top:1px solid var(--bk-line); }
.bk-app .bk-crisis { display:block; }
#foruBooksRoot .bk-crisis a { display:inline!important; margin:0; padding:0; min-width:0!important; min-height:0!important; white-space:nowrap; }

.bk-error {
  padding: 10px 14px;
  border-left: 2px solid var(--bk-error);
  color: var(--bk-error);
}

.bk-note {
  padding-top: 14px;
  border-top: 1px solid var(--bk-line);
  color: var(--bk-muted);
  font-size: 13px;
}

.bk-empty {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin: 20px 0;
  padding: 30px 0;
  color: var(--bk-muted);
}

.bk-empty :where(h2, h3, p) {
  margin: 0;
}

.bk-progress {
  height: 3px;
  overflow: hidden;
  background: var(--bk-line);
}

.bk-progress > * {
  display: block;
  height: 100%;
  background: var(--bk-green);
}

.bk-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bk-fields label,
.bk-fields .bk-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: var(--bk-ink);
  font-size: 13px;
  font-weight: 500;
}

.bk-fields :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select),
.bk-dialog :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--bk-line);
  border-radius: 6px;
  outline: none;
  background: var(--bk-paper);
  color: var(--bk-ink);
  box-shadow: none;
  font: 400 16px/1.4 var(--sans, Inter, sans-serif);
}

.bk-fields textarea,
.bk-dialog textarea {
  min-height: 92px;
  resize: vertical;
}

.bk-fields :where(input, textarea, select):focus,
.bk-dialog :where(input, textarea, select):focus {
  border-color: var(--bk-green);
  outline: 1px solid var(--bk-green);
  outline-offset: 1px;
}

.bk-fields input::placeholder,
.bk-fields textarea::placeholder,
.bk-dialog input::placeholder,
.bk-dialog textarea::placeholder {
  color: var(--bk-muted);
  opacity: .8;
}

.bk-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  font-weight: 400 !important;
}

.bk-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--bk-green);
}

.bk-private {
  margin-top: 20px;
  color: var(--bk-muted);
  font-size: 12px;
}

.bk-spoiler {
  padding: 12px 14px;
  border-left: 2px solid var(--bk-line);
  background: color-mix(in srgb, var(--bk-line) 20%, var(--bk-paper));
}

.bk-spoiler[hidden] {
  display: none !important;
}

.bk-dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: 640px;
  max-height: min(88dvh, 900px);
  padding: 26px;
  overflow: auto;
  border: 1px solid var(--bk-line);
  border-radius: 10px;
  color: var(--bk-ink);
}

.bk-dialog::backdrop {
  background: rgb(37 40 30 / .24);
}

.bk-dialog[open] {
  animation: bk-dialog-enter .18s ease-out both;
}

.bk-dialog > header,
.bk-dialog .bk-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}

.bk-dialog :where(h1, h2, h3) {
  margin: 0;
}

.bk-dialog [data-close] {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--bk-line);
  border-radius: 50%;
  color: var(--bk-ink);
  font-size: 21px;
  line-height: 1;
}

.bk-dialog form {
  display: grid;
  gap: 18px;
}

.bk-dialog .bk-fields {
  padding: 0;
}

.bk-dialog form > .bk-actions {
  margin: 0;
}

.bk-dialog form > .bk-actions .bk-main {
  margin-left: auto;
}

@keyframes bk-dialog-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .bk-app {
    padding: 20px 20px calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .bk-guest {
    padding: 22px 20px 42px;
  }

  .bk-header {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .bk-header h1 {
    font-size: 42px;
  }

  .bk-header h2 {
    font-size: 25px;
  }

  .bk-tabs {
    position: relative;
    top: auto;
    z-index: 4;
    gap: 8px;
    margin: 18px -20px 22px;
    padding: 0 14px;
    background: var(--bk-paper);
  }

  .bk-tabs button,
  .bk-tabs a {
    min-height: 42px;
    padding-inline: 7px;
    font-size: 12px;
  }

  .bk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .bk-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .bk-dialog {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 22px 20px;
    border-radius: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1020px) {
  .bk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-dialog[open],
  .bk-main {
    animation: none;
    transition: none;
  }
}

/* Books Round 2 only: comparable vote cards and the shared club presenter. */
.bk-vote-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:20px;align-items:stretch}
.bk-vote-book{display:flex;flex-direction:column;min-width:0;border-top:1px solid var(--line,#cdc9bf);padding-top:16px;overflow-wrap:anywhere}
.bk-vote-book>.bk-actions{margin-top:auto;padding-top:12px}
.bk-vote-book .bk-cover{display:block;width:94px;height:142px;object-fit:cover;margin-bottom:12px}
.bk-vote-book h3{font-family:"Cormorant Garamond",serif;font-size:24px;font-weight:500;line-height:1.15;margin:10px 0}
.bk-vote-summary{font-family:Inter,sans-serif;font-size:14px;line-height:1.6;margin:12px 0}
.bk-vote-book .bk-actions{gap:12px;flex-wrap:wrap}
.bk-club-presenter{--bk-green:var(--accent-green,#3d4f3c);--bk-paper:#f2f0eb;box-sizing:border-box;inset:0;width:calc(100vw - 32px);max-width:1200px;max-height:calc(100dvh - 32px);padding:20px;border:1px solid #cdc9bf;background:#f2f0eb;color:#161918;overflow:auto}
.bk-club-presenter::backdrop{background:rgba(22,25,24,.6)}
.bk-club-presenter:fullscreen,.bk-club-presenter.bk-fullscreen-fallback{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0}
.bk-deck-stage:fullscreen{box-sizing:border-box;width:100vw;height:100dvh;padding:20px;background:#f2f0eb;color:#161918;overflow:auto}
.bk-deck-stage:fullscreen>.bk-deck-inner{box-sizing:border-box;padding:20px}
.bk-club-presenter button{appearance:none;border:0;background:transparent;color:var(--accent-green,#3d4f3c);font:500 13px/1.4 Inter,sans-serif;min-height:44px;padding:0 16px!important;cursor:pointer;box-shadow:none}
.bk-club-presenter button:disabled{opacity:.45;cursor:default}
.bk-club-presenter button:focus-visible{outline:2px solid var(--accent-green,#3d4f3c);outline-offset:3px}
.bk-club-presenter [data-present]{border-radius:999px;background:var(--accent-green,#3d4f3c);color:#f6f3eb}
.bk-club-presenter [data-pdf]{text-decoration:underline;text-underline-offset:3px}
.bk-club-presenter [data-slide-previous],.bk-club-presenter [data-slide-next]{border:1px solid var(--accent-green,#3d4f3c);border-radius:999px}
.bk-deck-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:16px}
.bk-deck-toolbar [data-close]{margin-left:auto;font-size:26px;min-width:44px;min-height:44px}
.bk-club-presenter .bk-slide-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;max-width:100%}
.bk-club-slide{flex:0 0 100%;box-sizing:border-box;min-width:0;scroll-snap-align:start;padding:26px 32px;min-height:420px;background:#f2f0eb}
.bk-deck-body{display:flex;gap:32px;align-items:flex-start;max-width:960px;margin:36px auto}
.bk-deck-body>div{min-width:0}
.bk-deck-cover{width:160px;height:240px;object-fit:contain;flex-shrink:0}
.bk-club-slide h2{font-family:"Cormorant Garamond",serif;font-size:40px;line-height:1.1;font-weight:500;margin:0 0 16px}
.bk-deck-text,.bk-club-slide li{font:16px/1.65 Inter,sans-serif;white-space:pre-line}
.bk-club-slide li{margin-bottom:10px}
.bk-club-presenter .bk-slide-controls{display:flex;justify-content:center;align-items:center;gap:24px}
.bk-club-presenter :focus:not(:focus-visible){outline:none}
@media(max-width:767px){
 .bk-vote-grid{grid-template-columns:1fr;gap:24px}
 .bk-vote-book{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:16px}
 .bk-vote-book .bk-cover{grid-column:1;grid-row:1/4;width:76px;height:114px}
 .bk-vote-book h3,.bk-vote-book>.bk-meta:first-of-type{grid-column:2}
 .bk-vote-book>.bk-vote-summary,.bk-vote-book>.bk-actions,.bk-vote-book>.bk-meta:not(:first-of-type){grid-column:1/-1}
 .bk-club-presenter{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px 20px}
 .bk-club-slide{padding:20px 0;min-height:430px}
 .bk-deck-body{display:block;margin:20px 0}
 .bk-deck-cover{width:96px;height:144px;float:left;margin:0 18px 14px 0}
 .bk-club-slide h2{font-size:30px}
 .bk-deck-text{clear:both;font-size:15px;padding-top:12px}
 .bk-deck-toolbar{gap:12px}
}
