:root {
  color: #f4f7f5;
  background: #080b0a;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(118, 185, 0, 0.18), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(35, 110, 73, 0.15), transparent 38%),
    #080b0a;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

header,
.result-header,
footer,
.row {
  display: flex;
}

header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #76b900;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(36px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: #9da7a1;
  font-size: 16px;
  line-height: 1.7;
}

.status {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #28302c;
  border-radius: 999px;
  color: #9da7a1;
  background: rgba(11, 16, 14, 0.8);
  font-size: 12px;
}

.status.ok {
  border-color: rgba(118, 185, 0, 0.35);
  color: #a8df4d;
}

.panel {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #202622;
  border-radius: 24px;
  background: rgba(13, 18, 16, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.result-panel {
  margin-top: 18px;
}

form,
label {
  display: grid;
}

form {
  gap: 22px;
}

label {
  flex: 1;
  gap: 9px;
}

label > span,
.result-header span,
footer {
  color: #7e8983;
  font-size: 12px;
  letter-spacing: 0.035em;
}

.label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

small {
  color: #66716b;
  font-size: 11px;
}

.row {
  gap: 18px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #29312d;
  border-radius: 12px;
  outline: none;
  color: #f4f7f5;
  background: #090d0b;
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 136px;
  padding: 14px;
  resize: vertical;
  line-height: 1.65;
}

input:focus,
textarea:focus {
  border-color: #76b900;
  box-shadow: 0 0 0 3px rgba(118, 185, 0, 0.12);
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  color: #091006;
  background: #76b900;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #8bd20b;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.text-button {
  display: inline;
  min-height: 0;
  padding: 0;
  color: #91cf2b;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.text-button:hover {
  color: #b0ec52;
  background: transparent;
}

.result-header {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 15px;
}

pre {
  min-height: 160px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #cbd3cf;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px 0;
}

@media (max-width: 720px) {
  main {
    width: min(100% - 24px, 1120px);
    padding-top: 34px;
  }

  header,
  .row,
  footer {
    flex-direction: column;
  }

  header {
    gap: 18px;
  }

  .status {
    align-self: flex-start;
  }

  footer {
    gap: 7px;
  }
}
