.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-window {
  width: 100%;
  max-width: 1100px;
  max-height: 860px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  background: #171717;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.modal-backdrop.is-open .modal-window {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (max-width: 1050px) {
  .app.is-tools-panel-open::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 58;
    background: rgba(0, 0, 0, 0.72);
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) {
    position: fixed;
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;
    z-index: 60;
    display: grid;
    max-height: none;
    gap: 0;
    border: 1px solid #343434;
    border-radius: 14px;
    background: #171717;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.68);
    overflow: hidden;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .tool-card {
    min-height: 0;
    max-width: none;
    gap: 8px;
    align-content: start;
    grid-auto-rows: max-content;
    padding: 0;
    background: #171717;
    overflow: auto;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    box-sizing: border-box;
    height: 61px;
    max-height: 61px;
    min-height: 0;
    overflow: hidden;
    padding: 4px 6px;
    border-bottom: 1px solid #303030;
    background: #1f1f1f;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar .template-actions-group {
    width: auto;
    height: 34px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar .template-actions-group-meta {
    width: auto;
    height: 34px;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    margin-left: 0;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) #templateSourceInfo {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar button {
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar .icon-only {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar .button-label {
    gap: 0;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar .ui-icon {
    font-size: 17px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .mode-panel {
    gap: 8px;
    padding: 0 8px 8px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .tool-subtitle {
    font-size: 11px;
    line-height: 1.35;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .expert-grid {
    gap: 7px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .input-row,
  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .input-row.compact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .input-row.compact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .input-row.compact > label,
  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) #regexPatternInput {
    grid-column: 1 / -1;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) #regexFlagsInput {
    grid-column: 1 / 2;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .regex-mode-switch {
    grid-column: 1 / 2;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .regex-match-case-toggle {
    grid-column: 2 / 3;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .input-row label {
    font-size: 11px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .text-input,
  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .text-select {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 13px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .regex-mode-switch {
    min-height: 38px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions {
    gap: 6px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions button {
    min-height: 40px;
    padding: 8px 10px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar button {
    min-height: 34px;
    max-height: 34px;
    padding: 0 8px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .template-actions-toolbar .icon-only {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .regex-search-results {
    margin: 0;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .regex-search-results-list {
    max-height: 320px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .regex-search-result {
    min-height: 42px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
  }

  .app.is-tools-panel-open .cleanup-tools:not(.is-hidden) .regex-search-result-snippet {
    font-size: 11px;
    line-height: 1.35;
  }

  .app.is-tools-panel-open #templateTransferModal.is-open {
    z-index: 80;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #303030;
  background: #1f1f1f;
}

.modal-title {
  font-size: 15px;
  font-weight: bold;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.modal-column {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.modal-copypaste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-copypaste button {
  width: 100%;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #303030;
  background: #1d1d1d;
}

.modal-footer-info {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.modal-inline-status {
  min-height: 18px;
  padding: 8px 10px;
  border: 1px solid #2d3b4f;
  border-radius: 8px;
  background: #152031;
  color: #cfe3ff;
  font-size: 12px;
  line-height: 1.4;
}

.modal-inline-status:empty {
  display: none;
}

@media (max-width: 1050px) {
  .modal-header > button[id^="close"][id$="ModalBtn"] {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .modal-header > button[id^="close"][id$="ModalBtn"] .button-label {
    justify-content: center;
    gap: 0;
  }

  .modal-header > button[id^="close"][id$="ModalBtn"] .button-label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .modal-header > button[id^="close"][id$="ModalBtn"] .ui-icon {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .modal-window {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 14px;
  }

  .modal-header {
    min-height: 48px;
    padding: 10px 12px;
  }

  .modal-body,
  .multi-builder,
  .quick-template-modal-body,
  .language-modal-body,
  .mode-switcher-modal-body {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-body {
    padding: 10px;
  }

  #quickTemplateModal .quick-template-modal-body {
    overflow: hidden;
  }

  #quickTemplateModal .modal-column {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
  }

  #quickTemplatePicker {
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .modal-footer-info,
  .modal-actions {
    width: 100%;
  }

  .modal-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .modal-backdrop {
    padding: 4px;
  }

  .modal-window {
    border-radius: 12px;
  }

  .modal-header {
    padding: 9px 10px;
  }

  .modal-body {
    padding: 8px;
  }
}

.confirm-modal-backdrop {
  z-index: 70;
}

.confirm-modal-window {
  position: relative;
  grid-template-rows: auto;
  gap: 16px;
  max-width: 430px;
  padding: 24px;
  border-color: #3b4656;
  border-radius: 20px;
  background: linear-gradient(180deg, #1b222d 0%, #151a22 100%);
}

.confirm-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(132, 162, 207, 0.3);
  border-radius: 15px;
  background: rgba(44, 99, 183, 0.16);
  color: #9fc0f4;
}

.confirm-modal-icon .ui-icon {
  font-size: 24px;
  line-height: 1;
}

.confirm-modal-content {
  display: grid;
  gap: 8px;
}

.confirm-modal-title {
  color: #f4f7fb;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.confirm-modal-text {
  margin: 0;
  color: #aeb8c7;
  font-size: 14px;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-modal-actions button {
  min-height: 40px;
}

.confirm-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #96a1b1;
}

.confirm-modal-close:hover,
.confirm-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.schema-example {
  padding: 9px 10px;
  border-radius: 8px;
  background: #101010;
  color: #8fbcff;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: auto;
}

.multi-modal-window {
  max-width: 1180px;
  width: 100%;
}

.multi-builder {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.multi-zone {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

@media (max-width: 1050px) {
  #multiReplaceModal {
    align-items: stretch;
    padding: 8px;
  }

  #multiReplaceModal .multi-modal-window {
    height: 100%;
    max-width: none;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 14px;
  }

  #multiReplaceModal .modal-header {
    min-height: 46px;
    padding: 9px 11px;
  }

  #multiReplaceModal .multi-builder {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  #multiReplaceModal .multi-zone {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    align-content: stretch;
    overflow: hidden;
  }

  #multiReplaceModal .multi-zone:last-child {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  #multiReplaceModal .multi-zone .tool-title {
    min-height: 28px;
  }

  #multiReplaceModal .tool-subtitle,
  #multiReplaceModal .hint-text {
    display: none;
  }

  #multiTemplatePalette,
  #multiChainBoard {
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  #multiChainBoard {
    padding: 7px;
  }
}

.quick-template-modal-body {
  grid-template-columns: 1fr;
}

.language-modal-window {
  max-width: 760px;
}

.language-modal-body {
  grid-template-columns: 1fr;
}

.mobile-sheet-window {
  max-width: 520px;
}

.mobile-sheet-body {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .mobile-sheet-backdrop {
    align-items: flex-end;
  }

  .mobile-sheet-window {
    height: auto;
    max-height: 100%;
    align-self: flex-end;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .mobile-sheet-body {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.mobile-sheet-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #303846;
  border-radius: 11px;
  background: #202733;
  color: #e6eef9;
  font-size: 14px;
  line-height: 1.2;
  text-align: start;
  text-decoration: none;
}

.mobile-sheet-action-half {
  grid-column: 1 / -1;
}

.mobile-sheet-action .ui-icon {
  width: 20px;
  min-width: 20px;
  color: #9fc0f4;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.mobile-sheet-action:hover,
.mobile-sheet-action:focus-visible {
  background: #293447;
  color: #ffffff;
}

.mobile-font-size-control {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  text-align: center;
}

.mobile-font-size-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  border: 1px solid #3d4d62;
  border-radius: 10px;
  background: #182130;
  color: #e7f0ff;
  font-size: 20px;
  line-height: 1;
}

.mobile-font-size-step:hover,
.mobile-font-size-step:focus-visible {
  background: #243247;
}

@media (max-width: 1050px) {
  .mobile-sheet-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-sheet-action {
    grid-column: 1 / -1;
  }

  .mobile-sheet-action-half {
    grid-column: auto;
  }
}

.mobile-sheet-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
}

.mobile-sheet-toggle.is-on {
  border-color: #345f9c;
  background: #1f334f;
}

.mobile-sheet-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #303846;
  color: #aeb6c3;
  font-size: 11px;
  line-height: 1;
}

.mobile-sheet-toggle.is-on .mobile-sheet-state {
  background: #2c63b7;
  color: #ffffff;
}

.mode-switcher-modal-window {
  max-width: 610px;
  border-color: #2f3d50;
  border-radius: 18px;
  background: linear-gradient(180deg, #171b22 0%, #13171d 100%);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.64);
}

.mode-switcher-modal-window .modal-header {
  background: none;
}

.mode-switcher-modal-window button {
  background: #252e3c;
  border-radius: 4px;
}

.mode-card-state .ph {
  font-size: 20px;
}

.mode-switcher-modal-body {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.mode-switcher-toolbar {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #242d39;
  background: linear-gradient(180deg, #1a1f27 0%, #161b22 100%);
}

.mode-switcher-search {
  position: relative;
  min-height: 46px;
}

.mode-switcher-search-input {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 15px 0 45px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #edf3fb;
  font-size: 15px;
}

.mode-switcher-search-input:focus {
  box-shadow: none;
}

.mode-switcher-search-input::placeholder {
  color: #8f9caf;
}

.mode-switcher-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: text;
}

.mode-switcher-search-icon .ui-icon {
  color: #9fbef2;
}

.mode-switcher-search-frame {
  position: absolute;
  inset: 0;
  border: 1px solid #3568b0;
  border-radius: 13px;
  background: linear-gradient(180deg, #1d2430 0%, #181e27 100%);
  pointer-events: none;
}

.mode-switcher-search-input:focus ~ .mode-switcher-search-frame {
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.08), 0 0 0 3px rgba(44, 99, 183, 0.16);
}

.mode-switcher-search-input:focus ~ .mode-switcher-search-icon .ui-icon {
  color: #bfd4fb;
}

.mode-switcher-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-chip {
  min-height: 31px;
  padding: 5px 12px;
  border-color: #2d3744;
  border-radius: 999px;
  background: #1a2028;
  color: #c0c9d6;
  font-size: 12px;
}

.mode-chip:hover,
.mode-chip:focus-visible {
  border-color: #3c4b5f;
  background: #202733;
  color: #eef5ff;
}

.mode-chip.is-active {
  border-color: #4674bb;
  background: linear-gradient(180deg, #4478d3 0%, #2f61b8 100%);
  color: #eef5ff;
}

.mode-switcher-list {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  align-content: start;
  padding: 14px 18px 18px;
  background: #14181f;
}

.mode-group {
  display: grid;
  gap: 0;
  border-bottom: 1px solid #27313d;
  padding: 0 0 10px 0;
}

.mode-group-title {
  margin: 0;
  padding: 12px 18px 10px;
  color: #8d9aac;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mode-group-grid {
  display: block;
}

.mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 74px;
  padding: 13px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d7deea;
  text-decoration: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.mode-card:last-child {
  border-bottom: 0;
}

.mode-card:hover,
.mode-card:focus-visible {
  background: rgba(38, 47, 61, 0.92);
  color: #eef5ff;
}

.mode-card.is-current {
  background: linear-gradient(180deg, rgba(39, 48, 62, 0.98) 0%, rgba(31, 39, 51, 0.98) 100%);
}

.mode-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mode-icon .ui-icon {
  font-size: 18px;
}

.mode-icon-svg {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.mode-icon-blue {
  background: #172a41;
  color: #86b7ff;
}

.mode-icon-cyan {
  background: #132b31;
  color: #79d9f0;
}

.mode-icon-violet {
  background: #241a3b;
  color: #b8a0ff;
}

.mode-icon-amber {
  background: #352712;
  color: #f2c26d;
}

.mode-icon-green {
  background: #172e24;
  color: #89d6a7;
}

.mode-icon-gold {
  background: #312612;
  color: #f0d37d;
}

.mode-icon-rose {
  background: #371d25;
  color: #f2a5b7;
}

.mode-icon-php {
  background: #4F5B93;
  color: #f2a5b7;
}

.mode-icon-slate {
  background: #21262d;
  color: #b7c0ce;
}

.mode-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mode-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mode-card-title {
  color: #f0f3f7;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.mode-card-description {
  color: #a2adbc;
  font-size: 12px;
  line-height: 1.4;
}

.mode-card-state {
  display: inline-flex;
  align-items: center;
  color: #8fbcff;
  font-size: 18px;
}

.mode-switcher-empty {
  padding: 16px 18px;
  border: 1px dashed #36414f;
  border-radius: 14px;
  background: #171c22;
  color: #aab7c8;
  font-size: 13px;
  line-height: 1.5;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.language-option {
  display: grid;
  gap: 6px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #313c4b;
  border-radius: 10px;
  background: #182433;
  color: #d7deea;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.language-option:hover,
.language-option:focus-visible {
  border-color: #43648d;
  background: #203047;
  color: #eef5ff;
  transform: translateY(-1px);
}

.language-option-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.language-option-path {
  color: #9db0c8;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.3;
}

@supports not (gap: 8px) {
  .modal-header > * + * {
    margin-left: 12px;
  }

  .modal-footer > * + * {
    margin-left: 12px;
  }
}

html[dir="rtl"] .modal-header,
html[dir="rtl"] .modal-body,
html[dir="rtl"] .modal-footer,
html[dir="rtl"] .multi-builder,
html[dir="rtl"] .multi-zone,
html[dir="rtl"] .mode-switcher-toolbar,
html[dir="rtl"] .mode-switcher-list,
html[dir="rtl"] .language-grid {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .mode-switcher-search-input {
  padding: 0 45px 0 15px;
  text-align: right;
}

html[dir="rtl"] .mode-switcher-search-icon {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .mode-group-title,
html[dir="rtl"] .mode-card,
html[dir="rtl"] .language-option {
  text-align: right;
}

html[dir="rtl"] .mode-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

html[dir="rtl"] .mode-card-title-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-option-path {
  direction: ltr;
  text-align: left;
}
