:root{color-scheme:light;--ink:#283b33;--body:#35463e;--muted:#5e6b60;--forest:#2d604d;--forest-dark:#204936;--sage:#eaf0e4;--border:#d9dfd2;--line:#e3e6dc;--cream:#f8f8f1;--paper:#fffefa;--apricot:#a85d35;--sans:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,"Noto Sans JP",system-ui,sans-serif;--serif:"Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;font:100%/1.65 var(--sans);color:var(--body);background:var(--cream);font-synthesis:weight}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button,a,select,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #aa672a;outline-offset:3px}button{border:0;background:none}h1,h2,h3,h4,p,fieldset{margin:0}fieldset{border:0;padding:0;min-width:0}legend{padding:0}img{max-width:100%}a{color:var(--forest)}.icon{flex-shrink:0;vertical-align:middle}.skip{position:fixed;top:-8rem;left:1rem;z-index:99;background:white;padding:.5rem}.skip:focus{top:.5rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}.loading{max-width:65ch;margin:12vh auto;padding:1rem}
.topbar{height:74px;background:#fffef9;border-bottom:1px solid var(--border)}.topinner{height:100%;max-width:1352px;margin:auto;padding:0 clamp(24px,4.8vw,72px);display:flex;align-items:center;gap:clamp(22px,4vw,62px)}.brand{display:inline-flex;align-items:center;gap:12px;white-space:nowrap;padding:0;color:#2c493c;font-size:1.3rem;font-weight:750;letter-spacing:.035em}.brand img{width:39px;height:39px}.topnav,.header-end{display:flex;align-items:center;height:100%;gap:25px}.topnav button,.headlink{height:100%;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:.93rem;font-weight:620;white-space:nowrap;padding:0 2px;position:relative;color:#5b675d}.topnav button[aria-current=page]{color:var(--forest)}.topnav button[aria-current=page]:after{content:"";height:3px;position:absolute;bottom:0;left:0;right:0;background:var(--forest);border-radius:4px 4px 0 0}.header-end{margin-left:auto;gap:20px}.privacy{display:inline-flex;align-items:center;gap:6px;font-size:.79rem;letter-spacing:.04em;color:#53634f;background:#eff2e8;border:1px solid #d9e0d1;border-radius:30px;padding:3px 11px;font-weight:650}.wrap{max-width:1352px;margin:auto;padding:28px clamp(24px,4.8vw,72px) 45px}.banner{isolation:isolate;overflow:hidden;position:relative;background:#ebefdf;border:1px solid #d8dfcb;border-radius:17px;min-height:175px;display:flex;align-items:center;padding:25px clamp(26px,3.5vw,52px)}.banner:before{content:"";z-index:-1;position:absolute;inset:0;background:radial-gradient(ellipse at 62% 82%,#f4f3dd99,transparent 53%),url("assets/grain.svg");opacity:.72;pointer-events:none}.banner-art{position:absolute;z-index:-1;height:116%;width:42%;right:4%;bottom:-8%;object-fit:contain;pointer-events:none;transform:rotate(-3deg)}.banner-copy{max-width:67%}.eyebrow{color:#556a4c;font-size:.81rem;font-weight:650;letter-spacing:.13em;display:flex;align-items:center;gap:10px}.eyebrow:before{content:"";display:block;width:25px;height:1.5px;background:#899a72}.banner h1{font:700 clamp(2.1rem,3.25vw,3.2rem)/1.32 var(--serif);color:#263f30;letter-spacing:.06em;margin:.23rem 0 .38rem}.banner p{font-size:.98rem;letter-spacing:.03em;color:#4f604e}
.workgrid{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(306px,1fr);align-items:start;gap:24px;margin-top:24px}.panel{border:1px solid var(--border);background:var(--paper);border-radius:16px;box-shadow:0 3px 9px #47533906;min-width:0}.config{padding:23px 27px 24px}.panel-title{display:flex;align-items:center;gap:11px;font-size:1.24rem;line-height:1.4;font-weight:730;letter-spacing:.04em;color:var(--ink)}.panel-title>.icon{color:var(--forest)}.title-mark{width:33px;height:33px;display:inline-grid;place-items:center;border-radius:10px;background:var(--sage);color:var(--forest);flex-shrink:0}.config .panel-title{margin-bottom:20px}.field{display:flex;flex-direction:column;min-width:0}.field>label,.field-name,legend{font-size:.94rem;font-weight:680;letter-spacing:.035em;color:#374739}.field>label,.field>legend,fieldset>legend{margin-bottom:8px}.as-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.subtle{font-weight:450;font-size:.78rem;color:var(--muted);letter-spacing:.02em}.modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode-tile{padding:12px 12px 11px;position:relative;min-height:100px;text-align:left;border:1px solid var(--border);background:#fffefb;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.mode-tile .mode-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#816343;background:#f6ecd9}.mode-tile:nth-child(2) .mode-icon{background:#f5e9e0;color:#a0603b}.mode-tile:nth-child(3) .mode-icon{background:#e9eee3;color:#60754f}.mode-tile[aria-pressed=true]{border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest);background:#eff4e9}.mode-tile[aria-pressed=true] .mode-icon{background:var(--forest);color:white}.mode-tile strong{font-size:1rem;line-height:1.4;letter-spacing:.02em}.mode-tile small{font-size:.79rem;color:#5d685e;line-height:1.55}.pick-mark{border:1.3px solid #b8c2b2;border-radius:50%;height:15px;width:15px;display:grid;place-items:center;position:absolute;right:11px;top:12px}.mode-tile[aria-pressed=true] .pick-mark{background:var(--forest);border-color:var(--forest);color:white}
.formarea{display:grid;grid-template-columns:1fr 1fr;column-gap:23px;row-gap:17px;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.wide{grid-column:1/-1}.selectwrap{position:relative;min-width:0}.selectwrap>.icon{position:absolute;right:13px;top:50%;transform:translateY(-50%);pointer-events:none;color:#5b685c}.seg,.form-checks,.stepper{display:flex;gap:0}.seg{border:1px solid #cfd6c9;border-radius:7px;background:#f7f8f1;padding:3px;min-height:43px;align-items:stretch}.seg button{flex:1;min-width:0;white-space:nowrap;font-size:.89rem;line-height:1.25;padding:5px 6px;border-radius:4px;color:#58645a}.seg button[aria-pressed=true]{background:#e2ebda;box-shadow:0 0 0 1px #acc0a3;color:#324e3a;font-weight:700}.form-checks{gap:8px;flex-wrap:wrap}.check-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;background:white;border:1px solid #cfd6c9;border-radius:7px;font-size:.91rem;letter-spacing:.02em;padding:5px 14px}.check-box{display:inline-grid;place-items:center;width:16px;height:16px;border:1.2px solid #acb6a7;border-radius:4px;background:white}.check-btn[aria-pressed=true]{background:#eef3e7;border-color:#8fa789;color:#294f38;font-weight:620}.check-btn[aria-pressed=true] .check-box{background:var(--forest);border-color:var(--forest);color:white}.stepper{border:1px solid #cfd6c9;border-radius:7px;height:43px;max-width:200px;align-items:center;justify-content:space-between;overflow:hidden;background:white}.stepper button{height:100%;width:42px;display:grid;place-items:center;color:var(--forest);background:#f5f7ef}.stepper label{display:flex;align-items:center;justify-content:center;gap:1px}.stepper input{font-size:1rem;font-weight:650;width:3.5ch;text-align:center;padding:0;border:0;background:transparent;appearance:textfield;-moz-appearance:textfield;color:var(--ink)}input::-webkit-inner-spin-button{appearance:none}.stepper span{font-size:.83rem;color:var(--muted)}.field-note{margin-top:7px;color:var(--muted);font-size:.82rem}
.summary{padding:22px 23px 23px;position:sticky;top:14px}.summary-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.ghost-inline{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;color:var(--forest);font-weight:630;padding:5px 0}.preview-frame{margin:18px 0 16px;position:relative;background:#f3f0e2;border:1px solid #e5e2d4;border-radius:10px;padding:18px 21px 20px;isolation:isolate;overflow:hidden}.preview-frame:before{content:"";position:absolute;inset:0;background-image:url("assets/grain.svg");opacity:.55;z-index:-1}.preview-sample{background:#fffefa;position:relative;height:127px;border:1px solid #d9daca;border-radius:6px;box-shadow:2px 3px 5px #4952310c;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:22px 15px 17px}.preview-sample:before,.preview-sample:after{content:"";position:absolute;inset:0;border:1px solid #d8dbc9;border-radius:6px;background:#fafbf3;z-index:-1}.preview-sample:before{transform:rotate(-2.2deg) translate(-2px,3px)}.preview-sample:after{transform:rotate(1.4deg) translate(2px,3px);z-index:-2}.preview-sample>small{position:absolute;top:8px;left:12px;font-size:.72rem;font-weight:600;color:#6d7768;letter-spacing:.06em}.sample-words{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:750;color:#28382e;text-align:center;line-height:1.33;overflow-wrap:anywhere;max-width:100%}.sample-words span:first-child{font-size:clamp(1.65rem,2.65vw,2.6rem);letter-spacing:.06em}.sample-words span:not(:first-child){font-size:1rem}.sample-words.long span:first-child{font-size:1.28rem}.sample-words.many span:first-child{font-size:1.65rem}.sample-picture{height:89px;max-width:80%;object-fit:contain}.sample-number{position:absolute;bottom:5px;right:10px;font:500 .68rem/1.35 system-ui;color:#78816e;letter-spacing:.1em}.match-line{display:flex;align-items:center;gap:9px;line-height:1.4}.match-line>.icon{color:var(--forest)}.match-line strong{font-size:1.08rem;color:#354a38;font-weight:700}.match-line .num{font-size:1.35rem;font-family:ui-sans-serif,var(--sans);padding:0 2px}.match-note{color:var(--muted);font-size:.85rem;line-height:1.7;margin-top:4px}.summary-actions{display:grid;gap:9px;margin-top:17px}.btn{min-height:44px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 16px;font-size:.98rem;font-weight:660;line-height:1.55;letter-spacing:.025em}.primary{background:var(--forest);color:#fffef8;border:1px solid var(--forest)}.secondary{background:#fffefa;color:var(--forest);border:1px solid #91a58e}.neutral{border:1px solid var(--border);background:#f8f9f2;color:var(--body)}.summary-actions .btn{min-height:47px}.empty-sample{color:#697367;font-size:.88rem}.notice{display:flex;align-items:flex-start;gap:8px;background:#f4f0e6;color:#654e37;border:1px solid #e1d7c6;border-radius:8px;padding:10px 13px;margin:12px 0;font-size:.86rem}.notice .icon{margin-top:3px}.text-action{color:#426448;text-decoration:underline;text-underline-offset:3px;padding:0;font-size:inherit}.footer{display:flex;gap:10px;align-items:center;justify-content:space-between;max-width:1352px;margin:0 auto;color:#687365;font-size:.81rem;padding:0 clamp(24px,4.8vw,72px) 25px}.footer span{display:inline-flex;align-items:center;gap:7px}.footer:before{display:none}
@media(hover:hover){button:not(:disabled):is(.primary):hover{background:var(--forest-dark)}button:not(:disabled):is(.secondary,.neutral,.check-btn,.mode-tile,.seg button,.stepper button,.library-card):hover{border-color:#7d997e;background:#e9f0e1}.ghost-inline:hover,.headlink:hover,.topnav button:hover,.text-action:hover{color:#213f2e;text-decoration:underline;text-underline-offset:4px}}
.library-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:25px 0 16px}.library-bar .seg{width:min(100%,338px)}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.library-card{min-height:108px;padding:16px 19px;display:flex;align-items:center;gap:15px;text-align:left}.library-card img,.art-icon{width:68px;height:62px;object-fit:contain;flex-shrink:0;background:white;border:1px solid var(--line);border-radius:8px;padding:4px}.art-icon{display:grid;place-items:center;background:#edf1e5;color:var(--forest)}.library-card strong{display:block;font-size:1.08rem}.library-card small,.dim{color:var(--muted);font-size:.84rem}.library-card .tags{margin-top:5px;color:#64735c;font-size:.75rem}.library-detail{padding:10px 0;display:grid;gap:10px}.library-detail img{width:180px;justify-self:center}.library-detail dl{display:grid;grid-template-columns:max-content 1fr;gap:9px 18px;margin:4px 0}.library-detail dt{color:var(--muted)}.library-detail dd{margin:0;overflow-wrap:anywhere}
dialog{border:1px solid var(--border);border-radius:18px;width:min(550px,calc(100% - 28px));color:var(--body);background:var(--paper);padding:0;max-height:88dvh;box-shadow:0 15px 60px #18271c30}dialog::backdrop{background:#23382c68}.dialog-body{padding:23px 25px 26px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.dialog-heading h2{font-size:1.23rem;color:var(--ink)}.icon-btn{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;color:var(--muted);background:#f1f3e9}.guide{padding-left:1.6rem;display:grid;gap:14px;margin:0 0 17px}.guide li::marker{color:var(--forest);font-weight:700}.guide strong{display:block}.guide p{font-size:.9rem;color:var(--muted);margin-top:3px}.guide-foot{padding-top:13px;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}
.practice-layout{height:100dvh;display:flex;flex-direction:column}.practice-layout .topbar{flex-shrink:0}.practice-layout main{width:100%;max-width:1100px;margin:0 auto;padding:16px clamp(16px,5vw,65px) 12px;min-height:0;flex:1;display:flex;flex-direction:column}.progress-info{display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--muted);font-size:.9rem;font-weight:600}.progress-info b{font-size:1.15rem;color:var(--forest)}.progress-track{height:5px;background:#e0e6d8;border-radius:8px;margin:7px 0 13px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--forest)}.exercise-panel{min-height:0;flex:1;background:#fff;border:1px solid var(--border);border-radius:17px;display:flex;flex-direction:column;overflow:auto;padding:clamp(14px,2.5vw,30px);color:#1f2922}.exercise-prompt{text-align:center;font-size:clamp(1rem,1.8vw,1.25rem);color:#516054;font-weight:600;flex-shrink:0}.stimulus{margin:auto 0;min-height:min-content;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;padding:10px 3px;gap:8px;text-align:center;color:#1e2922;overflow-wrap:anywhere}.stimulus .word{font-size:clamp(2.3rem,6.8vw,5.7rem);line-height:1.32;letter-spacing:.04em;font-weight:750}.stimulus .word.long{font-size:clamp(1.85rem,4.5vw,3.9rem)}.stimulus .word.alt{font-size:clamp(1.28rem,3.35vw,2.85rem)}.practice-picture{width:min(47%,320px);height:clamp(70px,28vh,250px);object-fit:contain}.picture-answer{min-height:44px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;color:#223329;font-weight:700;font-size:1.45rem}.hint-row{min-height:40px;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:600;font-size:1.1rem}.hint-row mark{background:#f3e9ce;color:#584526;padding:3px 12px;border-radius:6px}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:auto 0 3px}.choice-button{min-height:52px;border-radius:9px;border:1.5px solid #c1cbbb;background:#fff;color:#17271d;font-weight:700;font-size:clamp(1.05rem,2.1vw,1.48rem);padding:8px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-wrap:anywhere}.choice-button[aria-pressed=true]{border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest);background:#eef4e8}.choice-button span+span{font-size:.8em}.response-line{min-height:28px;text-align:center;color:#415d47;font-size:.88rem}.practice-controls{padding:12px 0 max(2px,env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:12px;flex-shrink:0}.practice-controls .btn{min-height:52px}.finish-panel{max-width:620px;margin:5vh auto;padding:32px;text-align:center}.finish-symbol{background:var(--sage);color:var(--forest);width:65px;height:65px;margin:0 auto 14px;display:grid;place-items:center;border-radius:50%}.finish-panel h1{font-size:1.7rem;color:var(--ink)}.finish-panel p{margin:7px 0 16px;color:var(--muted)}.finish-panel .btn{width:100%;margin:5px 0}.demo-end{border-top:1px solid var(--line);padding-top:17px;margin-top:15px}.demo-end .ghost-inline{font-size:.88rem}
.pdf-view{max-width:1050px;margin:auto;padding:26px clamp(16px,4vw,45px) 44px}.sheet-bar{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin:0 0 15px}.sheet-bar h1{font-size:1.5rem;margin-right:auto;color:var(--ink)}.sheet-options{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:12px 16px;border:1px solid var(--border);border-radius:9px;background:var(--paper);margin-bottom:16px;font-size:.92rem}.sheet-options label{display:flex;align-items:center;gap:7px;font-weight:620}.sheet-options input{width:18px;height:18px;accent-color:var(--forest)}.sheet-pages{display:grid;gap:18px;justify-items:center}.sheet-pages canvas{display:block;width:min(100%,690px);height:auto;box-shadow:0 3px 16px #35462c19;border:1px solid var(--border);background:white}.pdf-state{text-align:center;padding:25px;color:var(--muted)}#print-root{display:none}.demo-label{background:#f7ead8;color:#785328;border-color:#e1caaa}
@media(min-width:1500px){.wrap{padding-top:34px}.banner{min-height:190px}.workgrid{margin-top:27px}.config{padding:27px 30px}.summary{padding:25px}.mode-tile{min-height:110px}}
@media(max-width:1000px){.topinner{gap:25px}.wrap{padding-inline:24px}.workgrid{gap:16px;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr)}.config,.summary{padding:19px}.mode-tile{padding:10px 8px;min-height:100px}.mode-tile small{font-size:.74rem}.formarea{column-gap:13px}.seg button{padding:5px 3px}.check-btn{padding:5px 9px}.banner{min-height:155px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.topbar{height:61px}.topinner{padding:0 16px;gap:16px}.brand{font-size:1.08rem;gap:7px}.brand img{width:33px;height:33px}.topnav,.header-end{gap:14px}.topnav button,.headlink{font-size:.84rem}.topnav .icon{display:none}.header-end{gap:12px}.wrap{padding:16px 16px 30px}.banner{min-height:146px;padding:20px 23px;border-radius:13px}.banner h1{font-size:2.22rem}.banner p{font-size:.85rem;max-width:26em}.banner .eyebrow{font-size:.73rem}.banner-art{width:34%;right:1%;height:109%}.workgrid{grid-template-columns:1fr;margin-top:16px;gap:16px}.summary{position:static}.summary .preview-frame{max-width:100%}.preview-sample{height:120px}.summary-actions{grid-template-columns:1fr 1fr}.footer{padding:0 16px 20px}.config .panel-title{margin-bottom:14px}.formarea{gap:14px}.library-grid{gap:9px}.library-card{padding:12px}.sheet-bar .btn{min-height:40px;padding:6px 12px}}
@media(max-width:560px){.topinner{gap:0}.topnav{margin-left:auto;gap:12px}.topnav button{font-size:.78rem}.header-end{margin-left:14px;gap:0}.headlink{width:30px}.headlink .txt,.header-end .privacy{display:none}.practice-layout .header-end,.topbar.compact .header-end{margin-left:auto}.topbar.compact .headlink{width:auto}.topbar.compact .headlink .txt{display:inline}.brand{font-size:1rem}.brand img{width:30px;height:30px}.banner{padding:17px 17px;min-height:143px}.banner-copy{max-width:68%}.banner p{line-height:1.65;font-size:.82rem}.banner h1{font-size:1.95rem}.banner-art{right:-4%;width:39%;height:85%;bottom:-2%}.config,.summary{padding:16px}.modes{gap:6px}.mode-tile{min-height:105px}.mode-tile strong{font-size:.88rem}.mode-tile small{font-size:.73rem}.pick-mark{width:13px;height:13px;right:7px;top:8px}.formarea{column-gap:12px}.seg button{font-size:.79rem}.check-btn{font-size:.82rem;padding:5px 8px;gap:5px}.form-checks{gap:5px}.summary-actions{grid-template-columns:1fr}.panel-title{font-size:1.12rem}.library-grid{grid-template-columns:1fr}.library-bar{flex-wrap:wrap;gap:8px}.library-bar .seg{width:100%}.footer{align-items:flex-start;flex-direction:column;gap:3px}.practice-controls{gap:7px}.practice-controls .btn{min-height:48px;padding:8px 4px}.exercise-panel{padding:14px 10px}.practice-picture{width:70%}.choices{gap:6px}.choice-button{padding:8px 5px}.sheet-bar h1{width:100%;font-size:1.25rem}.sheet-bar{gap:8px}.finish-panel{padding:24px 17px}.dialog-body{padding:18px}.library-detail dl{gap:9px 10px}}
@media(max-width:365px){.topinner{padding:0 10px}.topnav{gap:8px}.header-end{margin-left:6px}.formarea{grid-template-columns:1fr}.mode-tile small{display:none}.mode-tile{min-height:85px}}
@media(max-height:580px) and (orientation:landscape){.practice-layout .topbar{height:43px}.practice-layout .brand img{height:29px;width:29px}.practice-layout main{padding-top:6px}.practice-controls{padding-top:6px}.practice-controls .btn{min-height:40px}.exercise-panel{padding:8px 14px}.progress-track{margin:2px 0 6px}.stimulus{padding:3px}.stimulus .word{font-size:2.6rem}.choice-button{min-height:34px;padding:3px}.hint-row{min-height:30px}}
@page{size:A4 portrait;margin:0}
@media print{html,body{margin:0!important;padding:0!important;background:white!important}body>*:not(#print-root){display:none!important}#print-root{display:block}.printed-page{page-break-inside:avoid;break-inside:avoid;width:210mm;height:296.8mm;overflow:hidden}.printed-page:not([hidden])~.printed-page:not([hidden]){page-break-before:always;break-before:page}.printed-page canvas{display:block;width:210mm;height:296.8mm}dialog::backdrop{display:none}}
.sheet-pages img{display:block;width:min(100%,690px);height:auto;box-shadow:0 3px 16px #35462c19;border:1px solid var(--border);background:white}.printed-page img{display:block;width:210mm;height:296.8mm}
.sheet-pages img[hidden],.printed-page[hidden]{display:none}
.search-box{display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:8px;background:var(--paper);padding:6px 11px;color:var(--muted)}.search-box input{border:0;background:none;max-width:100%;width:11rem;font-size:.91rem;min-height:30px}.library-count{margin-bottom:10px}.library-card .tags{display:block}.sheet-bar a.btn{text-decoration:none}

.change-filters{display:inline-block;margin-top:4px;font-size:.82rem}.config{scroll-margin-top:12px}

.choice-picture{height:clamp(45px,20vh,155px)}

.banner .banner-art{height:91%;width:42%;right:2.5%;bottom:3%;transform:none}
.banner-copy{max-width:56%}
.set-card{display:flex;align-items:stretch;flex-direction:column;gap:1rem}
.set-heading,.set-actions,.set-summary{display:flex;align-items:center;gap:.8rem}
.set-heading h2{font-size:1.18rem;margin:0 0 .25rem}
.set-actions{flex-wrap:wrap}
.set-summary{justify-content:space-between;margin-bottom:1rem}
.choice-config .field{margin-top:1rem}
.seg:has([data-act="length"]){flex-wrap:wrap}
@media(max-width:620px){.banner .banner-art{width:37%;right:1%;bottom:2%}.banner-copy{max-width:61%}.set-actions .btn{flex:1}.set-card{align-items:stretch}}
.library-filters{display:flex;gap:.8rem;align-items:flex-end;flex-wrap:wrap}
.library-filters .field{display:grid;gap:.35rem;font-size:.9rem;font-weight:650}
.library-filters .search-box{height:44px}
.library-bar{align-items:flex-end;flex-wrap:wrap}
@media(max-width:620px){.library-filters{width:100%}.library-filters .field{flex:1 1 12rem}}

.modes:has(.mode-tile:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.banner .banner-copy{max-width:100%}

.stimulus ruby{ruby-align:start}
.stimulus rt{font-size:.42em;line-height:1.3;color:var(--forest)}
.stimulus .spelling-hint{color:var(--forest);font-size:clamp(1.2rem,3.1vw,2.5rem)}

.practice-layout{
  height:auto;
  min-height:100vh;
  min-height:calc(100svh + var(--practice-scroll-room, 0px));
  padding-bottom:var(--practice-scroll-room, 0px);
}
.practice-layout main{flex:1 0 auto}
.practice-layout .exercise-panel{overflow:visible}
@media (orientation:landscape){
  :root:not(:fullscreen) .practice-layout{--practice-scroll-room:96px}
}
:root:is(:fullscreen, :-webkit-full-screen) #app{
  height:100dvh;
  overflow-y:auto;
}
:root:is(:fullscreen, :-webkit-full-screen) .practice-layout{
  --practice-scroll-room:clamp(8rem,24dvh,12rem);
  min-height:calc(100dvh + var(--practice-scroll-room));
}
.annotated-word{display:inline-flex;vertical-align:top;max-width:100%;flex-direction:column-reverse;align-items:center}
.reading-hint-stack{
  display:flex;
  flex-direction:column-reverse;
  align-items:center;
  gap:2px;
  color:var(--forest);
  font-size:clamp(1rem,min(2.8vw,3.4svh),1.8rem);
  font-weight:700;
  line-height:1.25;
  /* Reserve two lines with the first hint closest to the word. */
  block-size:calc(2.5em + 2px);
  flex-shrink:0;
}
.exercise-prompt .reading-hint-stack{font-size:1rem}
.reading-exercise{padding-block:clamp(10px,2svh,22px)}
.reading-exercise .stimulus{padding-block:6px}
.reading-exercise .stimulus .word{font-size:clamp(2.2rem,min(6.8vw,10svh),5rem);line-height:1.18}
.reading-exercise .stimulus .word.long{font-size:clamp(1.85rem,min(4.5vw,8svh),3.9rem)}
.reading-exercise .hint-row:empty{display:none}
.reading-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
.reading-hint-controls{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:inherit}
.reading-hint-controls .btn{min-height:44px}
.reading-hint-controls .btn[aria-pressed=true]{background:#e2ebda;border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest);color:#294f38}

.picker-trigger{width:100%;height:43px;padding:0 34px 0 13px;border-radius:7px;border:1px solid #cfd6c9;background:#fffefb;font-size:.95rem;text-align:left}
.picker-options{display:grid;gap:4px}
.picker-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 13px;border-radius:7px;text-align:left}
.picker-options button[aria-pressed=true]{background:#e2ebda;color:#324e3a;font-weight:700}

.preview-sample.with-choices{height:auto;min-height:127px;padding-block:30px 24px;gap:12px}
.sample-choices{align-self:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}
.sample-choices li{display:flex;justify-content:center;align-items:center;gap:6px;min-height:38px;padding:5px;background:#fffefa;border:1px solid #d9daca;border-radius:6px;text-align:center;line-height:1.35;font-weight:650;overflow-wrap:anywhere}
.sample-choices li>span:last-child span{display:block}
.sample-choice-number{font-size:.85rem;color:var(--muted)}
