:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #18202a;
}

body {
  margin: 0;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px;
}

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.header p {
  margin-bottom: 0;
  color: #64748b;
}

.panel {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 24px;
}

label {
  display: block;
  margin: 18px 0 6px;
  font-weight: 700;
}

select,
input[type="file"],
input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #aab4c2;
  border-radius: 6px;
  background: #fff;
}

button,
.button {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 16px;
  border: 0;
  border-radius: 6px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.secondary-button {
  margin-top: 0;
  padding: 8px 12px;
  border: 1px solid #aab4c2;
  background: #fff;
  color: #0f766e;
}

.logout-form {
  display: flex;
  justify-content: flex-end;
}

button:disabled {
  background: #7a8b98;
  cursor: wait;
}

.secondary {
  display: inline-block;
  margin-left: 12px;
  color: #0f766e;
}

.details {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
}

.summary {
  margin-top: 20px;
}

.error {
  color: #b91c1c;
  font-weight: 700;
}

.progress-block {
  margin-top: 18px;
}

.progress-label {
  margin-bottom: 8px;
  color: #334155;
  font-weight: 700;
}

.progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #dbe3ea;
}

.progress-bar {
  height: 100%;
  border-radius: 6px;
  background: #0f766e;
}

.progress-bar.indeterminate {
  position: absolute;
  width: 42%;
  animation: progress-slide 1.1s ease-in-out infinite;
}

.progress-bar.complete {
  width: 100%;
}

.progress-block.failed .progress-bar {
  width: 100%;
  background: #b91c1c;
}

.progress-block.success .progress-label {
  color: #166534;
}

.progress-block.failed .progress-label {
  color: #b91c1c;
}

.hidden {
  display: none;
}

@keyframes progress-slide {
  0% {
    left: -42%;
  }

  100% {
    left: 100%;
  }
}
