:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #121317;
  --ink-soft: #4d5058;
  --line: #d8dae0;
  --line-strong: #b8bcc6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  width: min(760px, calc(100% - 32px));
  margin: 16px auto 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  background: #15171d;
  color: #f7f7f7;
  border-radius: 2px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: min(760px, calc(100% - 32px));
  margin: 22px auto 0;
  padding-bottom: 48px;
}

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

.send-panel h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3.3vw, 2rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 8px 0 16px;
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

input,
button {
  font: inherit;
}

input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

input[readonly] {
  background: #f8f8fa;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

button {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #1b1d22;
  background: #16181d;
  color: #f3f4f7;
  font-weight: 600;
  cursor: pointer;
  padding: 0 16px;
}

button:hover {
  background: #101216;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rows {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.row span {
  color: var(--ink-soft);
}

code {
  word-break: break-all;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.status {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.status p {
  margin: 0;
}

.status.ok {
  border-color: var(--line-strong);
}

.status.warn {
  border-color: #9fa3ad;
}

.status.error {
  border-color: #202228;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }
}
