:root {
  --bg: #f4f1ea;
  --bg-glow: #fbf8f1;
  --surface: #fffdf8;
  --ink: #24211c;
  --muted: #6f685c;
  --accent: #9c4a2f;
  --accent-ink: #fff;
  --accent-soft: rgba(156, 74, 47, .11);
  --line: #e4ddcf;
  --you: #ece3d2;
  --shadow-1: 0 1px 2px rgba(36, 33, 28, .05);
  --shadow-2: 0 10px 24px -12px rgba(36, 33, 28, .22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17150f;
    --bg-glow: #201c14;
    --surface: #211e17;
    --ink: #ece6d8;
    --muted: #9c9484;
    --accent: #d98763;
    --accent-ink: #17150f;
    --accent-soft: rgba(217, 135, 99, .16);
    --line: #322d22;
    --you: #2c2820;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 12px 28px -12px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 55% at 50% -8%, var(--bg-glow), var(--bg) 62%);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.55 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  padding-top: calc(12px + env(safe-area-inset-top, 0));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px -12px rgba(36, 33, 28, .3);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  font-weight: 700; letter-spacing: .015em; white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  color: inherit; text-decoration: none;
}
.brand-icon {
  display: inline-flex; width: 27px; height: 27px; flex: none; color: var(--accent);
}
.brand-icon svg { width: 100%; height: 100%; display: block; }
.reading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--accent);
  text-decoration: none;
  font: 500 13px/1.3 system-ui, sans-serif;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  transition: transform .15s ease;
}
.reading::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.reading-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.reading:active { transform: scale(.95); }

.thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  max-width: 40em;
  padding: 13px 16px;
  border-radius: 18px;
  white-space: pre-wrap;
  word-wrap: break-word;
  scroll-margin-top: 8px;  /* breathing room when a question is pinned to the top */
}
.msg p { margin: 0 0 .6em; }
.msg p:last-child { margin-bottom: 0; }
.msg .lead {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: .01em;
  margin: .2em 0 .3em;
}
.msg .li {
  display: block;
  padding-left: 1.4em;
  text-indent: -1.4em;
  margin: .2em 0;
}
.msg .li.num { padding-left: 1.7em; text-indent: -1.7em; }
.msg.companion {
  background: var(--surface); border: 1px solid var(--line);
  align-self: flex-start; border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-1), var(--shadow-2);
}
.msg.you {
  background: var(--you); align-self: flex-end; border-bottom-right-radius: 6px;
  font: 16px/1.5 system-ui, sans-serif;
  box-shadow: var(--shadow-1);
}
.msg.intro { color: var(--muted); }
.msg a { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .msg.enter { animation: msgIn .3s cubic-bezier(.2, .7, .3, 1) both; }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cursor {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: var(--accent); vertical-align: text-bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.rate { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rate button {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 4px 12px; font-size: 16px; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.rate button:active { transform: scale(.92); }
.rate button.on {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .rate button.on { animation: pop .28s ease; }
}
@keyframes pop {
  0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1); }
}
.rate input {
  flex: 1; min-width: 8em; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; background: var(--bg); color: var(--ink); font: 14px system-ui, sans-serif;
}
.rate .done { color: var(--muted); font: 13px system-ui, sans-serif; }

.composer {
  display: flex; gap: 8px; padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 16px -12px rgba(36, 33, 28, .3);
  position: sticky; bottom: 0;
}
.composer textarea {
  flex: 1; resize: none; max-height: 40vh;
  border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px;
  background: var(--bg); color: var(--ink); font: 16px/1.4 system-ui, sans-serif;
  transition: border-color .15s ease;
}
.composer button {
  border: none; background: var(--accent); color: var(--accent-ink);
  border-radius: 20px; padding: 0 18px; font: 600 16px system-ui, sans-serif; cursor: pointer;
  transition: transform .12s ease, opacity .15s ease;
}
.composer button:active:not(:disabled) { transform: scale(.95); }
.composer button:disabled { opacity: .5; }

/* Progress screen */
.progress { padding: 24px 18px; display: flex; flex-direction: column; gap: 18px; max-width: 34em; margin: 0 auto; width: 100%; }
.hint { color: var(--muted); margin: 0; line-height: 1.5; }
.progress label { display: flex; flex-direction: column; gap: 6px; font: 600 14px system-ui, sans-serif; color: var(--muted); }
.progress select {
  font: 17px/1.4 system-ui, sans-serif; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: border-color .15s ease;
}
#save {
  margin-top: 6px; border: none; background: var(--accent); color: var(--accent-ink);
  border-radius: 12px; padding: 13px; font: 600 17px system-ui, sans-serif; cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform .12s ease, opacity .15s ease;
}
#save:active:not(:disabled) { transform: scale(.98); }
#save:disabled { opacity: .6; }
.status { color: var(--muted); font: 14px system-ui, sans-serif; min-height: 1.2em; text-align: center; }

.quick-btn {
  margin-top: -8px;
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  border-radius: 12px; padding: 12px; font: 600 15px system-ui, sans-serif; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform .12s ease, opacity .15s ease;
}
.quick-btn:active:not(:disabled) { transform: scale(.98); }
.quick-btn:disabled { opacity: .6; }

/* Lost-my-place recall */
.recall {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.recall summary { font: 600 15px system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.recall textarea {
  width: 100%; box-sizing: border-box; font: 16px/1.4 system-ui, sans-serif;
  padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); margin: 10px 0; resize: vertical;
}
.recall-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px;
  background: var(--accent-soft);
}
.recall-card p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.recall-card button {
  border: none; background: var(--accent); color: var(--accent-ink); border-radius: 10px;
  padding: 10px 14px; font: 600 14px system-ui, sans-serif; cursor: pointer;
}

/* Shelf screen — a personal library: series grouped on shelves by author, each
   spine a card you tap to keep reading. Signature move: a slim accent "spine"
   on the left edge of every card (brighter + a "Reading now" tag on the one
   she's mid-book in), echoing a shelf of book spines rather than a bare list. */
.shelf { padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 28px; max-width: 34em; margin: 0 auto; width: 100%; }
.shelf-intro {
  margin: 0; color: var(--muted); font: 15px/1.5 Georgia, "Iowan Old Style", serif;
}
.author-group { display: flex; flex-direction: column; gap: 12px; }
.author-heading {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font: 600 12px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.author-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.series-list { display: flex; flex-direction: column; gap: 10px; }

.series-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 20px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-decoration: none; color: var(--ink);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
/* the "spine" — quiet on every card, warms up for the one she's in */
.series-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--line); transition: background .15s ease;
}
.series-card.current::before { background: var(--accent); width: 5px; }
.series-card.unstarted { box-shadow: none; }
.series-card.unstarted .card-title { color: var(--muted); }
.series-card:active { transform: scale(.98); }
.series-card.current { border-color: var(--accent); }
/* a finished series: settled, not active — quiet spine, gently muted, and the
   "Series finished ✓" line reads as done rather than a place still to return to. */
.series-card.complete { box-shadow: none; }
.series-card.complete::before { background: var(--line); width: 4px; }
.series-card.complete .card-title { color: var(--muted); }
.series-card.complete .card-progress { color: var(--muted); }
@media (hover: hover) {
  .series-card:hover { box-shadow: var(--shadow-1), var(--shadow-2); border-color: var(--accent); }
  .series-card:hover::before { background: var(--accent); }
  .series-card:hover .card-chevron { transform: translateX(2px); color: var(--accent); }
}

.series-card .card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); padding: 9px;
}
.series-card .card-icon svg { width: 100%; height: 100%; display: block; }
.series-card .card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.series-card .card-title-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.series-card .card-title { font-weight: 700; }
.series-card .card-badge {
  font: 600 11px system-ui, sans-serif; letter-spacing: .02em; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.series-card .card-progress {
  display: flex; align-items: center; gap: 6px;
  font: 13px system-ui, sans-serif; color: var(--muted);
}
.series-card .card-progress::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: none;
}
.series-card:not(.unstarted) .card-progress::before { background: var(--accent); }
.series-card.complete .card-progress::before { background: var(--line); }  /* done, not active */
.series-card .card-chevron {
  flex: none; color: var(--line); font: 400 20px/1 Georgia, serif;
  transition: transform .15s ease, color .15s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .series-card { animation: cardIn .35s cubic-bezier(.2, .7, .3, 1) both; }
  .series-list > .series-card:nth-child(1) { animation-delay: .02s; }
  .series-list > .series-card:nth-child(2) { animation-delay: .07s; }
  .series-list > .series-card:nth-child(3) { animation-delay: .12s; }
  .series-list > .series-card:nth-child(4) { animation-delay: .17s; }
  .series-list > .series-card:nth-child(5) { animation-delay: .22s; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Bug-report widget (debug.js) --------------------------------------- */
.bugfab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0));
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 60;
  opacity: .82;
  transition: opacity .15s ease, transform .15s ease;
}
.bugfab:hover, .bugfab:focus-visible { opacity: 1; transform: translateY(-1px); }
.bugfab svg { width: 24px; height: 24px; }
/* Lift clear of the chat composer's Send button when a composer is present. */
.bugfab--raised { bottom: calc(84px + env(safe-area-inset-bottom, 0)); }

body.bug-open { overflow: hidden; }

.bug-overlay {
  position: fixed; inset: 0;
  background: rgba(24, 21, 16, .44);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 70;
}
/* An author `display` rule beats the UA `[hidden]` rule, so `hidden` alone won't
   hide a flex overlay — this makes the hidden attribute actually win. Without it the
   sheet shows on page load and Cancel can't dismiss it. */
.bug-overlay[hidden] { display: none; }
@media (min-width: 620px) { .bug-overlay { align-items: center; } }

.bug-sheet {
  width: 100%; max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-2);
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0));
  animation: cardIn .18s ease both;
}
@media (min-width: 620px) { .bug-sheet { border-radius: 18px; } }

.bug-title { margin: 0 0 2px; font-size: 20px; color: var(--ink); }
.bug-sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); }

.bug-text {
  width: 100%;
  font: inherit; font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}
.bug-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.bug-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.bug-thumb { position: relative; width: 64px; height: 64px; }
.bug-thumb img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.bug-thumb-x {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; line-height: 20px;
  padding: 0; font-size: 15px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
}

.bug-attach {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 14px;
  border: 1px dashed var(--line); border-radius: 12px;
  color: var(--accent); font-size: 15px; cursor: pointer;
}
.bug-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.bug-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.bug-cancel, .bug-send {
  font: inherit; font-size: 16px;
  padding: 10px 20px; border-radius: 12px; cursor: pointer;
}
.bug-cancel { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.bug-send { background: var(--accent); border: 1px solid var(--accent); color: var(--accent-ink); }
.bug-send:disabled { opacity: .6; cursor: default; }

.bug-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(80px + env(safe-area-inset-bottom, 0));
  max-width: 88%;
  background: var(--ink); color: var(--bg);
  font-size: 15px; padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--shadow-2); z-index: 80;
}
.bug-toast--err { background: var(--accent); color: var(--accent-ink); }

/* ---- Bug review page (/bugs) ------------------------------------------- */
.bugs { width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 60px; }
.bugs-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.bug-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
  box-shadow: var(--shadow-1);
}
.bug-card-head {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.bug-badge {
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 9px; border-radius: 999px; font-size: 12px;
}
.bug-card-text { white-space: pre-wrap; color: var(--ink); margin: 0 0 10px; }
.bug-card-meta { font-size: 12px; color: var(--muted); word-break: break-all; }
.bug-card-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bug-card-shots img {
  max-width: 160px; max-height: 220px;
  border-radius: 10px; border: 1px solid var(--line);
}

/* ---- v2.0 /app/* pages (Stage 1B: signin + empty-state library) -------- */
.auth, .shelf-app {
  padding: 24px 18px; display: flex; flex-direction: column;
  max-width: 34em; margin: 0 auto; width: 100%;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 14px;
}
.auth-title { margin: 0; font: 600 22px Georgia, serif; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label {
  display: flex; flex-direction: column; gap: 6px;
  font: 600 14px system-ui, sans-serif; color: var(--muted);
}
.auth-form input {
  font: 17px/1.4 system-ui, sans-serif; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: border-color .15s ease;
}
.auth-form button {
  border: none; background: var(--accent); color: var(--accent-ink);
  border-radius: 12px; padding: 13px; font: 600 17px system-ui, sans-serif; cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform .12s ease, opacity .15s ease;
}
.auth-form button:active:not(:disabled) { transform: scale(.98); }
.auth-form button:disabled { opacity: .6; }

/* ---- v2.0 /app/scan + /app/scan/confirm (Stage 2C) ---------------------- */
.scan-app { gap: 18px; }
.scan-actions { display: flex; flex-direction: column; gap: 10px; }
.scan-btn {
  border: none; background: var(--accent); color: var(--accent-ink);
  border-radius: 12px; padding: 14px; font: 600 17px system-ui, sans-serif; cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform .12s ease, opacity .15s ease;
}
.scan-btn:active:not(:disabled) { transform: scale(.98); }
.scan-btn:disabled { opacity: .6; }
.scan-btn--secondary {
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--accent); box-shadow: none;
}
.scan-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font: 600 12px system-ui, sans-serif;
  letter-spacing: .06em; text-transform: uppercase;
}
.scan-divider::before, .scan-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.manual-form { display: flex; gap: 8px; }
.manual-form input {
  flex: 1; font: 16px/1.4 system-ui, sans-serif; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.manual-form button {
  border: none; background: var(--accent-soft); color: var(--accent);
  border-radius: 12px; padding: 0 16px; font: 600 15px system-ui, sans-serif; cursor: pointer;
}
.link-back { color: var(--accent); font: 500 14px system-ui, sans-serif; text-decoration: none; }

.candidate-list { display: flex; flex-direction: column; gap: 8px; }
.candidate-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); cursor: pointer;
}
.candidate-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.candidate-body { font: 15px/1.4 system-ui, sans-serif; }

.confirm-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.confirm-form label {
  display: flex; flex-direction: column; gap: 6px;
  font: 600 13px system-ui, sans-serif; color: var(--muted);
}
.confirm-form input[type="text"], .confirm-form select, .confirm-form textarea {
  font: 16px/1.4 system-ui, sans-serif; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.confirm-form textarea { resize: vertical; min-height: 4.5em; }
.confirm-check {
  flex-direction: row !important; align-items: center; gap: 8px !important;
}
.confirm-flag {
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  border-radius: 10px; padding: 10px 12px; font: 13px/1.4 system-ui, sans-serif;
}

/* ---- v2.0 /app/library real shelf list (Stage 2C) ------------------------ */
.shelf-list { display: flex; flex-direction: column; gap: 22px; }
.shelf-group { display: flex; flex-direction: column; gap: 10px; }
.shelf-heading {
  margin: 0; font: 600 12px system-ui, sans-serif; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.shelf-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.shelf-item-list { display: flex; flex-direction: column; gap: 8px; }
.shelf-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.shelf-item-title { font-weight: 700; flex: 1 1 auto; min-width: 8em; }
.shelf-item-author { color: var(--muted); font-size: 14px; }
.shelf-item-note {
  flex-basis: 100%; color: var(--muted); font-size: 13px; font-style: italic;
}
.shelf-move {
  font: 600 13px system-ui, sans-serif; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.add-book-link {
  align-self: flex-start; color: var(--accent); text-decoration: none;
  font: 600 15px system-ui, sans-serif; display: inline-flex; align-items: center; gap: 6px;
}
/* ---- v2.0 /app/club (Stage 3B: club-read screen) ------------------------ */
.club-app { padding: 24px 18px; display: flex; flex-direction: column; max-width: 34em; margin: 0 auto; width: 100%; }
.club-safe-line {
  font: 600 16px system-ui, sans-serif; color: var(--accent);
  background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: 0;
}
.club-join-link {
  display: block; text-align: center; text-decoration: none;
  border: none; background: var(--accent); color: var(--accent-ink);
  border-radius: 12px; padding: 13px; font: 600 17px system-ui, sans-serif;
  box-shadow: var(--shadow-2);
}
/* ---- v2.0 /app/library (Stage 3B: "Current club read" card) ------------- */
.club-read-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px;
}
.club-read-card .club-read-kicker { font: 600 12px system-ui, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.club-read-card .club-read-line { font: 15px system-ui, sans-serif; color: var(--accent); }
