/* Study Quest — stats.css (V7.8 lane M, v78-stats): the four statistics spreads in the Letopis's Log (js/ui-stats.js).
 * The book's own inks on vellum: flat colour, no gradients; body text at the book's size (>= 15 px at 1440x900). */
.sm-say { margin: 4px 0 12px; font: italic 400 calc(var(--book-fs, 16px) + 1px)/1.4 var(--cx-font-body); color: var(--cx-ink-text, #1d140c); }
.sm-svg { display: block; width: 100%; height: auto; margin: 2px 0 4px; overflow: visible; }
.sm-ax { font: 600 12.5px var(--cx-font-num, sans-serif); fill: #45331f; }
.sm-axl { stroke: #a8936c; stroke-width: 1; }
.sm-svg rect:hover, .sm-svg circle:hover { stroke: #1d140c; stroke-width: 1.2; }
.sm-svg .sm-none { opacity: 0; }
.sm-goal { stroke: #7a1d10; stroke-width: 1.5; stroke-dasharray: 5 4; }
.sm-line { fill: none; stroke: #1f3a76; stroke-width: 2; }
.sm-dot { fill: #1f3a76; }
.sm-dot--thin { fill: #f2e6c8; stroke: #1f3a76; stroke-width: 1.6; }
.sm-plan { fill: none; stroke: #7a1d10; stroke-width: 1.6; stroke-dasharray: 3 3; }
.sm-plandot { fill: #f2e6c8; stroke: #7a1d10; stroke-width: 1.4; }
.sm-key { display: inline-block; width: 18px; height: 0; vertical-align: middle; border-top: 2px dashed #7a1d10; margin-right: 4px; }
.sm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 8px; font: 500 14px/1.3 var(--cx-font-num, sans-serif); color: #45331f; }
.sm-legend i, .sm-sw { display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(29, 20, 12, 0.35); }
.sm-range { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 600 14px/1 var(--cx-font-num, sans-serif); color: #45331f; }
.sm-rb { min-width: 34px; padding: 4px 8px; font: 700 14px/1 var(--cx-font-num, sans-serif); color: #45331f; background: #efe2c2; border: 1px solid #a8936c; border-radius: 3px; cursor: pointer; }
.sm-rb.is-on { color: #f6ecd2; background: #7a1d10; border-color: #5c150c; }
.sm-rb:focus-visible, .sm-go:focus-visible { outline: 2px solid #1f3a76; outline-offset: 1px; }
.sm-next { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 4px; padding: 8px 10px; background: #efe2c2; border-left: 3px solid #7a1d10; }
.sm-next__k { font: 700 13px/1 var(--cx-font-label, serif); letter-spacing: 0.14em; text-transform: uppercase; color: #7a1d10; }
.sm-next__t { flex: 1 1 200px; font: 400 var(--book-fs, 16px)/1.35 var(--cx-font-body); }
.sm-go { padding: 5px 10px; font: 700 14px/1 var(--cx-font-num, sans-serif); color: #f6ecd2; background: #1f3a76; border: 1px solid #142650; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.sm-go:hover { background: #2a4a8e; }
.sm-go--s { padding: 3px 7px; font-size: 12px; }
.sm-tbl { margin: 6px 0 8px; font: 400 15px/1.3 var(--cx-font-num, sans-serif); }
.sm-tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(56px, 1fr) 62px 74px 50px 54px 30px; gap: 0 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(168, 147, 108, 0.45); break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.sm-tbl:not(.sm-tbl--t):not(.sm-tbl--s) .sm-tr > :nth-child(4) { padding-left: 10px; }
/* V7.8 fixer r34 (play critic S10): "Recall 30 days" and "Recall today" are two heads on two lines, set apart from the strength bar */
.sm-tbl:not(.sm-tbl--t):not(.sm-tbl--s) .sm-tr > :nth-child(3) { padding-left: 8px; }
.sm-tbl:not(.sm-tbl--t):not(.sm-tbl--s) .sm-th > span { line-height: 1.1; align-self: end; }
.sm-tbl--t .sm-tr { grid-template-columns: minmax(0, 1.6fr) 62px 60px 44px 62px 58px; }
.sm-tbl--s .sm-tr { grid-template-columns: minmax(0, 1.5fr) 92px 50px 54px 44px 64px; }
.sm-th { font: 700 12.5px/1.1 var(--cx-font-label, serif); letter-spacing: 0.08em; text-transform: uppercase; color: #45331f; border-bottom-color: #a8936c; }
.sm-tr .r { text-align: right; }
.sm-chn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1d140c; }
.sm-hbar { display: flex; height: 11px; background: #e9dfc8; border: 1px solid rgba(29, 20, 12, 0.25); }
.sm-hbar i { display: block; height: 100%; }
.sm-seal { color: #8a6a1e; }
.sm-elite { font-size: 12px; color: #7a1d10; }
.sm-st { display: inline-block; padding: 2px 7px; font: 700 12.5px/1.2 var(--cx-font-num, sans-serif); border-radius: 2px; border: 1px solid; }
.sm-st--ready { color: #f6ecd2; background: #2f6a58; border-color: #234f42; }
.sm-st--track { color: #1d3a30; background: #cfe0d4; border-color: #8fbba8; }
.sm-st--behind { color: #5e3d0c; background: #f1ddb0; border-color: #c79a4a; }
.sm-st--notstarted { color: #45331f; background: #ebe2cd; border-color: #b9a888; }
.sm-head .book-ledger__v { white-space: normal; text-align: right; }
.sm-whatnext { list-style: none; margin: 4px 0; padding: 0; }
.sm-whatnext li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(168, 147, 108, 0.45); font: 400 var(--book-fs, 16px)/1.3 var(--cx-font-body); }
@media (max-width: 700px) {
  .sm-tbl:not(.sm-tbl--t):not(.sm-tbl--s) .sm-tr { grid-template-columns: minmax(0, 1.3fr) minmax(40px, 1fr) 52px 46px 48px 26px; }
  .sm-th { font-size: 11px; letter-spacing: 0.02em; }
  .sm-tbl:not(.sm-tbl--t):not(.sm-tbl--s) .sm-tr > :nth-child(4) { display: none; }
  .sm-tbl--t .sm-tr, .sm-tbl--s .sm-tr { grid-template-columns: minmax(0, 1.4fr) repeat(5, auto); }
}
@media (prefers-reduced-motion: reduce) { .sm-go, .sm-rb { transition: none; } }
