.rename-bench {
  --bench-bg: #142236;
  --bench-top: #1c2c43;
  --bench-line: #364960;
  --bench-muted: #b3c1d4;
  --bench-accent: #a4cbff;
  container: rename-bench / inline-size;
  margin: 0;
  min-width: 0;
  border: 1px solid #2f425b;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bench-bg);
  color: #f2f6fc;
  color-scheme: dark;
  font-family: var(--sans, system-ui, sans-serif);
  box-shadow: 0 1.1rem 2.5rem -1.75rem #192a4470;
}
.rename-bench, .rename-bench * { box-sizing: border-box; }
.bench-top, .bench-actions, .bench-path, .bench-item {
  padding-inline: clamp(1rem, 3cqi, 2rem);
}
.bench-top, .bench-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  flex-wrap: wrap;
}
.bench-top {
  padding-block: .8rem;
  background: var(--bench-top);
}
.bench-sr, .bench-modes input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.bench-modes {
  display: inline-flex;
  margin: 0;
  padding: 0 .18rem;
  border: 1px solid #455873;
  border-radius: .6rem;
  min-inline-size: 0;
  background: #142035;
}
.bench-modes label {
  display: grid;
  place-items: center;
  min-width: 4.6rem;
  min-height: 3rem;
  border-radius: .42rem;
  padding: .45rem .85rem;
  color: #ccdaea;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 580;
}
.bench-modes input:checked + label {
  background: var(--bench-accent);
  color: #112942;
  box-shadow: inset 0 2px 0 #c8dfff, inset 0 -2px 0 #76a4df;
}
.bench-option, .bench-item {
  cursor: pointer;
}
.bench-option {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: .55rem;
  color: #e3edf9;
  font-size: .94rem;
}
.rename-bench input[type="checkbox"] {
  margin: 0;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--bench-accent);
}
.bench-modes input:focus-visible + label, .rename-bench input[type="checkbox"]:focus-visible, .bench-submit:focus-visible {
  outline: 3px solid #eef7ff;
  outline-offset: 3px;
}
.bench-path {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.4rem;
  padding-block: .7rem;
  border-block: 1px solid var(--bench-line);
  color: var(--bench-muted);
  font: 500 .84rem/1.4 var(--mono, ui-monospace, monospace);
}
.bench-path strong {
  font-weight: 600;
  color: #e0ebfa;
}
.bench-folder {
  position: relative;
  width: 1.13rem;
  height: .8rem;
  margin-block-start: .12rem;
  border: 1.5px solid #9ab9e4;
  border-radius: .15rem;
}
.bench-folder::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: -.32rem;
  width: .55rem;
  height: .27rem;
  border: 1.5px solid #9ab9e4;
  border-bottom: 0;
  border-radius: .15rem .19rem 0 0;
}
.bench-slash { color: #8ca0ba; }
.rename-bench .bench-files {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bench-file { margin: 0; }
.bench-file + .bench-file { border-top: 1px solid var(--bench-line); }
.bench-item {
  display: grid;
  align-items: center;
  grid-template-columns: 1.15rem minmax(0, 1fr) 1rem minmax(0, 1.25fr);
  gap: .7rem 1rem;
  min-height: 6.3rem;
  padding-block: 1.1rem;
}
.bench-item small {
  display: block;
  margin-bottom: .38rem;
  color: var(--bench-muted);
  font: 500 .8rem/1.3 var(--sans, system-ui, sans-serif);
}
.bench-item code {
  display: block;
  padding: 0;
  color: #edf3fa;
  background: transparent;
  overflow-wrap: anywhere;
  font: 480 clamp(.84rem, 1.65cqi, .99rem)/1.48 var(--mono, ui-monospace, monospace);
}
.bench-item .bench-result code { color: var(--bench-accent); }
.bench-pass {
  position: relative;
  height: 1px;
  background: #839dbf;
}
.bench-pass::after {
  content: "";
  position: absolute;
  top: -2.5px;
  right: 0;
  width: 6px;
  height: 6px;
  border: solid #839dbf;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.bench-skipped .bench-result code { color: #b1becf; }
.bench-applied .bench-item, .bench-applied .bench-option { cursor: default; }
.bench-applied .bench-item:not(.bench-skipped) .bench-result code { color: #a4eccd; }
.bench-actions {
  padding-block: 1rem;
  border-top: 1px solid var(--bench-line);
  background: #17273c;
  color: #d7e4f3;
  font-size: .94rem;
}
.bench-submit {
  min-height: 3rem;
  padding: .6rem 1.15rem;
  border: 1px solid #c7defb;
  border-radius: .52rem;
  background: var(--bench-accent);
  color: #102541;
  font: 680 1rem/1.25 var(--sans, system-ui, sans-serif);
  cursor: pointer;
}
.bench-submit:hover:enabled { background: #c1ddff; }
.bench-submit:disabled {
  border-color: #576b86;
  background: #35465c;
  color: #b5c1d0;
  cursor: default;
}
.bench-fallback { margin: 0; padding: 1rem; color: #c6d5e9; }
@media (prefers-reduced-motion: no-preference) {
  .bench-submit { transition: background-color .15s ease; }
  .bench-applied .bench-item:not(.bench-skipped) .bench-result { animation: bench-apply .3s ease-out; }
  @keyframes bench-apply {
    from { transform: translateY(.18rem); opacity: .68; }
    to { transform: translateY(0); opacity: 1; }
  }
}
@media (max-width: 40rem) {
  .bench-item { grid-template-columns: 1.15rem minmax(0, 1fr); }
  .bench-item input { grid-row: 1 / 3; align-self: start; margin-top: .1rem; }
  .bench-item .bench-pass { display: none; }
  .bench-result { grid-column: 2; }
}
@container rename-bench (max-width: 37rem) {
  .bench-item { grid-template-columns: 1.15rem minmax(0, 1fr); }
  .bench-item input { grid-row: 1 / 3; align-self: start; margin-top: .1rem; }
  .bench-item .bench-pass { display: none; }
  .bench-result { grid-column: 2; }
}
