/* Pages of Plenty: playful, calm, readable. No external fonts or scripts. */
:root {
  --paper: #fffaf0;
  --ink: #2d2a32;
  --ink-soft: #5d5866;
  --line: #eadfca;
  --sun: #ffd166;
  --sun-soft: #fff3cf;
  --sky: #74c0fc;
  --sky-soft: #e3f2ff;
  --leaf: #69db7c;
  --leaf-soft: #e6f8e9;
  --berry: #f783ac;
  --berry-soft: #ffe8f0;
  --accent: #6c4ab6;
  --accent-dark: #523891;
  --radius: 18px;
  --font: ui-rounded, "Nunito", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* Header & footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: #fff; border-bottom: 3px solid var(--sun);
}
.brand { font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand-mark { font-size: 1.6rem; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.who { font-weight: 700; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

.site-footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 3rem; }
.fine-print { font-size: 0.85rem; color: var(--ink-soft); }

.page { max-width: 1000px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); }

/* Buttons */
.button {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 800;
  padding: 0.7rem 1.5rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-dark);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.button:hover { color: #fff; transform: translateY(1px); box-shadow: 0 3px 0 var(--accent-dark); }
.button:active { transform: translateY(4px); box-shadow: none; }
.button-small { padding: 0.4rem 1rem; font-size: 0.95rem; }

/* Hero */
.hero { text-align: center; padding: 2rem 0 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 0.75rem; }
.hero-compact h1 { margin-top: 0.25rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 1.5rem; }
.note { font-size: 0.95rem; color: var(--ink-soft); }
.avatar-big { font-size: 4rem; line-height: 1; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.card { border-radius: var(--radius); padding: 1.5rem; border: 2px solid transparent; }
.card h2 { margin: 0.25rem 0 0.5rem; font-size: 1.25rem; }
.card p { margin: 0; }
.card-icon { font-size: 2.2rem; }
.card-sun { background: var(--sun-soft); border-color: var(--sun); }
.card-sky { background: var(--sky-soft); border-color: var(--sky); }
.card-leaf { background: var(--leaf-soft); border-color: var(--leaf); }
.card-berry { background: var(--berry-soft); border-color: var(--berry); }
.soon { margin-top: 0.75rem !important; font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }

.promise { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.5rem 2rem; }
.promise h2 { margin-top: 0; }

/* Forms */
.form-card { max-width: 620px; margin: 0 auto; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-card h1 { margin-top: 0; }
.step { margin: 0 0 0.25rem; font-weight: 800; color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
form > div { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; padding: 0.65rem 0.8rem; font: inherit;
  border: 2px solid var(--line); border-radius: 12px; background: var(--paper);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sky); border-color: var(--sky); }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; vertical-align: middle; }
form > div:has(input[type="checkbox"]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.6rem; align-items: flex-start; }
form > div:has(input[type="checkbox"]) label { font-weight: 400; margin: 0; }
.helptext { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.25rem; }
.helptext ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.errorlist { list-style: none; padding: 0.5rem 0.8rem; margin: 0 0 0.4rem; background: var(--berry-soft); border-radius: 10px; color: #a61e4d; font-weight: 700; }
.added { background: var(--leaf-soft); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.message { padding: 0.8rem 1.1rem; border-radius: 12px; background: var(--sky-soft); margin-bottom: 0.5rem; font-weight: 700; }
.message-success { background: var(--leaf-soft); }
.message-warning, .message-error { background: var(--berry-soft); }

/* Long-form pages (policies, consent form) */
.prose { max-width: 760px; margin: 0 auto; background: #fff; padding: 2rem clamp(1rem, 4vw, 3rem); border-radius: var(--radius); border: 2px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1rem 0; padding: 0.75rem 1rem; background: var(--sun-soft); border-left: 5px solid var(--sun); border-radius: 0 12px 12px 0; }
.draft-banner { background: var(--berry-soft); padding: 0.5rem 1rem; border-radius: 10px; font-weight: 800; }
.sign-table td { height: 2.4rem; }
.sign-line { min-width: 260px; }

/* Sorry page (outside the US) */
.sorry-page { display: grid; place-items: center; min-height: 100vh; }
.sorry { text-align: center; max-width: 520px; padding: 2rem; background: #fff; border: 3px solid var(--sun); border-radius: var(--radius); margin: 1rem; }
.sorry-icon { font-size: 3.5rem; }

@media print {
  .site-header, .site-footer, .no-print, .messages { display: none; }
  body { background: #fff; font-size: 12pt; }
  .prose { border: 0; padding: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Reader pages ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav a { font-weight: 700; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.button-quiet { background: #fff; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.button-quiet:hover { color: var(--accent-dark); box-shadow: none; }
.danger { color: #c92a2a; }
.cancel-link { margin-left: 1rem; }
.remove-form { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.lead-left { font-size: 1.15rem; color: var(--ink-soft); margin-top: 0; }
.pill { display: inline-block; padding: 0.1rem 0.7rem; border-radius: 999px; background: var(--sky-soft); font-size: 0.85rem; font-weight: 700; }
.pill-grownup { background: var(--sun-soft); }
.big-number { font-size: 2rem; font-weight: 800; margin: 0.25rem 0 !important; }
.empty { text-align: center; padding: 2.5rem 1rem; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 3rem; margin: 0; }

/* Covers */
.cover { display: block; border-radius: 6px 10px 10px 6px; object-fit: cover; box-shadow: 0 3px 8px rgba(45, 42, 50, 0.18); background: #fff; }
.cover-tiny { width: 40px; height: 60px; }
.cover-small { width: 64px; height: 96px; }
.cover-medium { width: 128px; height: 192px; }
.cover-large { width: 200px; height: 300px; }
.cover-placeholder {
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; overflow: hidden;
  padding: 0.6rem; text-align: center; color: var(--ink);
  background: linear-gradient(90deg, rgba(0,0,0,0.12) 0 8%, transparent 8% 100%), var(--spine);
  border-left: 0;
}
.cover-title { font-weight: 800; font-size: 0.85rem; line-height: 1.2; }
.cover-author { font-size: 0.7rem; opacity: 0.8; }
.cover-large .cover-title { font-size: 1.2rem; }
.cover-large .cover-author { font-size: 0.9rem; }
.cover-small .cover-title, .cover-small .cover-author, .cover-tiny .cover-title, .cover-tiny .cover-author { display: none; }

/* Search */
.search-form { display: flex; gap: 0.75rem; margin: 1rem 0 2rem; }
.search-form input[type="search"] { flex: 1; width: 100%; box-sizing: border-box; padding: 0.75rem 1rem; font: inherit; font-size: 1.1rem; border: 3px solid var(--sky); border-radius: 999px; background: #fff; }
.suggest-wrap { position: relative; flex: 1; }
.suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.35rem); margin: 0; padding: 0.35rem 0; list-style: none; background: #fff; border: 2px solid var(--sky); border-radius: 14px; box-shadow: 0 8px 24px rgba(45, 42, 50, 0.12); max-height: 22rem; overflow-y: auto; }
.suggestion-heading { padding: 0.35rem 1rem 0.15rem; font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.suggestion { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 1rem; cursor: pointer; }
.suggestion[aria-selected="true"], .suggestion:hover { background: var(--sky-soft); }
.suggestion strong { display: block; }
.suggestion-by { display: block; font-size: 0.85rem; color: var(--ink-soft); }
.suggestion-cover { width: 28px; height: 42px; object-fit: cover; border-radius: 3px; flex: none; }
.suggestion-spine { width: 28px; text-align: center; flex: none; }
.custom-add { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--sun-soft); border: 2px dashed var(--sun); border-radius: var(--radius); }
.custom-add p { margin-top: 0; }
.book-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem 1rem; }
.book-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; }
.book-tile-title { font-weight: 800; line-height: 1.25; color: var(--ink); text-decoration: none; }
a.book-tile-title:hover { text-decoration: underline; }
.book-tile-author { font-size: 0.85rem; color: var(--ink-soft); }
.add-form { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; justify-content: center; margin: 0.25rem 0 0; }
.add-form select { width: auto; padding: 0.35rem 0.5rem; font-size: 0.9rem; }

/* Book detail */
.book-detail { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.book-detail h1 { margin: 0 0 0.25rem; line-height: 1.15; }
.book-detail-info { flex: 1; min-width: 260px; }
.shelf-box { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1rem; }
.shelf-box .add-form { justify-content: flex-start; }
.reviews { margin-top: 2.5rem; }
.review { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.review header { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }
.stars { color: #f59f00; letter-spacing: 0.1em; }
.by { color: var(--ink-soft); font-size: 0.9rem; }
details summary { cursor: pointer; font-weight: 700; margin-top: 0.5rem; }

/* Shelf */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.tab { padding: 0.45rem 1rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.tab-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-active:hover { color: #fff; }
.tab-count { display: inline-block; min-width: 1.5em; padding: 0 0.4em; margin-left: 0.25rem; border-radius: 999px; background: rgba(0,0,0,0.08); font-size: 0.85rem; text-align: center; }
.shelf-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.shelf-item { display: flex; align-items: center; gap: 1rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; }
.shelf-item-info { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.shelf-item-title { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.mood { font-size: 0.95rem; }
.progress { width: 100%; max-width: 260px; height: 10px; background: var(--sky-soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--sky); border-radius: 999px; }
.pager { display: flex; justify-content: center; gap: 1.5rem; margin: 1.5rem 0; font-weight: 700; }
.form-card-book { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.5rem; }
.form-card-book h1 { margin: 0; font-size: 1.5rem; }
.mini-shelf { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.mini-shelf a { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
input[type="number"], input[type="date"], input[type="search"] { font: inherit; }
input[type="number"], input[type="date"] { width: 100%; padding: 0.65rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); }

/* Reading log */
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.total { border-radius: var(--radius); padding: 1rem; text-align: center; display: flex; flex-direction: column; border: 2px solid transparent; }
.total-num { font-size: 1.6rem; font-weight: 800; }
.total-label { font-weight: 700; color: var(--ink-soft); }
.week { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.5rem 1.25rem; margin-bottom: 2rem; }
.week h2 { margin-top: 0; }
.week-bars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.75rem; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.week-bar-wrap { display: flex; align-items: flex-end; width: 100%; max-width: 48px; height: 120px; background: var(--paper); border-radius: 10px; overflow: hidden; }
.week-bar { display: block; width: 100%; background: var(--leaf); border-radius: 10px 10px 0 0; min-height: 0; }
.week-label { font-weight: 800; font-size: 0.9rem; }
.week-min { font-size: 0.8rem; color: var(--ink-soft); }
.week-today .week-label { color: var(--accent); }
.week-today .week-bar-wrap { outline: 3px solid var(--sun); }
.week-future { opacity: 0.45; }
.log-form { margin: 0 0 2rem; max-width: none; }
.log-list { list-style: none; padding: 0; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); }
.log-list li { display: grid; grid-template-columns: 9rem 7rem 1fr auto; gap: 0.75rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--line); align-items: center; }
.log-list li:last-child { border-bottom: 0; }
.log-date { font-weight: 700; }
.log-book { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-stamp { grid-column: 1 / -1; font-size: 0.8rem; color: var(--ink-soft); margin-top: -0.4rem; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .log-list li { grid-template-columns: 1fr auto; }
  .log-book { grid-column: 1 / -1; }
  .search-form { flex-direction: column; }
}

/* ---------- Reviews, profiles, settings ---------- */
.write-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 2rem 0 0; }
.status { display: inline-block; padding: 0.1rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--line); }
.status-queued { background: var(--sun-soft); }
.status-published { background: var(--leaf-soft); }
.status-returned, .status-hidden, .status-removed { background: var(--berry-soft); }
.row-actions { display: flex; gap: 1rem; align-items: center; }
.rec { display: flex; gap: 1rem; align-items: flex-start; }
.rec p { margin: 0.2rem 0; }
.report { margin-top: 0.5rem; font-size: 0.9rem; }
.report summary { color: var(--ink-soft); font-weight: 700; cursor: pointer; display: inline-block; }
.report form { margin-top: 0.5rem; padding: 0.75rem; background: var(--paper); border-radius: 12px; max-width: 420px; }
.report form > * { margin-bottom: 0.5rem; }
.report input[type="text"] { width: 100%; padding: 0.4rem 0.6rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; }

.profile-head { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.profile-head h1 { margin: 0; }
.profile-head > div:nth-child(2) { flex: 1; min-width: 220px; }
.profile-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.4rem 0; }
.bio { margin: 0.5rem 0 0; }
.profile-actions { margin-left: auto; }

.form-card-wide { max-width: 820px; }
.settings-group { border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.settings-group legend { font-weight: 800; padding: 0 0.4rem; }
.settings-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.settings-group ul label { font-weight: 400; display: inline-flex; gap: 0.35rem; align-items: center; padding: 0.3rem 0.7rem; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.visibility-table { width: 100%; border-collapse: collapse; }
.visibility-table th, .visibility-table td { padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); text-align: center; }
.visibility-table th[scope="row"] { text-align: left; font-weight: 700; }
.visibility-table thead th { font-size: 0.85rem; color: var(--ink-soft); }
.radio-cell { display: block; margin: 0; cursor: pointer; }
.radio-cell input { width: 1.2rem; height: 1.2rem; }
fieldset > ul#id_rating, div:has(> #id_rating) ul { list-style: none; padding: 0; }
#id_rating label { font-weight: 400; color: #f59f00; }

/* Friends and family */
.find-reader { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.find-reader label { font-weight: 700; font-size: 0.95rem; }
.find-reader input { padding: 0.4rem 0.8rem; font: inherit; border: 2px solid var(--sky); border-radius: 999px; background: #fff; }
.people-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.people-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.6rem 1rem; }
.reader-chip { font-weight: 800; color: var(--ink); text-decoration: none; }
.reader-chip:hover { text-decoration: underline; }
.pill-friend { background: var(--leaf-soft); }
.quiet-details { font-size: 0.9rem; margin: 0.4rem 0; }
.quiet-details summary { color: var(--ink-soft); cursor: pointer; }
.profile-actions .inline-form { margin-right: 0.5rem; }
.family-members { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.family-members li { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.2rem; min-width: 120px; }
.family-members a { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; }
.avatar-mid { font-size: 2.4rem; line-height: 1; }
.family-box { border-radius: var(--radius); padding: 1rem 1.5rem; border: 2px solid var(--sun); margin: 1.5rem 0; }
.family-box h2 { margin-top: 0; }
.family-readers { font-size: 1.2rem; letter-spacing: 0.1em; }
.suggest-box summary { font-weight: 800; cursor: pointer; }
.suggest-box form { margin-top: 0.75rem; }
.suggest-box select, .suggest-box input[type="text"] { padding: 0.35rem 0.6rem; font: inherit; border: 2px solid var(--line); border-radius: 10px; max-width: 100%; }
.suggest-box input[type="text"] { width: 100%; }

/* Moderator notes (warnings) */
.moderator-note { background: #fff; border: 3px solid var(--sun); border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; }
.moderator-note h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }

/* Sign-up without an invite link */
.callout { background: var(--sun-soft); border-radius: 12px; padding: 0.75rem 1rem; }
.form-card div:has(> .hp-field) { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-links { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 0.5rem; }

/* Reading reports */
.report { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem 2rem; }
.report-head h1 { margin: 0.2rem 0; }
.report-period { font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; }
.report-facts { padding-left: 1.2rem; }
.report-bars, .report-table { width: 100%; border-collapse: collapse; }
.report-bars th { text-align: left; font-weight: 600; white-space: nowrap; padding: 0.25rem 0.75rem 0.25rem 0; width: 9rem; }
.report-bar-cell { width: 100%; }
.report-bar { display: block; height: 0.9rem; background: var(--sky); border-radius: 999px; }
.report-min { white-space: nowrap; padding-left: 0.75rem; text-align: right; }
.report-table th, .report-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.report-table td:last-child, .report-table th:last-child { text-align: right; white-space: nowrap; }
.report-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.button-light { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.report-made { margin-top: 1.5rem; }
@media print {
  .report { border: 0; padding: 0; }
  .report-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Browse books, award winners, readers like you, review search */
.back { margin: 0 0 0.5rem; }
.head-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.chips { margin: 0.5rem 0 1rem; }
.chips .tab { font-size: 0.95rem; padding: 0.35rem 0.85rem; }
.genre-picker summary { cursor: pointer; font-weight: 700; margin: 0.25rem 0; }
.genre-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.genre-tile { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; height: 100%; box-sizing: border-box; }
.genre-tile:hover { border-color: var(--accent); }
.genre-emoji { font-size: 1.8rem; }
.genre-name { font-weight: 800; }
.book-tile { position: relative; }
.rank { position: absolute; top: -0.5rem; left: 0.25rem; z-index: 1; min-width: 1.9rem; padding: 0.15rem 0.4rem; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; text-align: center; }
ol.ranked { list-style: none; }
.pill-award { background: var(--sun-soft); font-size: 0.75rem; }
.pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.25rem 0 0.75rem; }
.pills a.pill { color: var(--ink); text-decoration: none; }
.pills a.pill:hover { text-decoration: underline; }
.like-you { list-style: none; padding: 0; display: grid; gap: 1rem; }
.like-you li { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.like-you p { margin: 0.35rem 0 0; }
.review-hit .review-book { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.4rem; }
mark { background: var(--sun-soft); padding: 0 0.1em; border-radius: 3px; }
