/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.flex{display:flex}.hidden{display:none}.table{display:table}.min-h-dvh{min-height:100dvh}.grow{flex-grow:1}.items-center{align-items:center}.justify-between{justify-content:space-between}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#f5f2e9;--panel:#fdfbf6;--ink:#26372e;--muted:#60695c;--line:#e3dfd1;--green:#2c4d3d;--green-dark:#203e32;--wash:#e9eee4;--serif:"Noto Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;font-synthesis:none;background:var(--paper);color:var(--ink);font-family:Inter,PingFang SC,Hiragino Sans GB,Noto Sans CJK SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:280px;margin:0}button:not(:disabled),a{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.54}:focus-visible{outline-offset:4px;outline:2px solid #607d5d}.app-main:focus{outline:none}svg{flex-shrink:0}h1,h2,h3,p{margin:0}button,input{font:inherit}::selection{color:var(--green-dark);background:#dbe7d9}.app-header{padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);border-bottom:1px solid var(--line);background:#f9f7ee}.header-inner{max-width:1136px;height:65px;margin:0 auto;padding:0 20px}.brand{align-items:center;gap:11px;display:inline-flex}.brand-mark{background:var(--green-dark);color:#f3ecda;width:37px;height:37px;font-family:var(--serif);border-radius:9px;place-items:center;font-size:22px;font-weight:800;display:grid}.brand-name{font-family:var(--serif);letter-spacing:.06em;white-space:nowrap;font-size:20px;font-weight:800}.brand-name small,.brand-divider{color:var(--muted);letter-spacing:.09em;font-family:inherit;font-size:13px;font-weight:600}.brand-divider{color:#a9aa9a;margin:0 .18em}.icon-button{border:1px solid var(--line);width:42px;height:42px;color:var(--green);background:var(--panel);border-radius:12px;place-items:center;transition:background .18s;display:inline-grid}.icon-button:hover{background:var(--wash)}.app-main{padding:24px max(16px, env(safe-area-inset-right)) calc(107px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));max-width:1136px;margin:0 auto}.page{gap:20px;display:grid}.panel{border:1px solid var(--line);background:var(--panel);border-radius:17px}.page-heading{gap:8px;display:grid}.page-heading h1,.reader-title h1{font:800 clamp(30px, 5.5vw, 45px)/1.25 var(--serif);letter-spacing:.035em}.page-heading p{color:var(--muted);font-size:13px}.section-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px;display:flex}.section-title h2,.home-review h2,.daily-summary h2,.stats-panel h2,.grade-panel h2{font:800 21px/1.4 var(--serif);letter-spacing:.04em}.round-icon{background:var(--wash);width:41px;height:41px;color:var(--green);border-radius:11px;flex-shrink:0;place-items:center;display:grid}.primary-btn,.secondary-btn,.cover-button{border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:8px 14px;font-size:13px;font-weight:700;line-height:1.25;transition:background .18s,border-color .18s;display:inline-flex}.primary-btn{background:var(--green);color:#fffdf2}.primary-btn:hover:not(:disabled){background:#213d30}.secondary-btn{color:var(--green);background:#fbfaf3;border-color:#dcded2}.secondary-btn:hover:not(:disabled){background:var(--wash);border-color:#cdd7ca}.text-action{min-height:38px;color:var(--green);justify-content:center;align-items:center;gap:7px;font-size:13px;font-weight:700;display:inline-flex}.text-action:hover{text-underline-offset:4px;text-decoration:underline}.home-layout{gap:14px;display:grid}.cover{isolation:isolate;color:#f6f0df;background:#223f33 radial-gradient(at 88% 78%,#42624c,#223f33 67%);border-radius:20px;align-items:center;min-height:306px;padding:31px 25px;display:flex;position:relative;overflow:hidden}.cover:before{content:"";z-index:-1;opacity:.94;background:linear-gradient(90deg,#1a3328fa 0%,#1a3328b3 43%,#1a332824 100%),url(/recite/assets/ink-landscape-r7rHH9oO.jpg) 50% 68%/cover no-repeat;position:absolute;inset:0}.cover-content{z-index:1;position:relative}.eyebrow{color:var(--muted);letter-spacing:.115em;align-items:center;gap:9px;font-size:11px;font-weight:700;display:flex}.cover-edition{color:#e5e1c6}.tiny-rule{background:currentColor;width:18px;height:1px}.cover h1{font:800 clamp(54px, 12vw, 91px)/1.05 var(--serif);letter-spacing:.065em;margin:12px 0 10px}.cover-quote{color:#efe8ce;font-family:var(--serif);letter-spacing:.075em;font-size:clamp(17px,3.3vw,23px)}.cover-button{color:#253f33;background:#f4eddb;margin-top:25px;padding:11px 15px}.cover-button:hover{background:#fff}.cover-next{color:#efe8ce;margin-left:11px;font-size:12px;display:inline-block}.cover-seal{color:#f5cabc;width:35px;height:35px;font:800 21px/1 var(--serif);background:#824c3ee0;border:1px solid #e0ad9c;border-radius:6px;place-items:center;display:grid;position:absolute;top:22px;right:22px;transform:rotate(5deg)}.home-review{grid-template-columns:auto 1fr;align-items:center;gap:10px 12px;padding:18px;display:grid}.home-review .round-icon{grid-row:span 2;align-self:start}.home-review .review-count{align-items:baseline;gap:8px;display:flex}.review-count strong{font:800 36px/.95 var(--serif);font-variant-numeric:tabular-nums}.review-count span,.home-review p{color:var(--muted);font-size:13px}.home-review p,.home-review .secondary-btn,.home-review .primary-btn{grid-column:1/-1}.home-review .primary-btn,.home-review .secondary-btn{justify-self:start;margin-top:3px}.progress-card{grid-template-columns:1fr auto;align-items:center;gap:12px 6px;padding:16px;display:grid}.progress-copy{align-items:center;gap:9px;display:flex}.progress-copy h3{font-size:15px;font-weight:800}.progress-copy p{color:var(--muted);margin-top:2px;font-size:11px}.progress-numbers{color:var(--muted);white-space:nowrap;font-size:11px}.progress-numbers strong{font:800 27px/1 var(--serif);color:var(--green)}.progress-track{appearance:none;background:#e9e9de;border:0;border-radius:30px;grid-column:1/-1;width:100%;height:8px;display:block;overflow:hidden}.progress-track::-webkit-progress-bar{background:#e9e9de}.progress-track::-webkit-progress-value{background:#6c866c;border-radius:30px}.progress-track::-moz-progress-bar{background:#6c866c;border-radius:30px}.shortcut-grid{gap:10px;display:grid}.shortcut{align-items:center;gap:12px;padding:13px 15px;display:flex}.shortcut:hover,.chapter-tile:hover{background:#fcfcf4;border-color:#bfcbb9}.shortcut div{flex:1;gap:3px;display:grid}.shortcut strong{font-size:15px}.shortcut div span{color:var(--muted);font-size:12px}.shortcut>svg,.tile-arrow{color:#647a62}.tab-bar{z-index:4;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#faf8f0f5;border-top:1px solid #e3dfd3;position:fixed;inset:auto 0 0}.tab-inner{grid-template-columns:repeat(4,1fr);width:min(100%,550px);height:65px;margin:auto;display:grid}.tab{color:#5b665a;place-content:center;justify-items:center;gap:2px;min-width:0;font-size:11px;display:grid}.tab[aria-current]{color:#254735;font-weight:800}.tab-icon{border-radius:20px;place-items:center;width:49px;height:29px;display:grid}.tab[aria-current] .tab-icon,.tab:hover .tab-icon{background:#e5eddf}.tab:focus-visible{outline-offset:-4px;border-radius:10px}.chapter-list-tools{gap:10px;display:grid}.search-box{background:var(--panel);border:1px solid var(--line);color:var(--muted);border-radius:11px;align-items:center;gap:9px;padding:0 12px;display:flex}.search-box input{width:100%;min-width:0;min-height:46px;color:var(--ink);outline:none}.search-box:focus-within{outline-offset:2px;outline:2px solid #607d5d}.segments{background:#efede4;border-radius:9px;flex-wrap:wrap;gap:3px;width:fit-content;max-width:100%;padding:3px;display:flex}.segments button{min-height:38px;color:var(--muted);white-space:nowrap;border:1px solid #0000;border-radius:7px;padding:4px clamp(8px,2.7vw,16px);font-size:13px}.segments button[aria-pressed=true]{background:var(--panel);color:var(--green);border-color:#dce2d6;font-weight:800;box-shadow:0 1px 2px #36443414}.chapter-grid{gap:8px;display:grid}.chapter-tile{align-items:center;gap:10px;min-height:68px;padding:12px 11px;display:flex}.chapter-number{color:#657762;min-width:34px;font:700 22px/1 var(--serif);font-variant-numeric:tabular-nums;align-self:center}.chapter-tile-text{flex:1;gap:3px;min-width:0;display:grid}.chapter-tile-text strong{font:800 16px/1.3 var(--serif)}.chapter-tile-text>span{color:var(--muted);font-family:var(--serif);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.chapter-tile-state{flex-shrink:0;justify-items:end;gap:3px;display:grid}.status-label{white-space:nowrap;color:#5a6358;background:#eeede5;border-radius:5px;padding:4px 6px;font-size:11px;font-weight:650;line-height:1;display:inline-block}.status-learned{background:var(--wash);color:#35553e}.tile-grade{color:var(--muted);font-size:10px}.empty-state{text-align:center;color:var(--muted);padding:33px 18px}.reader-page{gap:14px;max-width:790px;margin:auto}.back-action{justify-self:start;min-height:34px}.reader-title{justify-content:space-between;align-items:end;gap:10px;padding:0 0 4px;display:flex}.reader-title h1{margin:7px 0 8px}.reader-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:5px 8px;font-size:11px;display:flex}.mark-button{min-width:max-content}.controls{gap:10px;padding:13px;display:grid}.control-group{align-items:center;gap:8px;display:flex}.control-group>span{color:var(--muted);flex-shrink:0;font-size:12px}.control-group .segments button{padding-inline:clamp(7px,2vw,12px)}.text-panel{padding:16px}.reading-tools{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding-bottom:10px;display:flex}.reading-tools>span{color:var(--muted);font-size:12px}.classical-text{color:#253a2e;font-family:var(--serif);letter-spacing:.025em;line-break:strict;overflow-wrap:anywhere;white-space:pre-wrap;padding:18px 0;font-size:clamp(22px,4.7vw,28px);line-height:1.93}.mask-chip{vertical-align:baseline;color:#405747;letter-spacing:.05em;overflow-wrap:anywhere;-webkit-box-decoration-break:clone;box-decoration-break:clone;background:#e4eadf;border:1px dashed #83927e;border-radius:4px;padding:.03em .09em;font-size:.89em;line-height:1.55;display:inline}.mask-chip:hover,.mask-chip:focus-visible{background:#d8e6d6}.hint-tools{border-top:1px solid var(--line);flex-wrap:wrap;gap:8px;padding-top:11px;display:flex}.grade-panel{padding:16px}.grade-check{width:fit-content;min-height:35px;color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.grade-check input{accent-color:var(--green);width:17px;height:17px}.grade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.grade-button{border:1px solid #27352a1a;border-radius:8px;gap:4px;min-height:57px;padding:9px 4px;display:grid}.grade-button:hover:not(:disabled){border-color:currentColor}.grade-button strong{font-size:13px}.grade-button span{font-size:11px}.grade-rust{color:#814b39;background:#f3e6de}.grade-amber{color:#775c28;background:#f4ebd6}.grade-sage{color:#536747;background:#e9eee0}.grade-green{color:#30593e;background:#dce9dd}.save-result{flex-wrap:wrap;align-items:center;gap:10px;padding-top:11px;display:flex}.save-result strong{font-size:14px}.save-result p{color:var(--muted);margin-top:3px;font-size:12px}.chapter-neighbors{justify-content:space-between;gap:8px;display:flex}.practice-page .section-title{margin:2px 0 -8px}.daily-panel{padding:14px}.daily-summary{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.daily-summary>div:nth-child(2){flex:1;min-width:100px}.daily-summary p,.practice-card p{color:var(--muted);font-size:13px;line-height:1.6}.due-list{margin-top:12px;display:grid}.due-list a{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:5px 0;font-size:13px;display:flex}.due-list a:hover,.history-list a:hover{color:var(--green);text-decoration:underline}.due-list a>span:last-child{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:inline-flex}.practice-grid{gap:10px;display:grid}.practice-card{align-content:start;justify-items:start;gap:8px;padding:15px;display:grid}.practice-card h3{font:800 19px/1.3 var(--serif)}.practice-card button{margin-top:4px}.metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.metric{align-content:start;justify-items:start;gap:7px;min-width:0;padding:10px 8px;display:grid}.metric>span:nth-child(2),.metric>div{color:var(--muted);font-size:11px}.metric strong{color:var(--green);font:800 clamp(24px, 5vw, 35px)/1 var(--serif)}.stats-grid{gap:12px;display:grid}.stats-panel{padding:15px}.chart{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:14px;display:grid}.chart-column{color:var(--muted);justify-items:center;gap:5px;font-size:10px;display:grid}.chart-today{color:var(--green);font-weight:800}.bar-lane{background:#f2f0e8;border-radius:5px;align-items:end;width:100%;max-width:29px;height:80px;display:flex;overflow:hidden}.chart-bar{background:#a3b39a;border-radius:5px;width:100%;min-height:3px}.chart-today .chart-bar{background:#557b59}.mastery-list{margin-top:8px}.mastery-row{grid-template-columns:auto 1fr auto;align-items:center;gap:8px;min-height:33px;font-size:13px;display:grid}.grade-dot{border:1px solid;border-radius:50%;width:11px;height:11px}.mastery-row strong{color:var(--muted);font-size:12px}.history-list{margin-top:8px}.history-list a{border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr auto;align-items:center;gap:6px;min-height:42px;font-size:12px;display:grid}.history-list a:last-child{border-bottom:0}.history-list a span:nth-child(2),.history-list time{color:var(--muted)}.empty-copy,.backup-panel p{color:var(--muted);margin-top:7px;font-size:13px;line-height:1.7}.backup-panel{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:11px;display:flex}.backup-actions{flex-wrap:wrap;gap:7px;display:flex}.settings-dialog{border:1px solid var(--line);background:var(--panel);width:min(100%,490px);max-width:100%;max-height:min(90dvh,670px);color:var(--ink);padding:15px 18px calc(16px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;margin:0 auto;position:fixed;inset:auto 0 0;overflow:auto;box-shadow:0 20px 65px #182e2940}.settings-dialog::backdrop{background:#1f332a70}.dialog-heading{justify-content:space-between;align-items:center;margin-bottom:13px;display:flex}.dialog-heading h2{font:800 24px/1.3 var(--serif)}.settings-section{border-top:1px solid var(--line);gap:8px;padding:12px 0;display:grid}.settings-section h3{font:800 18px/1.3 var(--serif)}.settings-section p{color:var(--muted);font-size:13px;line-height:1.7}.settings-links{flex-wrap:wrap;gap:10px;display:flex}.settings-links a{color:var(--green);text-underline-offset:3px;text-decoration:underline}.settings-offline{align-items:center;gap:6px;display:flex}.storage-banner,.update-banner{color:var(--green-dark);background:var(--wash);border-radius:10px;align-items:center;gap:8px;margin-bottom:12px;padding:6px 12px;font-size:13px;display:flex}.storage-banner span,.update-banner span{flex:1}.storage-banner{color:#784531;background:#f3e6de}.toast{right:max(12px, env(safe-area-inset-right));bottom:calc(77px + env(safe-area-inset-bottom));z-index:5;background:var(--green-dark);color:#fffdf4;border-radius:9px;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 24px);padding:6px 8px 6px 12px;font-size:13px;display:flex;position:fixed;box-shadow:0 5px 16px #203e3240}.toast-error{background:#744834}.toast button{border-radius:5px;place-items:center;width:33px;height:33px;display:grid}.toast button:hover{background:#fff2}@media (width>=620px){.header-inner{height:72px;padding-inline:30px}.app-main{padding:34px 30px 112px}.page{gap:25px}.home-layout{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:16px}.cover{min-height:350px;padding:32px}.home-review{flex-direction:column;justify-content:center;align-items:flex-start;gap:13px;padding:22px;display:flex}.home-review .round-icon{align-self:auto}.review-count strong{font-size:52px}.shortcut-grid,.chapter-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chapter-list-tools{flex-wrap:wrap;justify-content:space-between;display:flex}.search-box{min-width:230px}.progress-card,.practice-card,.stats-panel,.daily-panel{padding:20px}.metric{padding:14px}.reader-page{gap:16px}.controls{flex-wrap:wrap;gap:12px 23px;padding:16px 18px;display:flex}.text-panel,.grade-panel{padding:22px}.grade-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-dialog{border-radius:18px;margin:auto;padding:19px;inset:0}}@media (width>=920px){.app-main{padding-top:45px}.home-layout{grid-template-columns:minmax(0,2.23fr) minmax(0,1fr);gap:20px}.cover{min-height:380px;padding:47px}.home-review{padding:27px}.cover-seal{top:30px;right:30px}.chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=350px){.cover{padding:22px 16px}.cover-seal{top:13px;right:13px}.cover-next{margin-left:6px}.progress-card{padding:12px}.progress-copy .round-icon{display:none}.reader-title{flex-wrap:wrap}.chapter-tile{gap:5px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}}
