:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4ede2;--launcher-glow:#fbe7d4;--surface:#fff9f1;--text:#2c241c;--muted:#5e5348;--subtle:#7a6e62;--border:#e6d9c8;--primary:#9a3f24;--primary-soft:#e8a48a;--on-primary:#fff;--tint:#f3e4d8;--hover:#efe4d6;--green:#2f6f63;--gold:#9b792c;--danger:#a33b3b;--focus:#9a3f24;--cell:#efe4d4;--cell-on:#2f6f63;--cell-mark:#fff9f1;--overlay:#f4ede2dc}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1c1814;--launcher-glow:#3a2c24;--surface:#2a241e;--text:#f3ebe1;--muted:#c4b8aa;--subtle:#a89888;--border:#3d342c;--primary:#e08a6a;--primary-soft:#8a4e38;--on-primary:#1c1814;--tint:#3a2c24;--hover:#332c26;--green:#7ec8b8;--gold:#e0c078;--danger:#ef98a5;--focus:#e08a6a;--cell:#3a322a;--cell-on:#7ec8b8;--cell-mark:#1c1814;--overlay:#1c1814df}*{box-sizing:border-box}html{background:var(--bg);--viewport-height:100vh;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--content-height:max(0px, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom)));font-size:20px}@supports (height:100dvh){html{--viewport-height:100dvh}}html[data-app-window=true],html[data-app-window=true] body{overscroll-behavior-y:none}html[data-font=sm]{font-size:16px}html[data-font=md]{font-size:18px}html[data-font=lg]{font-size:20px}html[data-font=xl]{font-size:24px}body{min-height:var(--viewport-height);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.45}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:0 0;border:0}button:disabled{cursor:default;opacity:.45}button,select,input{touch-action:manipulation}a{color:var(--primary)}button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}h1,h2,h3,p,ol,ul{margin-top:0}h1,h2,h3{line-height:1.2}h1{margin-bottom:.6rem;font-size:1.7rem;font-weight:700}h2{font-size:1.15rem;font-weight:680}p{color:var(--muted)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{left:calc(1rem + var(--safe-left));z-index:100;background:var(--surface);border-radius:.5rem;padding:1rem;position:fixed;top:-5rem}.skip-link:focus{top:calc(1rem + var(--safe-top))}.app-shell,main{min-height:var(--viewport-height)}.loading-screen{min-height:var(--viewport-height);padding:calc(2rem + var(--safe-top)) calc(2rem + var(--safe-right)) calc(2rem + var(--safe-bottom)) calc(2rem + var(--safe-left));text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex}.loading-inline{padding:calc(2rem + var(--safe-top)) calc(2rem + var(--safe-right)) calc(2rem + var(--safe-bottom)) calc(2rem + var(--safe-left))}.launcher{height:var(--viewport-height);min-height:0;padding:calc(1.5rem + var(--safe-top)) calc(1.25rem + var(--safe-right)) calc(.5rem + var(--safe-bottom)) calc(1.25rem + var(--safe-left));background:radial-gradient(120% 80% at 50% -10%, var(--launcher-glow) 0%, transparent 55%), var(--bg);flex-direction:column;display:flex}.launcher-brand{flex-shrink:0;align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.launcher-brand img{border-radius:.85rem}.launcher-brand h1{color:var(--text);margin:0;font-size:1.8rem;font-weight:750}.launcher-fullscreen{width:48px;height:48px;color:var(--muted);border-radius:.75rem;flex:0 0 48px;place-items:center;margin-left:auto;display:grid}.launcher-fullscreen:hover,.launcher-fullscreen:focus-visible{background:var(--surface);color:var(--text)}.launcher-grid{grid-template-columns:repeat(auto-fill,minmax(min(8rem,100%),1fr));align-content:start;gap:1.4rem 1rem;max-width:52rem;display:grid}.launcher-pages-wrap{flex:1;min-height:0;position:relative;overflow:hidden}.launcher-probe{visibility:hidden;pointer-events:none;width:100%;padding:.3rem;position:absolute}.launcher-pages{scroll-snap-type:x mandatory;scrollbar-width:none;height:100%;display:flex;overflow-x:auto}.launcher-pages::-webkit-scrollbar{display:none}.launcher-page{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 100%;min-width:0;padding:.3rem;overflow-y:auto}.launcher-dots{flex-shrink:0;justify-content:center;align-items:center;min-height:44px;display:flex}.launcher-page-button{place-items:center;width:44px;min-height:44px;padding:0;display:grid}.launcher-dot{background:var(--muted);opacity:.4;border-radius:50%;width:7px;height:7px;display:block}.launcher-dot.current{opacity:1;background:var(--text)}.launcher-app{flex-direction:column;align-items:center;gap:.55rem;min-width:0;min-height:8rem;padding:.4rem;display:flex}.launcher-icon{aspect-ratio:1;flex-shrink:0;width:min(6.4rem,100%);position:relative}.launcher-icon svg{filter:drop-shadow(0 8px 16px #2c241c22);width:100%;height:100%;display:block}.launcher-label{text-align:center;overflow-wrap:anywhere;font-size:1.05rem;font-weight:650}.practiced-mark{background:var(--green);color:#fff;border-radius:50%;place-items:center;width:1.6rem;height:1.6rem;font-size:.95rem;font-weight:700;display:grid;position:absolute;bottom:-.15rem;right:-.15rem}.app-screen{min-height:var(--viewport-height);max-width:36rem;padding:calc(1rem + var(--safe-top)) calc(1.2rem + var(--safe-right)) calc(2.5rem + var(--safe-bottom)) calc(1.2rem + var(--safe-left));margin:0 auto}.reading-screen h2:focus{outline-offset:.25rem}.reading-next{margin:1.5rem 0}.reading-library{gap:1rem;padding:0;list-style:none;display:grid}.reading-card,.reading-resume{background:var(--surface);border:2px solid var(--border);border-radius:1rem;padding:1.1rem}.reading-card h3{margin:.4rem 0}.reading-meta{color:var(--muted);font-size:.88rem}.reading-passage{margin:1.5rem 0;line-height:1.8}.reading-passage p{margin:0 0 1.3rem}.reading-details{border:2px solid var(--border);border-radius:.8rem;margin:1rem 0;padding:.6rem .8rem}.reading-details summary{cursor:pointer;align-content:center;min-height:56px;font-weight:650}.reading-details a{overflow-wrap:anywhere}.reading-options{border:0;gap:.75rem;min-width:0;margin:1rem 0;padding:0;display:grid}.reading-option{border:2px solid var(--muted);background:var(--surface);cursor:pointer;border-radius:.8rem;align-items:center;gap:.8rem;min-height:64px;padding:.8rem;display:flex}.reading-option.selected{border-color:var(--primary);background:var(--tint)}.reading-option input{width:1.15rem;height:1.15rem;accent-color:var(--primary);flex:none}.reading-feedback{border-left:4px solid var(--green);background:var(--surface);margin-top:1rem;padding:.8rem 1rem}.reading-screen blockquote{border-left:3px solid var(--muted);margin:1rem 0;padding-left:1rem;line-height:1.7}.reading-original p{white-space:pre-line;margin-bottom:1rem}.reading-original p:last-child{margin-bottom:0}.analytics-consent{text-align:left}.analytics-info{text-align:left;margin-bottom:1rem}.analytics-info summary{cursor:pointer;align-content:center;min-height:56px}.analytics-settings select{min-width:0;max-width:100%}.reading-screen button:disabled{opacity:.55;cursor:default}.reading-screen .text-button.wide{width:100%;margin-top:.6rem}.reading-screen button{min-height:56px}.app-header{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.app-header h1{flex:1;margin:0}.back-button,.primary,.secondary,.text-button{border-radius:.9rem;min-height:3.2rem;padding:.6rem 1rem;font-weight:650}.back-button,.secondary{background:var(--surface);border:2px solid var(--border)}.primary{background:var(--primary);color:var(--on-primary);justify-content:center;align-items:center;gap:.5rem;display:inline-flex}.primary.wide,.secondary.wide{width:100%;margin-top:1rem}.danger-button,.text-button.danger{color:var(--danger)}.danger-button{background:var(--danger);color:#fff}.prompt,.lead{color:var(--text);margin-bottom:1rem;font-size:1.2rem}.recuerda-grid{grid-template-columns:repeat(var(--n), 1fr);aspect-ratio:1;gap:clamp(8px,2vw,.7rem);width:min(100%,22rem);margin:0 auto;display:grid}.cell{background:var(--cell);border:3px solid var(--muted);border-radius:1rem;min-height:3.5rem;position:relative}.cell.on,.cell.selected,.cell.hint{background:var(--cell-on);border-color:var(--cell-on)}.cell.hint:not(.selected){background:#d7c4a6;border-color:#8a6a4b}.cell.hint:not(.selected) .mark.dot{background:#2c241c}.cell.missed{border-color:var(--primary);background:var(--tint)}.cell.extra{border-color:var(--danger);background:var(--cell)}.mark{pointer-events:none;position:absolute;inset:22%}.mark.dot{background:var(--cell-mark);border-radius:50%}.cell.on .mark.dot,.cell.selected .mark.dot{background:var(--cell-mark)}.mark.ring{border:4px solid var(--primary);border-radius:.35rem;inset:28%}.mark.cross{background:linear-gradient(var(--danger), var(--danger)) center / 100% 4px no-repeat, linear-gradient(var(--danger), var(--danger)) center / 4px 100% no-repeat;inset:28%;transform:rotate(45deg)}.recuerda-actions{max-width:22rem;margin:1rem auto 0}.pattern-description,.result-legend{max-width:22rem;margin:1rem auto}.pattern-description summary{cursor:pointer;padding:.6rem}.result-legend{padding:0;list-style:none}.result-legend li{align-items:center;gap:.6rem;margin:.5rem 0;display:flex}.legend-symbol{background:var(--cell);border-radius:.4rem;flex:0 0 2rem;height:2rem;position:relative}.legend-symbol.on{background:var(--cell-on)}.legend-symbol.missed{background:var(--tint)}.week-list{margin:0 0 1rem;padding:0;list-style:none}.week-day{border-bottom:1px solid var(--border);align-items:center;gap:.85rem;min-height:3.6rem;padding:.55rem .4rem;display:flex}.week-day strong{text-transform:capitalize;display:block}.week-day small{color:var(--primary);font-weight:700}.week-day.today{background:var(--tint);border-bottom-color:#0000;border-radius:.8rem;padding-left:.6rem}.week-check{border:3px solid var(--border);width:2rem;height:2rem;color:var(--on-primary);border-radius:50%;flex-shrink:0;place-items:center;font-weight:800;display:grid}.week-day.done .week-check{background:var(--green);border-color:var(--green)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:1.1rem;margin-bottom:1rem;padding:1rem 1rem .4rem}.panel h2{margin-bottom:.4rem}.account-form{gap:.8rem;display:grid}.account-form input{border:2px solid var(--border);background:var(--bg);width:100%;min-width:0;min-height:3rem;color:var(--text);border-radius:.6rem;padding:.6rem}.account-email{overflow-wrap:anywhere}.account-conflict,.account-controls,.account-link{border-top:1px solid var(--border);padding-block:.8rem}.account-status{color:var(--text)}.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;max-width:28rem;margin:1rem auto;display:grid}.memory-card{aspect-ratio:1;border:2px solid var(--border);background:var(--surface);min-width:0;min-height:64px;color:var(--text);border-radius:.7rem;font-size:1.4rem;font-weight:700;position:relative}.memory-card.face-up{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.memory-card.matched{border:3px solid var(--text)}.memory-check{font-size:.65rem;line-height:1;position:absolute;bottom:0;right:.15rem}.memory-level,.memory-count{text-align:center;color:var(--text)}.memory-prompt{min-height:3.5rem}.memory-help{margin-top:1rem}.setting-row{text-align:left;border-top:1px solid var(--border);width:100%;min-height:3.6rem;color:var(--text);align-items:center;gap:.75rem;padding:.4rem 0;display:flex}.setting-row span{flex-direction:column;flex:1;gap:.15rem;display:flex}.setting-row small{color:var(--muted);font-size:.9rem}.setting-row.selectable{cursor:pointer}.setting-row select{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:.7rem;max-width:11rem;min-height:3rem;padding:.4rem 2rem .4rem .7rem}.toggle{width:3rem;height:1.8rem;accent-color:var(--primary)}.icon-button{border-radius:.8rem;place-items:center;min-width:3rem;min-height:3rem;display:grid}.green{color:var(--green)}.notice{margin:.8rem calc(1.2rem + var(--safe-right)) .8rem calc(1.2rem + var(--safe-left));background:var(--surface);border:2px solid var(--border);border-radius:1rem;align-items:flex-start;gap:.7rem;padding:.9rem 1rem;display:flex}.notice.error{border-color:var(--danger)}main>.notice:first-child{margin-top:calc(.8rem + var(--safe-top))}.button-row{flex-wrap:wrap;gap:.6rem;margin-top:.7rem;display:flex}.modal{inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);width:min(36rem, calc(100% - 1.5rem - var(--safe-left) - var(--safe-right)));max-height:calc(var(--content-height) - 1.5rem);background:var(--surface);color:var(--text);border:0;border-radius:1.2rem;margin:auto;padding:1.2rem;position:fixed;overflow-y:auto}.modal::backdrop{background:var(--overlay)}.modal-heading{justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.6rem;display:flex}.modal-heading h2{margin:0}.install-steps{color:var(--text);padding-left:1.2rem}.install-steps li{margin-bottom:.8rem}.install-illustration{place-items:center;margin-bottom:.8rem;display:grid}.fine-print,.muted{color:var(--muted)}.onboarding{min-height:var(--viewport-height);padding:calc(1.5rem + var(--safe-top)) calc(1.4rem + var(--safe-right)) calc(2rem + var(--safe-bottom)) calc(1.4rem + var(--safe-left));flex-direction:column;justify-content:center;gap:1rem;max-width:28rem;margin:0 auto;display:flex}.onboarding h1{margin-bottom:0;font-size:2.4rem}.onboarding>p{color:var(--text);font-size:1.25rem}.choice-set{border:0;gap:.55rem;padding:0;display:grid}.choice-set legend{margin-bottom:.5rem;font-weight:700}.choice-set button{border:2px solid var(--border);background:var(--surface);border-radius:.9rem;min-height:3.3rem;font-weight:650}.choice-set button.selected,.choice-set button[aria-pressed=true]{border-color:var(--primary);background:var(--tint)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}html[data-motion=reduced] *,html[data-motion=reduced] :before,html[data-motion=reduced] :after{transition:none!important;animation:none!important}
