/* V12.6.2: native iOS text entry takes priority over app touch/selection controls. */
body[data-mode="app"] #authScreen :is(input:not([type="hidden"]), textarea),
body[data-mode="app"] #appScreen :is(input:not([type="hidden"]):not(.ah-choice-native), textarea),
body[data-mode="app"] #modalRoot :is(input:not([type="hidden"]):not(.ah-choice-native), textarea) {
  -webkit-user-select:text!important;user-select:text!important;
  -webkit-touch-callout:default!important;
  touch-action:auto!important;pointer-events:auto!important;
  -webkit-user-drag:auto;caret-color:#078e79;
}
body[data-mode="app"] #authScreen .auth-card,body[data-mode="app"] #authScreen form {
  -webkit-user-select:auto!important;user-select:auto!important;touch-action:auto!important;
}
.ah-kbd-login-launch{display:block;width:100%;min-height:42px;margin:7px 0 4px;padding:9px 12px;
  border:1px solid #c8e4d8;background:#eef9f2;color:#0d6653;border-radius:12px;
  font:700 13px/1.45 system-ui;cursor:pointer;}
.ah-kbd-float-launch{position:fixed;z-index:2147482700;right:16px;bottom:calc(82px + env(safe-area-inset-bottom));
  border:1px solid #98d5bc;background:#e8faef;color:#085b49;border-radius:999px;
  box-shadow:0 5px 25px #083c2833;padding:11px 16px;font:700 13px system-ui;}
.ah-kbd-launch-hidden{display:none!important}
.ah-kbd-panel{position:fixed;z-index:2147482800;bottom:0;left:0;right:0;padding:12px 10px calc(13px + env(safe-area-inset-bottom));
  background:#f0faf4;color:#123f35;border-top:1px solid #c3e1d4;box-shadow:0 -8px 40px #0b54352a;max-height:min(65dvh,450px);overflow:auto;
  -webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;touch-action:manipulation;}
.ah-kbd-panel[hidden]{display:none!important}
.ah-kbd-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;
  font:700 13px system-ui;}
.ah-kbd-close{background:#fff;border:1px solid #bbd8cd;border-radius:10px;padding:8px 12px;color:#175f4b;font:700 13px system-ui;}
.ah-kbd-line{display:flex;justify-content:center;gap:4px;margin-bottom:5px}
.ah-kbd-key{flex:1;min-width:0;max-width:55px;min-height:43px;padding:5px 0;border:1px solid #d2e7dd;
 border-radius:8px;background:white;color:#123b30;box-shadow:0 2px 0 #bfd5c9;
 font:600 16px system-ui;touch-action:manipulation;}
.ah-kbd-key:active{background:#c7f0dc;transform:translateY(1px);box-shadow:0 1px 0 #bfd5c9}
.ah-kbd-key.ah-kbd-wide{max-width:130px;flex:1.6;background:#dcf4e6;font-size:13px}
.ah-kbd-key.ah-kbd-space{max-width:250px;flex:3}
.ah-kbd-key.ah-kbd-action{background:#09866b;color:white}
@media(min-width:650px){.ah-kbd-panel{left:50%;right:auto;transform:translateX(-50%);width:min(580px,100%);border:1px solid #c3e1d4;border-radius:24px 24px 0 0}}
