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

body {
  background: #0a0a0a;
  color: #d4d4d4;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 520px;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 14px;
  color: #737373;
  margin-bottom: 24px;
}

.card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

.card-header {
  font-size: 14px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 10px 12px;
  color: #e5e5e5;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

input:focus, textarea:focus {
  border-color: #404040;
}

input::placeholder, textarea::placeholder {
  color: #404040;
}

.btn {
  width: 100%;
  padding: 10px;
  background: #262626;
  color: #e5e5e5;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover:not(:disabled) {
  background: #333;
  border-color: #404040;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn:active:not(:disabled) {
  background: #404040;
}

.message {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  display: none;
}

.message.visible {
  display: block;
}

.message.success {
  background: #0a1a0a;
  border: 1px solid #1a3a1a;
  color: #4ade80;
}

.message.error {
  background: #1a0a0a;
  border: 1px solid #3a1a1a;
  color: #f87171;
}

/* Шаги */
.steps {
  margin-bottom: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.5;
}

.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #262626;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #e5e5e5;
}

.step strong {
  color: #d4d4d4;
}

/* Блок скрипта */
.script-box {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  overflow-x: auto;
  max-height: 200px;
  overflow-y: auto;
}

.script-box code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 11px;
  color: #a3a3a3;
  white-space: pre-wrap;
  word-break: break-all;
}
