/* User-owned text keeps the English application shell LTR while choosing its own
   paragraph direction from the first strong character. The browser's Unicode
   bidi implementation remains authoritative; MiniBrain does not detect scripts. */
input[dir="auto"],
textarea[dir="auto"],
[dir="auto"][data-user-text],
.project-card strong[dir="auto"],
.capture-list li > span:first-child[dir="auto"],
.editor-head h2[dir="auto"],
.today-copy p[dir="auto"] {
  text-align: start;
}

textarea[dir="auto"],
.today-copy p[dir="auto"] {
  unicode-bidi: plaintext;
}

bdi[data-user-text] {
  unicode-bidi: isolate;
}

/* These were semantic LTR assumptions, not graphical placement. */
.project-card {
  text-align: start;
}

.history {
  padding-inline-start: 1.3rem;
  padding-left: 0;
}

/* Long mixed-direction content, URLs and numbers should wrap without forcing
   the surrounding English controls to inherit the user's paragraph direction. */
.project-card strong,
.project-card .next,
.project-card .blocker,
.capture-list li > span:first-child,
.editor-head h2,
.history li,
dialog bdi[data-user-text],
.today-copy p {
  overflow-wrap: anywhere;
}
