.find-replace-container {
  background: #000;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(2dvh+60px);
  top: 0;
}
.find-replace-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  flex-shrink: 0;
}
.find-replace-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  height: 36px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #181c1f;
  color: #eeeeee;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  font-family: "Source Code Pro", monospace;
  transition: box-shadow var(--transition-speed),
    transform var(--transition-speed), background var(--transition-speed);
}
.find-replace-search-bar:focus-within {
  box-shadow: 0 0 0 var(--focus-ring) rgba(100, 116, 255, 0.08);
  border-color: rgba(100, 116, 255, 0.18);
  transform: translateY(-1px);
}
.find-replace-mode-switch {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  padding-right: 6px;
  border-right: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.find-replace-inputs-wrapper {
  flex: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 50px;
}
.find-replace-text-input {
  flex: 1;
  height: 28px;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  padding: 4px 6px;
  min-width: 0;
}
.find-replace-text-input:focus {
  border: none;
  outline: none;
}
.find-replace-mode-replace #find-replace-find-input {
  display: none;
}
.find-replace-mode-find #find-replace-replace-input {
  display: none;
}
.find-replace-shared-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.find-replace-icon-button {
  background: transparent;
  border: none;
  color: #606060;
  cursor: pointer;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.find-replace-icon-button.active {
  color: #c6fced;
}
.find-replace-main-button {
  background: #181c1f;
  color: #e0e0e0;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: 0.15s;
  white-space: nowrap;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 8px;
}
.find-replace-main-button.active {
  color: #000000;
}
.find-replace-controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 6px 6px 6px;
  flex-wrap: wrap;
  margin-top: -1px;
}
.find-replace-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.find-replace-divider {
  width: 1px;
  height: 20px;
  background: #333;
  margin: 0 8px;
}
.find-replace-count-label {
  font-size: 11px;
  color: #606060;
  min-width: 40px;
  text-align: center;
  user-select: none;
}
.find-replace-range-input {
  width: calc(100dvw / 3);
  background: #181c1f;
  color: #e0e0e0;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: 0.15s;
  white-space: nowrap;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 8px;
}
.find-replace-all-indicator {
  font-size: 10px;
  font-weight: 700;
  margin: 0 4px;
  user-select: none;
}
.hl-match {
  background: #e3d6ff !important;
  color: #000 !important;
  border-radius: 2px !important;
  padding: 0 0px !important;
  display: inline !important;
}
.hl-current {
  background: #c6fced !important;
  color: #000 !important;
  border-radius: 2px !important;
  padding: 0 0px !important;
  display: inline !important;
}
.find-replace-hidden {
  display: none !important;
}
.find-replace-on-top {
  position: fixed !important;
  top: 10px !important;
  left: 16px !important;
  right: 16px !important;
  margin: 0 auto !important;
  max-width: calc(100% - 32px) !important;
  z-index: 4000 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.find-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px;
  border: 0;
  outline: 0;
  resize: none;
  overflow-y: scroll;
  font-family: "Source Code Pro", monospace;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  tab-size: 4;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-width: 0;
  scrollbar-color: #000 transparent;
  contain: layout style;
  will-change: scroll-position;
}
.find-backdrop {
  background: transparent;
  color: red;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
}
.find-backdrop::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}
.find-backdrop::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}
.find-backdrop::-webkit-scrollbar {
  display: none;
}
#findBackdrop {
  font-family: Source Code Pro;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  tab-size: 4;
  padding: 15px;
  margin: 0;
  border: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  color: transparent;
  z-index: 1;
  pointer-events: none;
  white-space: pre-wrap;
  word-wrap: break-word;
}
