@import url("../core/browser/page.css?v=fe3bc8ed");

/* The Generator's own rules. Colours come from ../core/browser/theme.css; the frame shared with the Player (header,
   panels, puzzle cards, dialogs) from ../core/browser/page.css. */

.header-import {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Narrow header: Import puzzle and Settings keep only their icons (the text stays for screen readers). */
@media (max-width: 767.98px) {
  .header-tools > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    padding: 0;
    background: transparent;
    border-color: transparent;
  }

  .header-tools > button:hover,
  .header-tools > button:focus-visible {
    background: var(--gen-color-hover);
  }

  .header-import__label,
  .header-settings__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* From 1360 px: puzzles | current step | wizard steps. From 768 px the puzzles move under the current step. Below
   768 px the page is one column of the three steps (see the narrow layout further down). */
.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "side"
    "main"
    "history";
  align-items: start;
  gap: var(--gen-gap);
  max-width: 100rem;
  margin-inline: auto;
  padding: var(--gen-gap);
}

.app-side {
  grid-area: side;
}

.app-main {
  grid-area: main;
  min-width: 0;
}

.app-history {
  grid-area: history;
}

.app-history > .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.app-history > .panel-header > h2 {
  margin: 0;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .app-layout {
    grid-template-columns: minmax(0, 1fr) clamp(14rem, 24vw, 17rem);
    grid-template-areas:
      "main side"
      "history side";
  }

  .app-side {
    position: sticky;
    top: var(--gen-gap);
  }

  .wizard-steps {
    flex-direction: column;
  }

  .wizard-steps > li {
    padding: 0.375rem 0.5rem 0.5rem;
    background: var(--gen-color-surface-2);
    border: 2px solid var(--pm-border);
    border-radius: var(--gen-radius-2);
  }

  .wizard-steps > li:has(> .wizard-step[aria-current="step"]) {
    background: var(--gen-color-accent-soft);
    border-color: var(--gen-color-accent);
  }

  .wizard-steps > li:has(> .wizard-step:disabled) {
    border-style: dashed;
  }

  .wizard-steps > li > .wizard-step {
    min-height: 2.5rem;
    padding-inline: 0.25rem;
    background: transparent;
    border-color: transparent;
  }
}

@media (min-width: 1360px) {
  .app-layout {
    grid-template-columns: clamp(19rem, 21vw, 23rem) minmax(0, 1fr) clamp(14rem, 17vw, 17rem);
    grid-template-areas: "history main side";
  }

  .app-history {
    position: sticky;
    top: var(--gen-gap);
    max-height: calc(100vh - 2 * var(--gen-gap));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-steps > li {
  flex: 1 1 0;
  min-width: 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.375rem 0.75rem;
  text-align: left;
  border-width: 2px;
}

.wizard-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-weight: 700;
  color: var(--pm-ink);
  border: 2px solid var(--pm-border);
  border-radius: 50%;
}

.wizard-name {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wizard-step[data-state="done"] .wizard-num {
  color: var(--gen-color-success-bg);
  background: var(--gen-color-success);
  border-color: var(--gen-color-success);
}

.wizard-step[aria-current="step"] {
  border-color: var(--gen-color-accent);
  background: var(--gen-color-accent-soft);
}

.wizard-step[aria-current="step"] .wizard-num {
  color: var(--gen-color-accent-text);
  background: var(--gen-color-accent);
  border-color: var(--gen-color-accent);
}

.wizard-step:disabled .wizard-num {
  border-color: var(--gen-color-divider);
  color: var(--gen-color-disabled-text);
}

.wizard-step-body {
  margin-top: 0.5rem;
}

.wizard-step-body .control-row {
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.wizard-step-body .field {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 0;
}

.wizard-step-body .field-wide {
  flex-basis: 100%;
}

.wizard-step-body .seed-field {
  margin: 0 0 0.5rem;
}

.wizard-step-body .seed-field .control-row {
  flex-wrap: nowrap;
}

.wizard-step-body .seed-field .field {
  flex: 1 1 auto;
}

.wizard-step-body .puzzle-controls > button {
  width: 100%;
  margin-top: 0.5rem;
}

.wizard-step-body .puzzle-controls > .field {
  flex: none;
  margin-bottom: 0.5rem;
}

.wizard-step-body .set-controls > button {
  width: 100%;
}

.set-controls > button + button {
  margin-top: 0.5rem;
}

.wizard-step-body[data-step-after] {
  border-radius: var(--gen-radius-2);
  cursor: pointer;
}

.wizard-step-body[data-step-after]:focus-visible {
  outline: 2px solid var(--gen-color-accent);
  outline-offset: 2px;
}

.board-summary {
  display: grid;
  gap: 0.5rem;
}

.board-summary-info {
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.board-summary-info > p {
  margin: 0;
}

.board-summary-info > .board-summary-title {
  font-weight: 600;
}

.board-summary-thumb {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
  background: var(--gen-board-bg);
  border-radius: var(--gen-radius-2);
}

.set-summary-card {
  padding: 0.5rem 0.75rem;
  background: var(--gen-color-surface-2);
  border-radius: var(--gen-radius-2);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.set-summary-card:empty {
  display: none;
}

.set-summary-card > p {
  margin: 0;
}

.set-summary-card > .set-summary-title {
  font-weight: 600;
}

.wizard-step-body .field input[type="number"],
.wizard-step-body .field select {
  width: 100%;
}

.wizard-feedback {
  min-width: 0;
}

.wizard-feedback:has(.result-notice:not(:empty)) {
  margin-bottom: var(--gen-gap);
}

.panel > h2,
.step-head > h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.step-head > h2 {
  flex: 1 1 12rem;
  min-width: 0;
}

.panel > h2:focus,
.step-head > h2:focus {
  outline: none;
}

.step-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gen-gap);
}

.step-column {
  min-width: 0;
}

.set-select {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.step-column > h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.step {
  display: inline-block;
  min-width: 1.5em;
  color: var(--gen-accent);
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.875rem;
}

.field.grow {
  flex: 1 1 10rem;
  min-width: 0;
}

.field input[type="number"] {
  width: 5rem;
}

.input-clear {
  position: relative;
  display: flex;
}

.input-clear > input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 2rem;
}

.input-clear > button.clear-button {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  min-width: 0;
  height: 1.5rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pm-muted);
  font-size: 0.8rem;
  line-height: 1;
  transform: translateY(-50%);
}

.input-clear > button.clear-button:hover,
.input-clear > button.clear-button:focus-visible {
  background: var(--pm-border);
  color: var(--pm-ink);
}

.field input,
.field select {
  min-height: var(--pm-target);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--pm-border);
  border-radius: 0.375rem;
  background: var(--pm-surface);
  color: var(--pm-ink);
}

.board-frame {
  position: relative;
}

.board-tools .rotate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 1.75rem;
  min-height: 0;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--gen-radius-pill);
  background: transparent;
  color: var(--gen-color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.5;
}

.board-tools .rotate-btn:hover:not(:disabled),
.board-tools .rotate-btn:focus-visible,
.board-tools .rotate-btn[aria-pressed="true"] {
  opacity: 1;
  background: var(--gen-color-hover);
  color: var(--gen-color-text);
}

.board-host .pm-board[data-pan="true"] .pm-scroll {
  cursor: grab;
}

.board-host .pm-board[data-pan="true"] .pm-scroll:active {
  cursor: grabbing;
}

.board-host {
  width: 100%;
  height: clamp(15rem, 52vh, 30rem);
  background: var(--gen-board-bg);
  border: 1px solid var(--gen-color-divider);
  border-radius: var(--gen-radius-2);
}

.board-host[data-busy="true"] {
  cursor: progress;
  opacity: 0.75;
}

.board-status {
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.notices {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.notice {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.notice-warning {
  color: var(--gen-warning);
}

.notice-error {
  color: var(--gen-error);
}

.level-field {
  margin: 0 0 0.75rem;
  overflow-x: auto;
}

.level-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.level-table caption {
  margin-bottom: 0.25rem;
  font-weight: 600;
  text-align: start;
}

.level-table th,
.level-table td {
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--pm-border);
  text-align: start;
  white-space: nowrap;
}

.level-table thead th {
  color: var(--pm-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.level-table tbody th {
  font-weight: 400;
}

.level-row:not(.is-unavailable) {
  cursor: pointer;
}

.level-row.is-selected {
  background: color-mix(in srgb, var(--gen-accent) 14%, transparent);
}

.level-row.is-selected th {
  font-weight: 600;
}

.level-row.is-unavailable {
  color: var(--pm-muted);
}

.level-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--pm-target);
  cursor: inherit;
}

.level-table td.level-reason {
  font-style: italic;
  text-align: start;
}

.level-num {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

button.help-icon {
  display: inline-grid;
  place-items: center;
  width: 1.125rem;
  min-width: 0;
  height: 1.125rem;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--pm-border);
  border-radius: 50%;
  background: transparent;
  color: var(--pm-muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

button.help-icon:hover,
button.help-icon:focus-visible,
button.help-icon[aria-describedby] {
  border-color: var(--gen-accent);
  color: var(--gen-accent);
}

.help-tip {
  position: fixed;
  z-index: 50;
  max-width: min(24rem, calc(100vw - 1rem));
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pm-border);
  border-radius: 0.5rem;
  background: var(--pm-surface);
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.18);
  font-size: 0.85rem;
  line-height: 1.45;
  pointer-events: none;
}

.help-tip .help-title {
  display: block;
  margin-bottom: 0.25rem;
}

.help-tip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.help-tip .help-note {
  margin: 0.375rem 0 0;
  color: var(--pm-muted);
  font-size: 0.8rem;
}

.seed-field {
  margin: 0.75rem 0;
}

.unique-toggle {
  margin: 0 0 0.75rem;
}

.field-error {
  margin: 0.25rem 0 0;
  color: var(--gen-error);
  font-size: 0.875rem;
}

.field-error:empty {
  display: none;
}

button.primary {
  font-weight: 600;
}

.main-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.main-actions > button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-icon {
  flex: none;
  width: 1em;
  height: 1em;
}

/* Narrow screens: one column of three frames, one per step, as in the wide layout: the step's header with the summary
   of a finished step (the board preview, the piece set) under it. The Main section of the current step comes under its
   frame, and the puzzles are shown one at a time with arrows (the cards of the wide layout are not listed). The
   controls of the current step are a bar fixed to the bottom of the screen. The nav and its list give up their boxes
   so that the frames and Main are siblings that `order` can interleave: frame n is 10n, and Main of the current step
   10n + 1. */
@media (max-width: 767.98px) {
  .app-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
  }

  .app-side,
  .wizard-steps {
    display: contents;
  }

  .wizard-steps > li {
    min-width: 0;
    padding: 0.375rem 0.5rem 0.5rem;
    background: var(--gen-color-surface-2);
    border: 2px solid var(--pm-border);
    border-radius: var(--gen-radius-2);
  }

  .wizard-steps > li:has(> .wizard-step[aria-current="step"]) {
    background: var(--gen-color-accent-soft);
    border-color: var(--gen-color-accent);
  }

  .wizard-steps > li:has(> .wizard-step:disabled) {
    border-style: dashed;
  }

  .wizard-steps > li > .wizard-step {
    min-height: 2.5rem;
    padding-inline: 0.25rem;
    background: transparent;
    border-color: transparent;
  }

  .wizard-steps > li:nth-child(1) {
    order: 10;
  }

  .wizard-steps > li:nth-child(2) {
    order: 20;
  }

  .wizard-steps > li:nth-child(3) {
    order: 30;
  }

  .app-layout:has([data-wizard-step="1"][aria-current="step"]) > .app-main {
    order: 11;
  }

  .app-layout:has([data-wizard-step="2"][aria-current="step"]) > .app-main {
    order: 21;
  }

  .app-layout:has([data-wizard-step="3"][aria-current="step"]) > .app-main {
    order: 31;
  }

  .app-history {
    display: none;
  }

  /* The controls of the current step stay at the bottom of the screen; the page leaves room for them (--gen-bar-space,
     written by app.js). */
  body {
    padding-bottom: var(--gen-bar-space, 0);
  }

  .wizard-step-body[data-step-body] {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    margin: 0;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--gen-color-surface);
    border-top: 1px solid var(--gen-color-divider);
    box-shadow: 0 -2px 10px rgb(0 0 0 / 14%);
  }

  .wizard-step-body[data-step-body] .field {
    flex: 1 1 0;
    font-size: 0.8125rem;
  }

  .wizard-step-body[data-step-body] .field-wide {
    flex: 2 1 0;
  }

  .wizard-step-body[data-step-body] .control-row {
    flex-wrap: nowrap;
    margin-bottom: 0;
  }

  .wizard-step-body[data-step-body] .puzzle-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .wizard-step-body[data-step-body] .puzzle-controls > .field {
    flex: 1 1 55%;
    margin-bottom: 0;
  }

  .wizard-step-body[data-step-body] .puzzle-controls > .unique-toggle {
    flex: 1 1 35%;
    margin: 0;
    font-size: 0.8125rem;
  }

  .wizard-step-body[data-step-body] .puzzle-controls > button {
    flex: 1 1 100%;
    margin-top: 0;
  }

  .wizard-step-body[data-step-body] .seed-field {
    margin-bottom: 0.375rem;
  }

  /* The header of the step above the panel already names it. */
  .step-head > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .step-head {
    justify-content: flex-end;
  }

  .step-hint {
    margin-bottom: 0.5rem;
  }

  /* The step above the panel is one tap away, so the panel keeps only the way forward. */
  .main-actions > [data-slot="main-back"] {
    display: none;
  }

  .level-table {
    font-size: 0.8125rem;
  }

  .level-table thead th {
    font-size: 0.75rem;
  }

  .level-table th,
  .level-table td {
    padding: 0.1875rem 0.3125rem;
  }
}

.piece-list {
  --piece-min: 88px;
  --piece-cols: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.5rem;
  row-gap: 0;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

/* Every piece is one column of the fullest row wide; the break items (zero height) end each balanced row. */
.piece-list > .piece-item {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (var(--piece-cols) - 1) * 0.5rem) / var(--piece-cols));
  min-width: 0;
  margin-bottom: 0.5rem;
}

.piece-list > .piece-break {
  flex: 0 0 100%;
  height: 0;
}

.piece-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem;
  background: var(--gen-color-surface-2);
  border: 1px solid var(--gen-color-divider);
  border-radius: var(--gen-radius-2);
  font-size: 0.8125rem;
}

.piece-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.set-summary {
  margin: 0 0 0.75rem;
  font-weight: 600;
  text-align: center;
}

.set-summary:empty {
  display: none;
}

/* Three columns: the navigator stays centered in the panel; Remove / Remove all sit on the right. */
.set-history {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.set-nav {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.set-actions {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.125rem;
}

.set-actions > button {
  min-height: 0;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--pm-muted);
  font-size: 0.8125rem;
}

.set-actions > button:hover:not(:disabled),
.set-actions > button:focus-visible {
  background: color-mix(in srgb, var(--gen-error) 10%, transparent);
  color: var(--gen-error);
}

@media (pointer: coarse) and (min-width: 768px) {
  .set-actions > button {
    min-height: 44px;
  }
}

.set-position {
  min-width: 5.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.spinner {
  flex: none;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15em;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

button .spinner {
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}

.result-notice:empty {
  display: none;
}

.job-elapsed {
  margin: 0.375rem 0 0;
  color: var(--gen-color-text-muted);
  font-size: 0.6875rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.notice-actions {
  margin-top: 0.25rem;
}

.card-body > .card-heading {
  font-size: 1rem;
  font-weight: 600;
}

.puzzle-detail {
  margin-top: 1rem;
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.5rem;
}

.detail-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
  min-width: 0;
}

.detail-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  margin-inline-start: auto;
}

.detail-actions > .icon-btn {
  display: inline-grid;
  place-items: center;
  padding: 0.25rem;
}

.detail-solution {
  display: flex;
  justify-content: flex-end;
  margin: 0.25rem 0 0;
}

button.solution-toggle {
  padding: 0.25rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--gen-accent);
  font-weight: 600;
}

button.solution-toggle:hover:not(:disabled),
button.solution-toggle[aria-pressed="true"] {
  background: var(--gen-color-accent-soft);
}

button.solution-toggle:disabled {
  background: transparent;
  color: var(--pm-muted);
  cursor: default;
}

.detail-seed {
  color: var(--pm-muted);
  font-size: 0.875rem;
}

.detail-title {
  margin: 0;
  font-size: 1.125rem;
}

.detail-tray-title {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.detail-board {
  display: block;
  max-height: min(75vh, 44rem);
  padding: 0.75rem;
  overflow: auto;
  background: var(--gen-board-bg);
  border: 1px solid var(--gen-color-divider);
  border-radius: var(--gen-radius-2);
}

/* A zoomed board scrolls inside the frame; a smaller one stays centered. */
.detail-board .pm-board {
  width: max-content;
  min-width: 100%;
  height: auto;
}

.detail-board .pm-board[data-mode="thumbnail"] .pm-scroll {
  width: auto;
  height: auto;
  overflow: visible;
}

.detail-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-piece {
  display: grid;
  place-items: center;
  padding: 0.375rem;
  background: var(--gen-color-surface-2);
  border: 1px solid var(--gen-color-divider);
  border-radius: var(--gen-radius-2);
}

.badge[data-status="multiple"],
.badge[data-status="not-proved"],
.badge[data-status="unchecked"] {
  color: var(--gen-warning);
}

/* Narrow screens, the rules that must follow the ones above: the navigator of the steps is small, with a border so that
   it is easy to see, and the piece set's navigator is small, with Remove and Remove all on a row of their own, at the
   right. */
@media (max-width: 767.98px) {
  .main-actions > button {
    min-height: 1.75rem;
    padding: 0 0.5rem;
    color: var(--gen-color-accent);
    font-size: 0.8125rem;
    background: transparent;
    border: 1px solid var(--gen-color-accent);
  }

  .main-actions > button:hover:not(:disabled),
  .main-actions > button:focus-visible {
    background: var(--gen-color-hover);
  }

  .main-actions > button:disabled {
    color: var(--gen-color-disabled-text);
    border-color: var(--gen-color-divider);
  }

  .set-history {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.25rem;
  }

  .set-nav,
  .set-actions {
    grid-column: 1;
  }

  .set-nav {
    justify-self: center;
    gap: 0.375rem;
  }

  .set-nav > button {
    min-width: 2rem;
    min-height: 1.75rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
  }

  .set-position {
    min-width: 4.5rem;
    font-size: 0.875rem;
  }

  .set-actions {
    justify-self: end;
    flex-wrap: nowrap;
  }

  .set-actions > button {
    min-height: 1.5rem;
    white-space: nowrap;
    font-size: 0.75rem;
  }
}
