/* Fix broken Arabic text: only what the shared styles (site.css, tools.css) do not give. Colours and radii come from site.css. */
.fx-paste{display:block;font-size:14px;color:var(--muted);margin:0 0 4px}
.fx textarea.fx-src{min-height:190px;margin-bottom:0}
.fx-count{display:block;margin:4px 0 0}
.fx-count.over{color:var(--err);font-weight:700}
/* a group of choices: the question, then one choice on each line, each in two languages on two lines */
.fx-set{border:0;margin:16px 0 0;padding:0;min-width:0}
.fx-set legend{padding:0;margin:0 0 8px;font-weight:700}
.fx-opts{grid-template-columns:1fr;gap:10px;margin:0}
.fx-opts label.check{align-items:flex-start;min-height:28px}
.fx-opts label.check input{flex:none;width:20px;height:20px;margin:.3em 0 0}
.fx-set .p2,.fx-count .p2,.fx-paste .p2,.fx-count .l1,.fx-count .l2{display:block}
.fx-set .p2::before,.fx-count .p2::before,.fx-paste .p2::before{content:""}
/* the second language starts at the same edge as the first one, under it (not at the far side of the box) */
.fx-set .p2,.fx-count .p2,.fx-paste .p2,.fx-count .l2,.fx-done .l2{text-align:-webkit-match-parent;text-align:match-parent}
.fx-digits{max-width:340px}
/* the three examples of strange signs: data, shown left to right in their own small boxes */
.fx-samples{display:block;margin-top:4px;font-size:14px;color:var(--muted)}
.fx-samples bdi{display:inline-block;margin:2px 0;padding:0 6px;border:1px solid var(--line);border-radius:6px;background:var(--soft);color:var(--fg);font-family:"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.7}
/* text prepared for a program without Arabic support, shown as that program draws it: letter after letter from left to right */
.fx textarea.fx-asdrawn{unicode-bidi:bidi-override;direction:ltr;text-align:left}
.fx .btns{margin-top:16px}
.fx-done{margin:0 0 12px;padding-inline-start:22px}
.fx-done li{margin:0 0 4px}
.fx-done .l1,.fx-done .l2{display:block}
.fx-done .l2{font-size:.9em;opacity:.85}
.fx-done .careful{color:var(--warn)}
#fx-said:empty{min-height:0;margin:0}
