.tf-in,.tf-ta{width:100%;padding:10px 12px;font:15px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.tf-ta{min-height:150px;resize:vertical}
.rx-pat{display:flex;align-items:center;gap:6px;font-family:ui-monospace,Menlo,Consolas,monospace;color:var(--muted)}
.rx-flags{display:flex;flex-wrap:wrap;gap:4px 14px}.rx-flags .check{font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:600;margin:0}
.tf-out{white-space:pre-wrap;word-break:break-word;font:14px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#fff;border:1px solid var(--line-strong);border-radius:8px;padding:10px;margin:6px 0 12px;max-height:280px;overflow:auto}
.tf-out mark{background:#ffe48a;border-radius:2px;box-shadow:0 0 0 1px #e8c95a}.tf-out mark:nth-of-type(even){background:#a8e6cf;box-shadow:0 0 0 1px #79c9a8}
.tf-out mark.z{display:inline-block;width:2px;margin:0 1px;background:#d9480f;vertical-align:text-bottom;height:1.1em}
.rx-btn,.tf-btn{font:inherit;font-size:.9rem;padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer;margin:0 6px 6px 0}
.rx-btn:hover,.tf-btn:hover{border-color:var(--accent);color:var(--accent)}
.rx-g{display:inline-block;margin-right:10px}
#matches td{white-space:normal;text-align:left;vertical-align:top}#matches th{text-align:left}
code{font-family:ui-monospace,Menlo,Consolas,monospace;background:#f1f3f8;border-radius:4px;padding:0 4px}
