/* Apple Pencil writing guard — keep iPad finger/palm touches from turning a letter box into a text selection. */
.letter-box{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
  -webkit-user-drag:none!important;
  caret-color:transparent!important;
}
.letter-box::selection{
  background:transparent!important;
  color:inherit!important;
}
.letter-row,
.spell-wrap{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
}
/* Do not set touch-action:none here: native Apple Scribble still needs the real input surface. */


/* Pencil scratch v3: written letters are display-like scratch targets, not editable text. */
.letter-box[readonly]{
  caret-color:transparent!important;
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
  cursor:default;
}
.letter-box[readonly]:focus{
  caret-color:transparent!important;
}


/* Pencil flow v4: every Stage 3/4 position stays visibly boxed. */
.written-box{
  display:grid!important;
  place-items:center!important;
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
  caret-color:transparent!important;
  cursor:default;
}
.empty-box[readonly]{
  caret-color:transparent!important;
}
.empty-box:not([readonly]){
  caret-color:transparent!important;
}
