:root{--paper:#f5f4ee;--white:#fff;--ink:#202b27;--muted:#68716b;--line:#e0e4dc;--green:#164b3c;--soft:#eaf0e7;--accent:#dce9ac;--arabic:"Noto Naskh Arabic","Traditional Arabic","Times New Roman",serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #84a94e;outline-offset:3px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}button svg,svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.skip{position:fixed;left:16px;top:-80px;background:var(--green);color:white;padding:12px 20px;z-index:50}.skip:focus{top:10px}
.topbar{background:#fffdf8;border-bottom:1px solid var(--line)}.header-inner{max-width:1152px;padding:19px 24px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand:hover{text-decoration:none}.brand-logo{display:block;height:64px;width:auto}.brand-mark{width:43px;height:43px;background:var(--green);color:#f3f4df;display:flex;align-items:center;justify-content:center;border-radius:11px;font:34px/1 var(--arabic);padding-bottom:5px}.brand strong{font-size:17px;letter-spacing:-.5px}.brand small{display:block;font-size:9px;font-weight:700;letter-spacing:1.9px;color:var(--muted);margin-top:1px}.header-inner nav{display:flex;align-items:center;gap:28px;font-size:13px}.free-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#4e6557}.free-label>span{width:6px;height:6px;border-radius:50%;background:#58834f}
.wrap{width:calc(100% - 48px);max-width:1040px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;padding:35px 1px 29px;gap:24px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.7px;color:#687a61}.intro h1{font-size:36px;line-height:1.3;letter-spacing:-1.4px;font-weight:650;margin:9px 0 8px}.intro h1>span{color:#638148}.intro p:not(.eyebrow){font-size:14px;color:var(--muted)}.intro-arabic{font:76px/1.2 var(--arabic);color:#8a9e78;padding:0 15px 8px;transform:rotate(-6deg)}
.workspace{background:var(--white);border:1px solid #d6ddd1;border-radius:15px;box-shadow:0 6px 26px #24362005;overflow:hidden}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 24px;border-bottom:1px solid #edf0e9}.modes{background:#f0f2ec;display:flex;padding:4px;border-radius:7px}.modes button{border:0;background:transparent;padding:8px 16px;border-radius:5px;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap}.modes button.active{background:white;box-shadow:0 1px 3px #22330014;color:var(--green)}.modes button span{margin:0 4px}.editor-tools,.edit-actions,.primary-actions{display:flex;align-items:center;gap:8px}.icon-button{min-width:35px;height:35px;border:0;background:transparent;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}.icon-button:hover:not(:disabled){background:var(--soft)}.tool-divider{height:20px;width:1px;background:var(--line);margin:0 4px}
.editor-area{position:relative;padding:18px 25px 12px}#editor{display:block;width:100%;height:175px;min-height:130px;max-height:70vh;padding:0 3px 12px;resize:vertical;border:0;border-radius:3px;background:transparent;color:#172d24;font:34px/1.85 var(--arabic);overflow-wrap:anywhere;caret-color:#164b3c}#editor::placeholder{color:#bcc5b7}#editor:focus{outline:0;box-shadow:inset -2px 0 0 #d6e2ca}.mode-hint{color:#7c847b;font-size:11px;margin-top:10px;min-height:18px}.editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 27px 15px;font-size:11px;color:var(--muted)}.counts{font-variant-numeric:tabular-nums;white-space:nowrap}.counts strong{color:#344a38;font-weight:600}.counts>span{margin:0 8px;color:#b5bfb0}.save-option{display:flex;gap:6px;align-items:center;cursor:pointer}.save-option input{accent-color:var(--green);width:13px;height:13px;margin:0}.actions{padding:14px 24px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0e9;gap:12px}.button{border:1px solid transparent;display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:7px;padding:10px 17px;font-weight:600;font-size:12px;min-height:41px;transition:background .15s}.primary{color:#fff;background:var(--green)}.primary:hover{background:#0b382c}.secondary{background:#fff;border-color:var(--line);color:#4c5f50}.secondary:hover{background:var(--soft)}.text-button{border:0;background:transparent;padding:6px 0;color:var(--green);font-size:12px;font-weight:600}.text-button:hover{text-decoration:underline}.muted{color:#6e786f}.edit-actions .text-button{margin-left:12px}
.keyboard-section{background:#f8faf5;border-top:1px solid var(--line);padding:22px 24px 11px}.keyboard-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.keyboard-heading h2{font-size:14px;font-weight:650}.keyboard-heading>div>span{display:block;font-size:11px;color:#7c8577;margin-top:1px}select{max-width:100%;border:1px solid var(--line);border-radius:6px;padding:7px 27px 7px 10px;font-size:11px;background:#fff;color:#56664f}.keyboard{display:grid;gap:7px}.key-row{display:grid;grid-template-columns:repeat(var(--columns,10),minmax(0,1fr));gap:7px;direction:rtl}.keyboard.physical{overflow-x:auto}.keyboard.physical .key-row{direction:ltr}.key,.special-keys button,.number-keys button{background:#fff;border:1px solid #dce3d6;border-bottom:3px solid #d6ddcf;border-radius:7px;min-height:58px;position:relative;display:flex;align-items:center;justify-content:center;min-width:0}.key:hover,.special-keys button:hover,.number-keys button:hover{background:#eef4e1;border-color:#acbe92}.key:active,.special-keys button:active,.number-keys button:active{transform:translateY(1px);border-bottom-width:1px}.key b{font:29px/1.3 var(--arabic);padding-bottom:4px}.key small{position:absolute;top:5px;left:7px;font:9px/1.2 ui-monospace,monospace;color:#8f9a87;direction:ltr}.key.flash{background:var(--accent)}.special-keys{display:flex;gap:7px;margin-top:7px}.special-keys button{flex:1;font:26px/1.2 var(--arabic);min-height:45px}.special-keys .space-key{flex:3;font-family:inherit;font-size:11px;line-height:1.2;color:#77866c;background:#eef2e8}.special-keys .backspace-key,.special-keys .enter-key{font:21px/1 Arial;background:#eef2e8}.marks-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 8px;gap:10px}.marks-heading h3{font-size:12px;font-weight:600}.marks-heading button{font-size:10px}.marks{display:grid;grid-template-columns:repeat(8,1fr);gap:7px}.mark-button{border:1px solid #e1e7da;border-radius:6px;background:#f1f4ec;display:flex;align-items:center;justify-content:center;gap:9px;min-height:45px}.mark-button:hover{background:#e6eedc}.mark-button b{font:24px/1.5 var(--arabic)}.mark-button span{font-size:9px;color:#6c7865}.numbers{border-top:1px solid #e0e7d9;margin-top:18px;padding:9px 0}.numbers summary{list-style:none;display:flex;justify-content:space-between;font-size:11px;color:#69765f;padding:4px 0;cursor:pointer}.numbers summary::-webkit-details-marker{display:none}.numbers[open] summary>span{transform:rotate(45deg)}.number-keys{display:flex;gap:5px;margin:13px 0;flex-wrap:wrap}.number-keys button{flex:1;min-width:35px;min-height:38px;font:22px/1 var(--arabic)}.number-actions{display:flex;gap:24px}.number-actions button{font-size:10px}.privacy-note{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:#798471;padding:16px 8px}.privacy-note svg{width:15px;height:15px;color:#849777}
.how{margin-top:44px}.section-title h2{font-size:24px;font-weight:600;letter-spacing:-.7px;margin-top:8px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:29px}.step-number{font:12px/1.5 ui-monospace,monospace;color:#76905e;border-bottom:1px solid #d5dfc8;display:block;padding-bottom:10px;margin-bottom:13px}.steps h3{font-size:15px;font-weight:600;margin-bottom:9px}.steps p{font-size:12px;color:#737c6d;line-height:1.8}.quick-guide{display:flex;gap:40px;align-items:center;justify-content:space-between;background:#e8ede1;border:1px solid #dbe2d2;border-radius:12px;padding:26px 29px;margin-top:40px}.quick-guide>div:first-child{max-width:580px}.quick-guide h2{font-size:18px;font-weight:600;letter-spacing:-.4px;margin-bottom:8px}.quick-guide p{font-size:12px;color:#627159}.quick-guide b{font-family:var(--arabic);font-size:20px;font-weight:500}.quick-guide .guide-detail{font-size:11px;color:#7a8572;margin-top:7px}.quick-guide button{margin-top:7px}.example-keys{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:175px}.example-keys>span{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f7f8f2;border:1px solid #d3ddc7;border-radius:8px;padding:8px 14px}.example-keys b{font:29px/1.3 var(--arabic)}kbd,code{font:12px ui-monospace,monospace;color:#3f5a32}code{background:#e0e8d7;border-radius:3px;padding:1px 4px}.faq{max-width:810px;margin:47px auto 48px}.faq h2{font-size:21px;font-weight:600;margin-bottom:14px}.faq details{border-bottom:1px solid var(--line);padding:14px 0}.faq summary{font-size:13px;cursor:pointer;font-weight:500}.faq p{font-size:12px;line-height:1.85;color:var(--muted);padding:13px 15px 2px}.footer{border-top:1px solid var(--line);max-width:1152px;margin:auto;display:flex;align-items:center;gap:18px;padding:24px;color:#78816f;font-size:11px}.footer>a:first-child{font-weight:700;color:#485f3c}.footer>a:last-child{margin-left:auto}
dialog{max-width:670px;width:calc(100% - 32px);max-height:85vh;padding:28px;border:1px solid #d9e0d1;border-radius:14px;box-shadow:0 25px 80px #0003;color:var(--ink);background:#fbfcf8}dialog::backdrop{background:#172b2380;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.dialog-header h2{font-size:24px;font-weight:600}dialog>p{font-size:12px;line-height:1.9;color:#6f7b64}dialog h3{font-size:15px;margin-top:20px;margin-bottom:10px}.mapping-guide{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:18px 0}.mapping-pair{display:flex;align-items:center;justify-content:space-around;border:1px solid var(--line);border-radius:6px;background:white;padding:4px}.mapping-pair b{font:26px var(--arabic)}.dialog-note{border-top:1px solid var(--line);padding-top:14px;margin-top:17px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#1c3e30;color:#fff;box-shadow:0 6px 25px #0002;border-radius:8px;padding:11px 20px;max-width:calc(100% - 32px);width:max-content;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:30;font-size:12px}.toast.show{opacity:1;transform:translate(-50%,0)}.noscript{position:fixed;bottom:0;left:0;right:0;background:#fff4c4;text-align:center;padding:16px;font-size:14px}
body.focus-mode .topbar,body.focus-mode .intro,body.focus-mode .how,body.focus-mode .quick-guide,body.focus-mode .faq,body.focus-mode .footer{display:none}body.focus-mode .wrap{max-width:1180px;margin-top:20px}body.focus-mode #editor{height:35vh}
@media(min-width:1500px){.intro{padding-top:43px;padding-bottom:37px}}
@media(max-width:800px){.header-inner{padding:15px 20px}.free-label{display:none}.intro h1{font-size:30px}.intro-arabic{font-size:60px}.wrap{width:calc(100% - 32px)}.workspace-top,.actions{padding-left:18px;padding-right:18px}.keyboard-section{padding:18px}.mark-button{flex-direction:column;gap:0;padding:4px;min-height:54px}.key-row{gap:5px}.keyboard{gap:5px}.special-keys{gap:5px}.steps{gap:20px}.quick-guide{gap:20px;padding:23px}.example-keys{min-width:150px}.example-keys>span{padding:7px 10px}.footer{flex-wrap:wrap}}
@media(max-width:540px){.header-inner{padding:13px 16px}.brand-logo{height:42px}.brand-mark{width:37px;height:37px;font-size:30px}.brand strong{font-size:15px}.brand small{font-size:8px;letter-spacing:1.4px}.header-inner nav{gap:0}.header-inner nav>a{display:none}.header-inner nav button{font-size:11px}.intro{padding:27px 0 23px;gap:0}.intro h1{font-size:28px;line-height:1.2;max-width:280px;letter-spacing:-1px;margin-top:10px;margin-bottom:12px}.intro p:not(.eyebrow){font-size:12px;max-width:290px}.intro-arabic{display:none}.eyebrow{font-size:9px}.workspace{border-radius:11px}.workspace-top{padding:10px;flex-wrap:wrap;gap:9px}.modes{flex:1}.modes button{font-size:11px;padding:8px 10px;flex:1}.editor-tools{gap:0}.editor-tools .icon-button{min-width:28px;width:28px;font-size:11px}.editor-tools .tool-divider{display:none}.editor-area{padding:15px 15px 10px}#editor{height:155px;font-size:30px}.mode-hint{font-size:10px;line-height:1.6}.editor-bottom{padding:0 15px 12px;flex-wrap:wrap;gap:7px;font-size:10px}.actions{padding:12px 10px;flex-wrap:wrap;gap:8px}.button{font-size:11px;padding:9px 12px;gap:6px}.button svg{width:16px;height:16px}.primary-actions{gap:6px}.edit-actions{gap:2px;margin-left:auto}.edit-actions .icon-button{min-width:28px;width:28px}.edit-actions .text-button{font-size:10px;margin-left:4px}.keyboard-section{padding:16px 12px 8px}.keyboard-heading{gap:8px;align-items:flex-start}.keyboard-heading h2{font-size:13px}.keyboard-heading>div>span{font-size:9px;max-width:155px;margin-top:3px}.layout-label{max-width:145px}select{font-size:10px;padding:6px 20px 6px 6px}.key-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.keyboard{gap:6px}.key{min-height:51px}.key b{font-size:28px}.key small{font-size:9px}.keyboard.physical .key-row{min-width:530px;grid-template-columns:repeat(var(--columns),minmax(0,1fr))}.special-keys{flex-wrap:wrap;gap:6px}.special-keys button{flex:1 0 14%;min-height:43px}.special-keys .space-key{flex:3 0 34%}.marks{grid-template-columns:repeat(4,1fr);gap:6px}.mark-button{flex-direction:row;gap:8px;min-height:43px}.marks-heading{margin-top:16px}.marks-heading button{font-size:9px}.privacy-note{font-size:10px;align-items:flex-start;justify-content:flex-start;padding:13px 5px}.privacy-note svg{margin-top:2px}.how{margin-top:30px}.section-title h2{font-size:22px;line-height:1.35;max-width:300px}.steps{grid-template-columns:1fr;gap:23px;margin-top:24px}.step-number{margin-bottom:9px}.steps h3{font-size:14px}.steps p{font-size:12px}.quick-guide{flex-direction:column;align-items:stretch;padding:21px;margin-top:30px;gap:20px}.quick-guide h2{font-size:18px}.example-keys{grid-template-columns:repeat(4,1fr);gap:6px;min-width:0}.example-keys>span{flex-direction:column;gap:4px;padding:8px}.faq{margin:32px 0}.faq h2{font-size:20px}.faq summary{font-size:12px}.faq p{padding-left:0;padding-right:0}.footer{padding:20px 16px;gap:7px 15px}.footer>span{font-size:10px}.footer>a:last-child{flex-basis:100%;margin-left:0}.mapping-guide{grid-template-columns:repeat(4,1fr);gap:6px}dialog{padding:21px}.number-actions{gap:18px}.number-actions button{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
