.benchmark-simulator-action .trajectory-open {
  min-height: 38px;
  height: 38px;
  padding-inline: 13px;
  font-size: var(--text-body);
}

.mouse-picker-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.mouse-picker-selection .technical-note {
  margin: 0;
}

.mouse-picker-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--rule);
  background: #f2f2f2;
  font-size: var(--text-table);
  line-height: 1.2;
}

.mouse-picker-chip-prefix {
  color: var(--muted);
}

.mouse-picker-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mouse-picker-chip button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 1px solid var(--rule);
  background: #ffffff;
  font: inherit;
  line-height: 1;
}

.mouse-picker-results {
  margin-top: 8px;
}

.mouse-picker-list {
  display: grid;
  gap: 4px;
}

.mouse-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  font-family: var(--font-sans);
}

.mouse-picker-row:hover,
.mouse-picker-row:focus-visible {
  background: #eeeeee;
}

.mouse-picker-row.selected,
.mouse-picker-row:disabled {
  color: var(--muted);
  background: #f5f5f5;
}

.mouse-picker-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

.mouse-picker-name strong,
.mouse-picker-name span,
.mouse-picker-name em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mouse-picker-name strong {
  font-weight: 700;
}

.mouse-picker-name em {
  color: var(--muted);
  font-style: normal;
  font-size: var(--text-small);
}

.mouse-picker-action {
  color: var(--muted);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.study-setup-fields {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(2, minmax(160px, 0.85fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--soft);
  background: #ffffff;
  align-items: stretch;
}

.study-setup-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--soft);
  background: #fbfbfb;
}

.study-setup-group-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-mouse-setup-group {
  grid-column: auto;
  grid-template-columns: 1fr;
  align-self: start;
}

.study-pad-setup-group {
  grid-column: span 2;
  justify-items: stretch;
}

.study-setup-group-display {
  grid-column: 1 / -1;
}

.study-setup-group legend {
  padding: 0;
  color: #000000;
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
}

.study-setup-group-display legend {
  justify-self: center;
  text-align: center;
}

.study-field {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.study-field > span {
  font-weight: 700;
  line-height: 1.2;
}

.study-mouse-setup-group .study-field > span,
.study-pad-field > span {
  text-align: center;
}

.study-choice-value {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.study-choice-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.study-choice-buttons button {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #000000;
  color: #000000;
  font-size: var(--text-table);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--button-shadow-small);
}

.study-choice-buttons button:hover,
.study-choice-buttons button:focus-visible {
  background: var(--button-hover);
}

.study-choice-buttons button.is-selected {
  background: var(--button-pressed);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.24);
  transform: translate(1px, 1px);
}

.study-identify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: min(100%, 760px);
  max-width: 100%;
  margin: 0 auto;
}

.study-mouse-identify-field {
  position: relative;
}

.study-mouse-identify-field.has-fixed-mouse-brand .study-identify-row {
  width: min(100%, 860px);
}

.study-identify-row button {
  flex: 0 0 auto;
  min-height: 38px;
  width: auto;
  justify-self: center;
  padding-right: 14px;
  padding-left: 14px;
}

.study-identify-row input {
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.study-mouse-brand-field {
  display: none;
  flex: 0 1 136px;
  background: #eeeeee;
  color: #000000;
  font-weight: 700;
}

.study-mouse-identify-field.has-fixed-mouse-brand .study-mouse-brand-field {
  display: block;
}

.study-mouse-identify-field:not(.is-mouse-identified) #studyMouseName,
.study-mouse-identify-field:not(.is-mouse-identified) .study-mouse-brand-field {
  display: none;
}

.study-mouse-identify-field:not(.is-mouse-identified) .study-identify-row {
  width: auto;
}

.study-mouse-identify-field:not(.is-mouse-identified) #studyIdentifyMouse {
  width: auto;
}

.study-mouse-identity-status:empty {
  display: none;
}

.study-mouse-name-display {
  display: none;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--soft);
  background: #f6f6f6;
  color: #000000;
  font-size: var(--text-table);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.study-mouse-identify-field.is-mouse-identified .study-mouse-name-display {
  display: none;
}

.study-mouse-identify-field.needs-mouse-identification #studyIdentifyMouse {
  border-color: var(--rule);
  box-shadow: 1px 1px 0 #000000;
}

.study-mouse-candidate-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: min(178px, 36vh);
  overflow: auto;
  padding: 4px;
  border: 1px solid #000000;
  background: #ffffff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.study-mouse-candidate-menu[hidden] {
  display: none;
}

.study-mouse-candidate-option {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  border: 0;
  border-bottom: 1px solid var(--soft);
  background: #ffffff;
  color: #000000;
  font-size: var(--text-table);
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  box-shadow: none;
}

.study-mouse-candidate-option:hover,
.study-mouse-candidate-option:focus-visible {
  background: var(--button-hover);
}

.study-mouse-candidate-empty {
  padding: 6px 7px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.study-mouse-identity-status[data-status="required"] {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: none;
}

.study-choice-field {
  gap: 6px;
}

.study-choice-value {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.study-choice-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.study-pad-choice-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.study-pad-choice-buttons button {
  min-width: 0;
}

.study-choice-field .study-choice-buttons {
  justify-content: center;
}

.study-choice-buttons button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 34px;
  padding: 5px 7px;
  border-color: var(--rule);
  background: #ffffff;
  box-shadow: 1px 1px 0 #000000;
  font-size: var(--text-table);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.study-choice-buttons button:hover,
.study-choice-buttons button:focus-visible {
  background: #f3f3f3;
}

.study-choice-buttons button.is-selected,
.study-choice-buttons button[aria-pressed="true"] {
  background: #e7e7e1;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.22);
  transform: translate(1px, 1px);
}

.study-pad-choice-buttons button {
  min-width: 0;
}

.study-field-label {
  font-weight: 700;
  line-height: 1.2;
}

.study-label-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.study-field small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
}

.study-field-error {
  display: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.study-field.is-required-missing > span::after,
.study-setup-group.is-required-missing > legend::after {
  content: " (required)";
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
}

.study-field.is-required-missing input,
.study-field.is-required-missing select {
  border-color: var(--rule);
  background: #ffffff;
  box-shadow: none;
}

.study-field.is-required-missing .study-choice-buttons button {
  border-color: var(--rule);
}

.study-field.is-required-missing .study-field-error,
.study-setup-group.is-required-missing > .study-field-error {
  display: block;
}

.study-setup-fields .study-field-error,
.study-setup-fields .study-field.is-required-missing .study-field-error,
.study-setup-fields .study-setup-group.is-required-missing > .study-field-error {
  display: none;
}

.study-calibration-copy {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-table);
  line-height: 1.35;
  text-align: center;
}

.study-card-calibration {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--soft);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 20px 20px;
}

.study-setup-group.is-required-missing .study-card-calibration {
  border-color: var(--soft);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    #ffffff;
}

.study-card-box {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  aspect-ratio: 85.6 / 53.98;
  width: 260px;
  max-width: calc(100% - 28px);
  border: 2px solid #000000;
  background: #f7f7f7;
  box-shadow: 2px 2px 0 #000000;
  color: #000000;
  font-family: var(--font-mono);
  font-size: var(--text-table);
  font-weight: 700;
  text-transform: uppercase;
  user-select: none;
}

.study-card-title {
  max-width: calc(100% - 24px);
  color: #000000;
  font-size: clamp(14px, 5.2vw, 23px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
}

.study-card-size {
  max-width: calc(100% - 24px);
  font-size: clamp(14px, 5.2vw, 23px);
  line-height: 1.05;
  font-weight: 700;
  text-align: center;
}

.study-card-hint {
  font-size: var(--text-xs);
  font-weight: 700;
}

.study-card-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 2px 5px;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.study-card-box::before,
.study-card-box::after {
  content: "";
  position: absolute;
  border: 1px solid var(--soft);
}

.study-card-box::before {
  top: 13%;
  left: 8%;
  width: 20%;
  height: 18%;
}

.study-card-box::after {
  right: 8%;
  bottom: 18%;
  width: 30%;
  height: 1px;
  border-width: 1px 0 0;
}

.study-card-handle {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 34px;
  height: 34px;
  border: 2px solid #000000;
  background: #ffffff;
  cursor: nwse-resize;
  box-shadow: 2px 2px 0 #000000;
}

.study-card-handle::before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 17px;
  height: 17px;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

.study-card-handle::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

.study-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--text-table);
}

.study-card-meta button {
  min-height: 30px;
  padding: 4px 8px;
}

.study-card-meta span {
  color: var(--muted);
}

.study-start-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  background: #f7f7f7;
}

.study-start-panel div,
.study-start-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.study-start-panel strong {
  font-family: var(--font-mono);
  font-size: var(--title-sm);
  text-transform: uppercase;
}

.study-start-panel span {
  color: #000000;
  font-size: var(--text-table);
  line-height: 1.3;
}

.study-start-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.study-run-credit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #000000;
  color: #000000;
  background: #fff4a8;
  box-shadow: 1px 1px 0 #000000;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.study-run-credit-badge[hidden] {
  display: none;
}

.study-credit-rules {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--soft);
  background: #ffffff;
}

.study-credit-rules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.study-credit-rules-head strong {
  color: #000000;
  font-family: var(--font-mono);
  font-size: var(--text-table);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.study-credit-rules-head span {
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
  text-align: right;
}

.study-credit-rule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.study-credit-rule-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 3px;
  min-width: 0;
  min-height: 82px;
  padding: 7px;
  border: 1px solid var(--rule);
  color: #000000;
  background: #f7f7f7;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.18);
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.study-credit-rules[data-credit-status="ready"] .study-credit-rule-card:not(.is-active) {
  opacity: 0.62;
  background: #f1f1f1;
}

.study-credit-rule-card b,
.study-credit-rule-card strong,
.study-credit-rule-card span {
  min-width: 0;
}

.study-credit-rule-card b {
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.15;
}

.study-credit-rule-card strong {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.study-credit-rule-card span {
  color: #333333;
  font-size: var(--text-xs);
  line-height: 1.18;
}

.study-credit-rule-card.is-active {
  border: 2px solid #000000;
  padding: 6px;
  background: #fff2b8;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.18), 2px 2px 0 #000000;
  opacity: 1;
  transform: translate(-1px, -1px);
}

.study-credit-rule-card.is-active b {
  padding-right: 54px;
}

.study-credit-rule-card.is-active::after {
  content: "THIS RUN";
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 4px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.study-credit-rule-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.3;
}

.study-start-panel button {
  min-width: 180px;
  min-height: 46px;
  padding: 8px 16px;
  border: 3px solid #000000;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: var(--text-large);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent);
  box-shadow: 3px 3px 0 #000000;
}

.study-start-panel button:hover,
.study-start-panel button:focus-visible {
  color: #000000;
  background: #ffffff;
}

.study-start-panel button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000000;
}

.study-start-panel button:disabled,
.study-start-panel button[aria-disabled="true"] {
  color: var(--muted);
  border-color: var(--rule);
  background: #eeeeee;
  box-shadow: none;
  cursor: not-allowed;
}

.mouse-fit-unsupported .desktop-study-content {
  display: none !important;
}

.mouse-fit-unsupported #runTestTitle {
  display: none;
}

.mouse-fit-unsupported #studyDeviceNotice {
  margin: 0;
}

.study-summary {
  margin-top: 10px;
}

.study-history {
  position: relative;
  margin-top: 0;
}

.loading-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.loading-panel p {
  margin: 0;
  color: #000000;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.loading-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #eeeeec;
}

.loading-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 42%;
  background: var(--accent);
  animation: loading-progress-slide 1.15s linear infinite;
}

@keyframes loading-progress-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(338%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress span {
    left: 0;
    width: 100%;
    animation: none;
  }
}

.history-update-notice {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: #f8f8f5;
  font-size: var(--text-xs);
  line-height: 1.2;
  pointer-events: none;
}

.history-update-notice span {
  display: block;
  width: 34px;
  height: 5px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #eeeeec;
}

.history-update-notice span::before {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: var(--accent);
  animation: loading-progress-slide 1.15s linear infinite;
}

.history-update-notice b {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .history-update-notice span::before {
    width: 100%;
    animation: none;
  }
}

@media (max-width: 520px) {
  .history-update-notice {
    top: 2px;
    right: 2px;
    padding: 3px 6px;
  }

  .history-update-notice span {
    width: 24px;
  }

  .history-update-notice b {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.history-unlock-roadmap {
  display: grid;
  gap: 9px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}

.history-unlock-roadmap header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.history-unlock-roadmap header div {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.history-unlock-roadmap header span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.history-unlock-roadmap header strong {
  font-size: var(--title-md);
  line-height: 1;
}

.history-unlock-roadmap header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: right;
}

.history-unlock-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #eeeeec;
}

.history-unlock-track span {
  display: block;
  height: 100%;
  min-width: 2px;
  background: #000000;
}

.history-unlock-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.history-unlock-stage {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--rule);
  background: #ffffff;
  color: #000000;
  box-shadow: var(--button-shadow-small);
  text-align: center;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, background 80ms ease, color 80ms ease;
}

.history-unlock-stage span,
.history-unlock-stage em {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.history-unlock-stage strong {
  min-width: 0;
  font-size: var(--text-body);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.history-unlock-stage.is-locked {
  border-color: var(--soft);
  color: #8a8a84;
  background: #f5f5f1;
  box-shadow: none;
}

.history-unlock-stage.is-locked span,
.history-unlock-stage.is-locked em {
  color: #8f8f89;
}

.history-unlock-stage.is-locked strong {
  color: #4f4f4a;
  filter: blur(3px);
  font-weight: 650;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.history-unlock-stage.is-locked::after {
  content: "Preview";
  position: absolute;
  right: 6px;
  bottom: 5px;
  color: #8a8a84;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.history-unlock-stage.is-active {
  transform: translate(1px, 1px);
  border-color: #000000;
  background: #e7e7e1;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.22);
}

.history-unlock-stage.is-active strong {
  color: #000000;
}

.history-unlock-stage.is-active span,
.history-unlock-stage.is-active em {
  color: #333333;
}

.history-unlock-stage.is-active.is-locked {
  background: #e9e9e3;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.22);
}

.history-unlock-stage.is-active.is-locked strong {
  filter: blur(2.6px);
  opacity: 0.8;
}

.history-unlock-stage.is-unlocked em {
  color: #000000;
}

.history-unlock-analysis {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.history-unlock-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.history-stage-metrics {
  display: grid;
  gap: 0;
  min-width: 0;
}

.history-stage-metric {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--soft);
  background: transparent;
}

.history-stage-metric:first-child {
  border-top: 0;
}

.history-stage-metric header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.history-stage-metric header strong {
  font-size: var(--text-large);
  line-height: 1.15;
}

.history-stage-metric header span,
.history-metric-scale {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.history-stage-metric.is-empty p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.history-echart {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  border: 0;
  background: #fbfbf8;
}

.history-metric-scale {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.history-metric-scale span:nth-child(2) {
  text-align: center;
}

.history-stage-locked {
  display: grid;
  gap: 3px;
  padding: 10px 0 0;
  border: 1px dashed var(--rule);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: #f8f8f5;
}

.history-stage-locked strong {
  font-size: var(--title-sm);
}

.history-stage-locked span {
  color: var(--muted);
  font-size: var(--text-sm);
}

@media (max-width: 720px) {
  .history-unlock-roadmap header,
  .history-stage-metric header {
    display: grid;
    gap: 4px;
  }

  .history-unlock-roadmap header p,
  .history-stage-metric header span {
    text-align: left;
  }

  .history-unlock-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-unlock-stage {
    min-height: 66px;
  }

}

.history-dashboard {
  display: grid;
  gap: 12px;
}

.history-task-stack {
  display: grid;
  gap: 16px;
}

.history-task-section {
  display: grid;
  gap: 10px;
  padding-top: 0;
  border-top: 0;
}

.history-best-run-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.history-best-run-filter input {
  inline-size: 15px;
  block-size: 15px;
  margin: 0;
  accent-color: var(--ink);
}

@media (max-width: 560px) {
  .history-best-run-filter {
    width: 100%;
    justify-content: center;
  }
}

.history-task-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-task-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--title-md);
  line-height: 1.1;
}

.history-task-heading h3 .section-title-icon {
  width: 22px;
  height: 22px;
}

.history-task-heading span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  text-align: right;
}

.history-record-empty {
  margin: 0;
  color: var(--muted);
}

.history-panel-empty {
  margin: 0;
  color: var(--muted);
}

.study-population {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.population-relative-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.population-relative-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.population-relative-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.population-relative-card > header strong {
  font-size: var(--title-sm);
  line-height: 1.15;
}

.population-relative-card > header span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.population-echart {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  border: 0;
  background: #fbfbf8;
}

.population-question {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--soft);
  background: transparent;
}

.population-question strong {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.1vw, 1.34rem);
  font-weight: 800;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

.population-question p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

.population-question-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
}

.population-question-action span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #000000;
  font-size: var(--text-body);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.population-question-action span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid #000000;
  background: var(--button-pressed);
}

.population-question-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #000000;
  background: var(--button-bg);
  box-shadow: var(--button-shadow-small);
  color: #000000;
  font-size: var(--text-table);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-decoration: none;
}

.population-question-action a:hover,
.population-question-action a:focus-visible {
  background: var(--button-hover);
}

.population-question-action a:active {
  background: var(--button-pressed);
  transform: translate(1px, 1px);
  box-shadow: none;
}

.population-dataset-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: -2px 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--text-sm);
  line-height: 1.25;
}

.population-dataset-summary span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.population-dataset-summary strong {
  font-weight: 700;
}

.population-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.population-coming-soon {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.population-coming-soon strong {
  font-size: var(--title-sm);
  line-height: 1.15;
}

.population-coming-soon span {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.population-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.population-stat {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 2px solid #000000;
  background: #ffffff;
}

.population-stat strong {
  font-family: var(--font-mono);
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1;
}

.population-stat span {
  font-size: var(--text-large);
  font-weight: 800;
  line-height: 1.15;
}

.population-stat small,
.population-updated {
  color: var(--muted);
  font-size: var(--text-xs);
}

.population-updated {
  margin: -4px 0 0;
}

.population-metric-leaders {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.population-metric-leaders h3 {
  margin: 0;
  font-size: var(--title-md);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.population-score-update-note {
  justify-self: center;
  margin: -2px 0 4px;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  background: var(--paper-warm);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.population-metric-leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.population-metric-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.population-metric-task {
  display: grid;
  align-self: start;
  gap: 6px;
  min-width: 0;
}

.population-metric-task h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px 6px;
  min-height: 30px;
  border: 1px solid var(--rule);
  background: #eeeeec;
  font-size: var(--text-large);
  line-height: 1.15;
  text-align: center;
}

.population-metric-leader {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--soft);
  background: #f8f8f6;
  text-align: center;
}

.population-metric-leader.is-empty {
  color: var(--muted);
  background: #fbfbfb;
}

.population-metric-name,
.population-metric-leader small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
}

.population-metric-name {
  font-weight: 700;
  text-transform: uppercase;
}

.population-metric-leader strong {
  min-width: 0;
  font-size: var(--title-sm);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.population-metric-value {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.population-throughput-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.population-throughput-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.population-throughput-panel h3 {
  margin: 0;
  font-size: var(--title-sm);
  line-height: 1.2;
}

.population-throughput-task-chart {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.population-throughput-task-chart h4 {
  margin: 0;
  font-size: var(--text-large);
  line-height: 1.2;
}

.population-throughput-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.population-throughput-tabs button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  background: #ffffff;
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--button-shadow-small);
}

.population-throughput-tabs button.is-active {
  background: var(--button-pressed);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.24);
  transform: translate(1px, 1px);
}

.population-throughput-chart-wrap {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  align-items: start;
}

.population-throughput-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 179px;
  padding: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.1;
  text-align: right;
}
