fieldset {
  border: 1px solid #dbe4e9;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 14px;
}
legend {
  font-weight: 800;
  padding: 0 6px;
}
.optional-address {
  display: grid;
  gap: 14px;
}
.gs1-mode-tabs {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid #dbe4e9;
  border-radius: 16px;
  background: #edf3f6;
}
.mode-tab {
  background: transparent;
  color: #60717d;
  box-shadow: none;
}
.mode-tab span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  background: #dbe4e9;
  color: #14212b;
}
.mode-tab.active {
  background: white;
  color: #1262ff;
  box-shadow: 0 5px 20px #1b456014;
}
.mode-tab.active span {
  background: #1262ff;
  color: white;
}
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.wizard-progress span {
  padding: 9px 8px;
  border-radius: 9px;
  background: #e7edf1;
  color: #60717d;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 750;
}
.wizard-progress span.active {
  background: #1262ff;
  color: white;
}
.wizard-progress span.complete {
  background: #d8f3e7;
  color: #087a4b;
}
.wizard-step {
  display: grid;
  gap: 18px;
  padding-top: 7px;
}
.wizard-step[hidden] {
  display: none;
}
.step-heading {
  display: grid;
  gap: 3px;
}
.step-heading b {
  font-size: 1.3rem;
}
.step-heading small,
.import-panel > p {
  color: #60717d;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 5px;
}
.template-download {
  display: block;
  padding: 17px 20px;
  text-align: center;
  font-size: 1.05rem;
}
.template-download span {
  margin-right: 8px;
  font-size: 1.35rem;
}
.excel-dropzone {
  min-height: 190px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #8ca8ba;
  border-radius: 16px;
  background: white;
  text-align: center;
  cursor: pointer;
}
.excel-dropzone:hover,
.excel-dropzone.has-file {
  border-color: #1262ff;
  background: #edf5ff;
}
.excel-dropzone b {
  font-size: 1.1rem;
}
.excel-dropzone small {
  color: #60717d;
}
.excel-dropzone input {
  width: auto;
  max-width: 100%;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .gs1-mode-tabs,
  .wizard-progress {
    grid-template-columns: 1fr;
  }
  .wizard-progress span:not(.active) {
    display: none;
  }
  .wizard-actions {
    flex-direction: column-reverse;
  }
  .wizard-actions button {
    width: 100%;
  }
}
.contact-manager {
  margin-top: 22px;
}
.contact-template-links {
  display: flex;
  align-items: end;
}
.contact-import {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}
.contact-import .message {
  grid-column: 1 / -1;
}
.contact-list-wrap {
  overflow-x: auto;
}
.contact-list {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.contact-list th,
.contact-list td {
  padding: 11px;
  border-bottom: 1px solid #dbe4e9;
  text-align: left;
}
.contact-list button {
  padding: 7px 11px;
}
@media (max-width: 760px) {
  .contact-import {
    grid-template-columns: 1fr;
  }
}
