:root {
  color: #1c1917;
  background: #fafaf9;
  font: 16px/1.5 "Segoe UI", sans-serif;
}

body {
  margin: 0;
}

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 {
  margin: 0 0 20px;
  font-size: 1.4rem;
}

form, .card {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

input:-webkit-autofill {
  -webkit-text-fill-color: #1c1917;
  box-shadow: 0 0 0 1000px #fff inset;
}

button, .link {
  border: 0;
  border-radius: 8px;
  background: #1e3a8a;
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.link {
  justify-self: start;
  background: transparent;
  color: #1e3a8a;
  padding: 0;
}

.note {
  min-height: 1.2em;
  margin: 0;
}

.note:empty {
  display: none;
}

.note.error {
  color: #9f1239;
}

.progress {
  display: grid;
  gap: 8px;
}

.count:empty {
  display: none;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e5e4;
}

.bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: #1e3a8a;
  transition: width 0.3s ease;
}

.bar.pending > span {
  width: 35%;
  animation: slide 1.1s ease-in-out infinite;
}

.items {
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.items li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 0.92rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d3d1;
}

.dot.listed {
  background: #15803d;
}

.dot.work {
  background: #1e3a8a;
  animation: pulse 1.4s ease-out infinite;
}

.dot.skipped {
  background: #a8a29e;
}

.dot.failed {
  background: #9f1239;
}

.name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state {
  color: #57534e;
  font-size: 0.82rem;
}

@keyframes slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 6px rgba(30, 58, 138, 0); }
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
