.book-cover {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 190px;
  padding: 24px 20px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    var(--mint),
    var(--surface-fff0da, #fff0da)
  );
  border: 1px solid var(--line);
}
.book-cover > div {
  position: relative;
  z-index: 1;
  max-width: 76%;
}
.book-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--deep);
}
.book-cover h2 {
  font-size: 27px;
  line-height: 1.4;
  margin: 10px 0 8px;
  font-family: inherit;
  font-weight: 700;
}
.book-cover p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.book-cover img {
  position: absolute;
  width: 145px;
  height: 145px;
  object-fit: contain;
  right: -26px;
  bottom: -8px;
  opacity: 0.95;
}
.book-pillars {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.book-pillars span {
  background: var(--surface-fff, #fff);
  color: var(--deep);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
}
.book-start {
  margin-top: 14px;
}
.book-start > p,
.book-privacy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 8px;
}
.book-privacy {
  display: block;
  margin-top: 14px;
  text-align: center;
}
.book-chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.book-chapters button,
.book-chapters.preview > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-fff, #fff);
  color: var(--muted);
  font-size: 13px;
}
.book-chapters small {
  font-size: 10px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.book-chapters .selected {
  background: var(--mint);
  border-color: var(--green);
  color: var(--deep);
  font-weight: 600;
}
.book-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 2px 0;
  font-size: 11px;
  color: var(--muted);
}
.book-tools button {
  min-height: 44px;
}
.book-reading {
  padding: 24px 20px;
  scroll-margin-top: 170px;
}
.book-chapter-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.book-chapter-heading > span {
  color: var(--green);
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.book-chapter-heading small {
  font-size: 11px;
  color: var(--muted);
}
.book-chapter-heading h2 {
  font-size: 19px;
  line-height: 1.5;
  margin-top: 4px;
  font-family: inherit;
}
.book-prose p {
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.2px;
  margin: 20px 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.book-evidence {
  background: var(--bg);
  border-radius: 14px;
  padding: 0 14px;
  margin-top: 22px;
}
.book-evidence summary {
  cursor: pointer;
  min-height: 48px;
  align-content: center;
  font-size: 12px;
  color: var(--deep);
}
.book-evidence summary span {
  float: right;
  color: var(--muted);
}
.book-evidence > div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.book-evidence strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--deep);
}
.book-evidence p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 6px;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.book-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
}
.book-evidence .star-meaning { color:var(--ink); }
.book-star-method summary { min-height:40px;font-size:11px;color:var(--muted); }
.book-pagination > span {
  font-size: 12px;
  color: var(--muted);
}
.book-pagination button {
  min-height: 46px;
}
.book-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.book-footnote {
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
  margin-bottom: 10px;
}
.book-writing {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mint);
  border-radius: 20px;
  padding: 15px;
  margin-top: 14px;
}
.book-writing > .ai-mascot {
  width: 80px;
  flex-shrink: 0;
}
.book-writing strong {
  font-size: 14px;
  color: var(--deep);
}
.book-writing p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
}
.book-status,
.book-error {
  font-size: 13px;
  line-height: 1.8;
  padding: 15px;
  background: var(--mint);
  border-radius: 16px;
  margin-top: 14px;
}
.book-error {
  color: var(--text-c06a43, #af542b);
}
.book-saved-notice button {
  min-height: 44px;
}
.book-library > p,
.book-saved-notice p,
.book-version time,
.book-saved-notice time {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.book-version {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.book-version strong {
  font-size: 14px;
  color: var(--deep);
}
.book-version-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  font-size: 11px;
  color: var(--muted);
}
.book-saved-notice {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}
.book-saved-notice > strong {
  font-size: 14px;
  color: var(--deep);
}
.book-saved-notice > time {
  display: block;
}
.book-views {
  position: sticky;
  top: 72px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
  padding: 5px;
  margin: 0 0 18px;
  background: var(--line);
  border-radius: 19px;
  box-shadow: 0 0 0 6px var(--bg);
}
.book-views button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 66px;
  padding: 9px 5px;
  border-radius: 15px;
  color: var(--muted);
}
.book-views button > span { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; text-align:left; }
.book-views strong { font-size:14px; line-height:1.3; font-weight:650; overflow-wrap:anywhere; }
.book-views small { font-size:10px; line-height:1.4; font-weight:400; overflow-wrap:anywhere; }
.book-views svg { width:24px; height:24px; flex:0 0 24px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
.book-views .book-atlas-entry { color:var(--deep); background:var(--mint); }
.book-views button.selected { background:var(--surface-fff,#fff); color:var(--deep); box-shadow:0 3px 10px #003b1710; }
.book-views .book-atlas-entry.selected { box-shadow:inset 0 0 0 1.5px var(--green),0 3px 10px #003b1710; }
.book-views button:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
@media(max-width:360px) { .book-views button { gap:5px; } .book-views svg { width:20px; height:20px; flex-basis:20px; } .book-views strong { font-size:13px; } .book-views small { font-size:9px; } }
