:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f232c;
  --border: #2a2f3a;
  --text: #f4f5f7;
  --text-dim: #9aa1ae;
  --accent: #7c9eff;
  --accent-2: #6ee7b7;
  --danger: #ff8a8a;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-2);
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 560px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  padding: 14px;
  font-family: inherit;
}

textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hint {
  font-size: 12px;
  color: var(--text-dim);
}

button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.15s ease;
}

button:active {
  transform: scale(0.98);
}

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

.btn-primary {
  background: var(--accent);
  color: #0f1115;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

.result {
  margin-top: 28px;
  display: none;
}

.result h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 24px 0 10px;
}

.result h2:first-child {
  margin-top: 0;
}

.result p {
  line-height: 1.6;
  margin: 0;
}

.action-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.action-item:last-child {
  border-bottom: none;
}

.action-item .owner {
  font-size: 12px;
  color: var(--accent-2);
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 1px;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(15, 17, 21, 0.35);
  border-top-color: #0f1115;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.shared-banner {
  background: rgba(124, 158, 255, 0.08);
  border: 1px solid rgba(124, 158, 255, 0.25);
  color: var(--accent);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 24px;
}
