* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f3f4f6; color: #1f2937; font-size: 15px; }
body.center { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 16px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 18px; margin: 0 0 10px; }
a { color: #2563eb; text-decoration: none; }
.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.login { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.login h1 { text-align: center; }
input { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; width: 100%; }
input:focus { outline: none; border-color: #2563eb; }
button { padding: 10px 16px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; font-size: 15px; cursor: pointer; white-space: nowrap; }
button:hover { background: #1d4ed8; }
button.small { padding: 3px 8px; font-size: 12px; background: #e5e7eb; color: #374151; }
button.small:hover { background: #d1d5db; }
button.danger { background: #fee2e2; color: #b91c1c; }
button.danger:hover { background: #fecaca; }
.create, .search { display: flex; gap: 8px; align-items: center; }
.create .alias { max-width: 180px; }
.search input { max-width: 300px; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; word-break: break-all; }
.alert.ok { background: #dcfce7; color: #166534; }
.alert.err { background: #fee2e2; color: #991b1b; }
.muted { color: #6b7280; }
.table { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px; border-bottom: 1px solid #e5e7eb; text-align: left; white-space: nowrap; }
td.url { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
td form { margin: 0; }
.pager { margin-top: 12px; display: flex; gap: 4px; flex-wrap: wrap; }
.pager a { padding: 4px 10px; border-radius: 6px; background: #e5e7eb; color: #374151; }
.pager a.active { background: #2563eb; color: #fff; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }
pre { background: #111827; color: #e5e7eb; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
@media (max-width: 640px) {
    .create { flex-direction: column; align-items: stretch; }
    .create .alias { max-width: none; }
}
