:root {
  --ink: #12151c;
  --muted: #6b6f76;
  --line: #e2e3e6;
  --band: #f4f3ef;
  --navy: #062842;
  --green: #16a34a;
  --green-soft: #e8f6ee;
  --red: #c62828;
  --red-soft: #fdecec;
  --orange: #c26a00;
  --orange-soft: #fff3e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--band);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 16px 40px;
}

.top,
.card,
.foot {
  max-width: 560px;
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  height: 36px;
}

.lang button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.lang button:first-child {
  border-radius: 8px 0 0 8px;
}

.lang button:last-child {
  border-radius: 0 8px 8px 0;
}

.lang button.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(18, 21, 28, 0.08);
}

h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

h2 {
  font-size: 15px;
  margin: 24px 0 8px;
}

p {
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--muted);
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}

.steps span {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--band);
  color: var(--muted);
}

.steps span.on {
  background: var(--navy);
  color: #fff;
}

.steps span.done {
  background: var(--green-soft);
  color: var(--green);
}

.verdict {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.verdict b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.verdict.green {
  background: var(--green-soft);
  color: var(--green);
}

.verdict.red {
  background: var(--red-soft);
  color: var(--red);
}

.verdict.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.verdict span {
  color: var(--ink);
}

.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.row .end {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.code {
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.04em;
}

input[type="text"] {
  width: 100%;
  font-size: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-transform: uppercase;
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
}

.btn.soft {
  background: var(--band);
  color: var(--navy);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
}

.drop.over {
  border-color: var(--navy);
  background: var(--band);
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tiles span {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--band);
  font-size: 13px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 16px 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
}

.timeline li.DONE::before {
  background: var(--green);
  border-color: var(--green);
}

.timeline li.ACTIVE::before {
  border-color: var(--navy);
  animation: pulse 1.2s ease-in-out infinite;
}

.timeline li.FAILED::before {
  background: var(--red);
  border-color: var(--red);
}

.timeline li.SKIPPED {
  opacity: 0.45;
}

.timeline b {
  display: block;
  font-size: 14px;
}

.timeline small {
  color: var(--muted);
  font-size: 13px;
}

.diff {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.diff b {
  display: block;
}

.diff small {
  color: var(--muted);
}

.diff .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
}

.diff .pair div span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.error {
  color: var(--red);
  font-size: 14px;
  margin-top: 8px;
}

.foot {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding-top: 16px;
}

@keyframes pulse {
  50% {
    transform: scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline li.ACTIVE::before {
    animation: none;
  }
}
