:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d1d5db;
  --primary: #111827;
  --primary-hover: #000000;
  --success: #065f46;
  --error: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  width: min(560px, 92vw);
}



.subtitle {
  margin: 0.4rem 0 1.2rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

label {
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.72rem 0.82rem;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid #9ca3af;
  outline-offset: 1px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  cursor: pointer;
}

button:hover {
  background: var(--primary-hover);
}

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

.result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  border-radius: 10px;
}

.result-label {
  margin: 0 0 0.35rem;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 600;
}

.result a {
  color: #0f766e;
  text-decoration: none;
  word-break: break-all;
}

.result a:hover {
  text-decoration: underline;
}

.result-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.result-row a {
  flex: 1;
}

.copy-btn {
  padding: 0.42rem 0.72rem;
  font-size: 0.85rem;
  border-radius: 7px;
  background: #0f172a;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #020617;
}

.message {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.message.error {
  color: var(--error);
}

.hidden {
  display: none;
}

.red-h1 {
  color: red;
}

h1 {
  margin: 0;
  font-size: 1.9rem;
  color: red;
}