.customer-page {
  min-height: 100vh;
  background: var(--bg);
}

.customer-header {
  min-height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.customer-header-inner {
  max-width: 1200px;
  min-height: 52px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.customer-environment {
  color: var(--teal);
  background: var(--soft);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

.customer-path {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: Consolas, monospace;
}

.customer-device {
  margin-left: auto;
  color: var(--muted);
}

.customer-layout {
  width: min(100% - 32px, 560px);
  margin: 70px auto 30px;
}

.customer-card {
  padding: 38px 42px;
  border-radius: 13px;
}

.access-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-card-heading,
.workspace-heading {
  text-align: center;
}

.customer-card h1,
.workspace-card h1 {
  margin-bottom: 8px;
  font-size: 27px;
  letter-spacing: -.45px;
}

.customer-card .intro {
  margin-bottom: 28px;
  font-size: 14px;
}

.access-card form {
  margin-top: 8px;
}

.field-help,
.raw-help {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
}

.access-card .primary {
  min-height: 48px;
  margin-top: 23px;
  font-size: 15px;
}

.workspace-card {
  padding-bottom: 28px;
}

.workspace-card .intro {
  margin-bottom: 24px;
}

.progress-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  top: 15px;
  height: 2px;
  background: #d9e3e1;
}

.progress-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
  color: #91a0a1;
  font-size: 12px;
}

.step-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 7px;
  border: 2px solid #c8d4d2;
  border-radius: 50%;
  background: var(--surface);
  color: #819291;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.progress-step strong,
.progress-step small {
  display: block;
}

.progress-step strong {
  color: inherit;
  font-size: 12px;
}

.progress-step small {
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.progress-step.is-current {
  color: var(--teal);
}

.progress-step.is-current .step-marker,
.progress-step.is-complete .step-marker {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.progress-step.is-complete::after {
  content: '';
  position: absolute;
  z-index: -1;
  height: 2px;
  left: 0;
  right: 0;
  top: 15px;
  background: var(--teal);
}

.submission-section h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

#raw-input {
  min-height: 220px;
  resize: vertical;
  line-height: 1.7;
}

.contact-box {
  margin: 17px 0 14px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #f4f8f7;
}

.contact-box div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
}

.contact-box span {
  color: var(--muted);
}

.contact-box strong {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 15px 0 0;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}

.consent-row input {
  flex: 0 0 auto;
  margin: 3px 0 0;
}

#submit-raw {
  margin-top: 19px;
  min-height: 47px;
  font-size: 15px;
}

.state-panel {
  text-align: center;
  padding: 12px 0 4px;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  font-size: 36px;
  line-height: 1;
}

.state-icon.is-warning {
  background: var(--amber-bg);
  color: var(--amber);
}

.state-icon.is-error {
  background: #fff1ef;
  color: var(--red);
}

.state-message {
  max-width: 390px;
  margin: 0 auto 16px;
  color: var(--muted);
  line-height: 1.8;
}

.success-details {
  max-width: 390px;
  margin: 20px auto 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f4f8f7;
  text-align: left;
}

.success-details div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}

.success-details div + div {
  margin-top: 7px;
}

.success-details dt {
  color: var(--muted);
}

.success-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.state-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workspace-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.workspace-actions .secondary {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13px;
}

.workspace-actions .text-button {
  font-size: 13px;
}

.customer-card .notice {
  margin: 16px 0 0;
  text-align: left;
}

@media (max-width: 560px) {
  .customer-header-inner {
    padding: 0 18px;
  }

  .customer-device {
    font-size: 11px;
  }

  .customer-layout {
    width: min(100% - 32px, 560px);
    margin-top: 28px;
  }

  .customer-card {
    padding: 29px 21px;
  }

  .access-card {
    min-height: 416px;
  }

  .customer-card h1,
  .workspace-card h1 {
    font-size: 25px;
  }

  .progress-step small {
    display: none;
  }

  .progress-step strong {
    font-size: 11px;
  }

  .progress-steps {
    margin-bottom: 25px;
  }

  #raw-input {
    min-height: 220px;
  }
}

@media (max-width: 380px) {
  .customer-layout {
    width: min(100% - 24px, 560px);
  }

  .customer-card {
    padding-left: 17px;
    padding-right: 17px;
  }
}
