body {
  background: #f7f7f8;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  min-height: 100vh;
}
.shortener-ui {
  background: #fff;
  max-width: 370px;
  margin: 48px auto 0 auto;
  border-radius: 14px;
  box-shadow: 0 2px 32px rgba(0,0,0,0.07);
  padding: 32px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
h1 {
  font-size: 1.3rem;
  text-align: center;
  font-weight: 600;
  color: #3b82f6;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
}
form {
  display: flex;
  gap: 8px;
}
input[type="url"], input[type="text"] {
  flex: 1;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  font-size: 1rem;
  background: #f7f7f8;
  outline: none;
  transition: border 0.2s;
}
input[type="url"]:focus, input[type="text"]:focus {
  border: 1.5px solid #3b82f6;
  background: #fff;
}
button {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s;
  height: 44px;
}
button:hover {
  background: #2563eb;
}
#shortLinkBox {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}
#shortLink {
  flex: 1;
  background: #f7f7f8;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 1rem;
  outline: none;
}
#shortLink:focus {
  border: 1.5px solid #3b82f6;
}
#copyBtn {
  padding: 0 12px;
  font-size: 0.99rem;
  height: 38px;
}
.your-links {
  margin-top: 8px;
  font-size: 0.98rem;
  color: #666;
}
.your-links a {
  color: #3b82f6;
  text-decoration: none;
  word-break: break-all;
  display: block;
  margin-bottom: 2px;
}
@media (max-width: 500px) {
  .shortener-ui {
    max-width: 98vw;
    padding: 16px 4vw 18px 4vw;
  }
  h1 { font-size: 1.08rem; }
  button, input[type="url"], input[type="text"] { font-size: 0.98rem; }
}
