.raw-single-option[hidden] {
  display: none;
}

.start-actions .check-result {
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.start-actions .check-result strong {
  display: inline;
}

.start-actions .check-result br + span {
  display: inline;
}

.shell {
  padding-top: 0;
}

.display-panel {
  max-height: none;
  overflow: visible;
}

.config-help-button {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

.config-help-popup {
  position: fixed;
  z-index: 2147483647;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  background: #464646;
  color: #fff;
  border: 1px solid #69747b;
  border-radius: 6px;
  box-shadow: 0 8px 24px #0008;
  line-height: 1.7;
}

#displayToggle,
#resultDisplayToggle {
  min-width: 104px;
  padding-right: 30px;
}

.menu-help-button {
  top: -7px;
  right: -7px;
}

.wizard-start-wrap {
  position: relative;
  display: inline-block;
}

.wizard-start-wrap .primary {
  padding-right: 32px;
}

.check-result-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

.check-result-help {
  position: static;
  flex: 0 0 auto;
  margin-top: 0;
}

.raw-single-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 14px;
  white-space: nowrap;
}

.raw-single-wrap[hidden] {
  display: none;
}

.raw-single-wrap .raw-single-option {
  margin: 0;
}

.raw-single-wrap .check-result-help {
  position: static;
}

@media (max-width: 600px) and (orientation: portrait) {
  .start-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .start-actions .wizard-start-wrap,
  .start-actions .check-result-wrap {
    display: flex;
    width: 100%;
  }

  .start-actions .wizard-start-wrap .primary {
    width: 100%;
  }

  .start-actions .check-result {
    white-space: normal;
  }

  #result .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #result .actions > #reset,
  #result .actions > .check-result-wrap,
  #result .actions > .wizard-start-wrap,
  #result .actions .wizard-start-wrap .primary {
    display: flex;
    width: 100%;
  }

  #result .actions > #reset,
  #result .actions .wizard-start-wrap .primary {
    justify-content: center;
  }

  #result .actions .check-result {
    min-width: 0;
    white-space: normal;
  }

  .wizard-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px;
    gap: 8px;
  }

  .raw-single-wrap {
    min-width: 0;
    margin: 0;
    white-space: normal;
  }

  .raw-single-wrap .raw-single-option {
    min-width: 0;
    white-space: normal;
    line-height: 1.4;
  }

  .raw-single-option span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
