:root {
  --primary: #2b6cb0;
  --bg: #f7f8fa;
  --card-bg: #ffffff;
  --border: #e2e5ea;
  --text: #1a202c;
  --muted: #6b7280;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--primary); text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 1rem; }
.user-email { color: var(--muted); font-size: 0.9rem; }
.container { max-width: 900px; margin: 0 auto; padding: 2rem; }
.auth-card {
  max-width: 380px;
  margin: 4rem auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.auth-card h1 { margin-top: 0; font-size: 1.4rem; }
form label { display: block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
form input, form select { width: 100%; padding: 0.5rem; margin-top: 0.25rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
button, .btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
button:disabled { background: #a0aec0; cursor: not-allowed; }
.error { color: #c53030; }
.muted { color: var(--muted); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.delete-project-btn {
  align-self: flex-start;
  background: transparent;
  color: #c53030;
  border: 1px solid #c53030;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}
.delete-project-btn:hover { background: #fed7d7; }
.status { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: #edf2f7; color: #4a5568; }
.status-computed, .status-gcode_ready { background: #c6f6d5; color: #22543d; }
.status-error { background: #fed7d7; color: #822727; }
fieldset { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1.5rem; padding: 1rem; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
th, td { padding: 0.4rem; text-align: left; }
.actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.drum-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; }
.drum-card img.preview { max-width: 100%; border: 1px solid var(--border); border-radius: 8px; margin: 1rem 0; }
