@import url('./glyph-adjust.css');
@import url('./plan-demo.css');
:root{--paper:#ffffff;--ink:#242b3a;--muted:#727b8b;--line:#e4e8ef;--blue:#225aa9;--yellow:#f4d221;--white:#ffffff;--font:Arial,'Hiragino Kaku Gothic ProN','Noto Sans JP',Meiryo,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.35;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #225aa9;outline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icons{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.header{max-width:1440px;margin:auto;padding:27px 5%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);font-size:23px;font-weight:800;letter-spacing:-1.1px}.brand b{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:2px;font-weight:500;margin-top:5px}.flower{font-size:51px;line-height:1;color:var(--yellow)}.header-right{display:flex;align-items:center;gap:34px}.saved{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}.saved i,.tiny-dot{width:6px;height:6px;background:#225aa9;border-radius:50%;display:inline-block}.text-button{font-size:12px;padding:10px 0;text-align:left}.text-button span{margin-left:7px}main{max-width:1256px;margin:auto;padding:0 40px}
.intro{display:flex;justify-content:space-between;align-items:center;padding:50px 7px 43px;gap:35px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:600;display:block}.intro .eyebrow{display:flex;align-items:center;gap:8px}.intro h1{font-size:clamp(30px,3.1vw,44px);font-weight:700;line-height:1.55;letter-spacing:.04em;margin:20px 0 15px}.intro p{font-size:12px;line-height:1.9;color:#727b8b;margin:0}.underlined{position:relative;white-space:nowrap}.underlined:after{content:'';position:absolute;bottom:-6px;left:-2px;right:3px;height:6px;background:var(--blue);border-radius:80% 20% 35% 20%;z-index:-1}.letter-play{width:355px;position:relative;flex-shrink:0;margin-right:48px}.letter-play>svg{width:100%;height:auto;overflow:visible}.letter-play svg path{stroke-width:10}.letter-play .a{stroke:var(--blue);}.letter-play .b{stroke:var(--ink)}.letter-play .c{stroke:#225aa9;stroke-width:13}.letter-play .star{fill:var(--yellow);stroke:var(--yellow);stroke-width:2}.letter-play .swash{stroke:var(--ink);stroke-width:2.5}.letter-tag{display:block;text-align:right;letter-spacing:1.5px;font-size:10px;margin:0 50px 16px 0}.round-stamp{position:absolute;bottom:-11px;right:-38px;width:78px;height:78px;border:1px solid var(--ink);border-radius:50%;background:var(--yellow);font-size:23px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2}.round-stamp b{font-size:8px;margin-top:5px}
.studio{border:1px solid var(--line);background:var(--white);border-radius:16px;overflow:hidden;box-shadow:0 8px 30px #1828420a}.studio-top{display:flex;justify-content:space-between;align-items:center;padding:0 24px 0 12px;border-bottom:1px solid var(--line);gap:8px;min-height:76px}.mode-tabs{display:flex;gap:0;align-self:stretch}.mode-tab{display:flex;gap:10px;align-items:center;padding:23px 20px;border-bottom:3px solid transparent;font-size:12px;color:#727b8b;position:relative;top:1px;white-space:nowrap}.mode-tab.active{color:var(--blue);border-color:var(--blue)}.mode-tab>span:first-child{font-family:var(--font);font-size:10px;color:#929bad}.mode-tab svg{width:17px;height:17px}.aa-icon{font-size:18px;font-family:var(--font)}.button{border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 21px;font-weight:600;font-size:13px;transition:transform .15s,background .15s;white-space:nowrap}.button:active:not(:disabled){transform:translateY(1px)}.button.small{padding:12px 18px;font-size:12px}.dark{background:var(--blue);color:white}.primary{background:var(--blue);color:#ffffff}.subtle{background:#f3f5f8}.full{width:100%}
.workspace{display:grid;grid-template-columns:340px 1fr}.alphabet-panel{padding:29px 26px 28px;border-right:1px solid var(--line);background:#ffffff}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2{font-size:13px;font-weight:600;margin:0}.mono{font:11px var(--font);color:var(--muted)}.set-tabs{display:flex;border:1px solid var(--line);border-radius:7px;padding:3px;margin:20px 0;gap:3px}.set-tabs button{flex:1;padding:8px 2px;font-size:12px;border-radius:4px}.set-tabs button.active{background:var(--ink);color:white}.glyph-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.glyph{position:relative;aspect-ratio:1;border:1px solid var(--line);border-radius:7px;background:var(--white);font-size:21px;font-family:var(--font);display:flex;align-items:center;justify-content:center;padding:0;transition:background .15s,transform .15s}.glyph:hover{transform:translateY(-2px)}.glyph.selected{background:#edf2f8;border-color:#225aa9;box-shadow:0 0 0 1px #225aa920}.glyph.done:not(.selected){background:#f7f9fc}.glyph img{width:100%;height:100%;object-fit:contain}.glyph.done .char-label{position:absolute;top:2px;left:4px;font:8px Arial;color:var(--muted)}.glyph.done:after{content:'';position:absolute;right:4px;bottom:4px;background:#225aa9;width:4px;height:4px;border-radius:50%}.progress-track{height:3px;margin-top:23px;background:#edf0f5;overflow:hidden;border-radius:3px}.progress-track span{height:100%;display:block;background:#225aa9;transition:width .3s}.muted{color:var(--muted);font-size:11px;line-height:1.8}.panel-note{margin:12px 0 22px;font-size:10px}.paper-link{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:21px 0 0;width:100%;text-align:left;font-size:11px}.paper-link small{display:block;color:var(--muted);font-size:9px;margin-top:6px}.paper-link>span:last-child{margin-left:auto}
.draw-panel{padding:24px 28px 19px;min-width:0}.canvas-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.canvas-heading>div{display:flex;align-items:center;gap:12px}.current-letter{font:26px var(--font)}.current-caption{font-size:11px}.guide-toggle{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.guide-toggle>span{background:#225aa9;width:23px;height:13px;border-radius:9px;padding:2px}.guide-toggle>span:after{content:'';display:block;width:9px;height:9px;border-radius:50%;background:white;transform:translateX(10px)}.guide-toggle[aria-pressed=false]>span{background:#bdc5d1}.guide-toggle[aria-pressed=false]>span:after{transform:none}.canvas-wrap{position:relative;width:100%;aspect-ratio:512/400;border:1px solid #e4e8ef;background:#fff;border-radius:9px;overflow:hidden;isolation:isolate}.canvas-wrap canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;z-index:3}.guides{position:absolute;inset:0;pointer-events:none;z-index:0}.guides>span:not(.baseline-label){position:absolute;left:0;right:0;height:1px;border-top:1px dashed #e4e8ef}.guides .cap-guide{top:16%}.guides .mid-guide{top:32%}.guides .base-guide{top:80%;border-top:1px solid #bdc9df!important}.guides .desc-guide{top:96%}.baseline-label{position:absolute;right:12px;top:81%;color:#95a2b7;font-size:8px}.ghost-letter{position:absolute;inset:0;text-align:center;font-family:Arial,sans-serif;font-weight:400;font-size:clamp(130px,22vw,290px);line-height:1.19;color:#f1f3f7;z-index:1;pointer-events:none}.canvas-hint{position:absolute;left:0;right:0;bottom:26px;text-align:center;pointer-events:none;z-index:2;font-size:10px;color:#95a2b7;display:flex;align-items:center;justify-content:center;gap:7px}.canvas-hint svg{width:13px;height:13px}.draw-toolbar{display:flex;justify-content:space-between;align-items:center;margin-top:13px;gap:5px}.tool-group{display:flex;align-items:center;gap:5px}.icon-button{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:8px;flex-shrink:0}.icon-button svg{width:18px;height:18px}.icon-button.active{background:var(--blue);color:white}.tool-divider{height:21px;width:1px;background:var(--line);margin:0 8px}.width-control{display:flex;gap:7px;align-items:center}.pen-dot{width:4px;height:4px;border-radius:50%;background:var(--ink)}.pen-dot.large{width:10px;height:10px}.width-control input{width:80px}input[type=range]{accent-color:var(--blue);height:4px;cursor:pointer}.canvas-bottom{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:16px}.canvas-bottom .muted{font-size:10px}.live-preview{border-top:1px solid var(--line);display:flex;align-items:center;padding:22px 28px;gap:28px;min-height:109px}.live-label{display:flex;flex-direction:column;gap:9px;flex-shrink:0}.live-label>span:last-child{font-size:10px;color:var(--muted)}.live-word{font-family:var(--font);font-size:43px;letter-spacing:3px;white-space:nowrap;overflow:hidden;flex:1;color:#727b8b}.circle-arrow{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.paper-intro{display:flex;align-items:center;justify-content:space-between;padding:48px 60px;background:#f7f9fc;gap:25px}.paper-intro h2{font-size:30px;line-height:1.7;font-weight:600;margin:18px 0}.paper-intro p{font-size:12px;color:var(--muted);line-height:2}.mini-sheet{background:#fff;padding:20px 15px;width:155px;box-shadow:2px 8px 13px #18284212;font-size:9px}.mini-sheet div{font-family:var(--font);word-spacing:7px;line-height:2;font-size:15px;margin:17px 0;border:1px solid #eee;padding:5px}.mini-sheet span{font-size:4px;letter-spacing:.3px}.paper-actions{display:grid;grid-template-columns:1fr 1fr;padding:36px 60px;gap:50px}.paper-step{position:relative;padding-left:40px}.step-number{background:var(--yellow);border-radius:50%;width:25px;height:25px;position:absolute;left:0;top:0;display:grid;place-items:center;font-size:11px;font-family:var(--font)}.paper-step h3{font-size:16px;margin:3px 0 15px}.paper-step p{font-size:11px;color:var(--muted);line-height:1.9}.field-label{display:block;font-size:12px;font-weight:600;margin:24px 0 9px}.field-label>span{font-size:10px;color:var(--muted);font-weight:400;margin-left:7px}select,input[type=text]{width:100%;border:1px solid var(--line);border-radius:7px;background:white;padding:12px 14px;min-height:45px;color:var(--ink)}.paper-step .button{width:100%;margin-top:13px}.upload-zone{border:1px dashed #bdc9df;min-height:142px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;margin-top:21px;background:#ffffff;cursor:pointer}.upload-zone svg{width:25px;height:25px}.upload-zone b{font-size:11px}.upload-zone span{font-size:9px;color:var(--muted)}.paper-footnote{text-align:center;color:var(--muted);font-size:10px;padding:0 20px 25px}
.preview-head{padding:37px 38px 15px}.preview-head h2{font-size:25px;margin:17px 0 8px;font-weight:600}.specimen-controls{display:flex;justify-content:space-between;align-items:center;padding:10px 38px 17px;gap:15px}.pill-tabs{display:flex;gap:4px}.pill-tabs button{font-size:11px;border:1px solid var(--line);border-radius:20px;padding:7px 13px}.pill-tabs .active{background:var(--ink);color:white;border-color:var(--ink)}.preview-size{font-size:10px;display:flex;align-items:center;gap:12px;color:var(--muted)}.preview-size input{width:110px}.specimen{margin:0 38px;padding:25px 33px 30px;min-height:350px;position:relative;border-radius:8px;overflow:hidden}.specimen.paper{background:#fff;color:var(--ink);border:1px solid var(--line)}.specimen.blue{background:#edf2f8;color:var(--blue)}.specimen.night{background:#242b3a;color:#fff}.specimen textarea{display:block;margin:24px 0 30px;width:100%;resize:vertical;min-height:190px;border:0;outline:0;background:none;color:inherit;font-size:76px;line-height:1.3;font-family:var(--font);position:relative;z-index:1;padding:0;overflow-wrap:anywhere}.specimen-caption{font-size:9px;letter-spacing:1.7px;display:block;max-width:80%;overflow-wrap:anywhere}.specimen-star{position:absolute;bottom:18px;right:29px;font-size:63px;line-height:1;color:var(--blue)}.preview-bottom{display:flex;justify-content:space-between;align-items:center;padding:15px 38px 24px;gap:15px}.preview-bottom .muted{font-size:9px}.export-strip{display:flex;justify-content:space-between;align-items:center;padding:26px 38px;border-top:1px solid var(--line);gap:20px}.export-strip h3{font-size:16px;font-weight:600;margin:0 0 9px}.export-strip p{font-size:10px;color:var(--muted);margin:0}
footer{padding:27px 2px 35px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:11px;letter-spacing:.1px}footer>span{font-weight:700}footer b{font-weight:400}footer small{margin-left:13px;font-size:7px;letter-spacing:1px;color:var(--muted);font-weight:400}footer>div{display:flex;gap:20px}footer button{font-size:9px;color:var(--muted);padding:5px 0}
dialog{border:1px solid var(--line);border-radius:17px;box-shadow:0 24px 100px #0002;width:min(480px,calc(100% - 30px));padding:26px 32px 30px;background:var(--white);color:var(--ink);max-height:92dvh;overflow-y:auto}dialog::backdrop{background:#18284266;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}dialog h2{font-size:22px;line-height:1.5;margin:20px 0 10px;font-weight:600}.export-flower{font-size:63px;color:var(--blue);line-height:1;margin-top:20px}.filename-preview{padding:17px;background:#f7f9fc;font-family:var(--font);font-size:12px;border-radius:6px;margin-top:12px;overflow-wrap:anywhere}.export-summary{display:flex;justify-content:space-between;font-size:11px;padding:19px 0;border-bottom:1px solid var(--line)}.export-warning{font-size:11px;line-height:1.8;color:#727b8b;margin:15px 0}.install-note{font-size:9px;color:var(--muted);line-height:1.9;margin:15px 0 0}.success-box{background:#edf2f8;border-radius:8px;padding:15px;display:flex;flex-direction:column;gap:8px;margin-top:16px;font-size:12px}.success-box span{font-size:10px;line-height:1.7}.help-list{list-style:none;counter-reset:h;padding:0;margin:25px 0}.help-list li{counter-increment:h;padding-left:34px;position:relative;margin-bottom:23px}.help-list li:before{content:counter(h);position:absolute;left:0;top:0;background:#edf2f8;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:10px}.help-list b{font-size:13px}.help-list p{font-size:11px;color:var(--muted);line-height:1.9;margin-top:7px}
.scan-dialog{width:min(850px,calc(100% - 24px))}.scan-dialog>p{font-size:12px;line-height:1.8}.scan-settings{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0}.scan-settings label{font-size:10px;display:flex;align-items:center;gap:10px}.scan-settings select{width:auto;font-size:11px;padding:7px;min-height:34px}.scan-settings button{font-size:10px}.scan-canvas-wrap{display:flex;justify-content:center;background:#f3f5f8;border:1px solid var(--line);border-radius:8px;overflow:hidden}.scan-canvas-wrap canvas{max-width:100%;max-height:55vh;width:auto;height:auto;display:block;touch-action:none;cursor:crosshair}.scan-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:20px;gap:15px}.scan-bottom label{font-size:10px;display:flex;align-items:center;gap:10px}.scan-bottom input{width:90px}.scan-bottom label span{font:9px var(--font)}.scan-review-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.scan-review-grid label{border:1px solid var(--line);border-radius:6px;position:relative;padding:7px;cursor:pointer;background:#ffffff}.scan-review-grid input{position:absolute;right:2px;top:2px;accent-color:var(--ink)}.scan-review-grid img{width:100%;display:block;aspect-ratio:512/400;object-fit:contain}.scan-review-grid span{font-size:10px}.scan-review-grid label:has(input:checked){background:#edf2f8;border-color:#a7bddc}#scanReview{border-top:1px solid var(--line);margin-top:25px;padding-top:15px}#scanReview h3{font-size:16px}#confirmDialog{padding:25px 30px}#confirmDialog p{font-size:12px;line-height:1.8}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:white;padding:13px 22px;border-radius:9px;z-index:100;font-size:12px;transition:.2s;max-width:90vw;width:max-content;line-height:1.8}.toast.show{transform:translate(-50%,0);opacity:1}.mobile-only{display:none}#printArea{display:none}
@media(min-width:1350px){.workspace{grid-template-columns:370px 1fr}.glyph-grid{gap:8px}.draw-panel{padding-left:35px;padding-right:35px}.alphabet-panel{padding-left:30px;padding-right:30px}.ghost-letter{font-size:300px}}
@media(max-width:1000px){main{padding:0 25px}.header{padding:23px 30px}.letter-play{width:285px;margin-right:30px}.intro h1{font-size:32px}.workspace{grid-template-columns:280px 1fr}.alphabet-panel{padding:24px 20px}.draw-panel{padding:23px 20px 18px}.glyph-grid{grid-template-columns:repeat(5,1fr);gap:6px}.mode-tab{padding:23px 13px;gap:7px}.canvas-bottom .muted{max-width:125px}.letter-tag{margin-right:5px}.paper-intro{padding:40px}.paper-actions{padding:35px;gap:25px}.current-caption{font-size:10px}}
@media(max-width:730px){.header{padding:19px 20px}.brand{font-size:20px;gap:9px}.brand small{font-size:6px;letter-spacing:1.7px}.flower{font-size:43px}.header-right{gap:12px}.saved{display:none}.text-button{font-size:11px}main{padding:0 15px}.intro{padding:32px 5px 30px;gap:0;position:relative}.intro h1{font-size:28px;line-height:1.6;margin:16px 0}.intro .eyebrow{font-size:7px;letter-spacing:1.1px}.intro p{font-size:10px}.letter-play{width:155px;position:absolute;right:5px;top:87px;margin:0;opacity:.7;z-index:-1}.letter-tag{font-size:7px;margin-right:8px;margin-bottom:6px}.round-stamp{width:48px;height:48px;bottom:-25px;right:12px;font-size:16px}.round-stamp b{font-size:5px;margin-top:2px}.intro>div:first-child{width:100%}.letter-play>svg{width:150px}.studio{border-radius:11px}.studio-top{padding:0 10px;min-height:67px;gap:0}.mode-tabs{flex:1;justify-content:space-between;gap:4px}.mode-tab{font-size:10px;padding:20px 6px;gap:5px}.mode-tab>span:first-child{display:none}.mode-tab svg{width:15px;height:15px}.studio-top>.button{font-size:0;padding:9px;margin-left:8px}.studio-top>.button svg{width:18px;height:18px}.workspace{display:flex;flex-direction:column}.alphabet-panel{padding:20px 18px;border-right:0;border-bottom:1px solid var(--line)}.section-heading h2{font-size:12px}.set-tabs{margin:14px 0}.set-tabs button{padding:6px}.glyph-grid{grid-template-columns:repeat(9,1fr);gap:5px}.glyph{font-size:18px;border-radius:5px}.panel-note,.paper-link{display:none}.progress-track{margin-top:15px}.draw-panel{padding:19px 18px}.canvas-heading{margin-bottom:12px}.current-letter{font-size:23px}.current-caption{font-size:11px}.ghost-letter{font-size:clamp(190px,51vw,350px);line-height:1.3}.canvas-hint{font-size:9px;bottom:17px}.canvas-bottom .muted{max-width:none;font-size:9px}.canvas-bottom .button{font-size:10px;padding:11px 13px}.draw-toolbar{margin-top:12px}.width-control input{width:70px}.live-preview{padding:19px 18px;gap:14px;min-height:91px}.live-label .eyebrow{font-size:7px;letter-spacing:1px}.live-label>span:last-child{font-size:8px}.live-word{font-size:32px;letter-spacing:1px}.circle-arrow{width:28px;height:28px}.live-label{max-width:125px}.paper-intro{padding:30px 22px;gap:15px}.paper-intro h2{font-size:23px;line-height:1.6}.paper-intro p{font-size:10px}.mini-sheet{width:90px;padding:12px 7px;flex-shrink:0}.mini-sheet b{font-size:5px}.mini-sheet div{font-size:9px;word-spacing:3px;margin:8px 0;padding:2px}.mini-sheet span{font-size:3px}.paper-actions{grid-template-columns:1fr;padding:28px 22px;gap:30px}.paper-step{padding-left:36px}.paper-step p br{display:none}.paper-footnote{font-size:9px;line-height:1.8}.preview-head{padding:29px 22px 10px}.preview-head h2{font-size:20px;line-height:1.6}.specimen-controls{padding:10px 22px 15px;flex-wrap:wrap}.preview-size input{width:75px}.specimen{margin:0 18px;padding:25px 20px;min-height:320px}.specimen textarea{font-size:55px;min-height:180px}.preview-bottom{padding:14px 22px;flex-wrap:wrap;gap:0}.export-strip{padding:22px;flex-direction:column;align-items:stretch;gap:16px}.export-strip h3{font-size:15px}.export-strip p{font-size:10px}footer{padding:24px 5px 30px;flex-direction:column;gap:17px}footer small{font-size:6px}footer>div{gap:25px}dialog{padding:20px 23px 25px}dialog h2{font-size:19px}.scan-dialog{padding:18px}.scan-settings{gap:7px;flex-wrap:wrap}.scan-settings label{width:100%;justify-content:space-between}.scan-settings select{flex:1;max-width:200px}.scan-bottom{align-items:stretch;flex-direction:column}.scan-bottom label{justify-content:center;padding:10px 0}.scan-review-grid{grid-template-columns:repeat(5,1fr);gap:5px}.scan-review-grid label{padding:5px}.mobile-only{display:block}.install-note{font-size:9px}.scan-canvas-wrap canvas{max-height:50vh}}
@media(max-width:430px){.letter-play{display:none}.intro h1{font-size:28px}.glyph-grid{grid-template-columns:repeat(8,1fr)}.mode-tab{font-size:9px;padding-left:3px;padding-right:3px}.mode-tab svg{width:13px}.canvas-bottom .muted{max-width:140px}.width-control input{width:55px}.tool-divider{margin:0 4px}.live-label{max-width:96px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{@page{size:A4 portrait;margin:0}body{background:white}body>*:not(#printArea){display:none!important}#printArea{display:block!important;width:210mm;height:297mm;margin:0;padding:0}#printArea svg{display:block;width:210mm;height:297mm;stroke:none;max-width:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}}


/* Keep the reference letter aligned with the exact canvas baseline. */
svg.ghost-letter{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;stroke:none}

/* Compact editor with six freely selectable stages. */
main{max-width:1160px;padding-top:28px}
.header{max-width:1240px;padding-top:22px;padding-bottom:22px}
.studio{box-shadow:none;border-radius:10px}
.studio-top{min-height:64px}
.mode-tab{padding-top:19px;padding-bottom:19px}
.stage-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-bottom:1px solid var(--line);padding:16px 22px;gap:8px}
.stage{min-width:0;padding:12px 12px 10px;text-align:left;border:1px solid transparent;border-radius:7px;display:grid;grid-template-columns:auto 1fr;gap:7px 9px;align-items:center}
.stage>span{font:10px var(--font);color:#929bad}.stage>b{font-size:13px;font-weight:600;white-space:nowrap}.stage>small{grid-column:2;font:10px var(--font);color:var(--muted)}
.stage.active{background:#f0f3f9;border-color:#b2c5e1}.stage.active>span{color:#225aa9}
.workspace{grid-template-columns:320px 1fr}.alphabet-panel{padding:26px 23px}.draw-panel{padding:22px 27px}
.section-heading{margin-bottom:21px}.page-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:-6px 0 18px}
.page-tabs button{font-size:10px;padding:7px 9px;border-radius:5px;border:1px solid var(--line)}.page-tabs button.active{background:var(--blue);color:white;border-color:var(--blue)}
.glyph-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.glyph{font-family:var(--font)}
.next-set{display:block;margin-top:18px;padding-top:12px;width:100%;text-align:right;font-size:11px}
.canvas-wrap{max-width:570px;margin:auto}
.canvas-bottom{justify-content:flex-start}.canvas-bottom>#nextBtn{margin-left:auto}.canvas-bottom>#drawStatus{font-size:10px}
.live-preview{min-height:78px;padding:15px 26px;gap:20px}.live-label{font-size:10px;color:var(--muted)}.live-word{font-size:32px;font-family:var(--font)}
.paper-actions{padding:38px 42px;gap:40px}.paper-step select+select{margin-top:10px}
.preview-head{padding-top:27px}.preview-head h2{font-size:20px;margin:0 0 10px}
.export-strip{justify-content:flex-end;padding:20px 38px}
.scan-settings{flex-wrap:wrap}.scan-settings label{flex-wrap:wrap}.scan-settings select{max-width:190px}
.specimen textarea{font-family:var(--font)}
@media(max-width:1000px){.stage-nav{padding:12px;gap:4px}.stage{padding:11px 6px;gap:7px 5px}.stage>b{font-size:12px}.workspace{grid-template-columns:270px 1fr}.alphabet-panel{padding:23px 18px}.draw-panel{padding:22px 20px}.glyph-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:730px){main{padding-top:17px}.header{padding:19px 20px}.stage-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:12px}.stage{padding:9px 11px;gap:5px 9px}.stage>b{font-size:12px}.stage>small{font-size:9px}.mode-tab{font-size:11px!important}.alphabet-panel{padding:18px}.section-heading{margin-bottom:15px}.glyph-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.glyph{font-size:18px}.page-tabs{margin:0 0 12px}.page-tabs button{padding:6px 9px}.next-set{margin-top:9px;padding:6px 0;font-size:10px}.progress-track{margin-top:13px}.draw-panel{padding:18px}.canvas-bottom>#drawStatus{max-width:none;font-size:9px}.canvas-bottom .button{padding:10px 13px}.live-preview{padding:14px 18px;min-height:65px}.paper-actions{padding:27px 22px;gap:30px}.export-strip{padding:18px 22px}.scan-settings select{max-width:100%}}
@media(max-width:400px){.glyph-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.stage{padding:9px 7px}.stage>b{font-size:11px}.mode-tab{font-size:10px!important}}

/* White workspace, restrained blue selection, small yellow details. */
.glyph.selected:before{content:'';position:absolute;left:4px;top:4px;width:5px;height:5px;background:var(--yellow);border-radius:50%}
.stage.active>b{color:var(--blue)}
.draw-toolbar{display:grid;grid-template-columns:auto minmax(64px,1fr) auto;gap:10px}
.brush-choice{width:58px;padding:8px 6px;gap:5px;font-size:11px}
.brush-choice svg{width:16px;height:16px}
.width-control{justify-self:center;min-width:0;width:100%;max-width:110px}
.width-control input{width:100%;min-width:0;margin:0}
.pen-dot{flex-shrink:0}
@media(max-width:480px){.draw-toolbar{grid-template-columns:1fr auto;row-gap:14px}.width-control{grid-column:1/-1;grid-row:2;max-width:none;padding:0 3px}.width-control input{flex:1}.edit-tools{justify-self:end}.brush-tools{gap:4px}}

/* Supplied brand artwork retains its original proportions and colors. */
.header{gap:20px}
.brand{min-width:0;flex:0 1 310px}
.brand-logo{display:block;width:100%;height:auto}
.header-right{flex:0 0 auto}
.footer-logo{display:block;width:180px;max-width:100%;height:auto}
.specimen-brand{display:block;width:180px;max-width:100%;height:auto}
.specimen.night .specimen-brand{background:#fff;border-radius:3px;padding:5px 8px}
@media(max-width:730px){.header{gap:14px}.brand{flex-basis:220px}}

/* Multilingual collections and real per-character progress. */
.language-select{width:120px;min-height:35px;padding:7px 25px 7px 10px;font-size:12px;border-color:var(--line)}
.header-right{gap:18px}
.collection-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 23px 2px}
.collection-progress{display:grid;grid-template-columns:auto auto;gap:8px 16px;min-width:170px;max-width:300px;flex:1}
.collection-progress b{font-size:12px}.collection-progress>span{text-align:right;font:11px var(--font);color:var(--muted)}
progress{appearance:none;-webkit-appearance:none;border:0;border-radius:4px;overflow:hidden;background:#edf0f5;color:var(--blue);height:4px;width:100%}
progress::-webkit-progress-bar{background:#edf0f5;border-radius:4px}progress::-webkit-progress-value{background:var(--blue);border-radius:4px;transition:width .2s}progress::-moz-progress-bar{background:var(--blue);border-radius:4px}
.collection-progress progress,.stage progress{grid-column:1/-1}
.stage{grid-template-columns:1fr auto;gap:8px 4px}.stage>b{font-size:12px;white-space:normal;line-height:1.35}.stage>small{grid-column:auto;text-align:right;font-size:9px;white-space:nowrap}.stage.complete progress::-webkit-progress-value{background:var(--yellow)}.stage.complete progress::-moz-progress-bar{background:var(--yellow)}
.character-search{display:flex;margin:-7px 0 16px;position:relative}.character-search input{padding:8px 35px 8px 10px;min-height:34px;font-size:11px}.character-search button{position:absolute;right:0;top:0;bottom:0;width:35px;font-size:22px;color:var(--blue)}
.page-tabs select{font-size:11px;min-height:35px;padding:8px;max-width:100%}.page-tabs .page-step{flex-shrink:0;padding:5px 9px}.page-tabs.has-select{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.optional-sets{display:grid;gap:9px}.optional-set{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px 12px;border:1px solid var(--line);border-radius:7px;padding:13px}.optional-set input{accent-color:var(--blue);width:17px;height:17px}.optional-set b{font-size:12px}.optional-set small{font:10px var(--font);color:var(--muted)}.optional-set progress{grid-column:2/-1}
#setsDialog .dialog-head h2{margin:0;font-size:20px}#setsDialog>.muted{margin:17px 0}
html[lang=en] .stage-nav,html[lang=es] .stage-nav{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
@media(max-width:1000px){.header-right .saved{display:none}.stage-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:730px){.header{flex-wrap:wrap}.brand{flex-basis:235px}.header-right{width:100%;justify-content:space-between}.collection-bar{padding:15px 13px 2px;gap:12px;flex-wrap:wrap}.collection-progress{min-width:145px}.collection-bar .button{padding:9px 10px;font-size:11px}.stage{padding:10px 8px}.stage>b{font-size:11px}.stage>small{font-size:8px}.stage-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.stage{grid-template-columns:1fr}.stage>small{text-align:left}.character-search{margin:0 0 13px}.mode-tab{white-space:normal;text-align:left;line-height:1.3}.button{white-space:normal;text-align:center}.scan-review-grid{grid-template-columns:repeat(5,minmax(0,1fr))}html[lang=en] .stage-nav,html[lang=es] .stage-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}

html[lang=zh-Hans]{--font:Arial,'PingFang SC','Microsoft YaHei','Noto Sans SC','Noto Sans CJK SC',sans-serif}
html[lang=ko]{--font:Arial,'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',sans-serif}
.ghost-letter text{font-family:var(--font)}

/* A two-step start, with the drawing itself kept at the center. */
:root{--line:#e3e9f1;--muted:#68768a}
.header{border-bottom:0;padding-top:28px;padding-bottom:20px}
.choosing .header{max-width:1160px}
.setup{max-width:700px;margin:clamp(24px,6vh,64px) auto 0;padding-bottom:40px}
.setup-card{padding:34px 38px 36px;border:1px solid var(--line);border-radius:30px;background:white;box-shadow:0 12px 50px #225aa906}
.setup-steps{display:flex;align-items:center;gap:26px;margin:0;padding:0;list-style:none;color:var(--muted)}
.setup-steps li{display:flex;align-items:center;gap:8px;font-size:12px}
.setup-steps span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#f0f3f7;color:var(--muted);font-size:12px}
.setup-steps b{font-weight:500}.setup-steps .active{color:var(--ink)}
.setup-steps .active span{background:var(--yellow);color:var(--ink)}
.setup-steps .complete span{background:#eaf1fb;color:var(--blue)}
.setup-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:30px 0 25px}
.setup-title h1{font-size:26px;letter-spacing:.02em;line-height:1.45;margin:0;min-width:0;font-weight:600}
.setup-title h1:focus{outline:0}

.language-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.language-choices button{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--line);border-radius:18px;padding:21px 22px;text-align:left;font-size:18px;min-height:70px;transition:border-color .15s,background .15s,transform .15s}
.language-choices button:last-child:nth-child(odd){grid-column:1/-1}
.language-choices button svg{width:18px;color:var(--blue)}
.language-choices button:hover:not(:disabled){border-color:#a1bce0;background:#f6f9fe;filter:none;transform:translateY(-2px)}
.language-choices button:active:not(:disabled){transform:translateY(0)}
.setup-language{border-radius:24px;padding:9px 12px;background:#f1f5fb;color:var(--blue);font-size:11px;white-space:nowrap}
.set-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.set-choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:21px 16px 15px;border:1px solid var(--line);border-radius:19px;cursor:pointer;min-width:0;transition:background .15s,border-color .15s,transform .15s}
.set-choice input{position:absolute;right:13px;top:13px;width:19px;height:19px;margin:0;accent-color:var(--blue);cursor:pointer}
.set-example{display:block;font-family:var(--font);font-size:29px;font-weight:600;color:#8390a4;line-height:1.4;margin:7px 0 5px;letter-spacing:.01em;}
.set-choice b{font-size:12px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.set-choice small{font-size:10px;color:var(--muted);line-height:1.5}
.set-choice:has(input:checked){background:#f4f8fe;border-color:#9bb7dc}
.set-choice:has(input:checked) .set-example{color:var(--blue)}
.set-choice:hover{border-color:#a1bce0;transform:translateY(-1px)}
.extra-choices{margin-top:23px;border-top:1px solid var(--line);padding-top:18px}
.extra-choices h2{font-size:12px;font-weight:600;color:var(--blue);padding:4px 0 7px;margin:0;min-height:30px}
.extra-choices .set-choices{margin-top:15px}.extra-choices .set-choice{padding-top:16px}.extra-choices .set-example{font-size:23px}
.setup-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:28px}
.setup-bottom .text-button{font-size:12px;color:var(--muted)}
.start-button{border-radius:24px;padding:16px 28px;font-size:15px;min-width:164px;box-shadow:0 4px 0 #183e72}
.start-button:disabled{box-shadow:none}.start-button:active:not(:disabled){box-shadow:0 2px 0 #183e72;transform:translateY(2px)}
.studio{border-radius:24px;box-shadow:0 10px 36px #225aa905}
.studio-top{padding:9px 20px 9px 12px;min-height:70px}
.mode-tabs{align-self:center;background:#f3f6fb;border-radius:24px;padding:4px;gap:3px}
.mode-tab{top:0;border:0;border-radius:20px;padding:12px 16px;font-size:12px}
.mode-tab.active{background:white;box-shadow:0 2px 7px #225aa90c}
.button{border-radius:20px}
.stage-nav,html[lang=en] .stage-nav,html[lang=es] .stage-nav{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));padding:15px 22px;gap:10px}
.stage{border-radius:14px;padding:13px 12px;border-color:var(--line);background:white}
.stage.active{background:#f4f8fe;border-color:#9bb7dc}
.collection-bar{padding:22px 23px 3px}
progress{height:5px;border-radius:6px}.progress-track{height:5px;border-radius:6px}
.canvas-wrap{border-radius:19px;border-color:#dce5f1}
.glyph{border-radius:10px}.glyph.selected{background:#f0f6fe;border-color:var(--blue)}
.draw-panel{padding:23px 27px}.alphabet-panel{background:#fcfdff}
.icon-button{border-radius:12px;width:38px;height:38px}
.brush-choice{width:65px;border:1px solid transparent}
.icon-button.active{background:#edf4ff;border-color:#a1bce0;color:var(--blue)}
.draw-toolbar{margin-top:18px}.width-control{max-width:135px}
.pen-dot.large{width:13px;height:13px}
.optional-set{border-radius:14px;padding:15px}.optional-set:has(input:checked){background:#f4f8fe;border-color:#9bb7dc}
#setsDialog{width:min(540px,calc(100% - 30px))}
footer{padding-top:30px}dialog{border-radius:24px}
@media(max-width:730px){
 .header{padding:24px 22px 16px}.choosing .header .brand{flex:0 1 260px}
 .setup{margin-top:20px;padding-bottom:30px}.setup-card{padding:25px 22px 27px;border-radius:25px}
 .setup-title{margin:27px 0 23px;gap:13px}.setup-title h1{font-size:21px}
 .language-choices{gap:10px}.language-choices button{font-size:16px;padding:18px 17px;border-radius:16px;min-height:65px}
 .setup-language{font-size:10px;padding:8px 10px}
 #setupCharactersView .setup-title{flex-wrap:wrap;gap:12px}
 #charactersTitle{flex:1 0 100%;order:2}#changeSetupLanguage{margin-left:auto;order:1}
 .set-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.set-choice{padding:19px 14px 15px;border-radius:17px}
 .set-example{font-size:28px}.set-choice b{font-size:11px}
 .setup-bottom{margin-top:25px}.start-button{padding:15px 25px;min-width:145px;font-size:14px}
 .studio{border-radius:20px}.studio-top{padding:10px;min-height:65px;gap:3px}.mode-tabs{padding:3px;gap:0}
 .mode-tab{padding:10px 8px;font-size:10px!important;gap:5px}.studio-top>.button{margin-left:5px;padding:11px}
 .stage-nav,html[lang=en] .stage-nav,html[lang=es] .stage-nav{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;gap:7px}
 .stage{padding:11px 9px}.draw-panel{padding:18px}.canvas-wrap{border-radius:16px}
 .collection-bar{padding:17px 15px 2px}.icon-button{width:37px;height:37px}.brush-choice{width:65px}
}
@media(max-width:370px){.setup-card{padding:23px 17px}.language-choices button{padding:17px 13px;font-size:15px}.setup-title h1{font-size:19px}.mode-tab{padding:10px 6px;font-size:9px!important}.setup-language{padding:8px;font-size:9px}}

/* Display language is independent of the repertoire being drawn. */
.header-controls{display:flex;align-items:center;justify-content:flex-end;gap:24px;flex-wrap:wrap}
.interface-switch{display:flex;align-items:center;gap:9px;flex-shrink:0}
.interface-switch>span{font-size:10px;color:var(--muted);white-space:nowrap}
.interface-switch .language-select{width:125px;border-radius:20px;background:white}
.writing-language-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;text-align:left;padding:0;color:var(--blue)}
.writing-language-button>span{font-size:16px;line-height:1}
[lang=zh-Hans]{--glyph-font:Arial,'PingFang SC','Microsoft YaHei','Noto Sans SC','Noto Sans CJK SC',sans-serif}
[lang=ko]{--glyph-font:Arial,'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',sans-serif}
[lang=ja]{--glyph-font:Arial,'Hiragino Kaku Gothic ProN','Noto Sans JP',Meiryo,sans-serif}
[lang=en],[lang=es],[lang=fr]{--glyph-font:Arial,'Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif}
.glyph,.current-letter,.set-example{font-family:var(--glyph-font,var(--font))}
.ghost-letter text{font-family:var(--glyph-font,var(--font))}
@media(max-width:730px){.header-controls{width:100%;justify-content:space-between;gap:12px}.header-controls .header-right{width:auto;gap:10px}.interface-switch>span{font-size:10px}.interface-switch .language-select{min-height:38px}.writing-language-button b{font-size:11px}}

/* Canvas first; the character collection follows it on small screens. */
.workspace{grid-template-columns:minmax(0,1fr) 320px}
.alphabet-panel{border-right:0;border-left:1px solid var(--line)}
html[lang=ja] ruby{ruby-position:over;ruby-align:center}
html[lang=ja] rt{font-size:.55em;font-weight:400;letter-spacing:0;line-height:1.15;color:inherit}
html[lang=ja] .help-list p,html[lang=ja] .paper-step p{font-size:12px;line-height:2.4}
html[lang=ja] dialog>p,html[lang=ja] .install-note,html[lang=ja] .muted{line-height:2.2}
html[lang=ja] .set-choice b{line-height:2}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:730px){.workspace{display:flex;flex-direction:column}.alphabet-panel{border-left:0;border-top:1px solid var(--line);border-bottom:0}.draw-panel{order:0}.alphabet-panel{order:1}}

.footer-signature{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:#667085}.footer-signature a{color:inherit;text-decoration:none}.footer-signature a:hover{color:var(--blue)}.terms-consent{margin:18px 0;padding:16px;background:#f6f8fb;border-radius:16px}.terms-consent p{font-size:12px;line-height:2;color:#667085}.terms-consent label{display:flex;align-items:flex-start;gap:10px;line-height:2;font-size:13px;cursor:pointer}.terms-consent input{width:20px;height:20px;flex-shrink:0;margin:4px 0;accent-color:#225AA9}.font-terms section{margin:22px 0}.font-terms h3{font-size:15px}.font-terms p{font-size:13px;line-height:2.5}.font-terms>a{display:block;margin-top:12px;color:#225AA9}#projectFooter{gap:20px;flex-wrap:wrap}#projectTools{display:flex;gap:16px}

/* One character at a time. The complete repertoire stays in its own picker. */
.focused-draw{border:0;background:transparent;overflow:visible;box-shadow:none}
.focused-draw .studio-top{border:1px solid var(--line);border-radius:20px;background:white}
.focused-draw .collection-bar{padding:18px 4px 14px;align-items:center}
.collection-actions{display:flex;gap:8px;flex-wrap:wrap}
.focused-draw .workspace{display:block;max-width:820px;margin:0 auto}
.focused-draw .draw-panel{padding:22px 28px;background:white;border:1px solid #e5eaf1;border-radius:28px;box-shadow:0 12px 45px #225aa907}
.focused-draw .canvas-wrap{max-width:none;border:6px solid #f4d22180;border-radius:20px}
.focused-draw .canvas-heading{margin-bottom:18px;gap:14px}
.focused-draw .current-letter{font-size:32px;color:var(--blue)}
.drawing-options{display:flex;gap:18px;align-items:center}
.focused-draw .guide-toggle{font-size:12px;min-height:42px}
.focused-draw .guide-toggle>span{width:28px;height:17px}
.focused-draw .guide-toggle>span:after{width:13px;height:13px;transform:translateX(11px)}
.focused-draw .guide-toggle[aria-pressed=false]>span:after{transform:none}
.focused-draw .guides .vertical-guide{left:50%;right:auto;top:0;bottom:0;width:1px;height:auto;border-top:0;border-left:1px dashed #c9ced7}
.focused-draw .guides .center-guide{top:50%;border-top:1px dashed #c9ced7}
.focused-draw .guides .cap-guide,.focused-draw .guides .mid-guide,.focused-draw .guides .desc-guide{display:none}
.focused-draw .guides .base-guide{border-color:#d2d8e2!important}
.focused-draw .canvas-hint{bottom:6px;font-size:10px}
.focused-draw .draw-toolbar{margin-top:16px;gap:14px}
.focused-draw .icon-button{width:46px;height:46px;border-radius:14px}
.focused-draw .brush-choice{width:auto;min-width:64px;padding:10px;gap:6px}
.focused-draw .clear-choice{width:auto;padding:10px;gap:6px;color:var(--blue);background:#edf3fc}
.focused-draw .clear-choice span{font-size:11px}
.focused-draw .canvas-bottom{padding-top:15px;gap:12px;flex-wrap:wrap}
.focused-draw .canvas-bottom>#nextBtn{margin-left:0}
.focused-draw .done-button{min-height:62px;min-width:160px;border-radius:22px;font-size:18px;padding:16px 24px;box-shadow:0 4px 0 #174580}
.focused-draw .done-button:disabled{box-shadow:none}
.focused-draw #skipBtn{margin-left:auto;font-size:12px}
.focused-draw .live-preview{display:none}
.characters-dialog{width:min(760px,calc(100% - 24px));padding:24px}
.characters-dialog .dialog-head h2{margin:0}
.characters-dialog .stage-nav{padding:18px 0;border:0}
.characters-dialog .alphabet-panel{padding:18px 0 0;border:0;background:white}
.characters-dialog .glyph-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}
.characters-dialog .glyph{font-size:26px;min-height:45px;border-radius:14px}
@media(min-width:1000px) and (max-height:850px){.focused-draw .workspace{max-width:730px}.focused-draw .draw-panel{padding:16px 24px}.focused-draw .canvas-wrap{max-width:590px}.focused-draw .canvas-heading{margin-bottom:10px}}
@media(max-width:730px){
 .focused-draw .studio-top{border-radius:17px}.focused-draw .collection-bar{padding:12px 2px}.collection-actions{gap:5px}
 .focused-draw .draw-panel{padding:14px;border-radius:22px}.focused-draw .canvas-wrap{border-width:4px;border-radius:14px}
 .focused-draw .canvas-heading{margin-bottom:8px}.focused-draw .current-letter{font-size:25px}.drawing-options{gap:12px}
 .focused-draw .guide-toggle{font-size:10px;gap:5px}.focused-draw .draw-toolbar{gap:8px}.focused-draw .tool-group{gap:4px}
 .focused-draw .icon-button{width:40px;height:40px;padding:9px}.focused-draw .brush-choice{min-width:56px;width:auto;padding:8px}
 .focused-draw .clear-choice{width:auto}.focused-draw .clear-choice span{display:none}
 .focused-draw .canvas-bottom{gap:8px}.focused-draw .canvas-bottom #drawStatus{display:none}
 .focused-draw .done-button{min-width:120px;min-height:56px;font-size:16px;border-radius:18px;padding:12px 16px}
 .characters-dialog{padding:18px}.characters-dialog .glyph-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
}
@media(max-width:380px){.focused-draw .canvas-bottom #prevBtn{padding:10px 8px}.focused-draw #skipBtn{font-size:10px}.focused-draw .done-button{min-width:100px}.drawing-options{gap:8px}}

@media(min-width:850px){
 .focused-draw .draw-panel{display:grid;grid-template-columns:100px minmax(0,1fr);gap:0 22px}
 .focused-draw .canvas-heading{grid-column:1/-1}.focused-draw .canvas-wrap{grid-column:2;grid-row:2}
 .focused-draw .draw-toolbar{grid-column:1;grid-row:2;display:flex;flex-direction:column;justify-content:center;margin:0;gap:22px}
 .focused-draw .tool-group{flex-wrap:wrap;justify-content:center;gap:8px}.focused-draw .brush-choice{width:100%}
 .focused-draw .width-control{max-width:100px}.focused-draw .canvas-bottom{grid-column:1/-1}
}

/* The model is a full-canvas layer, with native HTML hidden handling. */
.ghost-letter{width:100%;height:100%}.ghost-letter>svg{width:100%;height:100%;display:block;stroke:none}
body.drawing-focus main{max-width:960px;padding-top:16px;padding-bottom:16px}
.focused-draw .focus-navigation{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;grid-column:1/-1}
.focused-draw .focus-navigation .icon-button{background:#edf3fc;color:var(--blue);font-size:24px}
.focused-draw .focus-navigation .text-button{font-size:12px;color:var(--blue);padding:10px}
.focused-draw .canvas-hint,.focused-draw #drawStatus{display:none}
.focused-draw .canvas-wrap{max-height:none}
@media(min-width:850px){.focused-draw .canvas-wrap,.focused-draw .draw-toolbar{grid-row:3}}
@media(max-width:730px){body.drawing-focus main{padding:10px}.focused-draw .focus-navigation{margin-bottom:4px}.focused-draw .draw-panel{padding:12px}.focused-draw .canvas-heading{margin-bottom:10px}}
@media(max-height:560px) and (min-width:650px){body.drawing-focus main{padding:6px 12px}.focused-draw .workspace{max-width:880px}.focused-draw .draw-panel{padding:8px 16px;grid-template-columns:100px minmax(0,1fr);display:grid;gap:0 12px}.focused-draw .focus-navigation,.focused-draw .canvas-heading,.focused-draw .canvas-bottom{grid-column:1/-1}.focused-draw .canvas-heading{margin-bottom:4px}.focused-draw .canvas-wrap{grid-column:2;grid-row:3;width:min(100%,calc((100dvh - 190px)*1.28));margin:auto}.focused-draw .draw-toolbar{grid-column:1;grid-row:3;display:flex;flex-direction:column;justify-content:center;gap:8px;margin:0}.focused-draw .tool-group{flex-wrap:wrap;justify-content:center}.focused-draw .brush-choice{width:100%}.focused-draw .canvas-bottom{margin-top:6px;padding-top:6px}.focused-draw .done-button{min-height:44px;padding:8px 16px}}

/* Use the available screen width for the writing frame. */
body.drawing-focus main{max-width:1120px;padding-left:18px;padding-right:18px}
.focused-draw .workspace{max-width:1020px}
.focused-draw .draw-panel{padding:16px 20px;border-radius:22px}
.focused-draw .canvas-wrap{max-width:none}
@media(min-width:850px){.focused-draw .draw-panel{grid-template-columns:86px minmax(0,1fr);column-gap:16px}.focused-draw .canvas-wrap{width:min(100%,calc((100dvh - 220px)*1.28));margin:auto}}
@media(max-width:730px){body.drawing-focus main{padding:6px}.focused-draw .draw-panel{padding:8px;border-radius:17px}.focused-draw .canvas-wrap{border-width:3px}.focused-draw .canvas-heading{margin-bottom:7px}}
@media(max-height:560px) and (min-width:650px){body.drawing-focus main{padding:4px 8px}.focused-draw .workspace{max-width:1060px}.focused-draw .draw-panel{padding:6px 10px;column-gap:10px}.focused-draw .canvas-wrap{width:min(100%,calc((100dvh - 170px)*1.28))}}

.focused-draw .canvas-wrap{border:10px solid var(--yellow)}
.export-reset-note{font-size:12px;line-height:2.2;color:var(--ink);margin:18px 0 0}
#backupFromExport{display:block;margin:3px 0 14px;color:var(--blue)}
@media(max-width:730px){.focused-draw .canvas-wrap{border-width:8px}}

.stroke-layer{position:absolute;inset:4%;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2}
.stroke-layer>svg{width:auto;height:100%;max-width:100%;aspect-ratio:1;display:block;overflow:visible}
.order-stroke.animated{stroke-dasharray:1;stroke-dashoffset:1;animation:show-stroke .5s ease-in-out forwards}
@keyframes show-stroke{to{stroke-dashoffset:0}}
.stroke-layer.writing .order-stroke{animation:none;stroke-dashoffset:0;opacity:.15}
.stroke-layer.writing .order-number{opacity:.45}
.character-ribbon{grid-column:1/-1;border-top:1px solid var(--line);margin-top:20px;padding-top:12px;min-width:0}
.ribbon-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;margin-bottom:10px}
.mini-categories{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;min-width:0}
.mini-categories button{font-size:11px;white-space:nowrap;color:var(--muted);padding:5px 8px;border-radius:10px;flex-shrink:0}
.mini-categories button.active{color:var(--blue);background:#edf3fc}
.mini-pager{display:flex;align-items:center;gap:6px;flex-shrink:0;font-size:10px;color:var(--muted)}.mini-pager button{width:30px;height:30px;border-radius:8px;background:#f6f8fc}
.mini-glyphs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 3px 9px;scrollbar-width:thin;scrollbar-color:#cad7e9 transparent}
.mini-glyph{position:relative;width:66px;height:58px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:13px;font:25px var(--glyph-font,var(--font));background:white;padding:0}
.mini-glyph img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}
.mini-glyph.done span{position:absolute;left:5px;top:3px;font:9px var(--font);color:var(--muted)}
.mini-glyph.done:after{content:'';position:absolute;right:5px;bottom:5px;width:4px;height:4px;background:var(--blue);border-radius:50%}
.mini-glyph.selected{border:2px solid var(--blue);background:#f6f9fd;box-shadow:0 0 0 2px #f4d22166}
.focused-draw .drawing-options{flex-wrap:wrap;gap:12px;justify-content:flex-end}
@media(min-width:850px){.focused-draw .canvas-wrap{width:min(100%,calc((100dvh - 325px)*1.28))}}
@media(max-width:730px){.focused-draw .canvas-heading>div:first-child{gap:6px}.focused-draw .drawing-options{gap:8px}.focused-draw .guide-toggle{font-size:9px}.focused-draw .guide-toggle>span{width:22px;height:14px}.focused-draw .guide-toggle>span:after{width:10px;height:10px;transform:translateX(8px)}.mini-glyph{width:58px;height:52px}.character-ribbon{margin-top:16px}.mini-categories button{font-size:10px;padding:5px 7px}.mini-glyphs{gap:7px}}
@media(prefers-reduced-motion:reduce){.order-stroke.animated{animation:none;stroke-dashoffset:0}}

.mini-glyphs{position:relative}

/* A larger drill prompt; readings stay outside the writing frame. */
.focused-draw .character-prompt{gap:20px;align-items:center;min-width:0}
.focused-draw .current-letter{font-size:76px;line-height:1.05;color:var(--blue);flex-shrink:0}
.prompt-copy{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:300px}
.character-reading{font-size:17px;line-height:1.7;color:#4b6080;overflow-wrap:anywhere}
.current-caption{color:var(--muted);font-size:11px}
.focused-draw .canvas-heading{align-items:center;gap:20px;margin-bottom:16px}
.mini-categories{flex-wrap:wrap;overflow:visible}.ribbon-heading{align-items:flex-start}
.mini-glyphs{display:grid;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:8px;overflow:visible;padding:2px 0;max-width:100%}
.mini-glyph{width:100%;height:66px;min-width:0;position:relative;font-size:27px;display:flex;align-items:flex-start;justify-content:center;padding:5px 3px 20px}
.mini-glyph .mini-letter{line-height:38px}
.mini-glyph img{height:46px;top:0}
.mini-glyph .mini-reading{position:absolute;left:3px;right:3px;bottom:3px;text-align:center;font:10px/1.4 var(--font);color:#62738b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-glyph.done .mini-letter{position:absolute;left:5px;top:3px;font:9px var(--font);color:var(--muted);line-height:1.1}
.mini-glyph.done:after{bottom:21px}.character-ribbon{margin-top:16px;padding-top:12px}
@media(min-width:850px){.focused-draw .canvas-wrap{width:min(100%,calc((100dvh - 430px)*1.28))}}
@media(max-width:730px){.focused-draw .current-letter{font-size:60px}.focused-draw .character-prompt{gap:12px}.character-reading{font-size:14px}.prompt-copy{max-width:190px;gap:4px}.focused-draw .canvas-heading{flex-wrap:wrap;gap:8px;margin-bottom:10px}.focused-draw .drawing-options{width:100%;justify-content:flex-end}.mini-glyphs{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.mini-glyph{height:61px;font-size:25px;padding-top:3px}.mini-glyph img{height:42px}.mini-glyph .mini-reading{font-size:9px}.ribbon-heading{gap:8px}.mini-pager{gap:3px}}

@media(min-width:850px){.focused-draw .draw-panel{grid-template-columns:92px minmax(0,1fr)}.focused-draw .draw-toolbar{gap:14px}.focused-draw .draw-toolbar .tool-group{gap:4px}.focused-draw .draw-toolbar .icon-button{width:44px;height:44px}.focused-draw .draw-toolbar .brush-choice{width:100%;min-width:0}.focused-draw .clear-choice span{display:none}.focused-draw .canvas-wrap{width:min(100%,calc((100dvh - 385px)*1.28))}.mini-glyph{height:62px}}

.glyph{padding-bottom:17px}.glyph-reading{position:absolute;left:3px;right:3px;bottom:3px;text-align:center;font:9px/1.3 var(--font);color:#62738b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.glyph.done img{height:calc(100% - 16px)}

/* Stronger frames throughout the interface, with stable selected-state sizing. */
@media screen{
 .setup-card,.studio:not(.focused-draw),.focused-draw .draw-panel,dialog{border-width:4px}
 .focused-draw .studio-top,.language-choices button,.set-choice,.optional-set,
 .stage,.glyph,.mini-glyph,.mini-glyph.selected,.set-tabs,.pill-tabs button,
 select,input[type=text],.upload-zone,.scan-canvas-wrap,.scan-review-grid label,
 .specimen.paper,.circle-arrow{border-width:3px}
 .button,.icon-button,.setup-language,.mini-pager button,.mini-categories button{
  border:2px solid var(--line)
 }
 .button.primary,.button.dark{border-color:var(--blue)}
 .icon-button.active,.mini-categories button.active{border-color:var(--blue)}
 .set-choice:has(input:checked),.optional-set:has(input:checked),.stage.active{border-color:var(--blue)}
}

#exportDialog .font-guide-link,#helpDialog .font-guide-link{display:block;text-align:center;margin-top:18px;padding:12px;border:2px solid var(--blue);border-radius:7px;color:var(--blue);font-weight:600;text-decoration:none}.footer-signature .font-guide-link{color:var(--blue);font-weight:600}

/* Both guides share the same glyph geometry and placement. */
.ghost-letter.has-writing-model{inset:4%;width:auto;height:auto;display:flex;align-items:center;justify-content:center}
.ghost-letter.has-writing-model>svg{width:auto;height:100%;max-width:100%;aspect-ratio:1;overflow:visible}

/* Keep ruby and kana in one inline text run, not separate flex items. */
#exportTop,#exportPreview,#downloadFont{align-items:center;justify-content:center}
.export-button-label{display:block;line-height:1.6;text-align:center;white-space:nowrap}
@media(max-width:730px){#exportTop{gap:0}#exportTop .export-button-label{display:none}}

.metrics-panel{position:fixed;bottom:16px;left:16px;right:16px;max-width:540px;margin:auto;background:white;color:#172338;border:2px solid #225AA9;border-radius:14px;padding:18px;z-index:100;box-shadow:0 4px 24px #0002;font-size:13px;line-height:1.7}.metrics-panel p{margin:8px 0}.metrics-panel>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.metrics-panel details{font-size:11px}.metrics-preference{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.metrics-preference label{display:flex;align-items:center;gap:6px;font-size:11px}#supportDialog p{line-height:1.8}#supportClose{float:right}#supportPayment{text-decoration:none;margin-top:12px;white-space:normal}

.complete-choice{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.complete-choice .button{white-space:normal;text-align:center}.complete-choice .button[aria-pressed=true]{background:#edf2f8;box-shadow:inset 0 0 0 1px var(--blue);color:var(--blue)}.complete-choice p{margin:10px 0 0}

#supportButton{border:1px solid var(--blue);border-radius:999px;padding:10px 16px;color:var(--blue);font-weight:600;font-size:12px;line-height:1.5}#supportDialog{max-width:460px}#supportDialog h2{clear:both;font-size:23px;line-height:1.5;margin:18px 0 12px}#supportDialog p{font-size:13px}#supportContinue{margin-top:12px;white-space:normal;min-height:48px}#supportPayment{min-height:48px}.coffee-icon{clear:both;width:56px;height:56px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;color:var(--blue)}.coffee-icon svg{width:32px;height:32px}#supportUnavailable{padding:12px;background:#f3f5f8;border-radius:8px}

.footer-support{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 0;margin-top:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.footer-support-copy{font-size:10px;letter-spacing:.13em;color:var(--blue);font-weight:600}#supportButton{display:inline-flex;align-items:center;gap:10px;background:#fff;border-color:#d4ddec;padding:12px 18px;box-shadow:0 3px 0 #e8edf5}#supportButton svg{width:23px;height:23px}#supportButton:hover{background:#fff7d5;border-color:var(--blue)}
.support-modal,#supportDialog{padding:0;width:min(440px,calc(100% - 32px));max-width:440px;border:0;border-radius:24px;overflow:auto;max-height:90dvh;box-shadow:0 28px 100px #10264b40;color:var(--blue)}.support-modal::backdrop{background:#14274465;backdrop-filter:blur(6px)}.support-close,#supportClose{float:none;position:absolute;right:14px;top:12px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#ffffffb0;color:var(--blue);z-index:1;font-size:26px;line-height:1}.support-close:hover{background:#fff}.support-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.support-art{background:var(--yellow);display:flex;align-items:center;flex-direction:column;padding:27px 20px 22px;gap:16px}.support-kicker{font:600 10px var(--font);letter-spacing:.2em}.support-art-caption{font-size:8px;letter-spacing:.15em}.support-art .coffee-icon{width:100px;height:100px;background:var(--yellow);border-radius:50%;box-shadow:0 0 0 9px #ffffff60}.support-art .coffee-icon svg{width:54px;height:54px}.support-body{padding:26px 30px 25px;text-align:center}#supportDialog h2,.support-modal h2{font-size:24px;letter-spacing:-.02em;line-height:1.5;margin:0 0 12px;font-weight:700}#supportDialog .support-description,.support-description{font-size:13px;line-height:1.9;color:#647086;margin:0 0 22px}#supportPayment{margin:0;border-radius:12px;justify-content:center;gap:12px;font-size:13px;padding:16px}#supportContinue{background:transparent;color:var(--blue);border:1px solid #d9e1ed;border-radius:12px;margin-top:10px;font-size:13px}#supportDialog .support-fine{font-size:10px;color:#7c8696;line-height:1.7;margin:17px 0 12px}.support-powered{display:block;font-size:8px;letter-spacing:.16em;color:#8a93a2;margin-top:17px}.thanks-art{background:#edf3fc}.thanks-flower{width:106px;height:106px}.thanks-flower svg{width:100%;height:100%}#supportThanksContinue{border-radius:12px;white-space:normal}@media(max-width:540px){.footer-support{flex-direction:column;align-items:center;gap:14px}.support-body{padding:24px}.support-art{padding-top:24px}.support-modal h2,#supportDialog h2{font-size:22px}}
.friend-share{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;border:1px solid #d4ddec;border-radius:999px;font-size:12px;color:var(--blue);background:white;margin:12px 0}.friend-share:hover{background:#edf3fc}.mode-tab:disabled{opacity:.5;cursor:not-allowed}#shareDialog{width:min(420px,calc(100% - 32px));border-radius:22px}#shareDialog h2{font-size:20px}#shareDialog p{font-size:13px;line-height:1.8}#shareDialog .line-share{background:#06c755;color:#fff;text-decoration:none}#shareCopy{margin-top:12px}#shareURL{margin-top:14px;font-size:12px}#shareStatus{color:var(--blue);min-height:24px}
html,body{overscroll-behavior:none}
.canvas-wrap,.canvas-wrap *{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* A single text item prevents ruby fragments from spreading across flex gaps. */
ui-copy{display:inline;min-width:0;line-height:1.9;text-indent:0}
ui-copy ruby{white-space:nowrap}

/* Quiet graph paper surrounds the white drawing and selection surfaces. */
body{background-color:#fcfdfd;background-image:linear-gradient(rgba(34,90,169,.065) .5px,transparent .5px),linear-gradient(90deg,rgba(34,90,169,.065) .5px,transparent .5px);background-size:24px 24px}
#projectFooter{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:0;margin:28px 0 0;padding:0 0 26px;text-align:left}
#projectFooter .footer-support{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0;padding:24px 0;border-top:1px solid #dce4ec;border-bottom:1px solid #dce4ec}
#projectFooter .footer-support-copy{max-width:230px;font-size:10px;line-height:1.8;letter-spacing:.12em}
#projectFooter .footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#projectFooter .friend-share,#projectFooter #supportButton{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:46px;margin:0;padding:12px 18px;font-size:12px;line-height:1.6;white-space:normal;border-radius:999px}
#projectFooter #supportButton{background:#fff6cc;border:1px solid #e9d985;box-shadow:none}
#projectFooter #supportButton:hover{background:#ffefac}
#projectFooter .text-button span{margin-left:0}
#projectFooter .footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;padding:20px 0 12px}
#projectFooter .footer-links a,#projectFooter .footer-links button,#projectFooter #projectTools button{color:#4d6079;font-size:12px;line-height:1.9;text-decoration:none;text-align:left;padding:8px 0;min-height:40px}
#projectFooter .footer-links a:hover,#projectFooter .footer-links button:hover,#projectFooter #projectTools button:hover{text-decoration:underline;text-underline-offset:4px;color:var(--blue)}
#projectFooter #projectTools{display:flex;gap:8px 28px;flex-wrap:wrap;padding:0 0 12px}
#projectFooter .footer-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:16px 28px;padding-top:16px;border-top:1px solid #e1e7ee}
#projectFooter .footer-signature{font-size:11px;gap:10px;line-height:2;flex-shrink:0}
#projectFooter .metrics-preference{display:block;max-width:560px;font-size:11px;line-height:1.9;color:#65758a}
#projectFooter .metrics-preference summary{cursor:pointer;min-height:28px;line-height:2;text-align:right}
#projectFooter .metrics-preference p{margin:12px 0}
#projectFooter .metrics-preference label{display:flex;gap:8px;align-items:center;padding:8px 0;font-size:11px;cursor:pointer}
#projectFooter .metrics-preference input{width:16px;height:16px;accent-color:var(--blue);flex-shrink:0}
@media(max-width:730px){
 #projectFooter{margin-top:20px;padding-bottom:22px}
 #projectFooter .footer-support{flex-direction:column;align-items:stretch;gap:16px;padding:22px 0}
 #projectFooter .footer-support-copy{max-width:none;text-align:center;font-size:9px}
 #projectFooter .footer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #projectFooter .friend-share,#projectFooter #supportButton{height:100%;padding:12px 10px;font-size:11px;min-width:0}
 #projectFooter #supportButton svg{width:20px;height:20px}
 #projectFooter .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;padding:16px 0 10px}
 #projectFooter #projectTools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
 #projectFooter .footer-bottom{flex-direction:column;gap:12px;padding-top:16px}
 #projectFooter .metrics-preference{width:100%;max-width:none}
 #projectFooter .metrics-preference summary{text-align:left}
}
@media(max-width:360px){#projectFooter .footer-actions{grid-template-columns:minmax(0,1fr)}}
@media print{body{background:white}}

#projectFooter #supportButton{background:var(--yellow);border-color:var(--yellow)}
#projectFooter #supportButton:hover{background:#edc913;border-color:#edc913}
#shareSNS{margin-top:12px}
#shareSNSOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 0 2px}
#shareSNSOptions a{text-decoration:none}
#shareNative{grid-column:1/-1}
#shareDialog .button{min-height:48px;line-height:1.9}

/* Three illustrated steps before the first language selection. */
.quick-guide{margin:0 0 26px;color:var(--blue)}
.quick-guide h2{font-size:13px;font-weight:600;text-align:center;margin:0 0 14px;line-height:1.9}
.quick-guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:26px}
.quick-guide-steps li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.quick-guide-steps li+li:before{content:'→';position:absolute;left:-21px;top:37px;font-size:18px;color:#91a8c7}
.quick-guide-steps svg{width:120px;height:88px;max-width:100%;stroke:var(--blue);stroke-width:1.8}

.quick-guide-steps b{font-size:13px;font-weight:600;line-height:1.9;overflow-wrap:anywhere}
@media(max-width:540px){.quick-guide{margin-bottom:22px}.quick-guide-steps{gap:16px}.quick-guide-steps svg{width:96px;height:72px}.quick-guide-steps li+li:before{left:-14px;top:28px;font-size:14px}.quick-guide-steps b{font-size:11px}.quick-guide h2{font-size:12px;margin-bottom:10px}}

.choosing main{padding-top:4px}
.setup{margin-top:10px}
.quick-guide-steps b{margin-top:8px}
.quick-guide-format{font-size:.85em;white-space:nowrap}
@media(max-width:730px){.choosing .header{padding-bottom:10px}.choosing main{padding-top:0}.setup{margin-top:6px}}

/* Footer information shares one line; narrow screens can scroll it sideways. */
#projectFooter .footer-links{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:22px;padding:16px 0 6px;overflow-x:auto;max-width:100%;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
#projectFooter .footer-links>a,#projectFooter .footer-links>button{flex:0 0 auto;white-space:nowrap}
#projectFooter .footer-links .footer-signature{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;white-space:nowrap;margin-left:auto}
@media(max-width:730px){#projectFooter .footer-links{gap:18px}#projectFooter .footer-links>a,#projectFooter .footer-links>button,#projectFooter .footer-signature{font-size:11px}}

/* Flat language control with a simple chevron and a clear keyboard focus. */
.interface-switch .language-select{appearance:none;-webkit-appearance:none;border:1px solid var(--line);border-radius:12px;box-shadow:none;background-color:transparent;background-image:linear-gradient(45deg,transparent 50%,#225aa9 50%),linear-gradient(135deg,#225aa9 50%,transparent 50%);background-position:calc(100% - 13px) center,calc(100% - 9px) center;background-size:4px 4px;background-repeat:no-repeat;color:var(--blue);width:120px;min-height:40px;padding:8px 26px 8px 8px;cursor:pointer}
.interface-switch .language-select:hover{background-color:rgba(34,90,169,.04)}
.interface-switch .language-select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Solid arrow: rectangular shaft and triangular head. */
.quick-guide-steps li+li:before{content:'';width:32px;height:20px;left:-29px;top:34px;background:var(--blue);clip-path:polygon(0 30%,62% 30%,62% 0,100% 50%,62% 100%,62% 70%,0 70%)}
@media(max-width:540px){.quick-guide-steps li+li:before{width:22px;height:16px;left:-19px;top:28px}}

.friend-share .friend-share-icon{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7}

/* Compact, icon-only drawing tools. */
.draw-toolbar .brush-choice,.focused-draw .draw-toolbar .brush-choice{width:44px;min-width:44px;height:44px;padding:10px;gap:0}
.draw-toolbar .brush-choice svg{width:22px;height:22px}
.focused-draw .canvas-bottom .done-button{margin-left:auto}

/* Shared writing layout: canvas, tools, actions, then character strip. */
.focused-draw .workspace{max-width:860px}
.focused-draw .draw-panel{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"navigation" "heading" "canvas" "tools" "actions" "characters";gap:12px;padding:20px 24px}
.focused-draw .focus-navigation{grid-area:navigation;margin:0}
.focused-draw .canvas-heading{grid-area:heading;margin:0;gap:12px;flex-wrap:wrap}
.focused-draw .canvas-wrap{grid-area:canvas;width:min(100%,max(360px,calc((100dvh - 380px)*1.28)));max-width:680px;margin:0 auto}
.focused-draw .draw-toolbar{grid-area:tools;display:grid;grid-template-columns:auto minmax(80px,1fr) auto;grid-template-areas:"brush width edit";align-items:center;gap:16px;width:100%;max-width:680px;justify-self:center;margin:0;padding:8px 10px;background:#f5f8fc;border-radius:14px}
.focused-draw .brush-tools{grid-area:brush}.focused-draw .edit-tools{grid-area:edit;justify-self:end}
.focused-draw .draw-toolbar .tool-group{display:flex;flex-wrap:nowrap;gap:6px}
.focused-draw .draw-toolbar .icon-button{width:44px;min-width:44px;height:44px;padding:10px;border-radius:10px}
.focused-draw .draw-toolbar .clear-choice span{display:none}
.focused-draw .width-control{grid-area:width;width:100%;max-width:200px;padding:0 8px;justify-self:center}
.focused-draw .width-control input{width:100%;min-width:0;flex:1;min-height:28px}
.focused-draw .pen-dot{flex-shrink:0}
.focused-draw .canvas-bottom{grid-area:actions;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;margin:0;padding-top:12px}
.focused-draw .canvas-bottom>#nextBtn{margin-left:auto;min-height:50px;min-width:150px;padding:12px 22px;border-radius:15px;font-size:16px}
.focused-draw .canvas-bottom>#prevBtn{min-height:44px}
.focused-draw .character-ribbon{grid-area:characters;min-width:0;margin:0;padding-top:12px}
@media(max-width:600px){
 body.drawing-focus main{padding:8px}
 .focused-draw .draw-panel{padding:12px;gap:10px;border-radius:18px}
 .focused-draw .canvas-wrap{width:100%;max-width:512px;border-width:4px}
 .focused-draw .current-letter{font-size:44px}
 .focused-draw .drawing-options{width:100%;justify-content:space-between;gap:6px}
 .focused-draw .guide-toggle{min-height:40px;font-size:11px}
 .focused-draw .draw-toolbar{grid-template-columns:1fr auto;grid-template-areas:"brush edit" "width width";gap:6px;padding:8px}
 .focused-draw .draw-toolbar .tool-group{gap:4px}
 .focused-draw .width-control{max-width:none;padding:0 8px}
 .focused-draw .canvas-bottom>#nextBtn{min-width:126px;min-height:48px;padding:10px 18px}
 .focused-draw .ribbon-heading{flex-wrap:wrap;gap:8px}
 .focused-draw .mini-categories{min-width:0;max-width:100%;overflow-x:auto}
 .focused-draw .mini-glyphs{grid-template-columns:repeat(6,minmax(0,1fr))}
}

.focus-character-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.focus-character-actions .button{min-height:40px}

/* Separate page navigation from character controls. */
.focused-draw .focus-navigation{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%}
.focus-page-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.focus-page-actions .button{min-height:44px;gap:8px;white-space:nowrap}
.focus-page-actions #drawingPreview{border:1px solid var(--blue);color:var(--blue);background:white}
.focused-draw .focus-character-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--line);width:100%}
.focus-character-actions button{min-height:40px}
@media(max-width:540px){.focus-page-actions .button{padding:8px 12px;font-size:12px}.focused-draw .focus-character-actions{justify-content:space-between;gap:8px}}

.drawing-context,.preview-context{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.drawing-context h2{margin:0;font-size:16px;color:var(--blue)}
.drawing-context .muted,.preview-context .muted{font-size:12px}
.preview-head #previewBack{min-height:44px;white-space:normal;text-align:left}
.preview-head .preview-context{margin:18px 0 8px}
.preview-head .preview-context h2{margin:0;font-size:22px}
@media(max-width:540px){.drawing-context{gap:6px}.preview-head .preview-context{align-items:flex-start;flex-direction:column;gap:8px}.preview-head .preview-context h2{font-size:20px}.drawing-context h2{font-size:14px}}
