body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f6;
  margin: 0;
}

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 16px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header a {
  margin-left: 12px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 4px;
}

input[type="url"],
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}

button {
  background: #2563eb;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

button.danger {
  background: #dc2626;
}

button.danger:hover {
  background: #b91c1c;
}

.error {
  color: #b91c1c;
  margin-top: 8px;
}

.success {
  color: #16a34a;
  margin-top: 8px;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
}

.links-table th,
.links-table td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.inline-form {
  display: inline-block;
  margin-right: 8px;
}

.inline-form input[type="url"],
.inline-form input[type="text"] {
  width: auto;
  max-width: 260px;
}
