* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

header {
  padding: 24px 32px 8px;
}
header h1 { font-size: 26px; }
header .sub { color: #94a3b8; margin-top: 4px; }

main { padding: 16px 32px 48px; display: flex; flex-direction: column; gap: 16px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
}
.card h2 { font-size: 17px; margin-bottom: 14px; color: #f1f5f9; }

table.kv { width: 100%; border-collapse: collapse; }
table.kv td { padding: 6px 0; border-bottom: 1px solid #293548; }
table.kv td:first-child { color: #94a3b8; width: 45%; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: #94a3b8; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid #334155; }
table.list td { padding: 6px 8px; border-bottom: 1px solid #293548; }

.row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

button {
  background: #334155;
  color: #e2e8f0;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: #475569; }
button.primary { background: #2563eb; font-weight: 600; }
button.primary:hover { background: #3b82f6; }
button.secondary { background: #7c2d12; }
button.secondary:hover { background: #9a3412; }
button:disabled { opacity: .5; cursor: not-allowed; }

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #cbd5e1; }

.hint { margin-top: 12px; font-size: 13px; color: #94a3b8; line-height: 1.5; }

code {
  background: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #7dd3fc;
}

pre#log {
  background: #020617;
  border-radius: 8px;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: #a5f3fc;
}

.guide { padding-left: 22px; line-height: 1.9; font-size: 14.5px; }

.badge { padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.badge.idle    { background: #334155; }
.badge.running { background: #92400e; }
.badge.success { background: #14532d; color: #86efac; }
.badge.failed  { background: #7f1d1d; color: #fca5a5; }
