/* RegEx Tester — tool-specific styles */
.ws-title{font-size:1.02rem;font-weight:700;margin:0 0 10px;display:flex;align-items:center;gap:8px;color:var(--text,#0f172a)}
.ws-title i{color:var(--primary,#4f46e5)}
[data-theme="dark"] .ws-title{color:#e2e8f0}
.rx-pattern-row{display:flex;align-items:center;gap:6px;background:var(--surface-2,#f1f5f9);border:1px solid var(--border,#e2e8f0);border-radius:10px;padding:8px 12px}
[data-theme="dark"] .rx-pattern-row{background:#0f172a;border-color:#334155}
.rx-delim{font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700;color:var(--primary,#4f46e5);font-size:1.1rem}
#rx-pattern{flex:1;border:none;background:transparent;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92rem;padding:6px 2px;min-width:0}
#rx-pattern:focus{outline:none}
.rx-flags-input{width:70px;border:none;background:transparent;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92rem;padding:6px 2px}
.rx-flags-input:focus{outline:none}
[data-theme="dark"] #rx-pattern,[data-theme="dark"] .rx-flags-input{color:#e2e8f0}
.rx-flag-checks{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0 14px}
.check-label{display:flex;align-items:center;gap:6px;font-size:.85rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700;color:var(--muted,#475569);cursor:pointer}
.check-label input{width:auto;accent-color:var(--primary,#4f46e5)}
.flag-hint{font-family:Inter,sans-serif;font-weight:400;font-size:.75rem;opacity:.75}
#rx-text{width:100%;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.87rem;line-height:1.55;resize:vertical}
.tool-error{color:#b91c1c;font-weight:600;font-size:.9rem;margin:8px 0}
[data-theme="dark"] .tool-error{color:#fca5a5}
.rx-status{font-size:.88rem;font-weight:600;color:var(--muted,#475569);margin:4px 0 10px}
[data-theme="dark"] .rx-status{color:#94a3b8}
.rx-highlight{background:var(--surface-2,#f1f5f9);border:1px solid var(--border,#e2e8f0);border-radius:10px;padding:14px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.86rem;line-height:1.7;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow:auto;min-height:56px}
[data-theme="dark"] .rx-highlight{background:#0f172a;border-color:#334155;color:#e2e8f0}
.rx-highlight mark{background:#c7d2fe;color:#1e1b4b;border-radius:3px;padding:1px 0;font-weight:600}
.rx-highlight mark:nth-of-type(even){background:#a5f3fc;color:#083344}
[data-theme="dark"] .rx-highlight mark{background:#4338ca;color:#e0e7ff}
[data-theme="dark"] .rx-highlight mark:nth-of-type(even){background:#0e7490;color:#cffafe}
.rx-groups-wrap,.rx-highlight-wrap,.rx-explain-wrap,.rx-replace-out-wrap{margin-top:20px}
.rx-table-scroll{overflow-x:auto}
.rx-groups{width:100%;border-collapse:collapse;font-size:.84rem}
.rx-groups th,.rx-groups td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--border,#e2e8f0);vertical-align:top;word-break:break-word}
[data-theme="dark"] .rx-groups th,[data-theme="dark"] .rx-groups td{border-color:#334155}
.rx-groups code{font-size:.8rem}
.rx-out{background:var(--surface-2,#f1f5f9);border:1px solid var(--border,#e2e8f0);border-radius:10px;padding:14px;font-size:.85rem;line-height:1.6;white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto;margin:0}
[data-theme="dark"] .rx-out{background:#0f172a;border-color:#334155;color:#e2e8f0}
.rx-explain{list-style:none;padding:0;margin:0;font-size:.86rem}
.rx-explain li{padding:6px 0;border-bottom:1px dashed var(--border,#e2e8f0);display:flex;gap:12px;align-items:baseline}
[data-theme="dark"] .rx-explain li{border-color:#334155}
.rx-explain code{font-weight:700;min-width:90px;flex-shrink:0}
.rx-replace-row{margin-top:20px}
.btn-row{display:flex;gap:10px;margin:18px 0 0;flex-wrap:wrap}
.btn-mini{padding:3px 10px;font-size:.72rem;margin-left:auto}
