.bench {
  --bench-teal: #14564f;
  --bench-line: #ccc6ba;
  --bench-faint: #f2efe7;
  --bench-alert: #88440c;
  --bench-ink: #1c1917;
  --bench-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  display: flow-root;
  min-width: 0;
  color: var(--bench-ink);
}
.bench *, .bench *::before, .bench *::after { box-sizing: border-box; }
.bench :is(h3, h4, h5) { margin: 1rem 0 .5rem; line-height: 1.25; color: var(--bench-ink); }
.bench h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.bench h4 { font-size: 1.06rem; }
.bench h5 { font-size: 1rem; }
.bench p { margin: .55rem 0 .9rem; line-height: 1.5; max-width: 72ch; }
.bench [hidden] { display: none; }
.bench :is(button, select, input, summary):focus-visible,
.bench [tabindex="-1"]:focus-visible { outline: 3px solid #99580b; outline-offset: 2px; }
.bench-choices, .bench-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.bench-choices { margin: 1.1rem 0; }
.bench-select { display: grid; gap: .35rem; min-width: 0; max-width: 100%; color: var(--bench-ink); font-weight: 650; }
.bench-select span { font-size: .87rem; }
.bench-select select, .bench-button {
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #898578;
  border-radius: 4px;
  padding: .5rem .8rem;
  background: #fffdf9;
  color: var(--bench-ink);
  font: inherit;
  line-height: 1.25;
}
.bench-button { font-weight: 620; cursor: pointer; }
.bench-button:hover:enabled { border-color: var(--bench-teal); background: #edf2ed; }
.bench-button.bench-primary { background: var(--bench-teal); border-color: var(--bench-teal); color: #fff; }
.bench-button.bench-primary:hover:enabled { background: #103e39; }
.bench-button[aria-pressed="true"] { border-color: var(--bench-teal); color: #0b433d; background: #dcece5; box-shadow: inset 0 0 0 1px var(--bench-teal); }
.bench :is(button, input):disabled { opacity: .62; cursor: default; }
.bench-rack, .bench-exam-rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(65px, 100%), 1fr));
  gap: .4rem;
  padding: .65rem;
  border: 1px solid #c6c1b4;
  border-radius: 6px;
  background: var(--bench-faint);
}
.bench-tile, .bench-small-drive {
  min-width: 0;
  padding: .45rem .2rem .55rem;
  border: 1px solid var(--bench-line);
  border-top: 3px solid #779588;
  border-radius: 2px;
  color: var(--bench-ink);
  background: #fffdf9;
  text-align: center;
  line-height: 1.15;
}
.bench-tile { cursor: pointer; font: inherit; }
.bench-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--bench-teal); }
.bench-tile.bench-fault, .bench-small-drive.bench-offline { border-top-color: #a15c2b; background: #faf0de; }
.bench-tile > *, .bench-small-drive > * { display: block; }
.bench-tile strong, .bench-small-drive b { font-family: var(--bench-mono); font-size: 1rem; }
.bench-drive-type { margin-top: .2rem; font-size: .62rem; font-weight: 650; letter-spacing: .07em; color: #5d5b53; }
.bench-drive-status, .bench-small-drive small { font-size: .72rem; margin-top: .45rem; }
.bench-detail { padding: .75rem 0 1rem; margin-bottom: .9rem; border-bottom: 1px solid var(--bench-line); }
.bench .bench-read, .bench .bench-checks, .bench .bench-recovered, .bench .bench-operation, .bench-equation code {
  font-family: var(--bench-mono);
  overflow-wrap: anywhere;
  line-height: 1.55;
  font-size: .875rem;
}
.bench .bench-read { font-weight: 650; }
.bench .bench-checks, .bench .bench-caption { color: #59564d; font-size: .85rem; }
.bench .bench-message { max-width: none; padding: .7rem .85rem; margin-top: 1rem; background: #e8f1eb; border-left: 3px solid var(--bench-teal); }
.bench .bench-warning { background: #faf0dc; border-color: #97561c; }
.bench-output, .bench-output *, .bench-evidence, .bench-equation { min-width: 0; }
.bench .bench-output { margin-top: 1rem; }
.bench .bench-recovered { border-bottom: 1px dotted var(--bench-line); padding: .25rem 0; margin: 0; }
.bench-trace { margin-top: 1rem; }
.bench-equation { padding: .65rem .8rem; background: var(--bench-faint); margin-top: 1rem; }
.bench-equation h5 { margin-top: 0; }
.bench-equation code { display: block; }
.bench-matrices { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem; margin-bottom: .8rem; }
.bench table { border-collapse: collapse; color: var(--bench-ink); }
.bench-matrices table.bench-matrix { width: auto; max-width: 100%; table-layout: fixed; }
.bench-matrix caption { text-align: left; font-size: .8rem; font-weight: 650; margin-bottom: .3rem; }
.bench .bench-matrix td { border: 1px solid var(--bench-line); padding: .22rem .36rem; background: #fffdf9; color: #6b675e; text-align: center; font: .8rem/1.35 var(--bench-mono); }
.bench .bench-matrix td.bench-nonzero { background: #e5eee8; color: #164d42; font-weight: bold; }
.bench-exam-rack { grid-template-columns: repeat(auto-fit, minmax(min(48px, 100%), 1fr)); }
.bench-evidence { margin: 1.25rem 0; }
.bench .bench-crcs { width: 100%; max-width: 38rem; table-layout: fixed; font-size: .87rem; }
.bench .bench-crcs :is(th, td) { padding: .32rem .25rem; border-bottom: 1px solid var(--bench-line); text-align: left; }
.bench-crcs :is(td, tbody th) { font-family: var(--bench-mono); }
.bench-crcs input { min-width: 20px; min-height: 20px; accent-color: var(--bench-teal); cursor: pointer; margin: 0; vertical-align: middle; }
.bench-crcs thead th { background: var(--bench-faint); font-size: .8rem; }
.bench-history { margin-top: 1rem; padding: .6rem 0; border-top: 1px solid var(--bench-line); }
.bench-history summary { cursor: pointer; }
.bench-history li { line-height: 1.45; margin: .3rem 0; }
@media (max-width: 560px) {
  .bench-select { flex: 1 1 13rem; }
  .bench-rack { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bench-exam-rack { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bench .bench-crcs { font-size: .72rem; }
  .bench-crcs th:first-child { width: 15%; }
  .bench-crcs th:last-child { width: 23%; }
  .bench .bench-crcs :is(td, th) { padding: .45rem .12rem; }
  .bench .bench-crcs thead th { font-size: .72rem; }
  .bench .bench-matrix td { padding: .2rem .28rem; }
}
