*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent:      #e91e63;
  --accent-dark: #c2185b;
  --bg:          #f7f7f8;
  --surface:     #ffffff;
  --border:      #e4e4e7;
  --text:        #18181b;
  --text-muted:  #a1a1aa;
  --radius:      10px;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  padding: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  padding: 28px 24px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
}

textarea {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: .95rem;
  font-family: inherit;
  line-height: 1.6;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

textarea::placeholder { color: var(--text-muted); }
textarea:focus { border-color: var(--accent); }

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="text"] {
  flex: 1;
  min-width: 120px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

input[type="text"]::placeholder { color: var(--text-muted); }
input[type="text"]:focus { border-color: var(--accent); }

button {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: .9rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .15s;
  white-space: nowrap;
}

#show-btn {
  align-self: center;
}

button:hover  { background: var(--accent-dark); }
button:active { background: var(--accent-dark); }

button:disabled {
  background: #ccc;
  color: #888;
  cursor: default;
}

.response {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.hidden          { display: none; }
.response.hidden { display: none; }

.response.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.response.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.link-box.hidden { display: none; }

.link-box span {
  flex: 1;
  font-size: .82rem;
  word-break: break-all;
  color: var(--text-muted);
  user-select: all;
}

.link-box button {
  align-self: auto;
  padding: 6px 14px;
  font-size: .8rem;
}

@media (max-width: 480px) {
  .card { padding: 20px 16px; }

  .row { flex-direction: column; }

  button { align-self: stretch; text-align: center; }
}