/* Text-only enlargement: never scale covers, reading pages, or browser zoom. */
.text-preferences{margin:24px 0 0;padding:18px;border:1px solid #444;border-radius:14px;min-width:0}
.text-preferences legend{font-weight:700;padding:0 6px;font-size:18px}
.text-preferences p{font-size:14px;line-height:1.5;color:#ddd;margin:4px 0 14px}
.text-size-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.text-size-options label{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 8px;border:1px solid #555;border-radius:10px;background:#222;cursor:pointer;line-height:1.35;text-align:center}
.text-size-options input{margin:0;accent-color:#e50914;flex:none;width:16px;height:16px}
.text-size-options label:has(input:checked){border-color:#ff5962;background:#381519;color:#fff}
.text-size-options label:focus-within{outline:2px solid #fff;outline-offset:3px}
.text-preferences .text-preview{margin:16px 0 8px;color:#fff}
.text-preferences small{display:block;color:#bcd6c7;font-size:12px;line-height:1.5}
html[data-text-size="large"]{--ui-text-scale:1.15}
html[data-text-size="xlarge"]{--ui-text-scale:1.3}
html:is([data-text-size="large"],[data-text-size="xlarge"]) body{font-size:calc(1rem * var(--ui-text-scale))}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(p,li,td,th,label,.bubble,.meta div,.profile-card,.own-report,.report-review,.my-report-message,.my-report-reply p){font-size:calc(.9375rem * var(--ui-text-scale))!important;line-height:1.5;overflow-wrap:anywhere}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(h1,.hero h1){font-size:calc(clamp(1.65rem,3.5vw,3rem) * var(--ui-text-scale))!important;line-height:1.15;overflow-wrap:anywhere}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(h2,.detail-hero h2){font-size:calc(1.35rem * var(--ui-text-scale))!important;line-height:1.25;overflow-wrap:anywhere}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(h3,.text-preferences legend,.category b,.public-category b){font-size:calc(1.05rem * var(--ui-text-scale))!important;line-height:1.3;overflow-wrap:anywhere}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(small,time,.eyebrow,.form-hint,.audio-help,.footer-note,.plan-chip,.report-state,.public-search-promise,.saved,.book-overlay b,.public-cover span,.card-badge){font-size:calc(.75rem * var(--ui-text-scale))!important;line-height:1.4}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(.btn,.nav-pills button,.clear-chat,.motion-toggle,.account-links button,.reader-title b,.reader-tools button span,.menu-app-copy strong){font-size:calc(.8125rem * var(--ui-text-scale))!important;line-height:1.35}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea,.chat-input .send){font-size:calc(1rem * var(--ui-text-scale))!important;line-height:1.4}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(.btn,.clear-chat){height:auto;min-height:40px;white-space:normal;overflow-wrap:anywhere}
html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(.meta div,.settings label,.plan-card,.profile-card>div,.section-head>div){min-width:0}
html:is([data-text-size="large"],[data-text-size="xlarge"]) .reader-controls button{font-size:calc(.8125rem * var(--ui-text-scale));min-width:32px;line-height:1.2}
html:is([data-text-size="large"],[data-text-size="xlarge"]) .reader-tools button{line-height:1.2}
@media(max-width:760px){
 .text-preferences{padding:13px}
 .text-size-options{grid-template-columns:1fr}
 html:is([data-text-size="large"],[data-text-size="xlarge"]) .nav-pills button{white-space:nowrap;flex:none}
 html:is([data-text-size="large"],[data-text-size="xlarge"]) :is(.hero .actions,.account-actions){flex-wrap:wrap}
 html:is([data-text-size="large"],[data-text-size="xlarge"]) .reader-title b{font-size:calc(.75rem * var(--ui-text-scale))!important}
 html:is([data-text-size="large"],[data-text-size="xlarge"]) .reader-title small{font-size:calc(.6875rem * var(--ui-text-scale))!important}
 html:is([data-text-size="large"],[data-text-size="xlarge"]) .detail-rating{flex-wrap:wrap}
}
