.stats-wrap .profile-stats{height:240px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:0 12px;align-items:center;text-align:center;transition:opacity 200ms ease}.stats-heading{font-size:11px;min-height:18px;transition:opacity 200ms ease}.stats-fading{opacity:0}.stats-dots{height:28px;display:flex;justify-content:center;align-items:center}.stats-dots button{width:24px;height:24px;border:0;background:transparent;padding:0;display:grid;place-items:center;cursor:pointer}.stats-dots button:after{content:'';width:6px;height:6px;border-radius:50%;background:#ccc}.stats-dots button[aria-pressed=true]:after{background:#777}.trivia-dark .stats-dots button:after,.commonplace-dark .stats-dots button:after{background:#555}.trivia-dark .stats-dots button[aria-pressed=true]:after,.commonplace-dark .stats-dots button[aria-pressed=true]:after{background:var(--accent-dark)}@media(prefers-reduced-motion:reduce){.stats-wrap .profile-stats,.stats-heading{transition:none}}

.stats-wrap .profile-stats{grid-template-columns:minmax(0,1fr);text-align:left;column-gap:20px}.stats-wrap .profile-stats>div{text-align:left;font-size:11px;line-height:1.35;color:#777;min-width:0}.stats-wrap .profile-stats strong{font-variant-numeric:tabular-nums;font-size:21px;margin:0 0 3px;color:#555}.stats-wrap .profile-stats .stat-label{display:block}.trivia-dark .stats-wrap .profile-stats>div,.commonplace-dark .stats-wrap .profile-stats>div{color:#aaa}.trivia-dark .stats-wrap .profile-stats strong,.commonplace-dark .stats-wrap .profile-stats strong{color:var(--accent-dark)}.stats-wrap{touch-action:pan-y}.profile-note{font-size:10px;opacity:.85}.stats-dots button:focus-visible{outline:1px solid currentColor;outline-offset:-3px;border-radius:50%}

#reader-profile .profile-head{justify-content:space-between;gap:14px}#reader-profile .profile-head>div{flex:0 1 50%!important;order:-1}#reader-profile #reader-name,#reader-profile #reader-name:focus{border:0!important;outline:none;box-shadow:none;background:transparent}#reader-profile .profile-head label[for=reader-name]{display:none}.stats-heading{color:#888}.trivia-dark .stats-heading,.commonplace-dark .stats-heading{color:#999}.stats-wrap .profile-stats .trivia-stat-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.stats-wrap .trivia-stat-row strong{font-size:12px;margin:0;white-space:nowrap;font-weight:normal}.stats-wrap .trivia-stat-row .stat-label{font-size:13px}.reader-dialog .profile-avatar{border-radius:4px;background:var(--paper,#fff)}.reader-dialog .profile-avatar:hover{border-color:#777}

#reader-profile #reader-name{font-family:"Courier New",Courier,monospace;font-size:120%}.stats-wrap .profile-stats .timer-stat-row{display:grid;grid-template-columns:minmax(0,1fr) 65px 65px;gap:8px;font-size:12px;line-height:1.25}.timer-stat-row span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.stats-wrap .profile-stats .legacy-stat{font-size:10px;line-height:1.2}

/* v12: matching purple accents in both themes. */
.stats-wrap .profile-stats strong,.stats-wrap .timer-stat-row span:not(:first-child){color:var(--accent-light)}.trivia-dark .stats-wrap .timer-stat-row span:not(:first-child),.commonplace-dark .stats-wrap .timer-stat-row span:not(:first-child){color:var(--accent-dark)}

/* v12 revision: shared profile layout and contrast */
#reader-profile #reader-name,.reader-dialog #reader-name{font-family:"Courier New",Courier,monospace;font-size:22px}
.reader-dialog .profile-head{justify-content:space-between;gap:14px}.reader-dialog .profile-head>div{flex:0 1 50%!important;order:-1}.reader-dialog .profile-head label[for=reader-name]{display:none}.reader-dialog #reader-name{border:0!important}
body:not(.trivia-dark) #reader-profile,html:not(.commonplace-dark) .reader-dialog{color:var(--grey-primary)}
body:not(.trivia-dark) .stats-wrap .profile-stats>div{color:var(--grey-primary)}html.commonplace-dark .stats-wrap .profile-stats>div{color:#aaa}
.stats-heading{color:var(--grey-primary)}
.stats-dots button:after{box-sizing:border-box;background:transparent;border:1px solid var(--accent-light)}.stats-dots button[aria-pressed=true]:after{background:var(--accent-light)}
.trivia-dark .stats-dots button:after,.commonplace-dark .stats-dots button:after{background:transparent;border-color:var(--accent-dark)}.trivia-dark .stats-dots button[aria-pressed=true]:after,.commonplace-dark .stats-dots button[aria-pressed=true]:after{background:var(--accent-dark)}
.stats-wrap .profile-stats{overflow:auto;min-height:240px;max-height:240px}.stats-dots button{user-select:none;-webkit-user-select:none}

/* v17: readable profile typography, shared with the existing text controls. */
.stats-wrap{--profile-scale:var(--trivia-scale,var(--reading-scale,1));font-family:"Courier New",Courier,monospace}
.stats-wrap .stats-heading{font-size:calc(13px * var(--profile-scale));line-height:1.55;min-height:calc(24px * var(--profile-scale))}
.stats-wrap .profile-stats{height:calc(300px * var(--profile-scale));min-height:calc(300px * var(--profile-scale));max-height:calc(300px * var(--profile-scale));overflow:auto}
.stats-wrap .profile-stats>div{font-size:calc(13px * var(--profile-scale));line-height:1.55}
.stats-wrap .profile-stats .timer-stat-row{font-size:calc(14px * var(--profile-scale));line-height:1.44;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:8px;flex:none}
.stats-wrap .timer-stat-row span{min-width:0;overflow-wrap:normal}
.stats-wrap .timer-stat-row span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.stats-wrap .profile-stats strong{font-size:calc(25px * var(--profile-scale));line-height:1.55}
html:not(.commonplace-dark) body:not(.trivia-dark) #profile-note{color:#000;opacity:1}

/* v19: one statistics type scale and row rhythm. */
.stats-wrap{--stat-font:calc(14px * var(--profile-scale));--stat-row-gap:calc(8px * var(--profile-scale));font-family:"Courier New",Courier,monospace;font-weight:400;letter-spacing:normal}
.stats-wrap .stats-heading,.stats-wrap .profile-stats>div,.stats-wrap .profile-stats .timer-stat-row,.stats-wrap .profile-stats strong{font-family:inherit;font-size:var(--stat-font);font-weight:400;letter-spacing:normal;line-height:1.44}
.stats-wrap .profile-stats .timer-stat-row{grid-template-columns:minmax(0,1fr) 5ch 7ch}
.stats-wrap .timer-stat-row span{overflow-wrap:normal}
@media(max-width:360px){.stats-wrap .profile-stats .timer-stat-row{gap:4px}}

/* v22 compact profile layout */
.stats-wrap{overflow:hidden;touch-action:pan-y}
.stats-wrap .profile-stats{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain}
.stats-wrap .profile-stats::-webkit-scrollbar{display:none}
html:not(.commonplace-dark) body:not(.trivia-dark) #profile-note{color:var(--grey-primary)}
@media(max-width:600px){.stats-wrap{--stat-font:calc(10px * var(--profile-scale));--stat-row-gap:calc(6px * var(--profile-scale))}.stats-wrap .profile-stats{height:calc(180px * var(--profile-scale));min-height:calc(180px * var(--profile-scale));max-height:calc(180px * var(--profile-scale))}.stats-wrap .stats-heading{min-height:calc(18px * var(--profile-scale))}#reader-profile{padding-block:18px!important}.reader-dialog{padding-bottom:80px!important}.profile-note{margin-top:10px!important}}
.stats-viewport{position:relative;overflow:hidden;touch-action:pan-y}.stats-viewport>.stats-preview{position:absolute;inset:0;pointer-events:none;overflow:hidden}.stats-viewport>.profile-stats{width:100%;margin:0;transition:none}

.stats-wrap .stats-heading{font:400 15px/1.3 'Courier New',monospace;letter-spacing:.5px;color:var(--grey-secondary)!important}.trivia-dark .stats-wrap .stats-heading,.commonplace-dark .stats-wrap .stats-heading{color:#aaa!important}.stats-dots button:after{width:var(--profile-dot-size);height:var(--profile-dot-size);background:var(--purple-inactive);border:0}.stats-dots button[aria-pressed=true]:after{background:var(--accent-light)}.trivia-dark .stats-dots button:after,.commonplace-dark .stats-dots button:after{background:var(--purple-inactive-dark)}.trivia-dark .stats-dots button[aria-pressed=true]:after,.commonplace-dark .stats-dots button[aria-pressed=true]:after{background:var(--accent-dark)}

/* v24 library loans */
.stats-wrap .profile-stats.loans-panel{gap:var(--stat-row-gap);touch-action:pan-y}.stats-wrap .loans-panel>div{flex:none;min-width:0}.loan-count{display:flex;justify-content:space-between;gap:8px}.loan-value,.loan-title{color:var(--accent-light);font-variant-numeric:tabular-nums}.loan-title{text-decoration:none;overflow-wrap:normal}.loan-title:hover:is(a){text-decoration:underline}.loan-section{border-top:1px solid var(--profile-divider);padding-top:8px;margin-top:4px}.loan-book{display:flex;flex-direction:column;gap:2px}.loan-meta,.loan-demo{color:var(--grey-secondary)}.stats-wrap .loans-panel .loan-overdue,.stats-wrap .loans-panel .loan-overdue .loan-value{color:#39804a}.trivia-dark .loan-value,.commonplace-dark .loan-value,.trivia-dark .loan-title,.commonplace-dark .loan-title{color:var(--accent-dark)}.trivia-dark .loan-meta,.commonplace-dark .loan-meta,.trivia-dark .loan-demo,.commonplace-dark .loan-demo{color:#aaa}.trivia-dark .stats-wrap .loans-panel .loan-overdue,.commonplace-dark .stats-wrap .loans-panel .loan-overdue,.trivia-dark .stats-wrap .loans-panel .loan-overdue .loan-value,.commonplace-dark .stats-wrap .loans-panel .loan-overdue .loan-value{color:#81b88a}

.stats-heading a{color:inherit;text-decoration:none}.stats-heading a:hover,.stats-heading a:focus-visible{text-decoration:underline}
.stats-wrap .loans-panel .loan-nav{text-align:right;margin-top:12px}.loan-nav a{color:var(--site-accent);text-decoration:none}.loan-nav a:hover{text-decoration:underline}

.stats-wrap .profile-stats.identity-panel{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--stat-row-gap)}.stats-wrap .identity-panel .loan-count{width:100%;min-width:0}.stats-wrap .identity-panel .loan-value{white-space:nowrap}

.stats-wrap .stats-heading{border-bottom:1px solid var(--profile-divider);padding-bottom:10px;margin-bottom:10px;color:var(--grey-heading)!important}.commonplace-dark .stats-wrap .stats-heading,.trivia-dark .stats-wrap .stats-heading{color:var(--grey-heading-dark)!important}.profile-word-cycle{display:inline-grid;vertical-align:baseline}.profile-word-cycle span{grid-area:1/1;animation:profile-focus 8s infinite}.profile-word-cycle span+span{animation-delay:-4s}@keyframes profile-focus{0%,37.5%{opacity:1;filter:blur(0)}48%,90%{opacity:0;filter:blur(7px)}100%{opacity:1;filter:blur(0)}}[hidden] .profile-word-cycle span{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.profile-word-cycle span{animation:none}.profile-word-cycle span+span{opacity:0}}
.stats-dots button:after{background:var(--purple-inactive)}.trivia-dark .stats-dots button:after,.commonplace-dark .stats-dots button:after{background:var(--purple-inactive-dark)}

.stats-wrap .profile-stats{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--stat-row-gap)}
.stats-wrap .timer-stat-row span{white-space:nowrap;word-break:normal}
.stats-wrap .stats-heading{white-space:nowrap;letter-spacing:normal}
@media(max-width:360px){.stats-wrap .timer-stat-row span:first-child{white-space:normal}}

/* v37.3.15: profile settings only; existing navigation button styling. */
.stats-wrap .settings-panel .loan-count{align-items:center;min-width:0}.settings-scale{display:flex;align-items:center;gap:6px}.settings-scale button{box-sizing:border-box;width:38px;height:38px;border:1px solid #aaa;border-radius:4px;background:#fff;color:#888;font:19px "Courier New",monospace;padding:0;cursor:pointer}.settings-scale button:first-of-type{font-size:13px}.settings-scale button:disabled{color:#ccc;border-color:#ddd;cursor:default}.commonplace-dark .settings-scale button,.trivia-dark .settings-scale button{background:#191919;color:var(--accent-dark);border-color:#a887bf}.commonplace-dark .settings-scale button:disabled,.trivia-dark .settings-scale button:disabled{color:#706178;border-color:#514459}@media(max-width:360px){.settings-scale button{width:34px;height:34px}}

/* Day profile text hierarchy */
html:not(.commonplace-dark) body:not(.trivia-dark) .stats-wrap .stats-heading{color:#555!important}
html:not(.commonplace-dark) body:not(.trivia-dark) .stats-wrap .profile-stats>div:not(.loan-overdue),html:not(.commonplace-dark) body:not(.trivia-dark) #profile-note{color:#555}
html:not(.commonplace-dark) body:not(.trivia-dark) .stats-wrap :is(.timer-stat-row span:not(:first-child),.loan-count:not(.loan-overdue) .loan-value,.profile-stats strong){color:#333}
