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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
}

header {
  background: #12182F;
  border-bottom: 1px solid #1e2a4a;
  padding: 0 32px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}

header .logo {
  font-size: 10px;
  font-weight: 700;
  color: #26EDB5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

header .divider { width: 1px; height: 14px; background: #2e3c5a; }

header h1 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

header .header-logo-img {
  margin-left: auto;
  height: 14px;
  width: auto;
  background: #ffffff;
  border-radius: 2px;
  padding: 1px 3px;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px;
}

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

textarea,
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafafa;
  resize: vertical;
  transition: border-color 0.15s;
}

textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #26EDB5;
  background: #ffffff;
}

textarea {
  min-height: 120px;
}

button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #F26B43;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover {
  background: #d9582f;
}

button:disabled {
  background: #9a9a9a;
  cursor: not-allowed;
}

.field {
  margin-bottom: 20px;
}

.output {
  margin-top: 32px;
  padding: 24px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.7;
  min-height: 80px;
  color: #1a1a1a;
}

.output.loading {
  color: #9a9a9a;
  font-style: italic;
}

.output.error {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #b91c1c;
}

.actions {
  margin-top: 24px;
}
