#spanish-keyboard{position:fixed;inset:auto 0 0;z-index:10000;box-sizing:border-box;width:100%;max-height:60dvh;overflow:auto;margin:0;padding:10px max(12px,calc((100vw - 1060px)/2)) max(12px,env(safe-area-inset-bottom));background:#111d2c;color:#eff5f7;border-top:2px solid #bcf477;box-shadow:0 -8px 28px #0006;font:18px/1.25 'DM Sans',sans-serif;text-align:center}
#spanish-keyboard[hidden]{display:none}
.keyboard-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:16px}
#spanish-keyboard button{min-width:0;min-height:44px;border:1px solid #526176;border-radius:7px;background:#26364a;color:#fff;font:inherit;cursor:pointer;touch-action:manipulation;padding:6px}
#spanish-keyboard button:active,#spanish-keyboard button[aria-pressed=true]{background:#bcf477;color:#102115}
#spanish-keyboard button:focus-visible{outline:3px solid #bcf477;outline-offset:1px}
.keyboard-row{display:flex;justify-content:center;gap:5px;margin-top:5px}
.keyboard-row button{flex:1;max-width:90px}
.keyboard-actions button{max-width:none;font-size:15px!important}.keyboard-actions [data-key=space]{flex:3}
body.keyboard-open{padding-bottom:var(--keyboard-height,370px)}
html:has(.keyboard-open){scroll-padding-bottom:calc(var(--keyboard-height,370px) + 20px)}
dialog.keyboard-dialog{max-height:calc(100dvh - var(--keyboard-height,370px) - 24px);margin:12px auto auto;overflow:auto}
@media(max-width:600px){#spanish-keyboard{padding:8px 5px;font-size:17px}.keyboard-row{gap:3px}.keyboard-row:nth-child(5){flex-wrap:wrap}.keyboard-row:nth-child(5) button{flex:1 0 8%}.keyboard-heading{font-size:13px}.keyboard-actions button{font-size:12px!important}}
@media(max-height:650px) and (min-width:601px){#spanish-keyboard{max-height:65dvh;padding-top:5px;padding-bottom:5px}#spanish-keyboard button{min-height:36px}.keyboard-heading{margin-bottom:2px}.keyboard-row{margin-top:3px}}
