* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #172033;
  background: #eef4fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 28px 14px;
}

.panel {
  width: min(860px, 100%);
  padding: 24px;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(18, 32, 55, 0.12);
}

.topbar,
.statusLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  margin-bottom: 14px;
  font-size: 16px;
}

.badge {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}

.badge.pending {
  color: #92400e;
  background: #fef3c7;
}

.badge.done {
  color: #166534;
  background: #dcfce7;
}

.badge.error {
  color: #991b1b;
  background: #fee2e2;
}

.badge.neutral {
  color: #334155;
  background: #e2e8f0;
}

.resultHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.steps {
  display: grid;
  gap: 8px;
  max-height: 150px;
  margin: 0 0 16px;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.steps li {
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.steps li.pending {
  background: #fef3c7;
  color: #92400e;
}

.steps li.done {
  background: #dcfce7;
  color: #166534;
}

.steps li.error {
  background: #fee2e2;
  color: #991b1b;
}

.hint {
  margin: -4px 0 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.hint code {
  color: #1d4ed8;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  background: #f8fbff;
}

.statusLine {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #eef6ff;
  color: #475569;
}

.statusLine strong {
  color: #0f172a;
  word-break: break-all;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

button {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}

button.secondary {
  color: #0f172a;
  background: #dbeafe;
}

button.ghost {
  color: #1e293b;
  background: #e2e8f0;
}

pre {
  min-height: 180px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  color: #dbeafe;
  background: #0f172a;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .grid.two,
  .topbar,
  .statusLine {
    grid-template-columns: 1fr;
    display: grid;
  }
}
