:root {
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.topbar h1 { font-size: 20px; margin: 0; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px;
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit;
}
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.field { margin-bottom: 14px; }
.project-card { display: flex; flex-direction: column; gap: 10px; }
.project-card h3 { margin: 0; font-size: 15px; }
.project-card .slug { font-size: 12px; color: var(--muted); }
.project-card .actions { display: flex; gap: 8px; margin-top: 6px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.modal-bg {
  position: fixed; inset: 0; background: rgba(15,23,42,.4);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50;
}
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 420px; }
.modal h2 { margin: 0 0 4px; font-size: 16px; }
.modal p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
