:root{--paper:#f7f8f3;--white:#fff;--ink:#263e35;--muted:#788179;--green:#416c54;--line:#e1e6dc;--orange:#bb6954;--soft:#eef3e9;--red:#ac4b40;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;-webkit-text-size-adjust:100%}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;font-size:15px;line-height:1.6}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button,input{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #b37649;outline-offset:4px}button{border:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.4}a,button{touch-action:manipulation}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:8px;left:8px;z-index:20;background:white;padding:12px}main:focus{outline:none}.site-header{border-bottom:1px solid var(--line);background:rgba(247,248,243,.95)}.header-inner{max-width:1160px;margin:auto;height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:19px;letter-spacing:1px}.brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:44px;background:var(--green);color:#fff9e9;border-radius:12px 12px 15px 5px;font-family:serif;font-size:30px;line-height:1}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:2px;margin-top:1px}.header-note{font-family:serif;letter-spacing:2px;font-size:13px}.header-note span{font-family:sans-serif;display:block;color:var(--muted);font-size:10px;text-align:right;letter-spacing:1px;margin-top:2px}main{max-width:1160px;padding:0 28px;margin:0 auto;min-height:calc(100vh - 202px)}.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:368px;padding:52px 0 45px;gap:32px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;display:flex;align-items:center;gap:9px}.eyebrow>span{width:6px;height:6px;background:var(--orange);border-radius:50%}.hero h1{font-size:48px;letter-spacing:2px;line-height:1.38;font-weight:650;margin:19px 0}.serif-green{font-family:"Songti SC","Noto Serif CJK SC",serif;color:var(--green);position:relative}.serif-green:after{content:"";position:absolute;bottom:-5px;left:1px;width:92%;height:7px;border-top:2px solid #a8b794;border-radius:50%;transform:rotate(-4deg)}.hero-copy>p{color:var(--muted);max-width:365px;font-size:13px;line-height:1.9}.text-link{display:inline-flex;align-items:center;gap:25px;border-bottom:1px solid #b5c3af;padding:12px 0 5px;margin-top:10px;font-size:12px;font-weight:600}.hero-art{height:290px;position:relative;display:flex;align-items:center;justify-content:center}.orbit{position:absolute;border:1px solid #dce4d5;border-radius:50%;width:290px;height:240px;transform:rotate(-20deg)}.orbit-two{width:340px;height:200px;transform:rotate(30deg)}.note-paper{position:relative;width:230px;height:255px;transform:rotate(7deg);padding:26px;background:#fffef7;border:1px solid #e5e3d5;box-shadow:8px 10px 0 #e6ebdf,0 14px 30px #2d49300a}.note-paper:before{content:"";width:85px;height:23px;background:#d7dfc7b3;position:absolute;top:-10px;left:70px;transform:rotate(-8deg)}.note-label{font-size:9px;letter-spacing:3px;color:var(--muted)}.note-title{font-size:22px;font-family:"Songti SC","Hiragino Mincho ProN",serif;line-height:1.7;display:block;margin-top:17px;letter-spacing:1px}.note-translation{display:block;font-size:9px;color:#8d9784;margin-top:11px}.note-line{width:105px;border-top:1px solid #d7dfce;margin-top:20px}.note-stamp{position:absolute;right:23px;bottom:20px;color:#b96850;border:1px solid #b96850;border-radius:3px;font-family:serif;font-size:14px;padding:2px 5px;line-height:1.2;transform:rotate(-6deg)}.art-spark{position:absolute;right:32px;top:38px;font-size:55px;font-weight:200;color:#b9c8a8}.art-caption{position:absolute;bottom:-6px;right:70px;font-size:8px;letter-spacing:3px;color:#8c9983}.library{padding-top:28px;border-top:1px solid var(--line);scroll-margin-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.muted{color:var(--muted);font-size:9px}.section-heading h2{font-size:21px;font-weight:600;margin-top:9px;letter-spacing:.5px}.count{font-size:12px;color:var(--muted);white-space:nowrap}.library-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:23px 0}.filters{display:flex;gap:7px;flex-wrap:wrap}.filter{padding:8px 21px;border-radius:30px;background:transparent;color:#7a837b;min-height:44px;font-size:12px}.filter.active{background:var(--ink);color:white}.filter:not(.active):hover{background:#e9eee3}.search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:0 13px;border-radius:9px;height:44px;width:220px}.search>span:first-child{font-size:25px;line-height:1;color:var(--muted)}.search input{width:100%;background:none;border:0;min-width:0;font-size:12px;padding:9px 0;outline-offset:0}.search input::placeholder{color:#929a91}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.book-card{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}.book-card:hover{transform:translateY(-4px);box-shadow:0 10px 28px #293d3010}.card-visual{position:relative;height:185px;display:flex;align-items:center;justify-content:center;overflow:hidden}.sage{--cover-bg:#c2d1b3;--cover-ink:#3a5b42;--visual:#eaf0e3}.sand{--cover-bg:#e2d5ad;--cover-ink:#78633d;--visual:#f3f0e4}.rose{--cover-bg:#e2bfb4;--cover-ink:#8a554e;--visual:#f4e9e4}.blue{--cover-bg:#bdced3;--cover-ink:#48646e;--visual:#e6eef0}.card-visual{background:var(--visual)}.volume{position:absolute;top:15px;left:15px;font-size:8px;color:var(--cover-ink);letter-spacing:1px;opacity:.65}.visual-caption{position:absolute;bottom:13px;right:13px;font-size:8px;color:var(--cover-ink);letter-spacing:2px;opacity:.7}.book-cover{width:113px;height:145px;background:var(--cover-bg);color:var(--cover-ink);position:relative;border-radius:2px 6px 6px 2px;box-shadow:5px 7px 0 -3px #fff9,9px 13px 16px #33432a19;transform:rotate(-8deg);padding:17px 13px 12px 20px;border-right:2px solid #fff8;display:flex;flex-direction:column}.book-cover:before{content:"";position:absolute;left:8px;top:0;bottom:0;border-left:1px solid #ffffff55;border-right:1px solid #00000009}.cover-top{font-size:5px;letter-spacing:1px}.cover-word{font-family:"Songti SC","Hiragino Mincho ProN",serif;font-size:30px;letter-spacing:3px;margin-top:16px;white-space:nowrap;overflow:hidden}.cover-rule{width:24px;border-top:1px solid var(--cover-ink);opacity:.6;margin-top:11px}.cover-bottom{display:flex;justify-content:space-between;align-items:end;font-size:14px;margin-top:auto;font-family:serif}.cover-bottom>span{font-size:6px;letter-spacing:1px}.sand .book-cover{transform:rotate(7deg)}.rose .book-cover{transform:rotate(-5deg)}.blue .book-cover{transform:rotate(7deg)}.card-content{padding:18px 16px 0;display:flex;flex:1;flex-direction:column}.card-tags{font-size:9px;color:var(--muted);display:flex;gap:7px;align-items:center}.level{padding:2px 6px;border-radius:4px;background:#edf1e9;color:var(--green);font-weight:600}.soon{margin-left:auto;color:#968b6d}.card-content h3{font-size:16px;margin:11px 0 8px;font-weight:600}.card-content>p{color:var(--muted);font-size:11px;line-height:1.85;margin-bottom:20px}.card-bottom{margin-top:auto;padding:13px 0;border-top:1px solid #eef0e9;display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:9px;color:var(--muted)}.dot{margin:0 5px}.card-go{color:var(--green);font-weight:600}.study-note{display:flex;align-items:center;gap:16px;border:1px dashed #d3ddc9;border-radius:12px;padding:20px 24px;margin:32px 0 55px}.note-icon{font-size:32px;color:#8f9d7d}.study-note strong{font-size:12px;font-weight:600}.study-note p{font-size:11px;color:var(--muted);margin-top:3px}.study-note-end{margin-left:auto;font-family:serif;font-size:12px;letter-spacing:2px;color:#99a58f}.site-footer{border-top:1px solid var(--line);max-width:1104px;margin:0 auto;padding:24px 0 30px;display:flex;justify-content:space-between;font-size:10px;color:#90988b;gap:12px}.breadcrumb{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted);padding:25px 0}.breadcrumb a{min-height:36px;display:inline-flex;align-items:center}.breadcrumb>span{display:flex;align-items:center}.breadcrumb a:hover{color:var(--green)}.book-intro{display:flex;align-items:center;gap:38px;padding:18px 22px 42px}.mini{flex-shrink:0;width:120px;height:153px}.book-intro h1{font-size:30px;margin:12px 0}.book-intro p{color:var(--muted);margin-bottom:13px}.chapter-heading{padding-bottom:19px;border-bottom:1px solid var(--line)}.chapter-list{margin-bottom:65px}.chapter-row{display:flex;align-items:center;gap:24px;padding:28px 12px;border-bottom:1px solid var(--line)}.chapter-number{font-family:serif;color:#a5b49a;font-size:30px;min-width:40px}.chapter-info{flex:1}.chapter-info h3{font-size:18px;font-weight:600}.chapter-info p{font-size:13px;color:var(--muted);margin:5px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:13px 24px;min-height:48px;border-radius:10px;font-size:14px;font-weight:600;border:1px solid transparent;line-height:1.5;text-align:center}.primary{color:white;background:var(--green)}.primary:hover{background:#315540}.secondary{background:#fff;border-color:#d9e2d2;color:var(--green)}.secondary:hover{background:var(--soft)}.pending-label{color:var(--muted);font-size:13px}.empty{grid-column:1/-1;text-align:center;padding:55px 20px;max-width:100%;}.empty h2,.empty h3{font-size:20px;margin:18px 0 8px}.empty p{color:var(--muted);margin:12px 0 22px}.empty-mark{display:inline-flex;justify-content:center;align-items:center;width:56px;height:56px;border:1px solid #d6decd;border-radius:50%;font-family:serif;font-size:24px;color:var(--green)}.loading{text-align:center;padding:140px 20px;color:var(--muted)}.error-page{padding-top:90px}.error-detail{font-size:12px;overflow-wrap:anywhere}.quiz-width{max-width:760px;margin:auto}.quiz-heading{padding:13px 0 26px}.quiz-heading h1{font-size:30px;margin:10px 0}.quiz-heading p{color:var(--muted);font-size:14px}.progress-block{margin:0 0 28px;font-size:12px}.progress-block>div{display:flex;justify-content:space-between;gap:12px;color:var(--muted)}progress{display:block;width:100%;height:5px;border:0;background:#e3e9dd;border-radius:5px;margin-top:13px;overflow:hidden}progress::-webkit-progress-bar{background:#e3e9dd}progress::-webkit-progress-value{background:#6d8b5b}progress::-moz-progress-bar{background:#6d8b5b}.question{min-inline-size:0;position:relative;background:white;border:1px solid var(--line);border-radius:16px;padding:24px;margin:0 0 24px}.question legend{float:left;width:100%;display:flex;align-items:center;gap:10px;padding:0;margin-bottom:18px}.question legend+*{clear:both}.question-number{font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--green)}.question-id{font-size:10px;color:#929b8d;margin-left:auto}.question-prompt{font-size:18px;font-weight:550;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:20px}.options{display:grid;gap:10px}.option{position:relative;display:flex;align-items:center;gap:14px;min-height:56px;border:1px solid #e3e7df;border-radius:10px;padding:12px 14px;cursor:pointer;background:#fff;transition:background .15s,border-color .15s}.option input{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}.option:focus-within{outline:3px solid #b37649;outline-offset:3px}.option.selected{border-color:#739162;background:#f0f5e9}.option-letter{display:flex;align-items:center;justify-content:center;min-width:28px;height:28px;background:#f2f4ee;color:#8a9483;border-radius:7px;font-family:Georgia,serif;font-size:14px}.option.selected .option-letter{background:var(--green);color:white}.option-text{font-size:16px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap;flex:1;min-width:0}.option-check{font-size:19px;font-weight:600;min-width:14px}.option.selected .option-check:empty:after{content:'✓';color:var(--green)}.passage{border-left:3px solid #becdad;background:#f7f8f3;border-radius:0 8px 8px 0;padding:18px;font-size:16px;line-height:2.1;margin-bottom:22px;white-space:pre-wrap;overflow-wrap:anywhere}.passage-label{display:block;font-size:10px;letter-spacing:2px;color:var(--muted);margin-bottom:8px}.quiz-actions{padding:5px 0 42px;text-align:center}.quiz-actions>p{font-size:12px;color:var(--muted);margin:0 0 17px;min-height:20px}.action-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.quiz-actions .primary{min-width:230px}.needs-answer{border:2px solid #c98557}.result{border:1px solid #d5dfca;border-radius:18px;background:#ecf2e5;padding:28px;margin-bottom:28px}.result-heading h2{font-size:23px;margin:12px 0 8px}.result-heading p{font-size:13px;color:var(--muted)}.score-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:25px;padding-top:22px;border-top:1px solid #d6e1ca;text-align:center}.score-grid>div+div{border-left:1px solid #d6e1ca}.score-grid strong{display:block;font-size:32px;font-weight:500;font-family:Georgia,serif;line-height:1.3}.score-grid strong small{font-size:17px}.score-grid span{font-size:11px;color:var(--muted)}.good-text{color:var(--green)}.bad-text{color:var(--red)}.status{font-size:11px;border-radius:5px;padding:2px 6px;white-space:nowrap}.good{color:var(--green);background:#eff5e9}.bad{color:var(--red);background:#fbece7}.question.is-wrong{border-color:#d29b90;border-left:4px solid #b96151}.question.is-correct{border-color:#ccd9c1}.is-correct .option,.is-wrong .option{cursor:default}.option input:disabled{cursor:default}.option.correct-option{border-color:#9eb58b;background:#f0f5e9}.option.correct-option .option-letter{color:white;background:var(--green)}.option.correct-option .option-check{color:var(--green)}.option.wrong-option{border-color:#d4a095;background:#fff3ef}.option.wrong-option .option-letter{background:#b96151;color:white}.option.wrong-option .option-check{color:var(--red)}.answer-detail{margin-top:22px;border-top:1px dashed #dfe5d8;padding-top:18px}.answer-line{display:flex;gap:12px 25px;flex-wrap:wrap;font-size:12px;color:var(--muted);line-height:1.8}.answer-line strong{margin-left:5px;font-weight:600}.answer-detail h3{font-size:12px;margin:18px 0 6px;letter-spacing:2px}.answer-detail p{font-size:14px;line-height:1.9;color:#64715f;white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:900px){.quiz-width .breadcrumb{padding-top:32px}.quiz-heading{padding-top:20px}.book-intro{padding-top:28px}}
@media(max-width:1000px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-visual{height:200px}.card-content h3{font-size:18px}.card-content>p{font-size:13px}.card-bottom{font-size:11px}.card-content{padding:20px 20px 0}.card-tags{font-size:11px}.study-note-end{display:none}.site-footer{margin:0 28px}.hero h1{font-size:43px}.hero-art{transform:scale(.9)}}
@media(max-width:600px){body{font-size:15px}.header-inner{height:77px;padding:0 20px}.brand{font-size:17px;gap:10px}.brand-mark{width:36px;height:39px;font-size:26px}.brand small{font-size:9px}.header-note{font-size:10px;letter-spacing:1px}.header-note span{font-size:8px}main{padding:0 20px;min-height:calc(100vh - 184px)}.hero{min-height:0;grid-template-columns:1fr;padding:31px 0 30px;position:relative;gap:0}.hero h1{font-size:37px;margin:15px 0 19px;letter-spacing:1px}.hero .eyebrow{font-size:8px;letter-spacing:1.5px}.hero-copy>p{max-width:280px;font-size:12px;line-height:1.9}.hero-art{position:absolute;right:-16px;top:12px;width:150px;height:190px;transform:scale(.59);transform-origin:right center;pointer-events:none;opacity:.86}.hero-art .orbit{width:220px;height:200px}.hero-art .orbit-two{width:250px;height:170px}.hero-art .note-paper{min-width:210px}.hero-art .art-caption{display:none}.hero-art .art-spark{right:-30px;top:-8px}.hero-copy{position:relative;z-index:1}.hero-copy h1{max-width:250px}.hero-copy>p{padding-right:8px}.text-link{font-size:12px;margin-top:9px}.section-heading h2{font-size:19px;max-width:240px}.section-heading .count{font-size:10px}.section-heading{align-items:center}.section-heading .eyebrow{font-size:8px}.library{padding-top:24px}.library-tools{margin:18px 0;gap:9px}.filter{padding:8px 15px;font-size:12px;min-height:44px}.filters{gap:3px}.search{width:145px;padding:0 9px}.search input{font-size:12px}.search>span:first-child{font-size:23px}.book-grid{gap:14px;grid-template-columns:1fr}.book-card{display:grid;grid-template-columns:116px 1fr;border-radius:13px}.card-visual{height:auto;min-height:183px}.volume{top:11px;left:10px;font-size:6px}.visual-caption{font-size:6px;bottom:10px;right:10px}.card-visual .book-cover{width:79px;height:109px;padding:12px 8px 9px 14px}.card-visual .cover-top{font-size:3.5px;letter-spacing:.5px}.card-visual .cover-word{font-size:23px;letter-spacing:1px;margin-top:12px}.card-visual .cover-rule{margin-top:8px;width:18px}.card-visual .cover-bottom{font-size:12px}.card-visual .cover-bottom>span{font-size:5px}.card-content{padding:17px 14px 0;min-width:0}.card-tags{font-size:9px;gap:6px}.card-content h3{font-size:16px;margin:10px 0 6px}.card-content>p{font-size:11px;line-height:1.8;margin-bottom:15px}.card-bottom{font-size:9px;padding:11px 0;gap:3px}.card-go{white-space:nowrap}.study-note{padding:17px 15px;gap:12px;margin:24px 0 34px}.study-note p{font-size:11px}.note-icon{font-size:24px}.site-footer{margin:0 20px;padding:20px 0 calc(25px + env(safe-area-inset-bottom));display:block;font-size:9px}.site-footer>span{display:block}.site-footer>span+span{margin-top:3px}.breadcrumb{font-size:11px;gap:8px;padding:17px 0}.book-intro{padding:18px 0 30px;gap:24px;align-items:flex-start}.book-intro .mini{width:88px;height:122px;padding:13px 9px 10px 16px;margin:8px 0 0 4px}.mini .cover-word{font-size:24px}.mini .cover-top{font-size:4px}.book-intro h1{font-size:23px;margin:8px 0}.book-intro p{font-size:12px;margin-bottom:10px}.book-intro .eyebrow{font-size:9px}.book-intro .count{font-size:10px}.chapter-heading h2{font-size:19px}.chapter-row{display:grid;grid-template-columns:30px 1fr;gap:10px 15px;padding:22px 0}.chapter-number{font-size:25px;align-self:start;line-height:1.3;min-width:0}.chapter-info h3{font-size:17px}.chapter-info p{font-size:12px}.chapter-row>.button,.chapter-row>.pending-label{grid-column:2;justify-self:start;margin-top:3px}.chapter-row .button{font-size:12px;min-height:44px;padding:10px 17px}.chapter-list{margin-bottom:35px}.quiz-heading{padding:10px 0 22px}.quiz-heading h1{font-size:26px}.quiz-heading p{font-size:13px}.quiz-heading .eyebrow{font-size:9px}.progress-block{font-size:10px;margin-bottom:22px}.question{padding:18px 15px;border-radius:13px;margin-bottom:18px}.question legend{gap:6px;flex-wrap:wrap;margin-bottom:14px}.question-number{font-size:9px;letter-spacing:1px}.question-id{font-size:9px}.status{font-size:10px}.question-prompt{font-size:17px;line-height:1.9;margin-bottom:18px}.option{padding:12px;gap:10px;min-height:56px}.option-text{font-size:16px}.option-letter{min-width:27px;height:27px}.option-check{min-width:10px;font-size:16px}.passage{font-size:16px;padding:14px;line-height:2}.answer-line{display:grid;gap:7px}.answer-detail p{font-size:14px}.quiz-actions{padding:8px 0 calc(30px + env(safe-area-inset-bottom))}.quiz-actions .action-buttons{flex-wrap:nowrap}.quiz-actions .primary{min-width:0;flex:1}.quiz-actions .button{padding:14px 17px;font-size:14px}.result{padding:22px 16px;margin-bottom:22px}.result-heading h2{font-size:21px}.result-heading p{font-size:12px}.score-grid{margin-top:22px;padding-top:18px}.score-grid strong{font-size:28px}.score-grid span{font-size:10px}.empty{padding:40px 12px}.empty h1{font-size:23px}}
@media(max-width:360px){main{padding:0 15px}.header-inner{padding:0 15px}.hero-art{opacity:.5;right:-7px;transform:scale(.48)}.hero-copy>p{max-width:250px}.book-card{grid-template-columns:100px 1fr}.card-content{padding:14px 11px 0}.card-content h3{font-size:15px}.library-tools{flex-wrap:wrap}.search{width:100%}.hero h1{font-size:34px}.card-bottom{font-size:8px}.section-heading h2{max-width:200px;font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media(max-width:600px){.hero{overflow:hidden}.hero-art{right:0;top:8px}.hero-art .note-paper{min-width:225px}.note-title{font-size:21px}.hero-copy>p{max-width:260px}}
/* One-question mode: existing palette and question cards, one navigation surface. */
.single-quiz{padding-bottom:110px;padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}.quiz-top{position:sticky;top:0;z-index:3;background:var(--paper);padding:12px 0 15px;border-bottom:1px solid var(--line);margin-bottom:16px}.quiz-top:focus{outline:none}.quiz-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.quiz-title-row h1{font-size:23px;overflow-wrap:anywhere}.quiz-title-row .button{flex-shrink:0;padding:9px 14px;min-height:44px}.quiz-progress{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-top:12px}.quiz-message,.storage-notice{font-size:13px;line-height:1.7;margin:12px 0;color:var(--orange);overflow-wrap:anywhere}.quiz-message:empty,.storage-notice:empty{display:none}.quiz-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:800px;z-index:4;display:flex;gap:12px;padding:12px 20px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -5px 20px #263e3506}.quiz-nav .button{flex:1;min-width:0;padding:13px 10px}.single-quiz button:disabled{opacity:.45;cursor:default}.review-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:15px 0}.review-tools .button{padding:9px 14px;min-height:44px}.summary-actions{display:flex;flex-wrap:wrap;gap:12px}.summary-actions .button{flex:1 1 220px}.quiz-backdrop{position:fixed;inset:0;z-index:30;background:#243c3559;display:flex;align-items:center;justify-content:center;padding:20px;padding-top:calc(20px + env(safe-area-inset-top,0px));padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}.quiz-dialog{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:24px;width:100%;max-width:500px;max-height:85vh;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 20px 70px #263e3526}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.quiz-dialog h2{font-size:21px}.dialog-close{width:44px;min-height:44px;border-radius:50%;background:var(--soft);font-size:25px}.quiz-dialog p{font-size:14px;line-height:1.8;margin:12px 0;color:var(--muted)}.card-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--muted);margin:16px 0}.answer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:10px;margin:18px 0}.answer-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;min-width:0;border:1px solid #d2dccb;border-radius:9px;background:white;font-size:17px}.answer-cell small{font-size:10px;line-height:1.2}.answer-cell.answered,.answer-cell.correct{background:#e7efdf;color:var(--green)}.answer-cell.wrong{background:#faeae5;color:var(--red);border-color:#d4a095}.answer-cell.current{outline:2px solid var(--ink);outline-offset:2px}.dialog-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}.dialog-actions .button{width:100%}.reset-dialog p{margin:20px 0}.single-quiz .question-id{overflow-wrap:anywhere;min-width:0}.single-quiz .answer-line strong{overflow-wrap:anywhere}.single-quiz .question{margin-top:8px}
@media(max-width:600px){.quiz-title-row h1{font-size:20px}.quiz-top{padding-top:10px}.quiz-backdrop{padding-left:16px;padding-right:16px}.quiz-dialog{padding:18px}.answer-grid{gap:9px}.single-quiz .breadcrumb{padding:10px 0}.quiz-title-row .button{font-size:12px}.quiz-progress{font-size:12px}}
.access-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 24px;padding:15px 18px;border:1px solid #d5dfca;border-radius:12px;background:#f0f5e9;color:var(--green)}
.access-summary strong{font-size:14px}.access-summary span{font-size:12px;color:var(--muted)}.access-summary.is-full{background:#edf3ea}
.chapter-row.is-locked{background:linear-gradient(90deg,transparent,#f4f1e8 50%,transparent)}.chapter-row.is-locked .chapter-number{color:#c2bca9}
.access-lock{text-align:center;background:#fff;border:1px solid #d9e2d2;border-radius:18px;padding:38px 28px;margin:14px 0 24px}.access-lock-mark{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin:0 auto 18px;border-radius:50%;background:#edf2e8;color:var(--green);font-size:25px}.access-lock h2{font-size:25px;margin:10px 0}.access-lock>p{color:var(--muted);font-size:14px}.access-unlock{max-width:440px;margin:25px auto 0;padding:18px;border-radius:12px;background:var(--soft);border:1px solid #cdd9c4;display:grid;gap:10px;text-align:left}.access-unlock label{font-size:13px;font-weight:700;color:var(--ink)}.access-unlock input{width:100%;min-height:48px;border:1px solid #c9d3c3;border-radius:10px;background:#fff;color:var(--ink);font:inherit;padding:10px 13px}.access-unlock input:focus{outline:3px solid rgba(89,112,73,.18);border-color:var(--green)}.access-unlock .button{width:100%;margin-top:2px}.access-unlock p{font-size:12px;color:var(--muted);margin:0;text-align:center}.access-unlock.compact{width:100%;margin:10px 0 0}.answer-cell.locked{background:#f2f0e9;color:#999282;border-style:dashed}.answer-cell.locked:hover{background:#ece8dd}
@media(max-width:600px){.access-summary{align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:18px}.access-lock{padding:30px 18px}.access-lock h2{font-size:22px}.access-lock .button{width:100%}}

/* Imported exam formatting; preserve the existing palette and navigation. */
.ordering-slot{display:inline-block;width:3em;min-width:3em;text-align:center;border-bottom:1px solid currentColor;line-height:1.3;margin:0 .18em;white-space:nowrap}.question-prompt u,.option-text u{text-decoration-thickness:1px;text-underline-offset:.18em}.shared-passage{margin:0 0 20px}.shared-passage summary{cursor:pointer;min-height:44px;padding:10px 12px;color:var(--green);background:var(--soft);border-radius:8px}.shared-passage .passage{margin-top:12px;white-space:pre-wrap;overflow-wrap:anywhere}

/* Past-paper collection pages reuse the existing workbook language. */
.section-label{flex-basis:100%;display:block;color:var(--ink);font-size:13px;font-weight:650;letter-spacing:.04em;margin-bottom:4px}.session-list .chapter-info h3,.practice-group-list .chapter-info h3{font-size:19px}.session-intro .book-cover{transform:rotate(-5deg)}
@media(max-width:600px){.section-label{font-size:12px}.session-list .chapter-info h3,.practice-group-list .chapter-info h3{font-size:17px}}
