@font-face{font-family:RinconEditorial;src:url('/fonts/dm-sans.ttf') format('truetype');font-weight:100 1000;font-display:swap}
.nav-button .nav-label{width:auto;display:block;font-size:16px;line-height:1.3}
body :is(label,summary,legend) span{font-size:var(--reading-size,16px)!important}
body[data-font=editorial]{--serif:RinconEditorial,Georgia,serif}body[data-font=classic]{--serif:Georgia,serif}body[data-font=clear]{--serif:RinconSans,Arial,sans-serif}
body[data-font=editorial] :is(h1,h2,h3,.brand,.mobile-brand,.stats strong){font-weight:400}body[data-font=classic] :is(h1,h2,h3,.brand,.mobile-brand){font-weight:500}body[data-font=clear] :is(h1,h2,h3){font-weight:750;line-height:1.25;letter-spacing:-.7px}body[data-font=clear] h1{font-size:clamp(30px,3vw,42px)}body[data-font=classic] h1,body[data-font=editorial] h1{font-size:clamp(33px,3vw,43px)}
body[data-theme=lavanda]{--paper:#faf6ff;--ink:#44334f;--muted:#766184;--green:#76508e;--line:#e2d4ea;--style-soft:#f0e5fa;--style-accent:#7b528e;--style-panel:#e7e9f8;--style-side:#eee4f6;--style-title:#69477e;--style-secondary:#a45783}
body[data-theme=melocoton]{--paper:#fff7ef;--ink:#503b3a;--muted:#876561;--green:#a4525e;--line:#ecd6cf;--style-soft:#ffe6d5;--style-accent:#a4525e;--style-panel:#fff0d3;--style-side:#f9e4dd;--style-title:#965063;--style-secondary:#a2643d}
body[data-theme=azul]{--paper:#f4f9fd;--ink:#334c5d;--muted:#5f7b8a;--green:#396d8a;--line:#cee0e9;--style-soft:#e0eff7;--style-accent:#426c8d;--style-panel:#e8e4f6;--style-side:#e5edf6;--style-title:#3b617e;--style-secondary:#976079}
body[data-theme]:not([data-theme=colorido]){background:var(--paper);color:var(--ink)}body[data-theme]:not([data-theme=colorido]) .sidebar{background:var(--style-side);border-color:var(--line)}body[data-theme]:not([data-theme=colorido]) :is(h1,h2,h3,.brand,.mobile-brand){color:var(--style-title)}body[data-theme]:not([data-theme=colorido]) h1 em{color:var(--style-secondary)}body[data-theme]:not([data-theme=colorido]) :is(.topbar,dialog){background:var(--paper);border-color:var(--line)}body[data-theme]:not([data-theme=colorido]) .welcome{background:var(--style-soft);border-color:var(--line)}body[data-theme]:not([data-theme=colorido]) :is(.primary,.timer-start,.active-timer){background:var(--style-accent);box-shadow:none}body[data-theme]:not([data-theme=colorido]) :is(.timer-panel,.live-area){background:var(--style-panel);border-color:var(--line)}body[data-theme]:not([data-theme=colorido]) .nav-button.active{background:var(--style-soft);color:var(--style-title)}body[data-theme]:not([data-theme=colorido]) .topbar-actions a{background:var(--style-soft);color:var(--style-title);border-color:var(--line)}body[data-theme]:not([data-theme=colorido]) .filter-tabs button.selected{background:var(--style-panel);color:var(--style-title)}body[data-theme]:not([data-theme=colorido]) :is(.text-button,.timer-face){color:var(--style-accent)}body[data-theme]:not([data-theme=colorido]) .welcome>div>p:last-child{color:var(--muted)}
.welcome-date{display:flex;align-items:center;gap:9px;margin-bottom:14px}.welcome-date .eyebrow{margin:0!important}.welcome-date>img{flex-shrink:0}.topbar-actions #personalize-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:6px;background:#f5e6f4;border:1px solid #dfc6df;border-radius:50%}.topbar-actions #personalize-button img{display:block}.style-lead{color:var(--muted)}#style-form fieldset{border:0;padding:0;margin:22px 0;min-width:0}#style-form legend{font-weight:650;margin-bottom:12px}.theme-choices,.font-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.theme-choice,.font-choice{border:2px solid #e4d7df;border-radius:15px;padding:13px;text-align:left;background:#fffdfa;min-width:0}.theme-choice[aria-pressed=true],.font-choice[aria-pressed=true],.avatar-choices button[aria-pressed=true]{border-color:#895d9b;box-shadow:0 0 0 1px #895d9b;background:#f4ebfb}.theme-choice b{font-weight:550;display:block;margin-top:9px;line-height:1.4}.theme-swatches{display:flex;gap:4px}.theme-swatches i{width:25%;aspect-ratio:1;max-height:32px;border-radius:7px;background:#f6b7a7}.theme-swatches i:nth-child(2){background:#cfb4e6}.theme-swatches i:nth-child(3){background:#a9cde4}.theme-swatches i:nth-child(4){background:#f8d57d}.theme-swatches.lavanda i{background:#bc9dd9}.theme-swatches.lavanda i:nth-child(2){background:#ecc9df}.theme-swatches.lavanda i:nth-child(3){background:#b9c3e8}.theme-swatches.lavanda i:nth-child(4){background:#f1dcaa}.theme-swatches.melocoton i{background:#efa58d}.theme-swatches.melocoton i:nth-child(2){background:#f5ce89}.theme-swatches.melocoton i:nth-child(3){background:#e9afb9}.theme-swatches.melocoton i:nth-child(4){background:#d4b8d8}.theme-swatches.azul i{background:#92bfdd}.theme-swatches.azul i:nth-child(2){background:#bac7e8}.theme-swatches.azul i:nth-child(3){background:#edc3ca}.theme-swatches.azul i:nth-child(4){background:#f0d9a3}.font-choice>span{font-size:24px;line-height:1.4;display:block;color:#704970}.font-choice small{display:block;margin-top:8px;color:#806c80}.font-hand>span{font-family:RinconHand,cursive}.font-editorial>span{font-family:RinconEditorial,Georgia,serif}.font-classic>span{font-family:Georgia,serif}.font-clear>span{font-family:RinconSans,Arial,sans-serif;font-weight:600}.style-hint{margin:13px 0 0;color:#836f85}.avatar-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.avatar-choices button{border:2px solid #e1d3dd;border-radius:13px;padding:7px;background:#fff9f3;display:grid;place-items:center}.avatar-choices img{width:100%;max-width:36px;height:auto}.style-sample{padding:20px;display:flex;gap:13px;align-items:center;border:1px dashed #d4b8da;border-radius:18px;background:var(--style-soft,#f8e9ec);margin:22px 0}.style-sample img{flex-shrink:0}.style-sample h3{font-size:28px;margin:0 0 5px}.style-sample p{margin:0;color:var(--muted)}.style-secondary{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;margin-top:12px}.style-secondary button{color:#866184;text-decoration:underline;text-underline-offset:4px;padding:8px 0}
/* All small copy uses the same readable floor. Larger mode also enlarges controls. */
:root{font-size:16px}body{--reading-size:16px}body[data-text-size=large]{--reading-size:18px}
body :is(p,small,label,legend,summary,button,input,textarea,select,a,time,.eyebrow,.save-strip,.library-count,.book-tag,.author,.last-played,.journal-time,.journal-date,.progress-caption,.stats span,.onboarding span,.page-footer,.topbar-label,.timer-hint,.timer-actions,.chat-footnote,.chat-message p,.club-time,.club-review>div,.player-chips span,.form-error,.toast,.catalog-result b,.theme-choice b,.font-choice small){font-size:var(--reading-size)!important;line-height:1.5}
body .brand{font:700 29px var(--serif)!important}body .brand small{font-family:var(--sans);letter-spacing:0}.brand{align-items:flex-start}.sidebar .brand small{margin-top:3px;max-width:135px;line-height:1.4}.sidebar nav{margin-top:25px}.brand>img{margin-top:5px}.topbar .mobile-brand{font:700 27px/1.2 var(--serif)!important}.topbar-label{letter-spacing:0!important}.sidebar-bottom p{font:700 24px/1.5 var(--serif)!important}.nav-button{gap:10px}.nav-button .nav-label{font-family:var(--sans)}.topbar-actions a{max-width:200px;white-space:normal;text-align:center}.topbar-actions{flex-shrink:0}.welcome .eyebrow{letter-spacing:.5px;line-height:1.5}.welcome>div:first-child{padding:28px}.welcome-art{height:auto;min-height:340px}.welcome-date>img{width:32px;height:32px}.onboarding{gap:8px}.onboarding span{padding:9px 13px}.stats{gap:12px}.stats>div>img{position:static;margin-bottom:5px}.stats strong{font-size:34px;font-weight:700}.stats>div{min-width:0}.stats span{overflow-wrap:normal}.filters{flex-wrap:wrap}.search-label{flex:1;min-width:180px}.search-label input{width:100%}.search-label input::placeholder{font-size:var(--reading-size)!important}.book-card h3{font-size:26px}.progress-caption{flex-wrap:wrap;gap:5px}.book-tag{padding:4px 9px;right:6px;top:6px}.cover-space{height:240px}.last-played{line-height:1.5}.quick-session{white-space:normal}.timer-intro .eyebrow{letter-spacing:0}.timer-panel h2{font-size:32px}.timer-panel label{line-height:1.5}.timer-face{overflow-wrap:normal;font-variant-numeric:tabular-nums}.timer-actions{flex-wrap:wrap;justify-content:center;gap:8px 14px}.timer-actions button{flex:1}.timer-footer{font:700 23px/1.5 var(--serif)}.content-grid{grid-template-columns:minmax(0,1fr) 310px}.journal-date{width:55px}.journal-time{white-space:normal;text-align:center;min-width:65px;max-width:110px}.journal-body h3{font-size:27px}.journal-body p{line-height:1.6}.journal-panel .section-heading{align-items:flex-start}.journal-panel .section-heading .text-button{white-space:normal}.journal-body>.text-button{display:block;text-align:left}.discovery-grid small{margin-top:4px;line-height:1.5}.discovery-grid b{font-size:25px}.discovery-grid span{padding:14px}.photo-options .photo-button{padding:10px;text-align:center}.category-covers{grid-template-columns:repeat(2,minmax(0,1fr))}.category-covers img{height:100px}.category-covers button{padding:7px 7px 10px}.photo-preview{flex-wrap:wrap}.photo-preview p{min-width:130px}.photo-preview button{margin-left:auto}.form-row label>span{font-size:var(--reading-size)!important}.chat-intro p,.assistant-intro p{line-height:1.6}.chat-message p{line-height:1.7}.chat-suggestions{gap:10px}.chat-form{flex-wrap:nowrap}.chat-form button{font-size:24px!important}.active-timer{font-size:var(--reading-size)!important;flex-wrap:wrap}.active-timer strong{font-family:var(--sans)}.club-card b{font-size:29px}.club-card span span{font-size:var(--reading-size)}.club-review>div{flex-wrap:wrap}.club-review .danger{display:block;margin:7px 0 0;text-align:left}.club-time{flex-wrap:wrap}.club-time .danger{padding:5px 0}.club-time strong{font-size:var(--reading-size)}.club-heading small{display:block}.club-manage{flex-wrap:wrap}.catalog-result b{font-weight:650}.catalog-result{align-items:flex-start}.catalog-result small{line-height:1.5}.catalog-query{flex-wrap:wrap}.catalog-query input{flex:1;min-width:140px}.catalog-query button{flex-shrink:0}.form-row{min-width:0}.form-row>label{min-width:0}.page-footer{gap:12px}.topbar-actions #personalize-button{min-width:44px}.club-intro{grid-template-columns:140px 1fr}.style-sample h3{overflow-wrap:anywhere}#style-dialog fieldset legend{font-size:var(--reading-size)!important}
@media(max-width:1150px){.content-grid{grid-template-columns:minmax(0,1fr) 285px}.welcome{align-items:stretch}.welcome-art{min-height:340px}.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.discovery-grid img{height:170px}.sidebar{width:220px}.workspace{margin-left:220px}.brand{gap:6px}}
@media(max-width:850px) and (min-width:621px){.sidebar{width:85px}.sidebar .brand>span{display:none}.workspace{margin-left:85px}.nav-button .nav-label{display:none}.content-grid{grid-template-columns:1fr}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.timer-panel{max-width:none}.welcome>div:first-child{padding:23px}.welcome h1{font-size:34px}.topbar{gap:10px;padding:16px 20px}.topbar-label{max-width:210px}.stats{gap:10px}}
@media(max-width:620px){.sidebar{width:100%;height:calc(88px + env(safe-area-inset-bottom));padding:0 3px env(safe-area-inset-bottom)}.sidebar nav{margin:6px 0;gap:1px}.nav-button{min-height:72px;padding:5px 1px;gap:4px;line-height:1.3!important}.nav-button img{width:28px;height:28px}.nav-button .nav-label{font-size:16px;line-height:1.3;font-weight:550}.workspace{margin-left:0;padding-bottom:calc(100px + env(safe-area-inset-bottom))}.has-timer .workspace{padding-bottom:calc(190px + env(safe-area-inset-bottom))}.topbar{padding:10px 14px;gap:8px;min-height:70px}.topbar .mobile-brand{font-size:26px!important;white-space:nowrap}.mobile-brand img{width:26px;height:30px}.topbar-actions{gap:7px}.topbar-actions a{padding:8px 10px;max-width:100px}.topbar .topbar-label{display:none}.welcome>div:first-child{padding:22px}.welcome-art{height:185px;min-height:0}.welcome-date{gap:9px;margin-bottom:16px}.welcome .eyebrow{max-width:none;font-size:16px!important;line-height:1.5}.welcome-date>img{width:30px;height:30px}.welcome h1{font-size:36px}.onboarding{flex-direction:column;align-items:stretch;margin-bottom:30px}.onboarding span{padding:10px 13px}.discover h2{font-size:29px}.discovery-grid{gap:12px}.discovery-grid img{height:125px}.discovery-grid b{font-size:24px}.discovery-grid span{padding:12px}.stats{gap:8px}.stats>div{padding:12px 10px!important}.stats span{font-size:16px!important;line-height:1.5}.stats strong{font-size:30px;overflow-wrap:anywhere}.stats>div>img{width:30px;height:30px}.content-grid{grid-template-columns:1fr}.section-heading{flex-wrap:wrap;align-items:flex-start}.section-heading h2{font-size:30px}.section-heading>.primary{padding:10px 14px}.filters{flex-direction:column;align-items:stretch;gap:12px}.filter-tabs{width:100%;justify-content:space-between}.filter-tabs button{padding:8px 14px}.search-label{min-width:0;width:100%;margin:0}.search-label input{padding:10px 0}.book-card .author,.last-played{line-height:1.5}.cover-space{height:210px}.book-card h3{font-size:26px}.book-card .progress-caption{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.quick-session{padding:13px 2px}.book-tag{font-size:16px!important}.empty-shelf{padding:30px 20px}.timer-panel h2{font-size:32px}.timer-actions{gap:12px;justify-content:space-between}.timer-actions button{flex-basis:40%;line-height:1.5}.journal-row{gap:10px;flex-wrap:wrap}.journal-body{flex-basis:calc(100% - 70px)}.journal-time{margin-left:65px}.journal-panel .section-heading h2{font-size:30px}.journal-panel .section-heading .text-button{white-space:normal}.journal-date{width:50px;line-height:1.5}.journal-body h3{font-size:26px}.active-timer{bottom:calc(98px + env(safe-area-inset-bottom));gap:7px 12px}.active-timer span:first-child{flex-basis:100%}.toast{bottom:calc(101px + env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:none;padding:15px 18px}.has-timer .toast{bottom:calc(200px + env(safe-area-inset-bottom))}.assistant-panel{padding:20px}.assistant-intro{align-items:flex-start;flex-wrap:wrap}.assistant-intro h2{font-size:28px}.chat-log{min-height:200px}.chat-suggestions button{padding:10px 13px}.chat-form input{font-size:16px!important;padding:12px 9px}.club-intro{grid-template-columns:1fr}.club-intro>img{width:100%;height:150px;transform:none}.club-heading{align-items:flex-start}.club-heading h2{font-size:31px}.club-card{gap:14px;padding:16px}.club-card img{width:65px;height:100px}.club-card b{font-size:28px}.club-time .danger{flex-basis:100%;text-align:left}.club-manage{gap:15px}.clubs-panel>.section-heading .primary{white-space:normal}.club-section,.live-area{padding:18px}.club-heading small{line-height:1.6}.club-write{padding:14px}.player-chips span{padding:8px 12px}.form-row{grid-template-columns:1fr}.category-covers{grid-template-columns:repeat(2,minmax(0,1fr))}.category-covers img{height:130px}.style-secondary{flex-direction:column;gap:5px;align-items:flex-start}dialog{max-height:94dvh;padding:25px 20px calc(25px + env(safe-area-inset-bottom))}.font-choice>span{font-size:24px;line-height:1.4}.theme-choice,.font-choice{padding:12px}.avatar-choices{grid-template-columns:repeat(3,1fr)}.avatar-choices button{min-height:58px}.style-sample{padding:16px}.topbar-actions #personalize-button{width:44px;min-width:44px}.page-footer{align-items:flex-start}.page-footer button,.page-footer .import-label{padding:10px 0}body[data-text-size=large] .stats{grid-template-columns:1fr}body[data-text-size=large] .stats>div{display:grid;grid-template-columns:35px 75px 1fr;gap:12px;align-items:center}body[data-text-size=large] .stats>div>img{margin:0}body[data-text-size=large] .stats span{font-size:18px!important}body[data-text-size=large] .book-grid,body[data-text-size=large] .discovery-grid{grid-template-columns:1fr}body[data-text-size=large] .discovery-grid img{height:190px}}
@media(max-width:360px){.topbar{padding:9px 10px;gap:5px}.topbar .mobile-brand{font-size:22px!important;gap:3px}.mobile-brand img{width:24px}.topbar-actions{gap:5px}.topbar-actions a{padding:8px;max-width:95px}.welcome h1{font-size:33px}.welcome>div:first-child{padding:19px}.book-grid{grid-template-columns:1fr}.cover-space{height:255px}.stats>div{padding:10px 8px!important}.stats strong{font-size:27px}.discovery-grid{grid-template-columns:1fr}.discovery-grid img{height:165px}.theme-choices,.font-choices{grid-template-columns:1fr}.style-sample{gap:10px}.nav-button .nav-label{font-size:16px}.club-heading{flex-direction:column}.club-heading img{width:75px;height:100px}}

/* Keep secondary text readable against every pastel surface. */
body :is(small,.eyebrow,.library-count,.author,.last-played,.save-strip,.chat-footnote,.style-hint,.muted,.page-footer,.catalog-credit){color:var(--muted)}
body .timer-panel .timer-hint{color:#674b76}body .journal-time{color:#415d79}body .hand-note{color:#89556d}

/* Personal photos keep their original proportions; only the avatar is framed round. */
#personal-avatar{width:44px;height:44px;object-fit:contain}
.custom-avatar{object-fit:cover!important;border-radius:50%;background:var(--paper)}
.personal-photo-row{display:flex;align-items:center;gap:16px;margin:16px 0}
.avatar-preview{width:72px;height:72px;flex-shrink:0;object-fit:contain}
.personal-photo-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}
.photo-upload{padding:11px 16px;border:1px solid var(--line);border-radius:12px;background:var(--style-soft,#f4e8f5);color:var(--ink);min-height:44px}
.personal-photo-actions .text-button{min-height:44px;padding:8px}
.photo-status:empty{display:none}
.welcome-preview{display:block;width:100%;height:190px;object-fit:cover;border-radius:16px;margin:16px 0}
.welcome-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.welcome-choice{padding:0;overflow:hidden;border:2px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);text-align:left;min-width:0}
.welcome-choice img{display:block;width:100%;height:95px;object-fit:cover}
.welcome-choice span{display:block;padding:10px;font-size:var(--reading-size);line-height:1.5}
.welcome-choice[aria-pressed=true]{border-color:var(--style-accent,#895d9b);box-shadow:0 0 0 1px var(--style-accent,#895d9b)}
#style-sample img{width:44px;height:44px;object-fit:contain}
@media(max-width:360px){.welcome-choices{grid-template-columns:1fr}.welcome-choice img{height:130px}.personal-photo-row{gap:10px}}

/* Arena y pizarra: warm paper, slate blue and graphite, with colourful illustrations. */
body[data-theme=neutro]{--paper:#f5f3ee;--ink:#303b41;--muted:#59666b;--green:#405c6a;--line:#d2d3cc;--style-soft:#e7e5dd;--style-accent:#405c6a;--style-panel:#e2e8e8;--style-side:#eeece5;--style-title:#344b58;--style-secondary:#745d44;--coral:#d7cbb9;--lilac:#dfe3df;--blue:#dde5e8;--yellow:#e9dfc9}
.theme-swatches.neutro i{background:#d7cbb9}.theme-swatches.neutro i:nth-child(2){background:#879da6}.theme-swatches.neutro i:nth-child(3){background:#bac0ba}.theme-swatches.neutro i:nth-child(4){background:#505f68}
body[data-theme=neutro] :is(.nav-button,.sidebar-bottom p,.sidebar-bottom a,.topbar-actions button,dialog label,.style-secondary button,.font-choice>span,.book-card h3,.club-card b,.timer-footer,.timer-intro,.hand-note){color:var(--style-title)}
body[data-theme=neutro] :is(.onboarding span,.stats>div,.discovery-grid button,.club-card,.club-empty,.club-intro,.club-write,.catalog-search,.chat-message.companion,.category-covers button,.journal-date){background:var(--style-soft);border-color:var(--line);color:var(--ink)}
body[data-theme=neutro] :is(.onboarding span:nth-child(2),.stats>div:nth-child(2),.discovery-grid button:nth-child(2),.discovery-grid button:nth-child(3),.club-card:nth-child(2n),.chat-message.you,.journal-time){background:var(--style-panel);border-color:var(--line);color:var(--ink)}
body[data-theme=neutro] :is(.book-card,.assistant-panel,.chat-form,.club-section,.theme-choice,.font-choice,.avatar-choices button,.chat-suggestions button,.photo-options .photo-button){background:#fdfcf8;border-color:var(--line);color:var(--ink)}
body[data-theme=neutro] :is(.topbar-actions #personalize-button,.theme-choice[aria-pressed=true],.font-choice[aria-pressed=true],.avatar-choices button[aria-pressed=true],.category-covers button[aria-pressed=true]){background:var(--style-panel);border-color:var(--style-accent);box-shadow:none}
body[data-theme=neutro] :is(.timer-panel .timer-hint,.timer-actions button,.club-intro p,.live-area>p,.clubs-panel>p,.catalog-search p,.catalog-search small,.chat-footnote){color:var(--muted)}
body[data-theme=neutro] :is(.catalog-query button,.chat-form .primary,.toast){background:var(--style-accent);color:#fff}
body[data-theme=neutro] .welcome{box-shadow:0 5px 0 #d7d5cc66}
body[data-theme=neutro] :is(.discovery-grid button,.book-card){box-shadow:0 3px 0 #d7d5cc66}
body[data-theme=neutro] :is(button,a,input,select,textarea):focus-visible{outline-color:var(--style-accent)}
/* A portrait upload must not dictate the height of the entire welcome panel. */
.welcome-art{height:360px;min-height:0;object-fit:cover}
body[data-theme=neutro] .topbar-label{color:var(--muted)}
body[data-theme=neutro] .status-dot{background:var(--style-accent)}
@media(max-width:620px){.welcome-art{height:185px}}
