/* Regex tester — kilaz.com */
.rx-pattern-wrap { display: flex; align-items: center; gap: 0.35rem; }
.rx-pattern-wrap input { flex: 1; min-width: 0; }
.rx-slash { color: var(--text-secondary); font-size: 1.1rem; }
.rx-flags { border: 1px solid var(--border-color); border-radius: 8px; padding: 0.5rem 0.75rem; margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.rx-flags legend { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); padding: 0 0.3rem; }
.rx-flags label { display: inline-flex; align-items: center; gap: 0.3rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; color: var(--text-primary); }
.rx-flags .hint { margin: 0; font-family: inherit; }
.rx-highlight { max-height: 360px; }
.rx-highlight mark { background: rgba(255, 193, 7, 0.45); color: inherit; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.6); }
.rx-highlight mark.alt { background: rgba(33, 150, 243, 0.35); box-shadow: 0 0 0 1px rgba(33, 150, 243, 0.6); }
.rx-highlight mark.zero { display: inline-block; width: 2px; height: 1em; vertical-align: text-bottom; background: #ff9800; box-shadow: none; padding: 0; }
.rx-table th, .rx-table td { width: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; word-break: normal; max-width: 28em; overflow: hidden; text-overflow: ellipsis; }
.rx-table thead th { font-family: inherit; }
.rx-table .rx-none { color: var(--text-secondary); font-style: italic; }
.rx-cheat summary { cursor: pointer; color: var(--text-primary); }
.rx-cheat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1rem; margin-top: 0.75rem; }
.rx-cheat-grid .kv-table th { width: 42%; white-space: nowrap; }
