.book-metrics { display: block; margin-top: 10px; color: #766b59; font-size: .68rem; line-height: 1.4; }
.book-review-button { display: block; margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: #6d512c; text-align: left; text-decoration: underline; text-underline-offset: 3px; font-size: .72rem; font-weight: 700; }
.book-review-button:hover, .book-review-button:focus-visible { color: #a06d25; }
.selected-review { display: block; width: 100%; margin-top: 8px; padding: 10px 15px; border: 1px solid #716149; background: transparent; color: #f2ddb6; font-size: .75rem; font-weight: 700; cursor: pointer; }
.selected-review:hover, .selected-review:focus-visible { background: rgba(231, 199, 145, .13); }
.reader-toolbar .reader-review { padding: 8px 11px; border: 1px solid #a99168; border-radius: 3px; background: #fff9ec; color: #51402a; font-size: .75rem; font-weight: 700; cursor: pointer; }
.reader-toolbar .reader-review:hover { background: #e8ddc6; }

.review-dialog { width: min(92vw, 760px); max-width: none; max-height: min(91vh, 900px); padding: 0; border: 0; border-radius: 8px; background: #fffdf8; color: #24231f; box-shadow: 0 26px 80px rgba(0,0,0,.32); }
.review-dialog::backdrop { background: rgba(8, 15, 21, .7); }
.review-dialog-inner { padding: clamp(22px, 4vw, 36px); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; }
.review-header .eyebrow { margin-bottom: 9px; }
.review-header h2 { margin: 0; font: 400 clamp(1.7rem, 3.2vw, 2.5rem)/1.12 Georgia, 'Times New Roman', serif; }
.review-close { flex: none; width: 36px; height: 36px; border: 1px solid #bcb4a6; border-radius: 50%; background: white; color: #4b453b; cursor: pointer; }
.review-summary { margin: 20px 0 24px; color: #7b6038; font-size: .88rem; font-weight: 750; }
#review-form { padding: 20px; background: #f5f1e9; border: 1px solid #e0d7c8; }
.review-prompt { margin: 0 0 9px; font-size: .84rem; font-weight: 700; }
.star-picker { display: flex; gap: 4px; margin-bottom: 20px; }
.star-picker button { width: 41px; height: 42px; padding: 0; border: 0; background: transparent; color: #aaa59a; font-size: 2rem; line-height: 1; cursor: pointer; }
.star-picker button.is-filled { color: #bb8b3b; }
.star-picker button:focus-visible { outline: 2px solid #785e35; outline-offset: 2px; }
#review-form label { display: block; margin-bottom: 7px; font-size: .79rem; font-weight: 700; }
#review-comment { width: 100%; min-height: 105px; resize: vertical; padding: 11px 12px; border: 1px solid #cbbfad; border-radius: 3px; background: white; color: #24231f; font: .85rem/1.5 'Segoe UI', Arial, sans-serif; }
#review-comment:focus { outline: 2px solid #b99b69; outline-offset: 1px; }
.review-privacy { color: #777167; font-size: .71rem; line-height: 1.5; margin: 10px 0 17px; }
.review-submit { padding: 11px 17px; border: 0; background: #24231f; color: white; font-size: .8rem; font-weight: 750; cursor: pointer; }
.review-submit:disabled { opacity: .55; cursor: wait; }
.review-submit:hover:not(:disabled) { background: #6a5234; }
.review-status { display: inline-block; margin: 0 0 0 12px; color: #37663b; font-size: .76rem; }
.review-comments { padding-top: 28px; }
.review-comments h3 { margin: 0 0 14px; font: 400 1.5rem Georgia, 'Times New Roman', serif; }
.review-comment { border-top: 1px solid #e4ded4; padding: 15px 0; }
.review-comment-meta { color: #9b7130; font-size: .76rem; font-weight: 750; }
.review-comment p { margin: 8px 0 0; color: #4b4841; font-size: .85rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-empty { color: #777167; font-size: .82rem; }

.statistics-page { max-width: 1400px; margin: 0 auto; padding: 55px 5% 90px; }
.statistics-page .eyebrow { margin-bottom: 13px; }
.statistics-page h1 { margin: 0 0 14px; font: 400 clamp(2.8rem, 5vw, 5rem)/1.03 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; }
.statistics-intro { max-width: 760px; color: #656059; line-height: 1.7; font-size: .92rem; }
.statistics-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 25px 0 35px; }
.statistics-actions a { display: inline-block; padding: 10px 14px; border: 1px solid #9c8763; color: #4a3b26; text-decoration: none; font-size: .79rem; font-weight: 700; }
.statistics-actions a:hover { background: #e9ddc5; }
.statistics-totals { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 36px; }
.statistics-totals div { padding: 20px; border: 1px solid #ddd4c6; background: #fffdf8; }
.statistics-totals strong { display: block; font: 400 2.3rem Georgia, 'Times New Roman', serif; }
.statistics-totals span { color: #6b6254; font-size: .75rem; }
.statistics-toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 17px; }
.statistics-toolbar label { color: #554b3c; font-size: .8rem; font-weight: 700; }
.statistics-toolbar select { padding: 8px 10px; border: 1px solid #c7bba8; background: white; color: #24231f; }
.statistics-table-wrap { overflow-x: auto; border: 1px solid #ddd4c6; background: #fffdf8; }
.statistics-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.statistics-table th, .statistics-table td { padding: 12px 15px; border-bottom: 1px solid #e8e0d4; text-align: left; vertical-align: top; font-size: .82rem; }
.statistics-table th { background: #eee8dd; color: #514635; font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.statistics-table td:first-child { font-family: Georgia, 'Times New Roman', serif; font-size: .98rem; }
.statistics-table tr:last-child td { border-bottom: 0; }
.statistics-table a { color: #73522a; }
.statistics-note { margin-top: 20px; color: #746b5e; font-size: .76rem; line-height: 1.55; }

@media (max-width: 650px) {
  .review-dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .review-dialog-inner { padding: 22px 5%; }
  .review-status { display: block; margin: 10px 0 0; }
  .statistics-page { padding-top: 38px; }
  .statistics-totals { grid-template-columns: 1fr 1fr; }
  .statistics-totals div:last-child { grid-column: 1 / -1; }
}

.review-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-privacy a { color: #6d512c; }

.statistics-telemetry { margin: 0 0 38px; }
.statistics-telemetry h2 { margin: 0 0 18px; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.03em; }
.telemetry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.telemetry-grid article { padding: 22px; border: 1px solid #ddd4c6; background: #fffdf8; }
.telemetry-grid h3 { margin: 0 0 14px; font: 700 .68rem/1.3 'Segoe UI', Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: #6d5a3d; }
.telemetry-grid ol, .telemetry-grid ul { margin: 0; padding-left: 20px; }
.telemetry-grid ul { list-style: none; padding-left: 0; }
.telemetry-grid li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #ece5d9; font-size: .82rem; color: #4b453b; }
.telemetry-grid li:last-child { border-bottom: 0; }
.telemetry-grid li a { color: #664b29; text-decoration: none; }
.telemetry-grid li a:hover { text-decoration: underline; }
.telemetry-grid li strong { flex: none; color: #2f2a23; font-variant-numeric: tabular-nums; }
.telemetry-empty { color: #82796b !important; font-style: italic; }
.telemetry-note { margin: 15px 0 0; color: #756c5e; font-size: .74rem; line-height: 1.6; }
.telemetry-note a { color: #6d512c; }

.statistics-table { min-width: 780px; }
@media (max-width: 850px) {
  .telemetry-grid { grid-template-columns: 1fr; }
}
