.traffic-query {
  margin-bottom: 22px;
}
#traffic-form {
  padding: 0 26px 22px;
}
.traffic-fields {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.traffic-fields > label {
  flex: 1;
  min-width: 180px;
}
#traffic-form label {
  color: var(--muted);
  font-size: 11px;
}
#traffic-form select,
#traffic-form input[type="datetime-local"] {
  margin-top: 7px;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  font: inherit;
}
.traffic-target-label {
  display: block;
}
#traffic-targets {
  display: block;
  margin-top: 7px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 7px;
  font:
    12px/1.6 Consolas,
    monospace;
  resize: vertical;
}
.traffic-query-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 18px 0;
}
.traffic-query-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.traffic-upload {
  cursor: pointer;
  display: inline-block;
}
.traffic-upload input {
  left: 0;
  top: 0;
}
.traffic-upload {
  position: relative;
}
.traffic-explanation {
  margin-bottom: 0;
}
.traffic-history {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.traffic-history label {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}
#traffic-history {
  width: 100%;
  margin-top: 6px;
}
#traffic-job-state {
  font-size: 12px;
  color: var(--teal);
}
.traffic-diagnostics {
  margin: 0 26px 18px;
}
.traffic-up-filter {
  display: flex;
  align-items: center;
  gap: 7px;
}
.traffic-result {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  display: inline-block;
  background: #eef2f5;
  color: #637584;
}
.traffic-result.TRAFFIC_OBSERVED {
  background: #e5f4ed;
  color: #237453;
}
.traffic-result.NO_INCREASE {
  background: #fff0dd;
  color: #9d6420;
}
.traffic-result.NEEDS_REVIEW {
  background: #fbe9e9;
  color: #a64848;
}
html[data-theme="dark"] .traffic-result {
  background: #2f4351;
  color: #c8d6df;
}
html[data-theme="dark"] .traffic-result.TRAFFIC_OBSERVED {
  background: #20463f;
  color: #9ce2c3;
}
html[data-theme="dark"] .traffic-result.NO_INCREASE {
  background: #513c2d;
  color: #ffca9d;
}
html[data-theme="dark"] .traffic-result.NEEDS_REVIEW {
  background: #513336;
  color: #ffb4b4;
}
#traffic-results td {
  vertical-align: top;
}
#traffic-csv {
  text-decoration: none;
}
.traffic-evidence {
  min-width: 500px;
}
.traffic-evidence td {
  padding: 10px;
  font-size: 11px;
}
@media (max-width: 760px) {
  #traffic-form {
    padding: 0 16px 18px;
  }
  .traffic-query-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .traffic-query-footer > div {
    gap: 8px;
  }
  .traffic-history {
    padding: 18px;
  }
  .traffic-history label {
    flex-basis: 100%;
  }
  .traffic-diagnostics {
    margin: 0 16px 18px;
  }
}
