.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  border-bottom: 1px solid var(--light-grey);
}

.home-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--near-black);
}

.home-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  font-size: 13px;
  color: var(--mid-grey);
}

.user-info a {
  color: var(--mid-grey);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

.user-info a:hover {
  color: var(--al-orange);
}

.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--al-orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-new:hover {
  background: #d14418;
}

.btn-new:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.canvas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 32px 40px;
}

.canvas-card {
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.canvas-card:hover {
  border-color: var(--al-orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.canvas-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 12px;
}

.canvas-card-name.untitled {
  color: var(--mid-grey);
  font-style: italic;
}

.canvas-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--mid-grey);
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-badge--spark {
  background: rgba(232, 77, 28, 0.1);
  color: var(--al-orange);
}

.stage-badge--shape {
  background: var(--near-black);
  color: var(--white);
}

.stage-badge--scope {
  background: rgba(58, 173, 168, 0.1);
  color: var(--scope-teal);
}

.stage-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.stage-badge--spark .stage-badge-dot { background: var(--al-orange); }
.stage-badge--shape .stage-badge-dot { background: var(--white); }
.stage-badge--scope .stage-badge-dot { background: var(--scope-teal); }

.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--mid-grey);
}

.empty-state h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-charcoal);
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 24px;
}

.loading-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--mid-grey);
  font-size: 14px;
}

.error-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--al-orange);
  font-size: 14px;
}

/* Name modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: 13px;
  color: var(--mid-grey);
  margin-bottom: 20px;
}

.modal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  font-family: var(--font-brand);
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
}

.modal input:focus {
  border-color: var(--al-orange);
}

.modal button {
  width: 100%;
  padding: 10px;
  background: var(--al-orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.modal button:hover {
  background: #d14418;
}
