@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans";
  src: url("/fonts/source-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --paper-raised: #fffbf2;
  --paper-deep: #ece3d2;
  --ink: #182b3b;
  --ink-soft: #5d6769;
  --accent: #832e3d;
  --accent-light: #f3e0df;
  --gold: #a58240;
  --line: #cfc7b7;
  --shadow: #182b3b2b;
  --nav: #f6f0e4;
  --focus: #aa7d26;
  --success: #315d50;
  font:
    16px/1.45 "Source Sans",
    sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101b25;
  --paper-raised: #172631;
  --paper-deep: #1e303b;
  --ink: #f3ead8;
  --ink-soft: #aeb7b6;
  --accent: #e6a1a7;
  --accent-light: #3c2833;
  --gold: #c5a66c;
  --line: #39444b;
  --shadow: #0007;
  --nav: #101b25;
  --focus: #d6b16b;
  --success: #a4ceba;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #101b25;
    --paper-raised: #172631;
    --paper-deep: #1e303b;
    --ink: #f3ead8;
    --ink-soft: #aeb7b6;
    --accent: #e6a1a7;
    --accent-light: #3c2833;
    --gold: #c5a66c;
    --line: #39444b;
    --shadow: #0007;
    --nav: #101b25;
    --focus: #d6b16b;
    --success: #a4ceba;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  min-width: 280px;
}
.app-update-pill {
  position: fixed;
  z-index: 15;
  inset: auto auto calc(22px + env(safe-area-inset-bottom, 0px)) 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 18px var(--shadow);
  font-size: 14px;
  font-weight: 600;
}
.app-update-pill[hidden] {
  display: none;
}
.app-update-pill svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 700px) {
  .app-update-pill {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E");
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.danger {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
h1,
h2,
h3 {
  font-family: Fraunces, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 38px;
  margin: 0 0 24px;
}
h2 {
  font-size: 27px;
  margin: 28px 0 12px;
}
h3 {
  font-size: 21px;
  margin: 0 0 7px;
}
p {
  margin: 8px 0 16px;
}
.muted {
  color: var(--ink-soft);
  font-size: 14px;
}
.eyebrow {
  font:
    10px/1.5 "Plex Mono",
    monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.mono {
  font-family: "Plex Mono", monospace;
}
.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px max(24px, calc((100vw - 1080px) / 2)) 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead::before {
  content: "";
  height: 7px;
  position: absolute;
  inset: 0 0 auto;
  background-color: #742c3b;
  background-image: repeating-radial-gradient(
    ellipse at 35% -100%,
    transparent 0 9px,
    #c5a775 10px 12px,
    transparent 13px 17px,
    #203d4b 18px 23px,
    #e2d0a8 24px 26px,
    transparent 27px 33px
  );
  background-size: 97px 36px;
  opacity: 0.96;
}
#brand {
  font-family: Fraunces, serif;
  font-weight: 650;
  font-size: 31px;
  letter-spacing: -1.9px;
  text-decoration: none;
  color: var(--ink);
}
.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  font-size: 28px;
  font-weight: 400;
}
.icon-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bookplate {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 5px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  position: relative;
}
.bookplate::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--line);
}
.bookplate span:first-child {
  font-family: Fraunces, serif;
  font-size: 23px;
  font-weight: 500;
  position: relative;
}
main {
  max-width: 1080px;
  margin: auto;
  padding: 28px 24px 0;
  min-height: calc(100dvh - 200px);
}
nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  margin-bottom: 30px;
}
nav button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
  font-weight: 500;
}
nav button.active {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-short {
  display: none;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}
.page-heading h1 {
  margin: 0;
}
.page-heading .folio {
  font:
    10px/1.5 "Plex Mono",
    monospace;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 4px;
}
.shelves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.shelves button {
  position: relative;
  min-width: 0;
  min-height: 49px;
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  border-radius: 0;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.shelves button.selected {
  color: var(--accent);
  font-weight: 650;
}
.shelves button.selected::after {
  content: "";
  height: 3px;
  background: var(--accent);
  position: absolute;
  inset: auto 8px -1px;
}
.shelf-count {
  font:
    10px "Plex Mono",
    monospace;
  margin-left: 5px;
  opacity: 0.75;
}
.toolbar,
.actions,
.pair {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar {
  margin: 16px 0;
}
.shelf-toolbar {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 4px 0 20px;
  max-width: 650px;
}
.shelf-toolbar label {
  margin: 0;
}
.sort-filter {
  min-width: 0;
  max-width: 200px;
  flex: 1;
}
#sort {
  border: 0;
  padding-left: 0;
  background: transparent;
  font-size: 16px;
  width: 100%;
}
.audio-filter {
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.audio-filter > span {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}
.filter-short {
  display: none;
}
input,
select,
textarea {
  font-size: 16px;
  line-height: 1.35;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-raised);
  color: var(--ink);
  padding: 10px 11px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}
label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-size: 14px;
}
label:has(> span > input[type="checkbox"]) > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.pair > label {
  flex: 1;
  min-width: 0;
}
fieldset {
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0;
}
legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0 0 9px;
}
fieldset label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 9px 11px;
  border-radius: 3px;
  cursor: pointer;
}
fieldset label:has(input:checked) {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
#verdict-options label {
  text-transform: capitalize;
}
#search-form {
  flex-wrap: nowrap;
  margin: 18px 0 24px;
}
#query {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.search-intro {
  max-width: 440px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 22px;
  margin: 20px 0;
}
.card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
  padding: 0 0 23px;
  border-bottom: 1px solid var(--line);
}
.card-body {
  min-width: 0;
  flex: 1;
}
.card h3 {
  font-size: 23px;
}
.card p {
  font-size: 14px;
  margin: 5px 0;
}
.card .actions {
  margin-top: 12px;
  gap: 6px;
}
.card .actions button {
  font-size: 13px;
  padding: 8px 10px;
}
.cover-object {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  isolation: isolate;
  background: #c3ae88;
  box-shadow:
    3px 5px 8px var(--shadow),
    inset -1px 0 2px #0002;
  overflow: hidden;
  border-radius: 1px 3px 3px 1px;
}
.cover-object::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    90deg,
    #0003,
    transparent 3%,
    #ffffff25 4%,
    transparent 7%,
    transparent 94%,
    #0002
  );
  mix-blend-mode: multiply;
}
.cover-object img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}
.cover-object img.cover-failed {
  display: none;
}
.cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 17% 10% 13%;
  background: var(--cover-bg);
  color: var(--cover-ink);
}
.cover-fallback::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid currentColor;
  opacity: 0.4;
}
.cover-fallback-title {
  font-family: Fraunces, serif;
  font-size: clamp(13px, 2.6vw, 22px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 550;
  overflow: hidden;
  max-height: 68%;
  position: relative;
}
.cover-fallback-author {
  font-family: "Plex Mono", monospace;
  font-size: clamp(6px, 1.55vw, 10px);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  overflow: hidden;
  max-height: 25%;
  position: relative;
}
.cover-palette-0 {
  --cover-bg: #7d2c3e;
  --cover-ink: #f7e8cc;
}
.cover-palette-1 {
  --cover-bg: #233f4b;
  --cover-ink: #ead7ae;
}
.cover-palette-2 {
  --cover-bg: #cfb27e;
  --cover-ink: #273c42;
}
.cover-palette-3 {
  --cover-bg: #d4b6aa;
  --cover-ink: #532d3e;
}
.cover-palette-4 {
  --cover-bg: #4b5e4c;
  --cover-ink: #e9dfbd;
}
.cover-palette-5 {
  --cover-bg: #ddd1b0;
  --cover-ink: #593c3d;
}
.card-cover {
  width: 90px;
  flex: 0 0 90px;
}
.cover-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 22px;
  margin: 12px 0 25px;
}
.shelf-book {
  min-width: 0;
  position: relative;
}
.book-open {
  padding: 0;
  width: 100%;
  min-height: 0;
  display: block;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  font-weight: 400;
}
.book-open:hover {
  filter: none;
}
.book-open:hover .cover-object {
  box-shadow: 4px 8px 12px var(--shadow);
}
.book-open .cover-object {
  transition: box-shadow 0.18s;
}
.shelf-title {
  display: block;
  font-family: Fraunces, serif;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.shelf-author {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.libby-marks {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: "Plex Mono", monospace;
  font-size: 10px;
  margin-top: 2px;
}
.libby-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
}
.libby-mark svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.libby-unconfirmed {
  opacity: 0.65;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font:
    10px/1.45 "Plex Mono",
    monospace;
  letter-spacing: 0.2px;
  color: var(--success);
  margin: 5px 0;
}
.unverified {
  color: var(--gold);
}
.libby-summary {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.libby-summary .badge {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.date-stamp {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font:
    10px/1.25 "Plex Mono",
    monospace;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 6px 9px;
  letter-spacing: 1px;
  transform: rotate(-3deg);
  opacity: 0.8;
  margin: 11px 0;
}
.date-stamp strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.reading-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  gap: 22px;
  min-height: 170px;
}
.reading-card .card-cover {
  width: 103px;
  flex-basis: 103px;
}
.reading-card .card-body {
  padding-top: 7px;
}
.reading-card h3 {
  font-size: 26px;
}
.reading-card .reading-open {
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  min-height: 44px;
  text-align: left;
}
.reading-card .reading-open h3 {
  margin: 0;
}
.reading-card .libby-marks {
  margin: 5px 0;
}
.reading-card .text-link {
  margin: 3px 0 0;
  padding: 0;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 14px;
}
.empty {
  grid-column: 1/-1;
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  max-width: 650px;
  border-bottom: 1px solid var(--line);
}
.empty p {
  font-family: Fraunces, serif;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
}
.empty button {
  flex-shrink: 0;
  font-size: 13px;
  padding: 10px 12px;
}
.empty .empty-mark {
  font-family: Fraunces, serif;
  font-size: 24px;
  color: var(--gold);
}
.sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: 640px;
  max-width: 100%;
  max-height: 91dvh;
  overflow: auto;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  padding: 12px 30px calc(30px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -12px 60px #0002;
  overscroll-behavior: contain;
}
.sheet::backdrop {
  background: #06131caa;
  backdrop-filter: blur(3px);
}
.sheet-handle {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  margin: 0 auto 23px;
}
.sheet-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.sheet-heading h2 {
  margin: 0;
}
.sheet-heading > .icon-button {
  flex-shrink: 0;
  margin: -8px -12px 0 0;
}
.sheet h2 {
  font-size: 27px;
}
.sheet .eyebrow {
  font-size: 9px;
}
#editor {
  padding: 12px 0 0;
  overflow: hidden;
}
#editor[open] {
  display: flex;
  flex-direction: column;
}
#editor > .sheet-handle {
  flex: none;
  margin-bottom: 0;
}
#entry-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(91dvh - 16px);
}
.editor-fields {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 23px 30px 16px;
}
.editor-save-error {
  height: 40px;
  min-height: 40px;
  overflow: auto;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 20px;
}
.editor-actions {
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 30px calc(16px + env(safe-area-inset-bottom, 0px));
}
.editor-actions button[type="submit"] {
  flex: 1;
}
.editor-actions #delete {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  padding-inline: 8px;
}
.detail-close {
  position: absolute;
  right: 16px;
  top: 17px;
  z-index: 2;
}
#detail-content > .detail-hero {
  display: flex;
  gap: 23px;
  align-items: center;
  padding: 10px 8px 25px 0;
  border-bottom: 1px solid var(--line);
}
.detail-cover {
  width: 112px;
  flex: 0 0 112px;
}
.detail-heading {
  min-width: 0;
  flex: 1;
}
#detail-title {
  font-size: 29px;
  margin: 0 0 8px;
}
.detail-author {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--ink-soft);
}
.detail-metadata {
  font:
    10px/1.8 "Plex Mono",
    monospace;
  color: var(--ink-soft);
}
.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 0 12px;
}
.detail-section-title h3 {
  font:
    11px "Plex Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  color: var(--ink-soft);
}
.entry-note {
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
}
.entry-note .entry-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.reader-name {
  font-family: Fraunces, serif;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.entry-status {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0;
}
.entry-note .note {
  font-size: 16px;
  line-height: 1.5;
  margin: 11px 0;
}
.entry-note .edit-entry {
  font-size: 13px;
  padding: 7px 10px;
  margin-top: 7px;
  min-height: 44px;
}
.tags {
  font:
    10px/1.6 "Plex Mono",
    monospace;
  color: var(--ink-soft);
}
.libby-library {
  border-top: 1px solid var(--line);
  padding: 15px 0 5px;
}
.libby-library:first-child {
  border-top: 0;
}
.libby-library h4 {
  font-family: Fraunces, serif;
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 9px;
  letter-spacing: -0.5px;
}
.libby-format {
  padding: 0 0 10px;
}
.libby-format p {
  font-size: 13px;
  margin: 4px 0;
}
.libby-format a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
.libby-format .format-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}
.libby-format .match-label {
  font-size: 11px;
  color: var(--ink-soft);
}
.profile-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
  min-height: 66px;
}
.profile-choice .mini-bookplate {
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  width: 38px;
  height: 41px;
  font:
    23px Fraunces,
    serif;
}
.profile-choice .profile-name {
  font-family: Fraunces, serif;
  font-size: 24px;
  font-weight: 500;
  flex: 1;
  letter-spacing: -0.6px;
}
.profile-choice[aria-pressed="true"] .mini-bookplate {
  border-color: var(--accent);
  color: var(--accent);
}
.profile-choice .choice-tick {
  color: var(--accent);
}
#rename-profile {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 22px;
}
#rename-profile label {
  flex: 1;
  margin: 0;
}
.verdict-page {
  max-width: 640px;
  margin: 0 auto;
}
.verdict-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.verdict-heading h1 {
  font-size: 31px;
  margin: 0;
}
#verdict-progress {
  font:
    10px "Plex Mono",
    monospace;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.verdict-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.verdict-stage {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  margin: 20px 0 24px;
}
.verdict-cover {
  width: 150px;
}
.verdict-book-info h2 {
  font-size: 33px;
  margin: 0 0 10px;
}
.verdict-book-info p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}
.verdict-book-info .date-stamp {
  margin-top: 18px;
  font-size: 9px;
}
.verdict-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.verdict-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 77px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--accent);
  font-family: "Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 3px;
}
.verdict-choice .verdict-icon {
  font:
    25px/1 Fraunces,
    serif;
}
.verdict-choice[data-verdict="liked"] {
  color: var(--ink);
}
.verdict-choice[data-verdict="meh"] {
  color: var(--ink-soft);
}
.verdict-choice[data-verdict="hated"] {
  color: var(--ink);
}
.verdict-choice:active {
  background: var(--accent-light);
}
.verdict-why-label {
  font-size: 13px;
  margin-bottom: 0;
}
#verdict-why {
  min-height: 82px;
}
.verdict-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.verdict-bottom .muted {
  font-size: 12px;
  max-width: 220px;
  margin: 0;
}
.skip-verdict {
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  padding-right: 0;
  font-size: 14px;
}
.settings-section {
  max-width: 620px;
  margin-bottom: 30px;
}
.visibility-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
}
.visibility-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: currentColor;
  background: var(--accent-light);
}
.visibility-toggle svg,
.private-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.private-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--accent);
  font:
    10px "Plex Mono",
    monospace;
}
.private-mark svg {
  width: 12px;
  height: 12px;
}
.editor-privacy,
.profile-privacy-settings {
  margin: 16px 0;
}
.editor-privacy .settings-copy {
  margin: 7px 0 0;
}
.entry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.entry-actions .edit-entry {
  margin: 0;
}
.entry-taste-signals {
  margin: 18px 0;
  padding: 16px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.entry-taste-signals .eyebrow {
  font-size: 9px;
}
.derived-tag-list,
.taste-summary-list,
.shortlist-attention ul,
.shortlist-excluded ul {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.derived-tag-list li,
.taste-summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}
.derived-tag-label {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.derived-tag-kind,
.derived-tag-phrase,
.availability-as-of {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font:
    10px/1.5 "Plex Mono",
    monospace;
  overflow-wrap: anywhere;
}
.derived-tag-phrase {
  font:
    12px/1.4 "Source Sans",
    sans-serif;
}
.remove-derived-tag {
  min-width: 55px;
}
.liked-plus-signal {
  display: grid;
  gap: 5px;
  font-size: 13px;
}
.liked-plus-signal strong,
.already-in-hand {
  color: var(--accent);
}
.taste-signal-message {
  font-size: 13px;
  color: var(--ink-soft);
}
.taste-signal-message:empty {
  display: none;
}
.reader-taste-settings h3 {
  margin-top: 20px;
}
.taste-summary-list li {
  align-items: baseline;
  font-size: 14px;
}
.taste-summary-list .derived-tag-kind {
  text-align: right;
}
.deleted-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.deleted-entry > div {
  min-width: 0;
}
.deleted-entry h3 {
  font-size: 21px;
}
.deleted-entry p {
  margin: 5px 0 0;
}
.deleted-entry-expiry {
  color: var(--ink-soft);
  font:
    10px/1.5 "Plex Mono",
    monospace;
}
.deleted-entry .restore-entry {
  flex: none;
  min-height: 44px;
}
.already-in-hand,
.shortlist-availability {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.shortlist-availability {
  color: var(--ink-soft);
}
.shortlist-attention,
.shortlist-excluded {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.shortlist-attention li,
.shortlist-excluded li {
  margin: 12px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.shortlist-attention li > span,
.shortlist-excluded li > span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
}
.verdict-book-info .visibility-toggle {
  margin-top: 12px;
  font-size: 12px;
}
.reader-readonly {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}
.mcp-server-address {
  display: flex;
  align-items: start;
  gap: 8px;
  flex-wrap: wrap;
}
.mcp-server-address input {
  flex: 1 1 100%;
  min-width: 0;
  font:
    16px "Plex Mono",
    monospace;
  min-height: 44px;
}
.mcp-server-address button {
  flex: none;
  margin-left: auto;
  min-height: 44px;
  white-space: nowrap;
}
.claude-steps {
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
}
.claude-steps li {
  padding-left: 3px;
  margin-bottom: 10px;
}
.oauth-connection-list {
  padding: 0;
  list-style: none;
}
.oauth-connection {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.oauth-connection > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.oauth-connection h4 {
  margin: 0 0 5px;
  font-size: 17px;
}
.oauth-connection p {
  margin: 5px 0;
}
.oauth-connection .mono {
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.disconnect-oauth {
  flex: none;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
}
#personal-token-options {
  margin-top: 22px;
}
.data-correction {
  margin: 18px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
#data-corrections > summary {
  min-height: 44px;
}
.data-correction-values a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.data-correction-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.data-correction-heading > div {
  min-width: 0;
}
.data-correction-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
.data-correction h4 {
  margin: 0;
  font:
    21px Fraunces,
    serif;
}
.audit-book-title {
  margin: 6px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.audit-review,
.audit-applied {
  flex: none;
  font:
    10px "Plex Mono",
    monospace;
  padding-top: 4px;
}
.audit-review {
  color: var(--accent);
}
.audit-applied,
.audit-unknown {
  color: var(--ink-soft);
}
.data-correction-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 30px;
  margin: 14px 0;
}
.data-correction-values dt {
  font:
    10px "Plex Mono",
    monospace;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.data-correction-values dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.correction-direction {
  position: absolute;
  left: calc(50% - 7px);
  top: 20px;
  color: var(--accent);
}
.data-correction-comparison {
  position: relative;
}
.audit-meta,
.audit-rule {
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.audit-provenance {
  margin: 10px 0;
}
.audit-provenance summary {
  min-height: 44px;
  font-size: 13px;
}
.audit-view-book {
  min-height: 44px;
  margin-top: 8px;
  font-size: 13px;
}
.settings-section h2 {
  font-size: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.reader-list {
  padding: 0;
  list-style: none;
}
.reader-list li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: Fraunces, serif;
  font-size: 22px;
}
.settings-copy {
  font-size: 14px;
  color: var(--ink-soft);
}
.theme-options {
  display: flex;
  gap: 6px;
}
.theme-options button[aria-pressed="true"] {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.install-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.install-option p {
  margin: 0;
}
.settings-section code {
  font-size: 12px;
}
#message:empty {
  display: none;
}
#message {
  font-size: 14px;
  padding: 11px 14px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  margin: 0 0 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.scroll {
  overflow: auto;
  max-width: 100%;
  margin: 20px 0;
}
code {
  font-family: "Plex Mono", monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}
details {
  margin: 26px 0;
  max-width: 620px;
}
summary {
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--accent);
}
#login {
  max-width: 700px;
  margin: 44px auto 64px;
}
#login h1 {
  font-size: 66px;
  line-height: 1.04;
  margin: 18px 0 24px;
  font-weight: 500;
  letter-spacing: -3px;
}
#login h1 em {
  color: var(--accent);
  font-weight: 450;
}
.login-intro {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}
#login form {
  max-width: 360px;
  margin-top: 27px;
}
#login form button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
footer {
  font-family: Fraunces, serif;
  font-size: 14px;
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
  padding: 35px 24px 28px;
}
.footer-mark {
  color: var(--gold);
  padding-right: 6px;
  font-size: 21px;
}
@media (min-width: 800px) {
  .cover-grid {
    gap: 32px 27px;
  }
  .shelf-title {
    font-size: 17px;
  }
  .shelf-author {
    font-size: 13px;
  }
  .cover-grid .cover-fallback-title {
    font-size: 21px;
  }
  .cover-grid .cover-fallback-author {
    font-size: 9px;
  }
  .shelves {
    max-width: none;
  }
  .shelf-toolbar {
    max-width: none;
  }
  .page-heading {
    margin-top: 3px;
  }
}
@media (max-width: 700px) {
  .masthead {
    min-height: 72px;
    padding: 16px 20px 8px;
  }
  .masthead::before {
    height: 6px;
  }
  #brand {
    font-size: 29px;
    letter-spacing: -1.6px;
  }
  .header-actions {
    gap: 5px;
  }
  main {
    padding: 24px 20px 0;
    min-height: calc(100dvh - 190px);
  }
  h1 {
    font-size: 33px;
    margin-bottom: 21px;
  }
  h2 {
    font-size: 25px;
  }
  .page-heading {
    margin-bottom: 21px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading .folio {
    font-size: 9px;
  }
  nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 65px;
    margin: 0;
    padding: 5px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--nav);
    box-shadow: 0 -3px 16px #00000005;
  }
  nav button {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 49px;
    min-width: 0;
    padding: 4px 1px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 0;
    background: transparent !important;
  }
  nav button.active::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 32%;
    right: 32%;
    height: 2px;
    background: var(--accent);
  }
  .nav-icon {
    width: 21px;
    height: 21px;
  }
  .nav-long {
    display: none;
  }
  .nav-short {
    display: inline;
  }
  .shelves button {
    font-size: 13px;
    min-height: 47px;
    padding: 9px 1px;
  }
  .shelf-count {
    font-size: 9px;
    margin-left: 4px;
  }
  .shelves button.selected::after {
    inset: auto 4px -1px;
  }
  .shelf-toolbar {
    margin: 4px 0 17px;
    gap: 6px;
  }
  .sort-filter {
    max-width: 184px;
  }
  #sort {
    font-size: 16px;
    min-height: 44px;
  }
  .audio-filter {
    font-size: 12px;
  }
  .audio-filter > span {
    gap: 5px;
  }
  .filter-full {
    display: none;
  }
  .filter-short {
    display: inline;
  }
  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px 16px;
    margin: 8px 0 20px;
  }
  .cover-grid .cover-fallback-title {
    font-size: 16px;
  }
  .cover-grid .cover-fallback-author {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .shelf-title {
    font-size: 14px;
    margin-top: 9px;
    line-height: 1.22;
  }
  .shelf-author {
    font-size: 11px;
  }
  .libby-marks {
    font-size: 9px;
    gap: 7px;
    margin-top: 1px;
  }
  .libby-mark svg {
    width: 12px;
    height: 12px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 23px;
    margin: 16px 0;
  }
  .reading-card {
    gap: 21px;
    padding-bottom: 23px;
    min-height: 174px;
  }
  .reading-card .card-cover {
    width: 106px;
    flex-basis: 106px;
  }
  .reading-card .card-body {
    padding-top: 5px;
  }
  .reading-card h3 {
    font-size: 25px;
  }
  .reading-card p {
    font-size: 13px;
  }
  .reading-card .date-stamp {
    font-size: 9px;
  }
  .card-cover {
    width: 83px;
    flex-basis: 83px;
  }
  .card h3 {
    font-size: 23px;
  }
  .card .cover-fallback-title {
    font-size: 14px;
  }
  .card .cover-fallback-author {
    font-size: 6px;
  }
  .empty {
    padding: 18px 0 23px;
    gap: 12px;
  }
  .empty p {
    font-size: 18px;
  }
  .empty button {
    font-size: 12px;
    padding: 10px 11px;
  }
  .sheet {
    padding: 12px 21px calc(26px + env(safe-area-inset-bottom, 0px));
    max-height: 91dvh;
    max-width: 100%;
    width: 100%;
  }
  .sheet-handle {
    margin-bottom: 24px;
  }
  .sheet h2 {
    font-size: 26px;
  }
  #detail-content > .detail-hero {
    gap: 20px;
    padding-bottom: 23px;
    padding-top: 8px;
  }
  .detail-cover {
    width: 105px;
    flex-basis: 105px;
  }
  #detail-title {
    font-size: 28px;
  }
  .detail-author {
    font-size: 14px;
  }
  .detail-metadata {
    font-size: 9px;
  }
  .detail-cover .cover-fallback-title {
    font-size: 17px;
  }
  .detail-cover .cover-fallback-author {
    font-size: 7px;
  }
  .detail-section-title {
    margin-top: 24px;
  }
  .entry-note .note {
    font-size: 15px;
  }
  .entry-note .reader-name {
    font-size: 22px;
  }
  .entry-note {
    padding-bottom: 16px;
  }
  .sheet-heading {
    margin-bottom: 18px;
  }
  .sheet .pair {
    gap: 9px;
  }
  .sheet fieldset {
    gap: 6px;
  }
  .sheet fieldset label {
    padding: 9px 9px;
    font-size: 13px;
  }
  .sheet .actions {
    margin-top: 12px;
  }
  .editor-fields {
    padding-inline: 21px;
  }
  #editor .editor-actions {
    margin-top: 0;
    padding-inline: 21px;
  }
  .verdict-heading {
    margin-bottom: 10px;
  }
  .verdict-heading h1 {
    font-size: 31px;
  }
  .verdict-intro {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .verdict-stage {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
    text-align: left;
    margin: 12px 0 14px;
  }
  .verdict-cover {
    width: 130px;
  }
  .verdict-cover .cover-fallback-title {
    font-size: 21px;
  }
  .verdict-cover .cover-fallback-author {
    font-size: 9px;
  }
  .verdict-book-info h2 {
    font-size: 25px;
    margin: 0 0 7px;
  }
  .verdict-book-info p {
    font-size: 13px;
  }
  .verdict-book-info .date-stamp {
    display: none;
  }
  .verdict-buttons {
    gap: 7px;
    margin: 10px 0 8px;
  }
  .verdict-choice {
    min-height: 64px;
    font-size: 11px;
    gap: 4px;
    padding-block: 8px;
  }
  .verdict-choice .verdict-icon {
    font-size: 22px;
  }
  .verdict-why-label {
    margin-top: 8px;
    font-size: 13px;
  }
  #verdict-why {
    min-height: 64px;
    height: 64px;
  }
  .verdict-page .why-choices {
    gap: 3px 12px;
    margin: 4px 0 8px;
  }
  .verdict-bottom {
    margin-top: 0;
  }
  .verdict-bottom .muted {
    max-width: 200px;
    font-size: 11px;
  }
  .skip-verdict {
    font-size: 13px;
  }
  #login {
    margin: 40px 0 38px;
  }
  #login h1 {
    font-size: 47px;
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 17px 0 22px;
  }
  .login-intro {
    font-size: 15px;
  }
  #login .eyebrow {
    font-size: 9px;
  }
  #login form {
    margin-top: 25px;
  }
  footer {
    padding: 29px 20px calc(95px + env(safe-area-inset-bottom, 0px));
    font-size: 13px;
  }
  body:has(#app[hidden]) footer {
    padding-bottom: 30px;
  }
  .settings-section {
    margin-bottom: 26px;
  }
  .settings-section h2 {
    font-size: 25px;
  }
  .settings-copy {
    font-size: 13px;
  }
  .profile-sheet {
    max-height: 80dvh;
  }
  #rename-profile {
    gap: 7px;
  }
  #rename-profile button {
    font-size: 13px;
    padding: 10px 12px;
  }
  .profile-choice .profile-name {
    font-size: 24px;
  }
  #import-form {
    margin: 22px 0;
  }
  .import-intro {
    font-size: 14px;
    max-width: 440px;
  }
}
@media (max-width: 350px) {
  main {
    padding-inline: 16px;
  }
  .masthead {
    padding-inline: 16px;
  }
  .cover-grid {
    gap: 20px 12px;
  }
  .cover-grid .cover-fallback-title {
    font-size: 14px;
  }
  .shelves button {
    font-size: 12px;
  }
  .shelf-count {
    font-size: 8px;
    margin-left: 3px;
  }
  .sort-filter {
    max-width: 158px;
  }
  .filter-short {
    font-size: 11px;
  }
  .shelf-title {
    font-size: 13px;
  }
  .shelf-author {
    font-size: 10px;
  }
  .verdict-heading h1 {
    font-size: 28px;
  }
  .verdict-cover {
    width: 124px;
  }
  .verdict-stage {
    margin-top: 17px;
    gap: 14px;
  }
  .verdict-book-info h2 {
    font-size: 25px;
  }
  .sheet {
    padding-inline: 17px;
  }
  .detail-cover {
    width: 91px;
    flex-basis: 91px;
  }
  #detail-title {
    font-size: 25px;
  }
  .detail-hero {
    gap: 17px !important;
  }
  .verdict-choice {
    font-size: 9px;
  }
  #login h1 {
    font-size: 41px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.format-heading svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.narrator-fields {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  padding: 18px 0 4px;
}
.narrator-fields h3 {
  font-size: 22px;
  margin-bottom: 7px;
}
.narrator-fields > p {
  font-size: 13px;
  margin-bottom: 13px;
}
.narrator-fields label:has(input) {
  grid-template-columns: 1fr auto;
}
.narrator-fields label:has(input) input {
  grid-column: 1/-1;
}
.optional-label {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
}
.narration-line {
  display: flex;
  align-items: start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  margin: 10px 0;
}
.narration-line strong {
  font-weight: 600;
  color: var(--ink);
}
.narration-mark {
  display: inline-flex;
  margin-top: 2px;
}
.narration-mark svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.narration-verdict {
  display: block;
  font:
    10px/1.5 "Plex Mono",
    monospace;
  margin-top: 4px;
  text-transform: uppercase;
  color: var(--accent);
}
.narrator-card {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.narrator-card summary {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  min-height: 57px;
  color: var(--ink);
}
.narrator-name {
  font:
    21px/1.2 Fraunces,
    serif;
  letter-spacing: -0.4px;
}
.narrator-summary {
  font:
    10px/1.5 "Plex Mono",
    monospace;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.narrator-rating-form {
  padding: 0 0 14px;
}
.narrator-rating-form > .mono {
  font-size: 10px;
}
.narrator-rating-form textarea {
  min-height: 72px;
}
.narrator-rating-form label {
  font-size: 13px;
}
.narrator-rating-form button {
  font-size: 13px;
}
.narrator-saved {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 0;
}
.narrator-saved:empty {
  display: none;
}
.narrator-hint {
  font-size: 12px !important;
  margin: 0 0 13px !important;
}
.narrator-rating-form > label {
  margin-bottom: 6px;
}
.narrator-rating-form > textarea {
  margin-bottom: 12px;
}
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.detail-series {
  font:
    10px/1.6 "Plex Mono",
    monospace;
  color: var(--accent);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.next-series-section {
  padding: 0 0 23px;
  border-bottom: 1px solid var(--line);
}
.next-series-card {
  border: 0;
  padding: 0;
  gap: 18px;
  align-items: center;
}
.next-series-card .card-cover {
  width: 72px;
  flex: 0 0 72px;
}
.next-series-card h3 {
  font-size: 22px;
}
.next-series-card .detail-series {
  font-size: 9px;
  line-height: 1.6;
  margin: 7px 0 9px;
}
.next-series-card .muted {
  font-size: 13px;
}
.next-series-card .secondary {
  font-size: 13px;
  padding: 9px 12px;
}
.next-series-card .cover-fallback-title {
  font-size: 13px;
}
.next-series-card .cover-fallback-author {
  font-size: 6px;
}
.next-series-scope {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 13px 0 0;
}
.next-reads-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.next-reads-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 21px;
}
.next-reads-heading h2 {
  margin: 0;
  font-size: 29px;
}
.next-reads-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.text-button {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  color: var(--accent);
  border: 0;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.next-reads-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
}
.shortlist-reason {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.shortlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.shortlist-toolbar label {
  margin: 0;
}
.shortlist-count {
  font:
    10px "Plex Mono",
    monospace;
  color: var(--ink-soft);
  white-space: nowrap;
}
.shortlist-cards {
  display: grid;
  gap: 22px;
  margin-top: 23px;
}
.shortlist-card {
  gap: 18px;
  padding-bottom: 22px;
}
.shortlist-card .card-cover {
  width: 75px;
  flex: 0 0 75px;
}
.shortlist-card h3 {
  font-size: 23px;
}
.shortlist-card .card-body > .muted {
  font-size: 13px;
}
.shortlist-reasons {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 17px;
  margin: 12px 0;
}
.shortlist-reasons li {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.shortlist-card .secondary {
  font-size: 13px;
  padding: 9px 11px;
}
.shortlist-card .cover-fallback-title {
  font-size: 13px;
}
.shortlist-card .cover-fallback-author {
  font-size: 6px;
}
@media (max-width: 700px) {
  .next-reads-section {
    margin-top: 28px;
    padding-top: 22px;
  }
  .next-reads-heading {
    gap: 10px;
  }
  .next-reads-heading h2 {
    font-size: 27px;
  }
  .next-reads-heading .eyebrow {
    font-size: 8px;
  }
  .next-reads-heading .text-button {
    font-size: 12px;
  }
  .shortlist-toolbar .audio-filter {
    font-size: 13px;
  }
  .shortlist-reason {
    font-size: 12px;
  }
  .shortlist-card h3 {
    font-size: 22px;
  }
}
.import-report-counts {
  font:
    10px/1.8 "Plex Mono",
    monospace;
  color: var(--ink-soft);
  margin: 16px 0;
}
.why-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  margin: 7px 0 17px;
}
.why-choice {
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px dotted var(--line);
  border-radius: 0;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
}
.why-choice::before {
  content: "+ ";
  color: var(--accent);
}
.why-choice:hover {
  color: var(--accent);
  background: var(--accent-light);
}
.reading-extras-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 8px;
}
.reading-extras-links button {
  flex: 1 1 140px;
  font-size: 13px;
  padding: 11px 12px;
}
.listen-ready {
  display: flex;
  gap: 7px;
  color: var(--success);
}
.listen-ready svg {
  width: 15px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.libby-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.year-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 25px;
}
.year-toolbar label {
  width: 112px;
  margin: 0;
  flex-shrink: 0;
  font-size: 12px;
}
.year-toolbar button {
  font-size: 13px;
}
.year-heading h3 {
  font:
    34px/1.15 Fraunces,
    serif;
  margin: 5px 0 10px;
}
.year-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 25px 0;
  gap: 24px 16px;
}
.year-read-count {
  color: var(--ink-soft);
  font:
    9px/1.7 "Plex Mono",
    monospace;
  margin: 7px 0 0;
}
.year-read-ledger,
.reading-history {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 5px;
}
.year-read-ledger ol {
  padding-left: 21px;
  font-size: 14px;
}
.year-read-ledger li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.year-read-ledger li span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font:
    10px/1.6 "Plex Mono",
    monospace;
}
.year-undated {
  margin-top: 23px;
}
.comparison-section {
  margin: 25px 0;
}
.comparison-section > h3 {
  font:
    25px/1.2 Fraunces,
    serif;
  margin: 0 0 20px;
}
.comparison-card .card-cover {
  width: 65px;
  flex: 0 0 65px;
}
.comparison-card h4 {
  font:
    22px/1.2 Fraunces,
    serif;
  margin: 0;
}
.comparison-card .cover-fallback-title {
  font-size: 12px;
}
.comparison-card .cover-fallback-author {
  font-size: 5px;
}
.comparison-verdicts p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-height: 34px;
}
.comparison-verdicts p > span:first-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
#reading-comparison {
  display: block;
  margin-top: 12px;
}
.entry-note .start-reread {
  font-size: 13px;
  padding: 7px 10px;
  min-height: 44px;
  margin-top: 7px;
  margin-left: 5px;
}
.reread-form {
  margin-top: 15px;
  padding: 10px 0 0;
  border-top: 1px dotted var(--line);
}
.reread-form label {
  max-width: 230px;
  font-size: 13px;
}
.reread-form button {
  min-height: 44px;
  font-size: 13px;
}
.archived-read .date-stamp {
  margin-right: 10px;
}
.scan-isbn {
  min-height: 44px;
  margin: -7px 0 20px;
  font-size: 13px;
}
@media (max-width: 420px) {
  .why-choice {
    font-size: 12px;
  }
  .entry-note .start-reread {
    display: block;
    margin-left: 0;
  }
}
.import-preview-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.import-preview-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.import-row-heading {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.import-row-number {
  font:
    9px "Plex Mono",
    monospace;
  white-space: nowrap;
  color: var(--ink-soft);
}
.import-row-heading h3 {
  font-size: 23px;
  margin: 0;
}
.import-preview-row > .muted {
  font-size: 13px;
  margin: 6px 0;
}
.import-row-action {
  font-size: 14px;
  color: var(--ink);
  margin: 12px 0 6px;
}
.import-row-error {
  color: var(--accent);
}
.import-row-status {
  font:
    10px/1.6 "Plex Mono",
    monospace;
  color: var(--ink-soft);
}
.import-row-notes {
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 10px 0;
}
.import-row-notes li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.import-row-notes strong {
  font-weight: 600;
  color: var(--ink);
}
.import-result {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  max-width: 620px;
}
.import-result h2 {
  margin: 0 0 14px;
}
.import-result > p:not(.eyebrow) {
  font-size: 14px;
}
.import-result h3 {
  font-size: 22px;
  margin-top: 20px;
}
#import-format-label {
  font-size: 14px;
}
#import-source-help {
  font-size: 13px;
  max-width: 620px;
}
#preview > h2 {
  font-size: 26px;
}
#preview {
  max-width: 760px;
}
.import-row-conflict {
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin: 13px 0;
}
.digest-account {
  font-size: 13px;
  color: var(--ink);
  margin: 14px 0;
}
.digest-account > span {
  font:
    10px "Plex Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
}
.digest-toggle {
  font-size: 14px;
  margin: 17px 0 11px;
}
.digest-toggle > span {
  align-items: center !important;
  min-height: 44px;
}
#digest-form > label[for] {
  font-size: 13px;
  margin-bottom: 6px;
}
#digest-form select {
  max-width: 330px;
}
#digest-form > button {
  display: block;
  font-size: 13px;
  margin-top: 15px;
}
.digest-unavailable {
  font-size: 13px;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin: 15px 0;
}
#digest-message {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 0;
}
#digest-message:empty {
  display: none;
}
.auth-modes {
  margin: 24px 0 10px;
  flex-wrap: wrap;
}
.auth-modes button {
  font-size: 13px;
}
.auth-modes button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.invite-context {
  font-size: 15px;
  line-height: 1.5;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 13px;
  margin: 24px 0;
}
.auth-privacy {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 24px;
}
.auth-privacy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.privacy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 12px;
  font:
    12px "Source Sans",
    sans-serif;
  color: var(--ink-soft);
}
#turnstile-container {
  margin: 18px 0 10px;
  min-height: 65px;
  max-width: 100%;
}
#auth-protection-status {
  font-size: 12px;
  margin: 10px 0;
}
#auth-protection-status:empty {
  display: none;
}
#login #retry-protection {
  margin-bottom: 10px;
}
#login #auth-name-help {
  font-size: 12px;
  margin: 8px 0 15px;
}
.auth-feedback {
  font-size: 14px;
  line-height: 1.5;
  padding: 11px 14px;
  margin: 12px 0 0;
  border-left: 3px solid var(--success);
  background: var(--paper-deep);
  scroll-margin-top: 100px;
}
.auth-feedback:empty {
  display: none;
}
.auth-feedback[data-failed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}
.auth-feedback:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
#invite-form > label[for] {
  font-size: 13px;
  margin-bottom: 6px;
}
#invite-form > button {
  font-size: 13px;
}
#invite-message {
  font-size: 13px;
  color: var(--accent);
}
#invite-message:empty {
  display: none;
}
.account-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.account-identity span {
  font:
    10px "Plex Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
}
.account-identity strong {
  font:
    25px Fraunces,
    serif;
  font-weight: 500;
  letter-spacing: -0.7px;
}
#delete-my-account {
  font-size: 13px;
}
.account-delete-check {
  font-size: 14px;
}
.account-delete-check > span {
  min-height: 44px;
  align-items: flex-start !important;
  line-height: 1.5;
}
.account-delete-check input {
  margin-top: 3px;
}
#account-delete-copy {
  font-size: 15px;
  line-height: 1.6;
}
#account-delete-form > button {
  margin-top: 12px;
}
#account-delete-message {
  font-size: 13px;
  color: var(--accent);
}
.household-token-list {
  list-style: none;
  margin: 23px 0;
  padding: 0;
}
.household-token {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.household-token > div {
  min-width: 0;
}
.household-token h3 {
  font-size: 22px;
  margin-bottom: 7px;
}
.household-token .mono {
  font-size: 9px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}
.household-token button {
  font-size: 12px;
  padding: 9px 11px;
  flex-shrink: 0;
}
.token-once {
  border-left: 2px solid var(--accent);
  padding-left: 15px;
  margin: 22px 0;
}
.token-once > label {
  font-size: 13px;
  margin-bottom: 6px;
}
.token-once input {
  font-family: "Plex Mono", monospace;
  font-size: 16px;
}
.token-once > button {
  font-size: 13px;
  margin-top: 12px;
}
.token-once [role="status"] {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 0;
}
#create-household-token button {
  font-size: 13px;
}
.overlap-readers {
  align-items: start;
  gap: 12px;
}
.overlap-readers label {
  font-size: 13px;
}
.overlap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 16px;
}
.privacy-page {
  max-width: 760px;
  padding-top: 58px;
  padding-bottom: 50px;
}
.privacy-page > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.privacy-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
@media (max-width: 700px) {
  .privacy-page {
    padding-top: 35px;
  }
  .privacy-page > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }
  .privacy-page .privacy-back {
    font-size: 13px;
  }
}
.token-revoked {
  font:
    10px "Plex Mono",
    monospace;
  text-transform: uppercase;
  color: var(--accent);
  margin: 8px 0 0;
}
.own-data-export-section {
  margin: 25px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.own-data-export-section h3 {
  font-size: 24px;
  margin: 0 0 12px;
}
.own-data-export-section button {
  font-size: 13px;
}
#export-message {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 0;
}
#export-message:empty {
  display: none;
}
.amazon-source-mapping {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 22px 0;
}
.amazon-source-mapping h3 {
  font-size: 24px;
  margin-bottom: 13px;
}
.amazon-source-mapping .settings-copy {
  font-size: 13px;
}
#amazon-source-options {
  display: grid;
  grid-template-columns: 1fr;
  margin: 17px 0;
  gap: 0;
}
#amazon-source-options label {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent !important;
  border-radius: 0;
  padding: 12px 0;
  gap: 10px;
  min-height: 56px;
  color: var(--ink);
}
#amazon-source-options label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#amazon-source-options small {
  display: block;
  font:
    9px/1.6 "Plex Mono",
    monospace;
  color: var(--ink-soft);
  margin-top: 4px;
}
.amazon-source-mapping > button {
  font-size: 13px;
}
.amazon-file-report {
  max-width: 100%;
  margin: 22px 0;
}
.amazon-file-report summary {
  font-size: 13px;
  min-height: 44px;
}
.amazon-file-report ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.amazon-file-report li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.amazon-file-report li > strong {
  font-size: 13px;
  font-weight: 600;
}
.amazon-file-report li > p {
  font-size: 12px;
  margin: 7px 0;
  color: var(--ink-soft);
}
.amazon-file-status {
  display: block;
  font:
    9px/1.6 "Plex Mono",
    monospace;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 5px;
}
#amazon-selection-status:empty {
  display: none;
}
#amazon-selection-status {
  color: var(--accent);
  font-size: 12px;
  margin: 12px 0 0;
}
#change-cover {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  font-size: 13px;
}
#cover-picker {
  min-width: 0;
}
#cover-picker-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -15px 0 10px;
  font-size: 13px;
}
#cover-picker .eyebrow {
  margin-top: 5px;
}
#cover-picker h2 {
  margin-bottom: 7px;
}
.cover-picker-book {
  font-size: 16px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
#cover-choice-form fieldset {
  border: 0;
  padding: 0;
  margin: 21px 0;
  min-width: 0;
}
.cover-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cover-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 13px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
}
.sheet .cover-option {
  align-items: stretch;
  padding: 13px 10px 10px;
}
.sheet .cover-mode-options {
  gap: 10px;
}
.cover-candidates {
  display: block;
}
.cover-option.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cover-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.cover-option > input {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}
.cover-mode-options .cover-option-title {
  padding-right: 20px;
}
.cover-option-title {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cover-option-copy {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.cover-candidates > legend {
  font-family: Fraunces, serif;
  font-size: 20px;
  margin-bottom: 13px;
}
.cover-candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 10px;
}
.sheet .cover-candidate-grid .cover-option {
  padding: 7px 7px 10px;
}
.cover-candidate-grid .cover-object {
  margin-bottom: 11px;
  width: 100%;
}
.cover-candidate-grid .cover-fallback-title {
  font-size: 13px;
}
.cover-candidate-grid .cover-fallback-author {
  font-size: 6px;
}
.cover-candidate-grid input {
  z-index: 1;
  box-shadow: 0 0 0 3px var(--paper);
}
.cover-option-unavailable {
  cursor: default;
}
.cover-option-unavailable .cover-object {
  opacity: 0.6;
}
.cover-legacy-note {
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.cover-picker-feedback {
  min-height: 48px;
  margin: 17px 0;
}
#cover-check-again {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.cover-picker-actions {
  position: sticky;
  bottom: calc(-26px - env(safe-area-inset-bottom, 0px));
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 calc(-26px - env(safe-area-inset-bottom, 0px));
  padding: 14px 0 calc(26px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.cover-picker-actions button {
  min-width: 105px;
  font-size: 13px;
}
.masthead {
  z-index: 30;
  isolation: isolate;
}
.link-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 3px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cover-frame {
  position: relative;
  min-width: 0;
}
.cover-grid .cover-frame,
.verdict-cover .cover-frame {
  padding-top: 26px;
}
.book-open .cover-frame {
  transition: transform 0.18s;
}
.book-open:hover .cover-frame {
  transform: translateY(-3px);
}
.verdict-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #fff8e9;
  color: var(--verdict-ink);
  box-shadow: 0 0 0 1px #182b3b12;
  vertical-align: middle;
}
.verdict-loved {
  --verdict-ink: #832e3d;
}
.verdict-liked {
  --verdict-ink: #1c3c51;
}
.verdict-meh {
  --verdict-ink: #6e7473;
}
.verdict-hated {
  --verdict-ink: #17212a;
}
.verdict-mark svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cover-verdict {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
}
.verdict-choice .verdict-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
.verdict-choice .verdict-icon svg {
  width: 18px;
  height: 18px;
}
.entry-byline .verdict-mark {
  flex-shrink: 0;
}
.badge-reveal {
  animation: badge-in 0.3s ease-out;
}
@keyframes badge-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.libby-marks:empty {
  display: none;
}
.shelf-toolbar:has(+ .cover-grid) {
  margin-bottom: 0;
}
#books.cover-grid {
  margin-top: 0;
  row-gap: 12px;
}
/* Shelf geometry is complete before covers and saved availability arrive.
   Conditional metadata uses reserved slots; the detail sheet keeps full text. */
#books.cover-grid > .shelf-book {
  display: grid;
  grid-template-rows: auto 27px;
  row-gap: 1px;
  align-content: start;
}
#books.cover-grid > .shelf-book > .book-open {
  display: grid;
  grid-template-areas: "cover" "title" "author" "privacy";
  grid-template-rows: auto auto auto 18px;
  align-items: start;
}
#books.cover-grid .book-open > .cover-frame {
  grid-area: cover;
  width: 100%;
}
#books.cover-grid .shelf-title {
  grid-area: title;
  height: 2.4em;
  min-height: 2.4em;
  max-height: 2.4em;
  line-height: 1.2;
}
#books.cover-grid .shelf-author {
  grid-area: author;
  height: 1.3em;
  min-height: 1.3em;
  max-height: 1.3em;
  line-height: 1.3;
}
#books.cover-grid .book-open > .private-mark {
  grid-area: privacy;
  height: 16px;
  margin: 2px 0 0;
  line-height: 16px;
}
#books .libby-marks,
#books .libby-marks:empty {
  display: flex;
  height: 27px;
  min-height: 27px;
  max-height: 27px;
  margin: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}
#books .libby-mark {
  flex: 0 0 auto;
  white-space: nowrap;
}
#books .reading-card {
  --reading-title-slot: 60px;
  --reading-author-slot: 19px;
  --reading-meta-slot: 32px;
  --reading-note-slot: 42px;
  --reading-bottom-space: 24px;
  height: calc(
    var(--reading-title-slot) + var(--reading-author-slot) +
      var(--reading-meta-slot) + var(--reading-note-slot) + 27px + 44px + 20px +
      var(--reading-bottom-space) + 1px
  );
  min-height: 0;
  padding-bottom: var(--reading-bottom-space);
  align-items: flex-start;
}
#books .reading-card .card-body {
  display: grid;
  grid-template-areas:
    "title title"
    "author author"
    "started privacy"
    "note note"
    "libby libby"
    "edit edit";
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows:
    var(--reading-title-slot) var(--reading-author-slot)
    var(--reading-meta-slot) var(--reading-note-slot) 27px 44px;
  gap: 4px 6px;
  padding-top: 0;
}
#books .reading-card .reading-open {
  grid-area: title;
  height: var(--reading-title-slot);
  min-height: 44px;
  width: 100%;
  align-self: start;
}
#books .reading-card .reading-open h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: var(--reading-title-slot);
  margin: 0;
  overflow: hidden;
  line-height: 1.12;
}
#books .reading-card .card-body > .muted {
  grid-area: author;
  height: var(--reading-author-slot);
  margin: 0;
  line-height: var(--reading-author-slot);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#books .reading-card .card-body > .date-stamp {
  grid-area: started;
  flex-direction: row;
  align-items: center;
  align-self: center;
  justify-self: start;
  gap: 4px;
  height: 28px;
  max-width: 100%;
  margin: 0;
  padding: 4px 6px;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
#books .reading-card .date-stamp strong {
  font-size: 11px;
  line-height: 1.2;
}
#books .reading-card .card-body > .private-mark {
  grid-area: privacy;
  align-self: center;
  justify-self: end;
  height: 18px;
  margin: 0;
  line-height: 18px;
}
#books .reading-card .card-body > .note {
  grid-area: note;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: var(--reading-note-slot);
  margin: 0;
  overflow: hidden;
  line-height: 1.5;
}
#books .reading-card .libby-marks {
  grid-area: libby;
}
#books .reading-card .text-link {
  grid-area: edit;
  justify-self: start;
  height: 44px;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 700px) {
  #books.cover-grid .shelf-title {
    height: 2.44em;
    min-height: 2.44em;
    max-height: 2.44em;
    line-height: 1.22;
  }
  #books .reading-card {
    --reading-title-slot: 52px;
    --reading-author-slot: 18px;
    --reading-note-slot: 39px;
    --reading-bottom-space: 23px;
  }
}
@media (max-width: 350px) {
  #books .reading-card {
    --reading-meta-slot: 48px;
    gap: 14px;
  }
  #books .reading-card .card-cover {
    width: 82px;
    flex-basis: 82px;
  }
  #books .reading-card .card-body > .date-stamp {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    height: 42px;
  }
}
.verdict-stage {
  margin-top: 8px;
  margin-bottom: 10px;
}
.verdict-filter-control {
  position: relative;
  flex: 0 0 auto;
}
#verdict-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 11px;
  font-size: 13px;
}
#verdict-filter-button.filter-active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
#verdict-filter-button > svg,
.verdict-filter-all svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.verdict-filter-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.verdict-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 6;
  width: 190px;
  max-width: calc(100vw - 40px);
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: 0 12px 32px var(--shadow);
}
.verdict-filter-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
}
.verdict-filter-option[aria-checked="true"] {
  background: var(--accent-light);
  color: var(--accent);
}
@media (max-width: 700px) {
  #verdict-filter-button {
    width: 44px;
    padding: 8px;
  }
  .verdict-filter-caption {
    display: none;
  }
  .verdict-stage {
    margin-top: 0;
    margin-bottom: 0;
  }
}
.libby-library h4,
.libby-diagnostic-heading h4 {
  overflow-wrap: anywhere;
}
.libby-warning {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0;
}
.libby-asof {
  font:
    10px/1.8 "Plex Mono",
    monospace;
  color: var(--ink-soft);
  margin: 7px 0 4px;
}
.libby-asof span {
  display: block;
  font:
    12px/1.5 "Source Sans",
    sans-serif;
  margin-top: 4px;
}
.libby-stale {
  color: var(--accent);
}
.libby-live-note,
.libby-unmatched-format {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 7px 0 12px;
}
.libby-counts {
  color: var(--ink);
}
.libby-format .libby-borrowability {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
  margin: 7px 0;
}
.libby-format .libby-borrowable {
  color: var(--success);
}
#library-settings {
  scroll-margin-top: 90px;
}
.hoopla-library-settings {
  margin: 18px 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.import-tag-options {
  border-block: 1px solid var(--line);
  margin: 20px 0;
  padding: 16px 0;
}
.onboarding-page {
  max-width: 760px;
  margin-inline: auto;
}
.onboarding-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.onboarding-heading h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin: 0;
  max-width: 470px;
}
.onboarding-heading .text-button {
  flex-shrink: 0;
  font-size: 12px;
  min-height: 44px;
  padding-inline: 0;
}
.onboarding-intro {
  max-width: 470px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 15px 0;
}
.onboarding-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  align-items: baseline;
  font-size: 12px;
  color: var(--ink-soft);
}
#onboarding-progress {
  font:
    11px "Plex Mono",
    monospace;
  color: var(--accent);
}
#onboarding-meter {
  display: block;
  width: 100%;
  height: 5px;
  accent-color: var(--accent);
  margin: 12px 0 20px;
}
#onboarding-status:empty,
#onboarding-search-status:empty {
  display: none;
}
#onboarding-search {
  display: flex;
  flex-wrap: nowrap;
  margin: 20px 0 14px;
}
#onboarding-search input {
  min-width: 0;
  flex: 1;
}
#onboarding-search button {
  font-size: 14px;
}
#onboarding-search-results:empty,
#onboarding-starter-books:empty {
  display: none;
}
.onboarding-cache-note {
  font:
    9px/1.6 "Plex Mono",
    monospace;
  color: var(--ink-soft);
  margin: 7px 0 0;
}
.onboarding-starter {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 21px;
}
.onboarding-starter h2 {
  font-size: 27px;
}
#onboarding-exports {
  min-height: 44px;
  padding-inline: 0;
  text-align: left;
  font-size: 13px;
  margin-top: 15px;
}
.export-secondary {
  min-height: 44px;
  text-align: left;
  font-size: 13px;
  padding-inline: 0;
  margin: 16px 0 24px;
}
.quick-add-hero {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 21px;
  align-items: center;
  margin: 15px 0 20px;
  padding-right: 10px;
}
.quick-add-cover {
  width: 95px;
}
.quick-add-hero h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.quick-add-hero .muted {
  font-size: 13px;
  margin: 5px 0 10px;
}
#quick-add-why {
  min-height: 52px;
  height: 52px;
}
.quick-add-options {
  margin: 8px 0;
}
.quick-add-options summary,
.review-options summary {
  font-size: 12px;
  justify-content: space-between;
  min-height: 44px;
}
.quick-add-options summary::after,
.review-options summary::after {
  content: "+";
  font:
    18px "Plex Mono",
    monospace;
}
.quick-add-options[open] summary::after,
.review-options[open] summary::after {
  content: "−";
}
.quick-add-prompt {
  margin: 6px 0;
}
#quick-add-error:empty {
  display: none;
}
.export-guide-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 24px;
}
.export-guide-choices button {
  min-height: 44px;
  font-size: 13px;
  padding: 9px;
}
.export-guide-choices button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}
#export-guide-body h3 {
  font-size: 26px;
}
.export-guide-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.export-guide-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  margin: 20px 0;
}
.export-step-picture {
  position: relative;
  width: 40px;
  color: var(--accent);
}
.export-step-picture svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.export-step-picture span {
  display: block;
  font:
    10px "Plex Mono",
    monospace;
  text-align: center;
  width: 33px;
  margin-top: 3px;
}
.export-guide-step h4 {
  font-size: 18px;
  margin: 0 0 7px;
}
.export-guide-step p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.review-page .verdict-stage {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
}
.review-page .verdict-cover {
  width: 104px;
}
.review-page .verdict-book-info h2 {
  font-size: 24px;
}
.review-page .review-evidence {
  font:
    9px/1.6 "Plex Mono",
    monospace;
  margin: 7px 0;
}
.review-page #verdict-why {
  min-height: 44px;
  height: 44px;
}
.review-page .review-finished-label {
  font-size: 12px;
  margin: 0;
  color: var(--ink-soft);
}
.review-page .verdict-buttons {
  margin: 7px 0;
}
.review-other-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0;
}
.review-other-actions button {
  min-height: 44px;
  font-size: 13px;
  padding: 9px;
}
.review-existing {
  border-block: 1px solid var(--line);
  padding: 10px 0;
}
.review-existing p {
  color: var(--ink-soft);
  font-size: 12px;
  margin: 0;
}
.review-existing .text-button {
  min-height: 44px;
  font-size: 13px;
  padding: 5px 0;
}
.review-kept-result button {
  margin: 10px 8px 0 0;
}
.review-page #review-status {
  font-size: 12px;
}
.import-tag-options h2 {
  font-size: 24px;
  margin: 0 0 14px;
}
.import-match-id {
  font:
    10px/1.7 "Plex Mono",
    monospace;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.import-file-about,
.import-match-details {
  margin: 10px 0;
}
.import-file-about summary,
.import-match-details summary {
  min-height: 44px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.import-file-about summary::after,
.import-match-details summary::after {
  content: "+";
  margin-left: auto;
  font:
    18px "Plex Mono",
    monospace;
}
.import-file-about[open] > summary::after,
.import-match-details[open] > summary::after {
  content: "−";
}
#import-job-progress {
  display: block;
  width: 100%;
  height: 10px;
  accent-color: var(--accent);
  margin: 15px 0;
}
#import-job-progress[hidden] {
  display: none;
}
.hoopla-library-settings legend {
  font:
    20px Fraunces,
    serif;
  padding: 0 8px 0 0;
}
.hoopla-library-settings .hoopla-library-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 7px 0;
  padding: 5px 0;
  cursor: pointer;
}
.hoopla-library-option input {
  flex: 0 0 auto;
}
.hoopla-library-option > span {
  min-width: 0;
}
.hoopla-library-option strong,
.hoopla-library-option span span {
  display: block;
  overflow-wrap: anywhere;
}
.hoopla-library-option strong {
  font-size: 13px;
  font-weight: 600;
}
.hoopla-library-option span span {
  color: var(--ink-soft);
  font-size: 12px;
  margin-top: 2px;
}
.detail-hoopla {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 5px;
}
.hoopla-library {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}
.hoopla-slug {
  min-width: 0;
  overflow-wrap: anywhere;
  font:
    10px/1.6 "Plex Mono",
    monospace;
  color: var(--ink-soft);
}
.hoopla-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 13px;
  text-decoration: none;
}
.libby-test {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 20px;
}
.libby-test h3 {
  font-size: 24px;
}
#test-libby,
#resume-libby-test {
  min-height: 44px;
  font-size: 13px;
}
#libby-test-status {
  margin: 12px 0;
}
.libby-diagnostic-result {
  border-top: 1px solid var(--line);
  padding: 17px 0 5px;
  margin-top: 15px;
  min-width: 0;
}
.libby-diagnostic-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.libby-diagnostic-heading h4 {
  font:
    22px Fraunces,
    serif;
  margin: 0;
  min-width: 0;
}
.libby-test-ok,
.libby-test-failed {
  font:
    9px/1.6 "Plex Mono",
    monospace;
  max-width: 140px;
  text-align: right;
  flex-shrink: 0;
}
.libby-test-ok {
  color: var(--success);
}
.libby-test-failed {
  color: var(--accent);
}
.libby-diagnostic-result details {
  margin: 8px 0;
}
.libby-diagnostic-result pre {
  max-width: 100%;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  background: var(--paper-deep);
  font:
    10px/1.7 "Plex Mono",
    monospace;
}
.libby-diagnostic-result code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
