/* Shared between index.html (project list) and editor.html (studio) —
   design tokens and the handful of elements (buttons, warnings, spinner,
   empty state) that appear identically on both pages. */
:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --border: #e4e0d6;
  --text: #1a1a1a;
  --muted: #767267;
  --accent: #cc1111;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: white;
}
button.secondary {
  background: var(--panel);
  color: var(--text);
  border: 1.5px solid var(--border);
}
button:disabled { opacity: 0.5; cursor: default; }

.actions { display: flex; gap: 10px; margin-top: 16px; }

.warning { background: #fff4e5; border: 1px solid #f0c674; color: #7a5b00; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.empty { color: var(--muted); font-size: 14px; padding: 40px; text-align: center; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
