body.regex-tester-page .regex-pattern-input {
  font-family: var(--font-mono);
}

body.regex-tester-page .regex-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #2b2b2b;
  border-radius: var(--radius-md);
  background: #151515;
}

body.regex-tester-page .regex-flags label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #ffffff;
  cursor: pointer;
}

body.regex-tester-page .regex-flags input[type="checkbox"] {
  width: auto;
  height: auto;
}

body.regex-tester-page .regex-flag-hint {
  color: #8a8a8a;
  font-size: 0.75rem;
}

body.regex-tester-page .regex-highlight-box {
  min-height: 120px;
  padding: 0.6rem;
  border: 1px solid #2b2b2b;
  border-radius: var(--radius-md);
  background: #151515;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  max-height: 260px;
}

body.regex-tester-page .regex-highlight-box mark {
  background: #ffd43b;
  color: #111111;
  border-radius: 3px;
  padding: 0 1px;
}

body.regex-tester-page .regex-highlight-box .regex-empty-hint {
  color: #8a8a8a;
}

body.regex-tester-page .regex-match-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.regex-tester-page .regex-match-item {
  padding: 0.5rem 0.65rem;
  border: 1px solid #2b2b2b;
  border-radius: var(--radius-md);
  background: #101010;
  font-size: 0.82rem;
}

body.regex-tester-page .regex-match-heading {
  color: #cfcfcf;
  margin-bottom: 0.25rem;
}

body.regex-tester-page .regex-match-value,
body.regex-tester-page .regex-group-value {
  font-family: var(--font-mono);
  color: #ffd43b;
  word-break: break-word;
}

body.regex-tester-page .regex-group-row {
  margin-top: 0.2rem;
  color: #b5b5b5;
}
