/* Base look of the language lab widgets (.ll): same card as the automaton workbench; widgets add their own file lang-lab-<name>.css. */
.ll { margin-block:1.5rem; padding:1.2rem; border:1px solid var(--line); border-block-start:4px solid var(--accent-2); border-radius:var(--radius); background:var(--surface); color:var(--ink); }
.ll [hidden] { display:none !important; }
.ll button { padding:.55rem .9rem; min-height:44px; background:var(--surface-strong); color:var(--ink); border:1px solid var(--line); border-radius:.4rem; cursor:pointer; font:inherit; font-weight:700; }
.ll button.ll-primary { background:var(--accent); color:var(--on-accent, #fff); border-color:var(--accent); }
.ll button:disabled { opacity:.45; cursor:default; }
.ll :is(input,select,button,textarea,summary,[tabindex]):focus-visible { outline:3px solid var(--accent-2); outline-offset:3px; }
.ll select, .ll input[type="text"], .ll textarea { max-width:100%; min-height:44px; padding:.4rem; background:var(--bg); color:var(--ink); border:1px solid var(--line); border-radius:.4rem; font:inherit; }
.ll input[type="text"].ll-code, .ll .ll-code { direction:ltr; font-family:ui-monospace, monospace; }
.ll .ll-actions { display:flex; flex-wrap:wrap; gap:.5rem .8rem; align-items:center; margin-block:.7rem; }
.ll .ll-note { color:var(--muted); }
.ll .ll-ok { color:var(--accent-2); font-weight:700; }
.ll .ll-bad { font-weight:700; }
.ll .ll-word { display:inline-block; min-width:2.2rem; padding:.25rem .55rem; border:1px solid var(--line); border-radius:.4rem; background:var(--bg); font-family:ui-monospace, monospace; direction:ltr; }
.ll .ll-table { overflow-x:auto; direction:ltr; }
.ll .ll-table table { border-collapse:collapse; margin-inline:0; }
.ll .ll-table :is(th,td) { padding:.3rem .6rem; border:1px solid var(--line); text-align:start; }
.ll .ll-math { display:inline-block; }
.ll .ll-math .katex { font-size:1.08em; }
