html {
  font-size: 16px;
  min-height: 100%;
  position: relative;
}

body {
  background: #f6f7f9;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 0 60px;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #d9dee7;
  padding: 22px max(24px, calc((100vw - 1216px) / 2));
}

.brand {
  color: #1f2933;
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
}

.export-page {
  display: flex;
  justify-content: center;
  padding: 48px 24px 72px;
}

.export-panel {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(27, 39, 51, 0.08);
  padding: 32px;
  width: min(100%, 860px);
}

.export-panel h1 {
  color: #1f2933;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.muted {
  color: #5f6875;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.explanation {
  margin: 24px 0 0;
  text-align: center;
}

.explanation-image {
  border: 1px solid #d9dee7;
  border-radius: 6px;
  display: block;
  height: auto;
  margin: 0 auto 8px;
  max-width: 100%;
}

.export-form {
  margin-top: 28px;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.jwt-input {
  border: 1px solid #cfd6df;
  border-radius: 6px;
  box-sizing: border-box;
  color: #1f2933;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 260px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.jwt-input:focus {
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
  outline: none;
}

.submit-button {
  appearance: none;
  background: #1f6feb;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 18px;
  min-width: 140px;
  padding: 12px 24px;
}

.submit-button:hover {
  background: #195fc9;
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.progress-panel {
  margin-top: 22px;
}

.progress-header {
  align-items: center;
  color: #1f2933;
  display: flex;
  font-weight: 600;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-track {
  background: #e6ebf2;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.progress-bar {
  background: #1f6feb;
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.progress-detail {
  color: #5f6875;
  font-size: 0.95rem;
  margin: 8px 0 0;
}

.validation-error,
.field-error {
  color: #b42318;
  display: block;
  margin-bottom: 14px;
}

.validation-summary-valid {
  display: none;
}

.footer {
  border-top: 1px solid #d9dee7;
  bottom: 0;
  box-sizing: border-box;
  color: #5f6875;
  height: 60px;
  left: 0;
  padding: 18px max(24px, calc((100vw - 1216px) / 2));
  position: absolute;
  right: 0;
}

@media (max-width: 575.98px) {
  .export-page {
    padding: 20px 16px 48px;
  }

  .export-panel {
    padding: 22px;
  }
}
