:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #667eea;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; color: var(--ink); background: #f5f6fb; }
.app-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; background: #111827; color: #fff;
}
.app-nav a, .app-nav button { color: #fff; }
.app-nav-right { display: flex; gap: 12px; align-items: center; }
.app-nav button, .auth-card button, .admin-main button {
  border: 0; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 6px; cursor: pointer;
}
.app-main { padding: 16px 24px 48px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; }
.auth-card {
  width: 360px; background: #fff; padding: 28px; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08); display: grid; gap: 12px;
}
.auth-card label { display: grid; gap: 6px; font-size: 14px; }
.auth-card input, .form-control, textarea, select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
.error { color: #b91c1c; min-height: 1.2em; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.06); margin-bottom: 16px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.btn-primary, .btn-success { background: var(--brand); color: #fff; }
.btn-secondary { background: #e5e7eb; }
.btn-lg { padding: 12px 20px; font-size: 16px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); }
.modal-content { background: #fff; max-width: 720px; margin: 6vh auto; border-radius: 10px; padding: 16px; }
.progress-bar { height: 10px; background: #eee; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg,#40c057,#2f9e44); width: 0; }
.projects-table { width: 100%; border-collapse: collapse; }
.projects-table th, .projects-table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.template-editor { min-height: 220px; font-family: ui-monospace, monospace; }
.subtitle { color: var(--muted); }
