@charset "UTF-8";
button.quiet-link{border:0;background:transparent;padding:3px 0;font-size:12px;text-decoration:underline;text-underline-offset:3px;color:#526a79}
.band-pink{background:#f8e9ed!important;border-color:#dfbfc8!important}.band-red{background:#f4e2dc!important;border-color:#d4aca4!important}.band-yellow{background:#f6eed6!important;border-color:#dbcd9d!important}.listening-controls{display:grid;gap:10px;border-bottom:1px solid #e5dfd3;padding-bottom:17px;margin-bottom:12px}.panel-caption{font-size:12px;color:#7c817f}.listening-progress{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:11px;color:#7c817f}.saved-recording{width:100%}.saved-recording audio{width:100%}.playback-part{display:block;font-size:11px}.recording-dock{position:fixed;z-index:50;bottom:16px;left:50%;transform:translateX(-50%);width:min(820px,calc(100% - 24px));background:#fffefa;box-shadow:0 12px 55px #15293b40;border:1px solid #d2b8b2;border-radius:14px;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 20px}.recording-dock[hidden]{display:none}.recording-dock>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.recording-dock strong{font-size:13px}.recording-dock #dock-timer{font-variant-numeric:tabular-nums;font-size:13px}.recording-led{width:10px;height:10px;border-radius:50%;background:#b65650;animation:recordpulse 1.5s infinite}.is-recording{padding-bottom:100px}@keyframes recordpulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.recording-led{animation:none}}@media(max-width:540px){.recording-dock{padding:12px}.recording-dock>div{gap:7px}.recording-dock .button{font-size:12px;padding:10px}.recording-dock strong{font-size:11px}}
:root{--navy:#20364b;--navy-deep:#15293b;--cream:#f7f4ed;--paper:#fffefa;--coffee:#a48c71;--gold:#b49a67;--line:#e5dfd3;--text:#273b4b;--muted:#7c817f;--green:#447668;--soft-green:#edf4ef;--red:#b65650;--shadow:0 14px 45px #26374a0a;font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c9ab72;outline-offset:4px}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{font-weight:500}h1,h2,.serif{font-family:Georgia,"Noto Serif SC","Songti SC",SimSun,serif}h1{font-size:clamp(32px,4vw,49px);line-height:1.3;letter-spacing:1px}h2{font-size:29px;line-height:1.4}p{line-height:1.8}.site-header{height:108px;max-width:1360px;padding:12px 48px;margin:auto;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:19px;flex-shrink:0}.logo-crop{width:174px;height:75px;overflow:hidden;background:white;display:block;border-radius:5px}.logo-crop img{width:100%;height:100%;object-fit:cover;object-position:50% 53%}.brand-divider{height:35px;width:1px;background:#d6d0c6}.brand-title{font-family:Georgia,"Songti SC",serif;font-size:19px;letter-spacing:3px}.brand-title span{display:block;font:9px/2.5 "Segoe UI",sans-serif;letter-spacing:2px;color:var(--coffee)}nav{display:flex;gap:31px;margin-left:auto;align-items:center}.nav-link{background:none;border:0;font-size:14px;padding:13px 0;white-space:nowrap;position:relative;color:var(--muted)}.nav-link.active{color:var(--navy);font-weight:600}.nav-link.active:after{content:"";position:absolute;bottom:1px;left:25%;width:50%;height:2px;background:var(--gold)}.avatar-button{height:41px;min-width:41px;border:1px solid #dbd3c2;border-radius:50%;background:#ebe4d5;color:var(--navy);font:italic 22px Georgia;margin-left:15px}main{max-width:1220px;margin:0 auto;padding:44px 36px 70px;min-height:calc(100vh - 194px)}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2.8px;color:var(--coffee);display:block;margin-bottom:19px}.eyebrow.light{color:#d4c49e}.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:50px;align-items:center;min-height:320px;padding:17px 0 40px}.hero p{color:var(--muted);font-size:14px;max-width:490px;margin-bottom:22px}.hero h1 em{color:#7d886f;font-style:normal}.hero-actions{display:flex;gap:20px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:47px;border:1px solid var(--line);border-radius:7px;padding:11px 21px;background:var(--paper);font-size:14px;font-weight:550;transition:background .16s,transform .16s}.button:hover:not(:disabled){transform:translateY(-1px);background:#eee9df}.button.primary{background:var(--navy);border-color:var(--navy);color:#fff}.button.primary:hover:not(:disabled){background:#304c63}.button.secondary{background:#eee8db;border-color:#eee8db}.button.outline{background:transparent;border-color:#c6bca8}.button.danger{color:var(--red);border-color:#e7c8c5;background:#fff7f5}.button.small{min-height:36px;padding:7px 13px;font-size:12px}.button.wide{width:100%}.quiet-link{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}.hero-showcase{height:290px;display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(ellipse at center,#e5dfce 0,transparent 65%)}.cover-stage{position:relative;transform:rotate(6deg);width:220px;box-shadow:-8px 12px 0 #e7dcca,0 20px 30px #23364a28;border-radius:2px;background:#fff}.cover-stage img{width:100%;display:block;border-radius:2px}.cover-stage:before{content:"";position:absolute;inset:0;border-left:5px solid #172f4520}.floating-note{position:absolute;right:0;bottom:14px;padding:13px 18px;background:#fffefbf2;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:7px;font-size:12px;transform:rotate(-4deg)}.floating-note b{display:block;font-family:Georgia;font-size:20px;font-weight:normal;margin-bottom:3px}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 43px;padding:24px 0}.stat{display:flex;align-items:center;gap:19px;padding:0 36px;border-right:1px solid var(--line)}.stat:first-child{padding-left:5px}.stat:last-child{border:0}.stat-icon{display:grid;place-items:center;background:#ece6d9;border-radius:50%;width:43px;height:43px;font-size:21px}.stat b{font:30px Georgia;display:block;margin-bottom:4px}.stat small{font-size:11px;color:var(--muted)}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.section-heading h2{font-size:25px;margin:0 0 5px}.section-heading p{font-size:12px;color:var(--muted);margin:0}.section-heading .eyebrow{margin-bottom:10px}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:21px}.level-card{border:1px solid var(--line);background:var(--paper);border-radius:9px;min-height:230px;padding:27px;position:relative;text-align:left;box-shadow:var(--shadow);overflow:hidden;transition:transform .15s}.level-card.available{border-top:3px solid var(--navy);cursor:pointer}.level-card.available:hover{transform:translateY(-4px)}.level-card .level-number{font:italic 58px Georgia;color:#d7d0be;position:absolute;right:25px;top:21px;line-height:1}.level-label{font-size:10px;color:var(--coffee);letter-spacing:2px;display:block;margin:4px 0 30px}.level-card h3{font:25px Georgia,"Songti SC",serif;margin-bottom:10px;position:relative}.level-card p{font-size:12px;color:var(--muted);margin-bottom:22px}.level-card .level-bottom{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--green)}.level-card.locked{background:#efede7;box-shadow:none;opacity:.7}.level-card.locked .level-bottom{color:var(--muted)}.tip{margin-top:30px;border-left:2px solid #c6b697;padding:5px 18px;font-size:12px;color:var(--muted);line-height:1.9}.site-footer{max-width:1260px;border-top:1px solid var(--line);margin:auto;padding:22px 32px 28px;display:flex;justify-content:space-between;gap:15px;font-size:10px;letter-spacing:.5px;color:var(--muted)}.site-footer span:nth-child(2){font-family:Georgia;font-style:italic;font-size:12px}.breadcrumb{display:flex;align-items:center;gap:11px;color:var(--muted);font-size:12px;margin-bottom:26px}.breadcrumb button{border:0;background:none;padding:0;color:var(--muted);font-size:12px}.book-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px}.book-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;overflow:hidden;text-align:left;cursor:pointer;box-shadow:var(--shadow);transition:transform .16s}.book-card:hover{transform:translateY(-4px)}.book-cover{aspect-ratio:1.05;background:#e9e4d8;padding:20px;display:flex;align-items:center;justify-content:center}.book-cover img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 7px 12px #182d4322}.book-info{padding:18px}.book-info h3{font:22px Georgia;margin-bottom:9px}.book-info p{font-size:11px;color:var(--muted);line-height:1.7;min-height:38px}.book-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--coffee);padding-top:14px;border-top:1px solid var(--line)}.pagination{display:flex;gap:12px;align-items:center;justify-content:center;margin:30px 0 0;font-size:12px;color:var(--muted)}.empty{text-align:center;border:1px dashed #d9d0bf;border-radius:10px;padding:55px 20px;background:#fbf9f3}.empty h3{font-size:23px}.empty p{font-size:13px;color:var(--muted)}.pill{font-size:11px;padding:6px 11px;background:#eae3d6;border-radius:30px;display:inline-block}.pill.green{background:#e8f0e9;color:var(--green)}.reader-header{display:flex;justify-content:space-between;gap:20px;margin-bottom:25px;align-items:center}.reader-header h1{font:34px Georgia;margin-bottom:5px}.reader-header p{font-size:12px;color:var(--muted);margin:0}.segmented{display:inline-flex;padding:4px;border:1px solid var(--line);border-radius:8px;background:#eeeadf}.segmented button{background:transparent;border:0;padding:10px 16px;border-radius:5px;font-size:12px}.segmented button.active{color:white;background:var(--navy);box-shadow:0 2px 4px #20364b1a}.reader-grid{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:28px;align-items:start}.page-frame{border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:15px;box-shadow:var(--shadow)}.page-frame img{display:block;width:100%;height:500px;object-fit:contain;user-select:none}.page-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.page-number{font-size:13px;color:var(--muted)}.reader-panel{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:23px}.reader-panel .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:18px}.reading-text{font:26px/1.5 Georgia;margin-bottom:20px;white-space:pre-line}.reader-panel .button{width:100%;margin-bottom:10px}.audio-options{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin:1px 0 24px}.audio-options select{padding:5px;border:1px solid var(--line);background:transparent;border-radius:5px}.record-section{padding-top:22px;border-top:1px solid var(--line)}.record-section h3{font-size:13px;margin-bottom:9px}.record-note,.save-note{font-size:11px;line-height:1.8;color:var(--muted);margin:0 0 16px}.record-button.recording{background:#af4e47;color:#fff;animation:pulse 1.3s infinite}.timer{font:25px Georgia;display:block;text-align:center;padding:8px}.record-playback{width:100%;height:35px;margin:4px 0 12px}.save-note.saved{color:var(--green)}.save-note.error{color:var(--red)}.page-dots{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.page-dot{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:11px;position:relative}.page-dot.current{border:2px solid var(--navy);background:#ece7db}.page-dot.done:after{content:'✓';position:absolute;right:-5px;top:-8px;background:var(--green);color:white;font-size:9px;width:14px;height:14px;border-radius:50%;display:grid;place-items:center}.page-dot.extra{color:#a6a59f}.progress-label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;margin-top:23px}.progress-track{height:4px;background:#e8e3d9;margin:12px 0 18px;overflow:hidden;border-radius:4px}.progress-track span{height:100%;display:block;background:var(--green);transition:width .3s}.history-list{display:grid;gap:15px}.history-item{display:flex;gap:24px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:22px 25px}.history-icon{font-size:25px;display:grid;place-items:center;width:55px;height:65px;background:#eae4d5;border-radius:4px}.history-main{flex:1}.history-main h3{font:23px Georgia;margin-bottom:8px}.history-main p{font-size:11px;color:var(--muted);margin-bottom:5px}.history-main blockquote{margin:10px 0 0;font-size:12px;line-height:1.7;border-left:2px solid #bdab84;padding-left:12px;color:#687867}.history-detail{background:var(--paper);border:1px solid var(--line);padding:28px;border-radius:8px}.comment{border:1px solid #e4e9e0;border-left:3px solid #81987d;background:#f5f7f1;padding:18px 21px;border-radius:5px;white-space:pre-wrap;font-size:13px;line-height:1.8}.recording-row{display:grid;grid-template-columns:1fr minmax(190px,1fr);gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.recording-row h4{margin:0 0 6px;font-size:13px}.recording-row p{font-size:12px;color:var(--muted);margin:0}.recording-row audio{width:100%;max-height:37px}.recording-row .page-comment{grid-column:1/-1;margin-top:0;font-size:12px;white-space:pre-wrap;line-height:1.8;color:var(--green)}.profile-heading{display:flex;align-items:center;gap:20px;margin:20px 0 35px}.profile-avatar{width:75px;height:75px;border-radius:50%;background:var(--navy);color:#e3d4b1;display:grid;place-items:center;font:italic 40px Georgia}.profile-heading h1{margin:0 0 5px;font:34px Georgia}.profile-heading p{font-size:12px;color:var(--muted);margin:0}.badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.badge-card{border:1px solid var(--line);border-radius:8px;padding:25px 15px;text-align:center;background:var(--paper)}.badge-card.locked{filter:grayscale(1);opacity:.46}.badge-card .mark{font-size:36px;display:block;margin-bottom:15px}.badge-card h3{font-size:14px;margin-bottom:9px}.badge-card p{font-size:11px;color:var(--muted);margin:0}.profile-note{margin-top:25px;font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:12px;padding:0;color:var(--text);box-shadow:0 25px 100px #0b1c3b33;max-width:calc(100vw - 28px)}dialog::backdrop{background:#182d4673;backdrop-filter:blur(4px)}.welcome-dialog[open]{display:grid;grid-template-columns:.85fr 1fr;width:825px;max-height:calc(100dvh - 40px)}.welcome-art{background:var(--navy);color:#f5f0e4;padding:45px 34px;position:relative;overflow:hidden;min-height:570px}.welcome-art h2{font-size:29px;line-height:1.6;margin-top:31px}.welcome-art p{font-size:12px;color:#bbc5cb;line-height:2}.book-emblem{font-size:85px;display:block;margin:30px 0 24px;opacity:.85}.welcome-line{position:absolute;bottom:35px;font-size:9px;letter-spacing:2px;color:#c3b493}.welcome-form{padding:43px 38px;background:var(--paper);overflow:auto}.welcome-form h2{font-size:25px;margin-bottom:10px}.welcome-form>p{font-size:12px;color:var(--muted);margin-bottom:24px}.welcome-form .eyebrow{font-size:9px;letter-spacing:2px}form label,.form-label{font-size:12px;display:block;margin-bottom:17px}input,textarea,select{border:1px solid #dcd6c8;border-radius:5px;background:#fffefb;color:var(--text);padding:12px 13px;max-width:100%}form label input,form label textarea,form label select{width:100%;margin-top:8px}input::placeholder{color:#a7aaa4;font-size:12px}textarea{resize:vertical;min-height:80px}.form-error{color:var(--red);font-size:12px;min-height:0;margin-bottom:15px;line-height:1.7}.small-note{font-size:10px!important;line-height:1.8;margin-top:18px;color:var(--muted)}.message-dialog{padding:35px;width:440px;text-align:center}.message-dialog .large-mark{font-size:46px;display:block;margin:6px 0 22px}.message-dialog h2{font-size:26px;margin-bottom:12px}.message-dialog p{font-size:13px;color:var(--muted)}.toast{position:fixed;bottom:35px;left:50%;transform:translateX(-50%);padding:14px 25px;border-radius:8px;background:var(--navy);color:#fff;box-shadow:var(--shadow);font-size:13px;z-index:30;max-width:90vw}.loading{padding:90px 20px;text-align:center;color:var(--muted);font-size:13px}.loader{width:24px;height:24px;border:2px solid #ddd4be;border-top-color:var(--navy);border-radius:50%;display:inline-block;animation:spin .7s linear infinite}.hidden{display:none!important}.admin-layout{display:grid;grid-template-columns:190px 1fr;gap:35px}.admin-sidebar{border-right:1px solid var(--line);padding-right:22px}.admin-sidebar .nav-link{display:block;width:100%;text-align:left;border-radius:5px;padding:13px 12px}.admin-sidebar .nav-link.active{background:var(--navy);color:white}.admin-sidebar .nav-link:after{display:none}.admin-title{margin-bottom:30px}.admin-title h1{font-size:32px;margin-bottom:8px}.admin-title p{font-size:12px;color:var(--muted)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--paper)}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th,td{padding:16px 15px;text-align:left;border-bottom:1px solid var(--line)}th{font-size:11px;background:#eee9dd;color:#71786f;font-weight:500}tbody tr:last-child td{border-bottom:0}.admin-panel{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:28px}.admin-panel h3{font-size:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.form-grid .full{grid-column:1/-1}.upload-row{padding:16px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:100px 1fr;gap:18px}.upload-row img{width:100px;height:100px;object-fit:contain;background:#e9e4da}.upload-row input,.upload-row textarea{width:100%;margin:6px 0 9px}.checkbox-label{display:flex;gap:8px;align-items:center;font-size:12px}.checkbox-label input{width:auto;margin:0}.admin-recording textarea{width:100%;margin-top:12px;min-height:65px}.admin-recording audio{width:100%;margin:10px 0}.setup-page{max-width:750px;margin:0 auto}.setup-page .admin-panel{padding:35px}.setup-page .logo-crop{width:220px;height:90px;margin:0 auto 25px}.setup-page h1{font-size:33px}.setup-page p{font-size:13px;color:var(--muted)}.shelf-label{font-family:Georgia;font-style:italic;font-size:13px;color:var(--coffee)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{box-shadow:0 0 0 5px #b6565020}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(min-width:1500px){.page-frame img{height:570px}}@media(max-width:1050px){.site-header{padding:14px 26px}.brand{gap:12px}.logo-crop{width:135px;height:65px}.brand-title{font-size:16px;letter-spacing:2px}.brand-title span{font-size:8px;letter-spacing:1.5px}nav{gap:22px}.hero{gap:20px}.book-grid{grid-template-columns:repeat(3,1fr)}.reader-grid{grid-template-columns:minmax(0,1fr) 265px;gap:20px}.reader-panel{padding:19px}.page-frame img{height:440px}.floating-note{right:-5px}.level-card{padding:23px}.stat{padding:0 25px}}
@media(max-width:760px){.site-header{height:auto;min-height:90px;padding:10px 20px;flex-wrap:wrap;gap:7px 14px}.brand{flex:1}.logo-crop{width:116px;height:53px}.brand-divider{height:28px}.brand-title{font-size:14px}.brand-title span{font-size:7px}.avatar-button{margin-left:0;width:34px;height:34px;min-width:34px;font-size:18px}nav{order:3;justify-content:center;gap:38px;margin:0;width:100%;border-top:1px solid #ebe6dc;padding-top:2px}.nav-link{font-size:12px;padding:11px 0}.site-header:has(.admin-nav) nav{display:none}main{padding:29px 22px 45px}.hero{grid-template-columns:1.1fr .9fr;min-height:270px;gap:10px;padding:7px 0 28px}.hero h1{font-size:31px}.hero .eyebrow{font-size:8px;letter-spacing:1.8px}.hero p{font-size:11px}.hero-showcase{height:240px}.cover-stage{width:155px}.floating-note{padding:10px 12px;bottom:8px;font-size:9px;right:-5px}.floating-note b{font-size:16px}.hero-actions{gap:12px;flex-wrap:wrap}.hero-actions .button{font-size:12px;padding:11px 15px;min-height:42px}.stats{padding:20px 0;margin-bottom:30px}.stat{gap:10px;padding:0 14px}.stat-icon{width:31px;height:31px;font-size:15px}.stat b{font-size:25px}.stat small{font-size:10px}.level-grid{gap:12px}.level-card{padding:19px 17px;min-height:215px}.level-card h3{font-size:20px}.level-card .level-number{font-size:43px;right:15px}.level-card p{font-size:10px}.level-label{font-size:8px;letter-spacing:1px}.book-grid{grid-template-columns:repeat(3,1fr);gap:15px}.book-cover{padding:13px}.book-info{padding:13px}.book-info h3{font-size:19px}.book-info p{font-size:10px}.book-meta{font-size:9px}.reader-header{gap:12px;align-items:start}.reader-header h1{font-size:29px}.segmented button{padding:9px 12px;font-size:11px}.reader-grid{grid-template-columns:minmax(0,1fr) 232px;gap:16px}.reader-panel{padding:17px}.page-frame{padding:9px}.page-frame img{height:370px}.reading-text{font-size:23px}.reader-panel .button{font-size:12px;padding:11px 10px}.page-navigation .button{font-size:11px;padding:9px 12px;min-height:37px}.page-number{font-size:11px}.page-dots{gap:6px}.page-dot{width:31px;height:31px}.site-footer{padding:20px 22px;flex-wrap:wrap;font-size:9px}.site-footer span:nth-child(2){display:none}.badge-grid{grid-template-columns:repeat(2,1fr)}.welcome-dialog[open]{grid-template-columns:.7fr 1fr}.welcome-art{padding:35px 25px;min-height:520px}.welcome-art h2{font-size:25px}.welcome-form{padding:34px 27px}.welcome-form h2{font-size:22px}.admin-layout{grid-template-columns:1fr;gap:25px}.admin-sidebar{display:flex;gap:8px;border:0;padding:0;overflow:auto}.admin-sidebar .nav-link{padding:10px 15px;width:auto;font-size:12px;white-space:nowrap}.history-item{padding:17px;gap:17px}}
@media(max-width:540px){.hero{grid-template-columns:1fr;position:relative;min-height:0}.hero-showcase{display:none}.hero h1{font-size:33px}.hero p{max-width:330px;font-size:12px}.hero .eyebrow{margin-bottom:15px}.hero-actions{margin-top:20px}.stat{padding:0 12px}.stat-icon{display:none}.stat:first-child{padding-left:4px}.stats{margin-top:8px}.level-grid{grid-template-columns:1fr}.level-card{min-height:165px;padding:22px}.level-label{margin-bottom:20px}.level-card p{margin-bottom:14px}.level-card.locked{min-height:125px}.level-card.locked p{display:none}.level-card.locked .level-label{margin-bottom:13px}.level-card.locked .level-bottom{position:absolute;right:22px;bottom:25px}.level-card .level-number{font-size:55px;top:23px;right:25px}.book-grid{grid-template-columns:repeat(2,1fr)}.book-info h3{font-size:18px}.section-heading h2{font-size:25px}.reader-header{flex-wrap:wrap}.reader-grid{grid-template-columns:1fr}.reader-panel{padding:22px}.page-frame img{height:auto;max-height:65vh;min-height:240px}.reading-text{font-size:26px}.reader-panel .button{font-size:14px}.page-dots{margin-bottom:28px}.welcome-dialog[open]{display:block;width:390px}.welcome-art{display:none}.welcome-form{padding:32px 27px}.welcome-form .eyebrow{font-size:8px}.recording-row{grid-template-columns:1fr}.history-icon{display:none}.history-item{flex-wrap:wrap}.history-main h3{font-size:22px}.history-item .button{margin-left:auto}.history-detail{padding:22px}.form-grid{grid-template-columns:1fr}.upload-row{grid-template-columns:70px 1fr}.upload-row img{width:70px;height:90px}.admin-panel{padding:21px}.section-heading{align-items:start}.message-dialog{padding:30px 24px}.profile-heading h1{font-size:29px}.profile-avatar{width:65px;height:65px;font-size:32px}}

/* Phone reading: controls stay beside the picture, without narrowing the book. */
.mobile-listening{display:none}.reader-grid>div,.reader-panel,.book-card{min-width:0}.book-info h3,.reader-header h1,.breadcrumb{overflow-wrap:anywhere}
@media(max-width:600px){
html{-webkit-text-size-adjust:100%}main{padding:24px 16px calc(35px + env(safe-area-inset-bottom,0px))}
.reader-grid{grid-template-columns:minmax(0,1fr)}.reader-header{flex-wrap:wrap}.reader-header h1{font-size:28px}.reader-header .segmented{width:100%;display:flex}.segmented button{flex:1;min-height:44px}
.mobile-listening{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:8px}.mobile-listening .button{min-height:44px;font-size:12px;padding:9px 12px}.mobile-listening>span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.page-frame{padding:8px}.page-frame img{height:auto;min-height:0;max-height:62vh;max-height:62svh;width:100%;object-fit:contain}.page-navigation{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:5;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:7px;gap:5px}.page-navigation .button{min-height:44px;padding:9px;font-size:12px}.page-number{font-size:11px;white-space:nowrap}
.page-dot{width:38px;height:38px}.reader-panel{padding:20px}.recording-dock{bottom:calc(10px + env(safe-area-inset-bottom,0px));width:calc(100% - 20px)}.recording-dock .button{min-height:44px}.is-recording .page-navigation{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
input,select,textarea{font-size:16px}.brand-title{letter-spacing:1px}.site-header{padding:10px 14px}.book-grid{gap:12px}.book-cover{padding:9px}.book-info{padding:12px}.welcome-dialog[open]{max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:auto}.welcome-form{padding:28px 22px}
}
@media(max-width:360px){.brand-divider{display:none}.logo-crop{width:100px}.brand-title{font-size:12px}.site-header nav{gap:25px}.page-navigation .button{padding:8px 6px;font-size:11px}}

/* Personal account access and explicit teacher-only management. */
.entry-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0 24px}.entry-choices>a{grid-column:1/-1}.entry-choices .button{min-height:44px;padding:11px 8px;font-size:13px;text-align:center}.entry-choices .active{background:var(--navy);color:white}.reading-code{display:block;padding:18px 12px;margin:18px 0;background:#eee9df;border:1px solid var(--line);border-radius:8px;color:var(--navy);font:600 17px/1.8 ui-monospace,monospace;letter-spacing:1px;overflow-wrap:anywhere;user-select:all}.reading-code-panel{margin-top:30px;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:10px}.student-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:160px}.danger-outline{border-color:#b26b62;color:#914d44}.danger-solid{background:#914d44;color:white;border-color:#914d44}.message-dialog{max-height:calc(100dvh - 32px);overflow:auto}.hidden{display:none!important}
