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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f5;
  color: #1c1e21;
  line-height: 1.5;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

.subtitle {
  color: #65676b;
  font-size: 14px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card h2 {
  font-size: 17px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  font-size: 14px;
  color: #65676b;
  margin-bottom: 12px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.warning {
  background: #fff4e5;
  border: 1px solid #ffb74d;
  font-size: 14px;
}

.hidden {
  display: none;
}

.btn {
  background: #e4e6eb;
  color: #1c1e21;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s;
}

.btn:hover:not(:disabled) {
  filter: brightness(0.95);
}

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

.btn-primary {
  background: #1877f2;
  color: #fff;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.field-grid,
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-end;
}

.field {
  flex: 1;
  min-width: 200px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #65676b;
  margin-bottom: 4px;
}

.field input,
.field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.field input[readonly] {
  background: #f0f2f5;
  color: #65676b;
}

.result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
}

.result.success {
  background: #e7f5ec;
  border: 1px solid #25d366;
}

.result.error {
  background: #fdecea;
  border: 1px solid #f02849;
}

.log {
  background: #1c1e21;
  color: #a8ff60;
  padding: 14px;
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 360px;
  overflow-y: auto;
  min-height: 80px;
}
