/* http.tera / http_ipv6.tera — 网站测速输入区两行排版（上行：输入+按钮，下行：线路+DNS） */

.card.input-area.tool-http-input > div[style*="1130px"],
.card.input-area.tool-http-input > .advanced[style*="1130px"],
.card.input-area.tool-http-input > .tool-line-select-bar {
  width: 1130px !important;
  max-width: calc(100% - 40px) !important;
  box-sizing: border-box;
}

.card.input-area.tool-http-input > div[style*="1130px"]:first-of-type {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
  margin-bottom: 0;
}

.card.input-area.tool-http-input > div[style*="1130px"]:first-of-type > .float-left {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  position: relative;
}

.card.input-area.tool-http-input > div[style*="1130px"]:first-of-type > .float-right {
  float: none !important;
  flex: 0 0 auto;
  margin-left: 0 !important;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.card.input-area.tool-http-input > div[style*="1130px"]:first-of-type > .float-right .btn {
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

.card.input-area.tool-http-input > div[style*="1130px"]:first-of-type > .float-right .btn.ml-1 {
  margin-left: 4px !important;
}

.card.input-area.tool-http-input #host {
  width: 100% !important;
  max-width: 100% !important;
}

.card.input-area.tool-http-input .clear_input {
  position: absolute !important;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
  display: inline-block;
}

.card.input-area.tool-http-input .tool-line-select-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

@media screen and (max-width: 1280px) {
  .card.input-area.tool-http-input .tool-line-select-bar {
    flex-wrap: wrap !important;
    gap: 8px 12px;
  }
}

/* 网站测速高级选项 method 单选框对齐（仅 http 页，不影响 batch_http） */
#tool-page-root .tool-http-input input[name='method'] {
  margin-top: 7px;
}
