:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5b6472;
  --line: #e5e7eb;
  --blue: #1677ff;
  --red: #e31b3d;
  --green: #0f9d58;
  --amber: #b7791f;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  font-family: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(22, 119, 255, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(227, 27, 61, 0.06), transparent 28%),
    var(--bg);
  color: var(--text);
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 48px auto;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 0.9fr;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.mark i {
  display: block;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.6rem, 2vw, 2rem);
}

h2 {
  font-size: 1.1rem;
}

.lede {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 700;
  color: white;
  background: var(--blue);
  cursor: pointer;
}

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

.form-message {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.form-message.ok {
  background: rgba(15, 157, 88, 0.1);
  color: var(--green);
}

.form-message.fail {
  background: rgba(227, 27, 61, 0.08);
  color: var(--red);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.pending {
  background: rgba(183, 121, 31, 0.12);
  color: var(--amber);
}

.badge.ready {
  background: rgba(15, 157, 88, 0.12);
  color: var(--green);
}

.badge.error {
  background: rgba(227, 27, 61, 0.1);
  color: var(--red);
}

.status-grid {
  display: grid;
  gap: 14px;
  margin: 0;
}

.status-grid div {
  display: grid;
  gap: 4px;
}

dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

dd {
  margin: 0;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}

.result {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: #0b1220;
  color: #dbeafe;
  font-size: 12px;
  overflow: auto;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    margin: 24px auto;
  }
}
