.piece-edit {
  margin-top: 0.6rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid hsl(var(--gallery-gold));
  background: transparent;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.piece-description:empty { display: none; }

#edit-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.edit-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(30, 25, 20, 0.35);
}

.edit-layer[hidden] { display: none; }

.edit-panel {
  width: min(36rem, 100%);
  padding: 1.5rem;
  background: hsl(var(--background));
  border-radius: 0.25rem;
  box-shadow: 0 25px 50px -12px rgba(30, 25, 20, 0.25);
}

.edit-panel h2 { margin: 0 0 0.25rem; }

.edit-panel label { display: block; margin-top: 1rem; }

.edit-panel input,
.edit-panel textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  background: #fff;
  font: inherit;
}

.edit-actions { display: flex; gap: 1rem; margin-top: 1rem; }

.edit-save,
.edit-cancel {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.edit-save {
  border-bottom: 1px solid hsl(var(--gallery-gold));
  color: hsl(var(--foreground));
}

.edit-cancel { color: hsl(var(--muted-foreground)); }

.edit-error {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  color: #8a3b2a;
  font-size: 0.85rem;
}
